Generate a 3D solid pipe

Generate a 3D solid pipe

rsalastopografia
Advocate Advocate
1,297 Views
12 Replies
Message 1 of 13

Generate a 3D solid pipe

rsalastopografia
Advocate
Advocate

Hello everyone,

I am working on a civil project where I had to stake out and then survey the installation of buried 12-inch HDPE pipes in the field.

The 3DPolyline I have represents the top of the pipe (the crown).

What I want to do is generate a 3D solid (pipe) based on this 3DPolyline, where:
- The top of the solid aligns with the 3Dpolyline.
- The pipe diameter is a user input, for example: 0.315 meters.
- The solid is modeled downward from the crown to the bottom of the pipe.

I tried using AutoLISP routines with vla-AddCylinder, sweep, loft, and even extruding regions along a path. However, all of these assume that the path is the centerline of the pipe, which is not my case.

Questions:
- Has anyone faced a similar modeling situation (surveyed pipe from top line)?
- Is there a reliable way to create a solid 3D pipe based on a polyline that is not the centerline?
- Can this be done in AutoLISP? Or should I use .NET or another method?

Any suggestions or sample code would be greatly appreciated.

Thanks in advance for your time and insights.

rsalastopografia_0-1750894130334.png

Vista levantamiento

rsalastopografia_1-1750894163669.png

It is required to generate this solid model starting from the crown down.

0 Likes
Accepted solutions (1)
1,298 Views
12 Replies
Replies (12)
Message 2 of 13

j.palmeL29YX
Mentor
Mentor

@rsalastopografia wrote:

 

What I want to do is generate a 3D solid (pipe) based on this 3DPolyline, where:
- The top of the solid aligns with the 3Dpolyline.

 


 

Is this what you're looking for? (As example I changed the color of one f the 3DPolylines to red and used that for a sweeping). 

 

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 3 of 13

autoid374ceb4990
Collaborator
Collaborator

Looks like @rsalastopografia has the solution, but does your LISP routine work except for the elevation?  If so why not just move the result vertically by the proper amount?

0 Likes
Message 4 of 13

rsalastopografia
Advocate
Advocate

Jürgen Palme, That's exactly what I was looking for. How did you do it? Could you please explain how you managed to generate the pipe solid from the 3D poly down? Did you use AutoCAD tools, Lisp, or some other programming language?

0 Likes
Message 5 of 13

j.palmeL29YX
Mentor
Mentor

@autoid374ceb4990 wrote:

... why not just move the result vertically by the proper amount?


IMO (if I understand the intention of the OP right) the top of a moved pipe no longer follows exactly the 3DPolyline. 

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 6 of 13

rsalastopografia
Advocate
Advocate

Jürgen Palme Could you please tell me how you managed to generate the pipe from the 3D poly, using the upper part of the pipe as a reference? It's exactly what I was looking for. It's a bit complicated because it has vertical elbows, and in this case, moving the 3D poly to the center of the pipe doesn't work. Looking forward to your comment. Best regards.

0 Likes
Message 7 of 13

rsalastopografia
Advocate
Advocate

That's exactly what I was looking for. How did you do it? Could you please explain how you managed to generate the pipe solid from the 3D poly down? Did you use AutoCAD tools, Lisp, or some other programming language?

0 Likes
Message 8 of 13

j.palmeL29YX
Mentor
Mentor
Accepted solution

Sorry for the delay, I was busy with other project. 

 

Hope you can follow the steps in this video:

 

(view in My Videos)

 

 

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 9 of 13

imadHabash
Mentor
Mentor

Hi,

As much as i understand your need and depending on @j.palmeL29YX first suggestion... draw circles that represent your pipe then convert them to region. Use Subtract command to get the right shape for your pipe .Now by Extrude command ( Path ) you will get the final good result that you asked for. Click on below image to see what i mean.

Extr.gif

 

Imad Habash

EESignature

Message 10 of 13

rsalastopografia
Advocate
Advocate

Simply brilliant. I thought I'd used Lisp, but I see they're common AutoCAD commands. Thanks for sharing those AutoCAD tips.

0 Likes
Message 11 of 13

rsalastopografia
Advocate
Advocate

Your method for generating pipes from 3D Poly is very interesting. Thank you for sharing these tips.

Message 12 of 13

j.palmeL29YX
Mentor
Mentor

@imadHabash wrote:

... Now by Extrude command ( Path ) you will get the final good result that you asked for.

 


 

Extrude (Path) is a nice idea, but in this example it doesn't give us the expected (needed) result. 

 

(view in My Videos)

 

 

 

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 13 of 13

Washingtonn
Collaborator
Collaborator

Be careful at vertical offsets/risers/drops - at those locations, a polyline is coincident to the center of the pipe.  

 

0 Likes