Set test = ThisApplication.ActiveDocument.ComponentDefinitions.Item(1).ReferenceComponents.DerivedPartComponents.Item(1).Definitiontest.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
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 = oDerivedPartDefEnd Sub
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.