sphere plotting in a script file
sphere plotting in a script file
(OP)
Hello
I am new to MicroStation and am trying to create script files that can plot points, text and spheres.
After a lot of head scratching I've come up with:
place sphere
xy=10,10,10; DL=2.0
xy=20,10,0; DL=2.0
This appears to plot the sphere centre at XY coordinates and forces the radius to be 2.
Is this OK or am I missing something which could cause an error?
The key-in help just gives a "Place Sphere Icon" which displays the setting dialog. Without editing the dialog the wrong datum could be use (centre, diameter etc), whereas the "place sphere" command appears to automatically use the centre.
Oh and one last question. To finish text entry in a script is "Null" the standard method.ie
TX=10; Place Text;
Hello World; xy=0,0,0
Goodbye; xy=10,0,0
null
Many thanks.
I am new to MicroStation and am trying to create script files that can plot points, text and spheres.
After a lot of head scratching I've come up with:
place sphere
xy=10,10,10; DL=2.0
xy=20,10,0; DL=2.0
This appears to plot the sphere centre at XY coordinates and forces the radius to be 2.
Is this OK or am I missing something which could cause an error?
The key-in help just gives a "Place Sphere Icon" which displays the setting dialog. Without editing the dialog the wrong datum could be use (centre, diameter etc), whereas the "place sphere" command appears to automatically use the centre.
Oh and one last question. To finish text entry in a script is "Null" the standard method.ie
TX=10; Place Text;
Hello World; xy=0,0,0
Goodbye; xy=10,0,0
null
Many thanks.





RE: sphere plotting in a script file
Cheers,
Bob Mecham
Training | Consulting | Programming
www.EnvisionCAD.com
Facebook: http://www.facebook.com/EnvisionCAD
Twitter: http://twitter.com/envisioncad
Youtube: http://www.youtube.com/user/envisioncad
RE: sphere plotting in a script file
It was just that I had only started learning MicroStation in the past 2 days.
Just a note for newbies like me, but don't leave a gap between the equals and co-ordinates ie
xy= 10.0, 10,0 (should be xy=10, ...). Took me ages to work out why my first script to plot points wouldn't work.
Simon R