Message 1 of 1
APi - Derived part not including solid body.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I made a derived part and i"m trying to add a solid body to the derived entities.
I have done this before with surfaces, parameters & sketches.
Now i'm trying to get a solid body.. But this is not going as smooth as i hoped.
For this example oBodycount = 1
oDerivedComp = oNewDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents(2) MsgBox(oDerivedComp.Name) oDerivedPartDef = oDerivedComp.Definition For Each oDerEntity In oDerivedPartDef.Solids If oDerEntity.ReferencedEntity.Name = "C" & oBodyCount Then oDerEntity.IncludeEntity = True MsgBox("C" & oBodyCount & " found") End If Next
So i tested the selection of derived part, because i have two in this part. This returns Vorm.ipt so it's the correct derived part.
Further i have made a test if the solid "C1" is found using a message box. Also this is returning what i want.
But still after running the rule, the "C1" solid is not derived..
How is it that my Entity is not included? But i do get a messagebox that the Entity is found?
Please kudo if this post was helpfull
Please accept as solution if your problem was solved
Inventor 2014 SP2