Search Results for

    Show / Hide Table of Contents

    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 true, otherwise defines the Y direction if false.

    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.

    In this article
    Back to top
    • Term of use
    • Corporate information
    • Privacy Policy - GDPR

    Copyright ©2025 TopSolid - All rights reserved.