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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

What APIs should be used to import subcomponents?

CHASEONHO
18-Opal

What APIs should be used to import subcomponents?

You can use CurrentModel to get the model that exists in the session.
Let's assume that the model that exists in the session is an assembly.
What APIs should I using when trying to get subcomponents of a assembly (parts, drawings, assemblies, etc.)?
pfcAssemblyComponentsGetReturn? pfcAssembly?


I'll appreciate for your help.
Thanks

 

Any other comments?

 

kind regards

1 ACCEPTED SOLUTION

Accepted Solutions

Hi

 

Could not get your first point. I mean what action you want to achieve through first point?

 

Refer below for other two points:

 

2. ProSelect() with char option[] as prt_or_asm

3. ProSolidDispCompVisit() or use ProSolidFeatVisit() with filter function such that feature type is of component type using API ProFeatureTypeGet()

 

HIH.

View solution in original post

3 REPLIES 3

Seems you are using VB. Net... I am toolkit user and does not have API installed for VBAPI with me as of now.

 

For toolkit, we use ProSessionMdlList.

 

HIH,

Ketan

@Ketan_Lalcheta Thank you.


What APIs should I refer to if I get a list (subcomponent) for the selected item?
I am currently trying to create a parameter manager with the toolkit.


The required functionality looks like this:
1. The specific model (top-level, or sub-specific assembly)
2. Prompt window to select a specific model
3. After selecting a specific model, display the subcomponents, a text box to manage parameters, and some buttons

 

We would appreciate it if you could give us some good examples or API information for each function.
Let me first review protk_appls.
Your help can save me time!


Thank you.

 

Hi

 

Could not get your first point. I mean what action you want to achieve through first point?

 

Refer below for other two points:

 

2. ProSelect() with char option[] as prt_or_asm

3. ProSolidDispCompVisit() or use ProSolidFeatVisit() with filter function such that feature type is of component type using API ProFeatureTypeGet()

 

HIH.

Top Tags