CONTENT CENTER - NEED TO FILTER CONTENT CENTER PARTS FROM THE REMAINING COMPONEN

CONTENT CENTER - NEED TO FILTER CONTENT CENTER PARTS FROM THE REMAINING COMPONEN

RoyWickrama_RWEI
Advisor Advisor
416 Views
2 Replies
Message 1 of 3

CONTENT CENTER - NEED TO FILTER CONTENT CENTER PARTS FROM THE REMAINING COMPONEN

RoyWickrama_RWEI
Advisor
Advisor

I am assigning iPrperties and assembly tree browser display names to the components in my assembly. Essentially, in this process I need to leave alone the content center parts.

I request help on some ilogic coding to filter content center parts.

Thanks.

0 Likes
417 Views
2 Replies
Replies (2)
Message 2 of 3

wayne.brill
Collaborator
Collaborator

Hi,

 

This DevBlog post shows a way using the Inventor API.

http://adndevblog.typepad.com/manufacturing/2012/06/determine-whether-a-part-is-a-content-center-par...

 

PartComponentDefinition.IsContentMember

 

Let me know if you have trouble using this in an iLogic rule.

 

Thanks,

Wayne



Wayne Brill
Developer Technical Services
Autodesk Developer Network

Message 3 of 3

RoyWickrama_RWEI
Advisor
Advisor

Hi Wayne;

Thanks for the reply. As I am not a so good programming guy, I can't create useful coding by reading it. however, in order to get my work going on, I tried with the LOD (all content center suppressed) and running the rule as shown below:

 

If Component.IsActive(oComp.Name) = True Then 
...
..
....
End If

It is good for now: will explore your solution too.

 

Roy Wickrama

0 Likes