Sketch.MoveSketchObjects Method
Parent Object: SketchDescription
Method that moves a collection of sketch objects by a specified vector. If the Copy argument is set to True, the newly created objects are returned.
Syntax
Sketch.MoveSketchObjects( SketchObjects As ObjectCollection, Vector As Vector2d, [Copy] As Boolean, [RemoveConstraints] As Boolean ) As ObjectsEnumeratorParameters
Name | Type | Description |
SketchObjects | ObjectCollection | Input ObjectCollection that contains the sketch elements to move. The collection must contain at least one object and can be any SketchEntity, a TextBox or an Image. |
Vector | Vector2d | Input Vector2d object that defines the delta distance to move the sketch elements. |
Copy | Boolean | Optional input Boolean that specifies whether to copy the sketch elements to the new location or to move them. If not specified, a default value of False is used indicating that the elements will be moved. This is an optional argument whose default value is False. |
RemoveConstraints | Boolean | Optional input Boolean that specifies whether to remove or retain some of the constraints that constrain the input sketch entities to other geometry. If not specified, a default value of False is used indicating that the constraints will be retained. This is an optional argument whose default value is False. |
Samples
Name | Description |
Copy a sketch | This sample demonstrates copying the contents of a sketch into another sketch via the API. |
Move sketch entities | This sample demonstrates the translation of all the objects on the active sketch by a certain distance. |