cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Translate the entire conversation x

Accessing Model Name of every part in an assembly using C++ or Lisp

KS_8811981
4-Participant

Accessing Model Name of every part in an assembly using C++ or Lisp

I'm trying to access the model name and read it in a tree format from Creo ED.

Tried a few Lisp APIs I saw in the document; didn't help much as none returned the model name.

https://support.ptc.com/help/creo_elements_direct/r20.3.0.0/advanced_documentation/integration_kit/reference/function_index.html

Is there any other way to access the data? C# also doesn't seem to have the related API on Part

 

3 REPLIES 3
KS_8811981
4-Participant
(To:KS_8811981)

CREO ED Model Name.png

 Have a requirement to read the Model Name (marked in green)for every Part/Assembly instead of the Part/Assembly Name (marked in red)

lfortner
13-Aquamarine
(To:KS_8811981)

Press [Show details] in the upper left corner of the structure tree.

Pict.png


Tried a few Lisp APIs I saw in the document; didn't help much as none returned the model name.

 


you are wrong..   because  sd-inq-obj-contents-name is your friend. API naming differs a little from User Interface language, even in english UI.  API differentiate using 'instance' and 'contents' , where 'instance' is shared 'contents'.

It's a pity this simple question did not get answered earlier.


● PE80+90@home ● W10 Pro Build19045.6466 ● Drafting 20.6 + Modeling V20.6+7 + Windchill 12.1.2.6@job ● brain 6.3 ● Stift+Zettel V8.42
Announcements

Top Tags