Hi Tim,
The files in the 'p' directory of LDraw do not have a file name in them if you open them in a text editor, which means if you paste the data you see in the text editor it will be just the string and the number values,
If you have a part that does have a subpart unlike above you can type the filename and before that you can type the number values, these are called strings or lines and they are arranged typically by having around 8 number, from left to right the numbers represent:
'Active/inactive string', 'colour', 'width', 'height', 'lengh', 'X rotation', 'Y rotation', 'Z rotation' then you have the 'file.dat'. The commands before filename.dat change this entire part that will be loaded in (which is the 'file.dat'), so how do you have a part like in the P folder but have the string work with it?
the rotation is not the the same as viewing angle, that is adjusted with the cursor tool in the GUI panel.
When I tried it I did not get anything grapical of the model and I get 'error parsing model line' on whatever line the sting is on.
The string does not have a 'file.dat' because it is working with editing the number values, it would have one if there is a part loaded into the project you are creating in script form.
Here is my project data:
0 ----number values----
3 16 0 0 0 1 0 0 0.9239 0 0.3827
3 16 0 0 0 0.9239 0 0.3827 0.7071 0 0.7071
3 16 0 0 0 0.7071 0 0.7071 0.3827 0 0.9239
3 16 0 0 0 0.3827 0 0.9239 0 0 1
3 16 0 0 0 0 0 1 -0.3827 0 0.9239
3 16 0 0 0 -0.3827 0 0.9239 -0.7071 0 0.7071
3 16 0 0 0 -0.7071 0 0.7071 -0.9239 0 0.3827
3 16 0 0 0 -0.9239 0 0.3827 -1 0 -0
3 16 0 0 0 -1 0 -0 -0.9239 0 -0.3827
3 16 0 0 0 -0.9239 0 -0.3827 -0.7071 0 -0.7071
3 16 0 0 0 -0.7071 0 -0.7071 -0.3827 0 -0.9239
3 16 0 0 0 -0.3827 0 -0.9239 0 0 -1
3 16 0 0 0 0 0 -1 0.3827 0 -0.9239
3 16 0 0 0 0.3827 0 -0.9239 0.7071 0 -0.7071
3 16 0 0 0 0.7071 0 -0.7071 0.9239 0 -0.3827
3 16 0 0 0 0.9239 0 -0.3827 1 0 0
0 ----string----
1 16 0 -4 0 6 0 0 0 1 0 0 0 6
The number values make up a basic brick and the string defines the other things such as the colour and its rotation.
I am using Windows XP Professional Edition and Mac OSX Snow Lepoard, I have tried putting the string above the number values and below them but no luck.
The files in the 'p' directory of LDraw do not have a file name in them if you open them in a text editor, which means if you paste the data you see in the text editor it will be just the string and the number values,
If you have a part that does have a subpart unlike above you can type the filename and before that you can type the number values, these are called strings or lines and they are arranged typically by having around 8 number, from left to right the numbers represent:
'Active/inactive string', 'colour', 'width', 'height', 'lengh', 'X rotation', 'Y rotation', 'Z rotation' then you have the 'file.dat'. The commands before filename.dat change this entire part that will be loaded in (which is the 'file.dat'), so how do you have a part like in the P folder but have the string work with it?
the rotation is not the the same as viewing angle, that is adjusted with the cursor tool in the GUI panel.
When I tried it I did not get anything grapical of the model and I get 'error parsing model line' on whatever line the sting is on.
The string does not have a 'file.dat' because it is working with editing the number values, it would have one if there is a part loaded into the project you are creating in script form.
Here is my project data:
0 ----number values----
3 16 0 0 0 1 0 0 0.9239 0 0.3827
3 16 0 0 0 0.9239 0 0.3827 0.7071 0 0.7071
3 16 0 0 0 0.7071 0 0.7071 0.3827 0 0.9239
3 16 0 0 0 0.3827 0 0.9239 0 0 1
3 16 0 0 0 0 0 1 -0.3827 0 0.9239
3 16 0 0 0 -0.3827 0 0.9239 -0.7071 0 0.7071
3 16 0 0 0 -0.7071 0 0.7071 -0.9239 0 0.3827
3 16 0 0 0 -0.9239 0 0.3827 -1 0 -0
3 16 0 0 0 -1 0 -0 -0.9239 0 -0.3827
3 16 0 0 0 -0.9239 0 -0.3827 -0.7071 0 -0.7071
3 16 0 0 0 -0.7071 0 -0.7071 -0.3827 0 -0.9239
3 16 0 0 0 -0.3827 0 -0.9239 0 0 -1
3 16 0 0 0 0 0 -1 0.3827 0 -0.9239
3 16 0 0 0 0.3827 0 -0.9239 0.7071 0 -0.7071
3 16 0 0 0 0.7071 0 -0.7071 0.9239 0 -0.3827
3 16 0 0 0 0.9239 0 -0.3827 1 0 0
0 ----string----
1 16 0 -4 0 6 0 0 0 1 0 0 0 6
The number values make up a basic brick and the string defines the other things such as the colour and its rotation.
I am using Windows XP Professional Edition and Mac OSX Snow Lepoard, I have tried putting the string above the number values and below them but no luck.