AutoCAD Plant 3D Forum
Welcome to Autodesk’s AutoCAD Plant 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Plant 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create Pipe in plant 3d

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
iPranavKulkarni
223 Views, 3 Replies

How to create Pipe in plant 3d

Need to create pipe programmatically with C#.

Also converting from solid 3d is also fine. 

3 REPLIES 3
Message 2 of 4
quan_hm
in reply to: iPranavKulkarni

Check this code and also the project attached

            Pipe pipeEntity_Pipe1 = CreatePipe();

            // Set part entity position PIPE1
            pipeEntity_Pipe1.StartPoint = nextPartPos;
            pipeEntity_Pipe1.EndPoint = nextPartPos.Add(new Vector3d(60, 0, 0));
            pipeEntity_Pipe1.OuterDiameter = (double)specPart_Pipe1.PropValue("MatchingPipeOd");
Hoang Minh Quan - Piping design engineer
Autodesk Store for Python Catalog
Message 3 of 4

Thanks a lot. this is very useful.

 

Message 4 of 4

@quan_hm  Do you have code for creation of support and equipment(any)?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report