Inventor Customization

Reply
Active Member
dwillmschen
Posts: 7
Registered: ‎01-17-2012
Message 1 of 2 (150 Views)

mirror derived part

150 Views, 1 Replies
02-09-2012 03:37 PM

 

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

Active Member
dwillmschen
Posts: 7
Registered: ‎01-17-2012
Message 2 of 2 (130 Views)

Re: mirror derived part

02-10-2012 09:54 AM 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube