How to get the entity objectID where I placed the Start Point Symbol?

How to get the entity objectID where I placed the Start Point Symbol?

https_vmo
Participant Participant
404 Views
5 Replies
Message 1 of 6

How to get the entity objectID where I placed the Start Point Symbol?

https_vmo
Participant
Participant

Good day Everyone. 

 

I've placed a "Start Point Symbol" ( ACPPDB3DISOSTARTPOINTSYMBOL ) on a pipe. How can I get the ObjectID or RowID of the pipe that contains this symbol? I tried checking the entity.OwnerId of the symbol, but this ID is different from the ObjectId of the pipe where I placed it. 

 

How can I correctly get the ObjectID or RowID of the pipe that contains this symbol?

Any code examples or pointers in the right direction would be appreciated. Thank you.

0 Likes
Accepted solutions (1)
405 Views
5 Replies
Replies (5)
Message 2 of 6

Gepaha
Collaborator
Collaborator
0 Likes
Message 3 of 6

https_vmo
Participant
Participant

Good day. thank you for your reply. But my goal is to get the Id of the pipe where I placed the symbol, not the id of the symbol itself. Is it possible for me to retrieve it?

0 Likes
Message 4 of 6

Gepaha
Collaborator
Collaborator

I don't use Plant 3D and I'm sure users who use Plant 3D can help you much better than I can.
But for this to be possible, you need to have more details about how you get the label. Please share the most relevant code.
I don't know the Plant 3D API but there must be some property on the label object that you can use to get the pipe. Or maybe use "CrossingWindow" or "CrossingPolygon" if you have a point under the pipe.

Message 5 of 6

jabowabo
Mentor
Mentor
Accepted solution

In short, you need to retrieve the Symbolic Port from the symbol, then use the Connection Manager to find the connected port on the piping object. From there, you can get the piping object info. The WalkTheRun example in the SDK should be helpful.

Message 6 of 6

https_vmo
Participant
Participant

Thank you for your help 

0 Likes