- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I know how to create the Body I desire however but I can't figure out how to position the Body. It comes in at 0,0,0.
Set oDerivedPartDefinition = oPartDocument.ComponentDefinition.ReferenceComponents.DerivedPartComponents. _
CreateUniformScaleDef(sDerivedFile)
Set oDerivedPartComponent = oPartDocument.ComponentDefinition.ReferenceComponents. _
DerivedPartComponents.Add(oDerivedPartDefinition)
The only way I can see of moving the Body is to use the "Move Bodies" command (a.k.a. "PartTransformCmd") but this command requires user interaction since it a dialog. CommandManager.PostPrivateEvent won't work here becuase there are multiple parameters and some parameters data types are not supported.
ThisApplication.CommandManager.ControlDefinitions.Item("PartTransformCmd").Execute
That said, how can I position the Body?
Solved! Go to Solution.