Jump to content
Sign in to follow this  

Beginner Question

Recommended Posts

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.

Share this post

Link to post

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.

Share this post

Link to post

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}


X1:=120; {Set the value for the variables}

Y1:=120; {120 = 12 inches x 10 feet}


BeginXtrd(0,Z1); {Start makeing the 3D object}

Rect(0,0,X1,Y1); {Draw the rectangle to extrude}


DoMenuTextByName('Standard Views',9); {Set the view to Left Iso}


Run(MakeBox); {required at end of procedure. Name must match}


Share this post

Link to post

Thank you Pat! There looks to be endless possibilities with vectorscript. I've got some learning to do.

Share this post

Link to post

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.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

  • Create New...