How to read point bend location from Pro-piping in ProToolkit ?
I have a pipe assembly created in pro-piping, now i want to read its bend location from ProToolkit, so please can i know its API or any other way to read it.
From front end i can get it from Piping -> piping info -> bend location -> select pipe segment -> select csys.
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
Re: How to read point bend location from Pro-piping in ProToolkit ?
I have not ever programmed this activity but here are 2 possibilities off the top of my head. BTW, I am using the WF 5.0 Pro/TOOLKIT API.
Use the Pro/DEVELOP function prodb_get_pipe_feat_refs and interrogate the returned Select3D object. The Select3D object can be accessed with the ProSelect* functions. This might get you what you are looking for.
If #1 doesn't work then you may have to extract information from the feature element tree by using ProFeatureElemtreeExtract and then using the ProElem* functions to retrieve the proper data. I'm not sure if Piping features are supported in Pro/TOOLKIT with the element tree but it's worth a try.