Jump to content
gioxon

Script for Drawing Multiple 3DPOLYS using Autocad Points ('PN)

Recommended Posts

gioxon

Hello,

 

 

I am working on a tunnel alignment. I have to draw multiple closed 3d polylines from AutoCAD Points (which form the tunnel sections from the excavation). I use the 3POLY command and then the option "PN. Is it possible to write a script (or a lisp routine) that repeats this process?

 

 

 

For example, I wrote this script

 

 

3POLY

'PN

1-10,1

(1 row blank)

3POLY

'PN

11-20,11

 

 

It draws the first closed 3dpoly (from point numbers 1 to 10 and closes to 1)

but it not continues to second 3poly.

 

 

Thank you in advance

1.jpg

Share this post


Link to post
Share on other sites
BIGAL

I get unknown command for 3poly it may be a lisp etc then task can be done differently, other way is dump pts into excel and make a script of the points to be connected using 3dpoly x,y,z x,y,z etc.

 

Did you mean 3dpoly ?

Share this post


Link to post
Share on other sites
gioxon

Did you mean 3dpoly ?

 

Bigal thank you for your reply,

 

I'm sorry for the inconvenience. You are right, I mean 3dpoly command. I've already tried the solution you suggest (i made a script with the points like the image) but it is no convenient for me.

 

 

I have already imported all the points from a txt file. The most important aspect of the solution I seek is to draw these 3d polylines using the point numbers and not by using coordinates.

3dpoly_script.jpg

Share this post


Link to post
Share on other sites
BIGAL

I had a Google your close it is probably your script, I would still look at excel and write a macro to work out the start and end of point groups. Will see if I can do.

 

not tested
3dpoly
'pn 1-35
C

3dpoly
'pn 36-72
C

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...