How to create Pipe in plant 3d

iPranavKulkarni
Advocate
Advocate

How to create Pipe in plant 3d

iPranavKulkarni
Advocate
Advocate

Need to create pipe programmatically with C#.

Also converting from solid 3d is also fine. 

0 Likes
Reply
Accepted solutions (1)
320 Views
3 Replies
Replies (3)

quan_hm
Collaborator
Collaborator
Accepted solution

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
0 Likes

iPranavKulkarni
Advocate
Advocate

Thanks a lot. this is very useful.

 

0 Likes

iPranavKulkarni
Advocate
Advocate

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

0 Likes