Jump to content

Moving and extruding a polyline in ACAD using VBA


Luke31

Recommended Posts

Hi, I'm a bit new to using VBA with AutoCAD. Is it possible to move a defined polyline (square) and then extrude it to create a third dimension? If yes, what would the syntax be please?

Link to comment
Share on other sites

You have answered your own question, MOVE & EXTRUDE just google a bit and you should be able to find the commands in VBA format at worst you can get VBA to do a "Command" string.

 

This took about 1 minute answer is what you want, you can find extrude should be the same. https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-ActiveX/files/GUID-1F8B68A6-0A46-4697-A978-BBEDAE3AE5FF-htm.html

Link to comment
Share on other sites

Ok thanks i managed to move the square & copy it, however I am trying to create a hollow box in 3d. Can this be done? Since the extrude command extrudes faces and not sides. 

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...