Search Results for

    Show / Hide Table of Contents

    Interface ISketches2D

    Gives access to 2D sketch entities.

    Namespace: TopSolid.Kernel.Automating
    Assembly: TopSolid.Kernel.Automating.dll
    Syntax
    [ServiceContract]
    [AvailableSinceVersion(7, 6, 0, 0)]
    public interface ISketches2D
    Remarks

    This interface is available since v7.6.

    Properties

    Name Description
    ModifiedSketch

    Gets the sketch being modified.

    Methods

    Name Description
    CleanSketch()

    Cleans current sketch segments (creates profiles, etc.)

    CreateArcSegment(ElementItemId, ElementItemId, Point2D, bool)

    Creates a new circular arc segment into the ModifiedSketch.

    CreateBSplineSegment(List<ElementItemId>, bool)

    Creates a new uniform cubic B-spline segment into the ModifiedSketch.

    CreateBuildingOperation(ElementId)

    Creates the building operation of a sketch entity.

    CreateCircleSegment(ElementItemId, double)

    Creates a new circle segment into the ModifiedSketch.

    CreateLineSegment(ElementItemId, ElementItemId)

    Creates a new line segment into the ModifiedSketch.

    CreateProfile(List<ElementItemId>)

    Creates a new profile into the ModifiedSketch.

    CreateRevolvedSilhouette(SmartShape, SmartAxis3D, bool)

    Creates the revolved silhouette of a shape.

    CreateSection(List<ElementItemId>)

    Creates a new section into the ModifiedSketch.

    CreateSketchIn2D(DocumentId, SmartPoint2D, bool, SmartDirection2D)

    Creates a sketch in a 2D document.

    CreateSketchIn3D(DocumentId, SmartPlane3D, SmartPoint3D, bool, SmartDirection3D)

    Creates a sketch in a 3D document.

    CreateVertex(Point2D)

    Creates a new vertex into the ModifiedSketch.

    DeleteItem(ElementItemId)

    Deletes an item of the ModifiedSketch.

    DeleteItems(List<ElementItemId>)

    Deletes items of the ModifiedSketch.

    EndModification()

    Ends performing modifications on a sketch.

    FixItem(ElementItemId)

    Fix a segment or a vertex in the ModifiedSketch.

    GetBuildingOperation(ElementId)

    Gets the building operation of a sketch entity.

    GetFrame(ElementId)

    Gets the definition frame of a sketch in a 2D document.

    GetPlane(ElementId)

    Gets the definition plane of a sketch in a 3D document.

    GetProfileCount(ElementId)

    Gets the number of profiles of a sketch.

    GetProfileSegments(ElementItemId)

    Gets the segments of a profile.

    GetProfiles(ElementId)

    Gets the profiles of a sketch.

    GetSectionCount(ElementId)

    Gets the number of sections of a sketch.

    GetSectionProfiles(ElementItemId)

    Gets the profiles of a section.

    GetSections(ElementId)

    Gets the sections of a sketch.

    GetSegmentCenter(ElementItemId)

    Gets the center of a segment.

    GetSegmentCircleCurve(ElementItemId, out Frame2D, out double)

    Gets the circle curve attached to a segment.

    GetSegmentCount(ElementId)

    Gets the number of segments of a sketch.

    GetSegmentCurveRange(ElementItemId, out double, out double)

    Gets the parametric range of the curve attached to a segment.

    GetSegmentCurveType(ElementItemId)

    Gets the type of the curve attached to a segment.

    GetSegmentEllipseCurve(ElementItemId, out Frame2D, out double, out double)

    Gets the ellipse curve attached to a segment.

    GetSegmentLineCurve(ElementItemId, out Axis2D)

    Gets the line curve attached to a segment.

    GetSegmentMiddle(ElementItemId)

    Gets the middle of a segment.

    GetSegmentPoint(ElementItemId, double)

    Gets a point on a segment at a specified parametric value.

    GetSegmentRange(ElementItemId, out double, out double)

    Gets the parametric range of a segment.

    GetSegmentTangent(ElementItemId, double)

    Gets the tangent of a segment at a specified parametric value.

    GetSegmentVertices(ElementItemId, out ElementItemId, out ElementItemId)

    Gets the vertices of a segment.

    GetSegments(ElementId)

    Gets the segments of a sketch.

    GetSketches(DocumentId)

    Gets the sketches entities that are in the sketches folder of a document.

    GetSketchesFolder(DocumentId)

    Gets the sketches folder entity of a document.

    GetVertexCount(ElementId)

    Gets the number of vertices of a sketch.

    GetVertexPoint(ElementItemId)

    Gets the point attached to a vertex.

    GetVertices(ElementId)

    Gets the vertices of a sketch.

    HighlightSketchProfile(ElementItemId)

    Highlights a 2D sketch profile.

    HighlightSketchSegment(ElementItemId)

    Highlights a 2D sketch segment.

    IsItemFixed(ElementItemId)

    Tells whether a segment or a vertex is fixed.

    IsItemInternal(ElementItemId)

    Tells whether a segment or a vertex is internal.

    IsProfileClosed(ElementItemId)

    Tells whether a profile is closed.

    IsSegmentConstruction(ElementItemId)

    Tells whether a segment is construction.

    IsSegmentReversed(ElementItemId)

    Tells whether a segment is reversed.

    IsSketch(ElementId)

    Tells whether an element is a sketch entity.

    IsVertexTemporary(ElementItemId)

    Tells whether a vertex is temporary.

    MakeItemInternal(ElementItemId)

    Makes a segment or a vertex internal in the ModifiedSketch.

    MakeItemNotInternal(ElementItemId)

    Makes a segment or a vertex not internal in the ModifiedSketch.

    MakeSegmentConstruction(ElementItemId)

    Makes a segment construction in the ModifiedSketch.

    MakeSegmentNotConstruction(ElementItemId)

    Makes a segment not construction in the ModifiedSketch.

    MakeVertexNotTemporary(ElementItemId)

    Makes a vertex not temporary in the ModifiedSketch.

    MakeVertexTemporary(ElementItemId)

    Makes a vertex temporary in the ModifiedSketch.

    SetSegmentCenter(ElementItemId, ElementItemId)

    Sets the center of a segment in the ModifiedSketch.

    SetSegmentMiddle(ElementItemId, ElementItemId)

    Sets the middle of a segment in the ModifiedSketch.

    StartModification(ElementId)

    Starts performing modifications on a sketch.

    UnfixItem(ElementItemId)

    Unfix a segment or a vertex in the ModifiedSketch.

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

    Copyright ©2025 TopSolid - All rights reserved.