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

What APIs should be used to import subcomponents?

SOLVED
Highlighted

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

Re: What APIs should be used to import subcomponents?

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.

3 REPLIES 3

Re: What APIs should be used to import subcomponents?

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

Re: What APIs should be used to import subcomponents?

@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.

 

Re: What APIs should be used to import subcomponents?

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.