Method CreateSketch
CreateSketch(DocumentId, SmartPlane3D, SmartPoint3D, bool, SmartDirection3D)
Creates a sketch.
Declaration
[OperationContract]
[AvailableSinceVersion(7, 7, 201, 80)]
ElementId CreateSketch(DocumentId inDocumentId, SmartPlane3D inPlane, SmartPoint3D inOrigin, bool inDefinesXDirection, SmartDirection3D inDirection)
Parameters
| Type | Name | Description |
|---|---|---|
| DocumentId | inDocumentId | Identifier of the document to modify. |
| SmartPlane3D | inPlane | Support plane. |
| SmartPoint3D | inOrigin | Origin point. |
| bool | inDefinesXDirection | Defines the X direction if |
| SmartDirection3D | 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.