Method CreateSketchIn2D
CreateSketchIn2D(DocumentId, SmartPoint2D, bool, SmartDirection2D)
Creates a sketch in a 2D document.
Declaration
[OperationContract]
[AvailableSinceVersion(7, 7, 201, 80)]
ElementId CreateSketchIn2D(DocumentId inDocumentId, SmartPoint2D inOrigin, bool inDefinesXDirection, SmartDirection2D inDirection)
Parameters
| Type | Name | Description |
|---|---|---|
| DocumentId | inDocumentId | Identifier of the document to modify. |
| SmartPoint2D | inOrigin | Origin point. |
| bool | inDefinesXDirection | Defines the X direction if |
| SmartDirection2D | inDirection | Reference X or Y direction. |
Returns
| Type | Description |
|---|---|
| ElementId | Identifier of the created sketch entity. |
Remarks
StartModification(string, bool) and EnsureIsDirty(ref DocumentId) must be called before calling this method.
This method is available since v7.7.201.80.
This method does not create a building operation anymore since v7.11.