FredM Posted February 10, 2008 Share Posted February 10, 2008 Can someone please post a simple script that creates and extrudes a basic rectangle? I think that'd be a good place for me to begin to understand the structuring aspect of scripting. Also Is there a dictionary-type layout of all of the commands somewhere out there? Thanks. Quote Link to comment
Jonathan Pickup Posted February 10, 2008 Share Posted February 10, 2008 if you are looking to get started you should learn how the structure of algorithms work. Then you will find it easy to move into VectorScript. Something like Teach Yourself Algorithms by Ralston and Neill[b/] published by Hodder and Stoughton 1997. This book is listed in Amazon.com. Try the VectorWorks help. Look for VectorScript Function Reference. Quote Link to comment
FredM Posted February 10, 2008 Author Share Posted February 10, 2008 Thanks. I will Quote Link to comment
Pat Stanford Posted February 11, 2008 Share Posted February 11, 2008 Here is a basic script to draw a rectangle and extrude it. It also sets the view to left Isometric so you can see the extrude. Procedure MakeBox; var X1,Y1,Z1:Real; {define the variables} Begin; X1:=120; {Set the value for the variables} Y1:=120; {120 = 12 inches x 10 feet} Z1:=120; BeginXtrd(0,Z1); {Start makeing the 3D object} Rect(0,0,X1,Y1); {Draw the rectangle to extrude} EndXtrd; DoMenuTextByName('Standard Views',9); {Set the view to Left Iso} End; Run(MakeBox); {required at end of procedure. Name must match} Pat Quote Link to comment
FredM Posted February 12, 2008 Author Share Posted February 12, 2008 Thank you Pat! There looks to be endless possibilities with vectorscript. I've got some learning to do. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.