Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Catia V5 and VB6.0: How can I know when a ReferenceProduct is active or inactive

Status
Not open for further replies.

Lea75

Mechanical
Joined
Feb 24, 2009
Messages
51
Location
ES
So, that's the question.
I have several ReferenceProducts in the tree.
Some of them ara deactivated and I'd like to know by Automation the status of each one.

I use something similar for shapes: If oPart.IsInactive(oHole) = False Then...

How can I do the same with Products?
Hope somebody can help me.
Regards

 
I don't believe there are any direct calls to retrieve this information. But, each instance in an assembly has a Component Activation State parameter containing a boolean value: True = Activated False = Deactivated

--Doug
 
And where I can find that parameter?
Or which is its name?
 
It is in the parameters collection of the Top Level Product. To see it in CATIA, select the Formula (Fx) command from the Knowledge toolbar with an assembly open then filter the parameters by the name Component*.

--Doug
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top