Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello together,
how could I move a selected part along an edge or axis? The sample works along the z-axis.
Public Sub MovePart()
Dim occ As ComponentOccurrence
Set occ = ThisApplication.CommandManager.Pick(kAssemblyOccurrenceFilter,"Select an occurrence.")
Dim i As Integer
For i = 1 To 10
Dim trans As Matrix
Set trans = occ.Transformation
trans.Cell(2, 4) = trans.Cell(2, 4) + .5
occ.Transformation = trans
Next
End Sub
Thanks Georg
Solved! Go to Solution.