Loft command for generating cross sections using AutoCAD script

Loft command for generating cross sections using AutoCAD script

pehrafano84
Observer Observer
789 Views
2 Replies
Message 1 of 3

Loft command for generating cross sections using AutoCAD script

pehrafano84
Observer
Observer

In loft command, you need to select the objects where you want to generate a cross section. My objects in one model consist of 61 3DPOLY, and I have like 35 models. In order to avoid clicking objects for 2135 times, I want to create an AutoCAD script for this.

I can't find anything on the internet about creating a script for Loft command. Is there a way to do this?

790 Views
2 Replies
Replies (2)
Message 2 of 3

leeminardi
Mentor
Mentor

3dpoly objects are not valid as sections for the loft command.

 

Do you really mean standard polylines (i.e., LWPOLY) that are positioned in 3D?

 

If you know the coordinates of at least one vertex on each polyline you could select them via that vertex in a VLISP program.

 

 

 

lee.minardi
0 Likes
Message 3 of 3

Sea-Haven
Mentor
Mentor

Load the 3dpolys into CIV3D and can generate cross sections easily. As well as a full plot detail.

 

I know can draw a line and get all the intersecting points with intersecting Z, a fair bit of code I believe its out there.

 

Easier is get all vertex points and make a surface using say TriangV0.6.7.lsp which I think has cross section extract, but note I am not sure if it allows for breakline implementation which will give a surface better matching the 3dpolys. For CIV3D explode 3dpolys and import 3dlines.

 

You have not hinted how the cross section should look just a 2d pline ? That is what worries me as the code time is in making proper scaled cross sections. 

 

Have a look also at Civil Site Design. Home - Civil Site Design

 

For 35 projects it may be worth buying some software we are talking a few minutes per dwg. I would expect all done in less than 1 day. Depending on alignment complexity for the cross sections. Maybe hire someone to do for you.

 

0 Likes