Ilogic-How to auto select bodies when derive part in part?

Ilogic-How to auto select bodies when derive part in part?

Anonymous
Not applicable
561 Views
3 Replies
Message 1 of 4

Ilogic-How to auto select bodies when derive part in part?

Anonymous
Not applicable

I am drawing a part base(part5.ipt) and derive it into part 1. When I add bodies to part base (part5.ipt), part 1 does not automatically update bodies. Can you help me (using ilogic). Thanks1.PNG

0 Likes
Accepted solutions (1)
562 Views
3 Replies
Replies (3)
Message 2 of 4

JhoelForshav
Mentor
Mentor
Accepted solution

Hi @Anonymous 

Try this iLogic rule 🙂

Dim oDoc As PartDocument = ThisDoc.Document
Dim oDerComp As DerivedPartComponent = oDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents.Item(1)
Dim oDef As DerivedPartDefinition = oDerComp.Definition
oDef.IncludeAll
oDerComp.Definition = oDef
Message 3 of 4

J-Camper
Advisor
Advisor

If you setup a View Representation in (part5.ipt) you can link the derived part to that view representation.  So when things get added to the view representation and saved, (part1.ipt) will automatically want to update. No iLogic would be needed for update.temp_pic.JPG

Message 4 of 4

Anonymous
Not applicable

Great! Thanks very much. "I am chicken too @@"

0 Likes