Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mirror derived part

1 REPLY 1
Reply
Message 1 of 2
dwillmschen
333 Views, 1 Reply

mirror derived part

 

Set test = ThisApplication.ActiveDocument.ComponentDefinitions.Item(1).ReferenceComponents.DerivedPartComponents.Item(1).Definition
test.mirrorplane= kDerivedPartMirrorPlaneXY

 

 

this seams like a simple thing but i cant get it for the life of me.

im trying to mirror a derived part . when i run this the watch says its mirrored but the part doesn’t change

ive learned how to do it when creating a part but nothing on modifying an existing part

Tags (2)
1 REPLY 1
Message 2 of 2
dwillmschen
in reply to: dwillmschen

Finally got it

 

Sub IncludeParameterForDerivedPart()
    Dim oDoc As PartDocument
    Set oDoc = ThisApplication.ActiveDocument
   
    Dim oDerivedPartDef As DerivedPartDefinition
    Set oDerivedPartDef = oDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents(1).Definition
    

    oDerivedPartDef.MirrorPlane = kDerivedPartMirrorPlaneXY
    oDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents(1).Definition = oDerivedPartDef
End Sub

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report