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 get PortProperties of PipeInlineAsset?

1 REPLY 1
Reply
Message 1 of 2
Prabha43
259 Views, 1 Reply

How to get PortProperties of PipeInlineAsset?

Hi,

 

I am in need to get the PortProperties(End Type1,End Type2) from the Entity(PipeInlineAsset).It can be viewed in Autocad Plant3D but can't retrieve through coding(C#.net).Please suggest me some ideas to solve this issue.

 

Thanks and Regards,

Prabha.T

1 REPLY 1
Message 2 of 2
jabowabo
in reply to: Prabha43

This gets the end type of the first indexed 'Static' port:

 

part = (Part)tr.GetObject(objId, OpenMode.ForRead);
PortCollection partPorts = part.GetPorts(PortType.All);
string s1EndType = partPorts["S1"].EndType;

 

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

Post to forums  

Autodesk Design & Make Report

”Boost