Jump to content

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.

Link to comment

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}


Link to comment

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.

  • Create New...