Interface ISketches3D
Gives access to 3D sketch entities.
Namespace: TopSolid.Kernel.Automating
Assembly: cs.temp.dll.dll
Syntax
[AvailableSinceVersion(7, 6, 0, 0)]
public interface ISketches3D
Remarks
This interface is available since v7.6.
Properties
ModifiedSketch
Gets the sketch being modified.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
ElementId ModifiedSketch { get; }
Property Value
Type | Description |
---|---|
ElementId |
Remarks
If there is no sketch being modified, Empty is returned.
This property is available since v7.7.201.80.
Methods
CreateArcSegment(ElementItemId, ElementItemId, Point3D, Direction3D)
Creates a new circular arc segment into the ModifiedSketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
ElementItemId CreateArcSegment(ElementItemId inStartVertexId, ElementItemId inEndVertexId, Point3D inCenter, Direction3D inNormal)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inStartVertexId | Identifier of the start vertex. |
ElementItemId | inEndVertexId | Identifier of the end vertex. |
Point3D | inCenter | Circle center. |
Direction3D | inNormal | Circle plane normal direction. |
Returns
Type | Description |
---|---|
ElementItemId | Identifier of the created segment. |
Remarks
StartModification(ElementId) must be called before calling this method.
This method is available since v7.7.201.80.
CreateBSplineSegment(List<ElementItemId>, Boolean)
Creates a new uniform cubic B-spline segment into the ModifiedSketch.
Declaration
[AvailableSinceVersion(7, 8, 0, 0)]
ElementItemId CreateBSplineSegment(List<ElementItemId> inVertexIds, bool inIsPeriodic)
Parameters
Type | Name | Description |
---|---|---|
List<ElementItemId> | inVertexIds | Identifiers of the vertices defining the B-spline control points. |
Boolean | inIsPeriodic | Whether the B-spline is periodic. |
Returns
Type | Description |
---|---|
ElementItemId | Identifier of the created segment. |
Remarks
StartModification(ElementId) must be called before calling this method.
This method is available since v7.8.
CreateBuildingOperation(ElementId)
Creates the building operation of a sketch entity.
Declaration
[AvailableSinceVersion(7, 11, 0, 0)]
ElementId CreateBuildingOperation(ElementId inElementId)
Parameters
Type | Name | Description |
---|---|---|
ElementId | inElementId | Identifier of the sketch entity. |
Returns
Type | Description |
---|---|
ElementId | Identifier of the created building operation. |
Remarks
If the sketch entity has already got a building operation, this method does nothing and returns the identifier of the existing building operation.
StartModification(String, Boolean) and EnsureIsDirty(ref DocumentId) must be called before calling this method.
This method is available since v7.11.
CreateCircleSegment(ElementItemId, Direction3D, Double)
Creates a new circle segment into the ModifiedSketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
ElementItemId CreateCircleSegment(ElementItemId inCenterVertexId, Direction3D inNormal, double inRadius)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inCenterVertexId | Identifier of the center vertex. |
Direction3D | inNormal | Circle plane normal direction. |
Double | inRadius | Circle radius. |
Returns
Type | Description |
---|---|
ElementItemId | Identifier of the created segment. |
Remarks
StartModification(ElementId) must be called before calling this method.
This method is available since v7.7.201.80.
CreateLineSegment(ElementItemId, ElementItemId)
Creates a new line segment into the ModifiedSketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
ElementItemId CreateLineSegment(ElementItemId inStartVertexId, ElementItemId inEndVertexId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inStartVertexId | Identifier of the start vertex. |
ElementItemId | inEndVertexId | Identifier of the end vertex. |
Returns
Type | Description |
---|---|
ElementItemId | Identifier of the created segment. |
Remarks
StartModification(ElementId) must be called before calling this method.
This method is available since v7.7.201.80.
CreateProfile(List<ElementItemId>)
Creates a new profile into the ModifiedSketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
ElementItemId CreateProfile(List<ElementItemId> inSegmentIds)
Parameters
Type | Name | Description |
---|---|---|
List<ElementItemId> | inSegmentIds | Identifiers of the segments of the profile. |
Returns
Type | Description |
---|---|
ElementItemId | Identifier of the created profile. |
Remarks
The end vertex of each segment must be the same than the start vertex of the following one.
StartModification(ElementId) must be called before calling this method.
This method is available since v7.7.201.80.
CreateSketch(DocumentId, SmartPlane3D, SmartPoint3D, Boolean, SmartDirection3D)
Creates a sketch.
Declaration
[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. |
Boolean | 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, Boolean) 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.
CreateVertex(Point3D)
Creates a new vertex into the ModifiedSketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
ElementItemId CreateVertex(Point3D inPoint)
Parameters
Type | Name | Description |
---|---|---|
Point3D | inPoint | Vertex point. |
Returns
Type | Description |
---|---|
ElementItemId | Identifier of the created vertex. |
Remarks
StartModification(ElementId) must be called before calling this method.
This method is available since v7.7.201.80.
DeleteItem(ElementItemId)
Deletes an item of the ModifiedSketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
void DeleteItem(ElementItemId inItemId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inItemId | Identifier of the item to delete. |
Remarks
StartModification(ElementId) must be called before calling this method.
This method is available since v7.7.201.80.
DeleteItems(List<ElementItemId>)
Deletes items of the ModifiedSketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
void DeleteItems(List<ElementItemId> inItemIds)
Parameters
Type | Name | Description |
---|---|---|
List<ElementItemId> | inItemIds | Identifiers of the items to delete. |
Remarks
StartModification(ElementId) must be called before calling this method.
This method is available since v7.7.201.80.
EndModification()
Ends performing modifications on a sketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
void EndModification()
Remarks
This method must be called after the StartModification(ElementId) method has been called.
This method is available since v7.7.201.80.
FixItem(ElementItemId)
Fix a segment or a vertex in the ModifiedSketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
void FixItem(ElementItemId inItemId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inItemId | Identifier of the segment or the vertex to fix. |
Remarks
StartModification(ElementId) must be called before calling this method.
This method is available since v7.7.201.80.
GetBuildingOperation(ElementId)
Gets the building operation of a sketch entity.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
ElementId GetBuildingOperation(ElementId inElementId)
Parameters
Type | Name | Description |
---|---|---|
ElementId | inElementId | Identifier of the sketch entity to analyze. |
Returns
Type | Description |
---|---|
ElementId | Identifier of the building operation, or Empty if the sketch does not have a building operation. |
Remarks
This method is available since v7.7.201.80.
GetFrame(ElementId)
Gets the definition frame of a sketch.
Declaration
[AvailableSinceVersion(7, 6, 0, 0)]
Frame3D GetFrame(ElementId inElementId)
Parameters
Type | Name | Description |
---|---|---|
ElementId | inElementId | Identifier of the sketch entity to analyze. |
Returns
Type | Description |
---|---|
Frame3D | Definition frame of the sketch. |
Remarks
This method is available since v7.6.
GetProfileCount(ElementId)
Gets the number of profiles of a sketch.
Declaration
[AvailableSinceVersion(7, 6, 0, 0)]
int GetProfileCount(ElementId inElementId)
Parameters
Type | Name | Description |
---|---|---|
ElementId | inElementId | Identifier of the sketch entity to analyze. |
Returns
Type | Description |
---|---|
Int32 | Number of profiles of the sketch. |
Remarks
This method is available since v7.6.
GetProfiles(ElementId)
Gets the profiles of a sketch.
Declaration
[AvailableSinceVersion(7, 7, 0, 0)]
List<ElementItemId> GetProfiles(ElementId inElementId)
Parameters
Type | Name | Description |
---|---|---|
ElementId | inElementId | Identifier of the sketch entity to analyze. |
Returns
Type | Description |
---|---|
List<ElementItemId> | Identifiers of the profiles of the sketch. |
Remarks
This method is available since v7.7.
GetProfileSegments(ElementItemId)
Gets the segments of a profile.
Declaration
[AvailableSinceVersion(7, 7, 0, 0)]
List<ElementItemId> GetProfileSegments(ElementItemId inProfileId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inProfileId | Identifier of the profile to analyze. |
Returns
Type | Description |
---|---|
List<ElementItemId> | Identifiers of the segments of the profile. |
Remarks
This method is available since v7.7.
GetSegmentCenter(ElementItemId)
Gets the center of a segment.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
ElementItemId GetSegmentCenter(ElementItemId inSegmentId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inSegmentId | Identifier of the segment to analyze. |
Returns
Type | Description |
---|---|
ElementItemId | Identifier of the vertex defined as being the center of the segment, or Empty if none. |
Remarks
A center may only be defined when the segment curve is a circle or an ellipse.
This method is available since v7.7.201.80.
GetSegmentCircleCurve(ElementItemId, out Plane3D, out Double)
Gets the circle curve attached to a segment.
Declaration
[AvailableSinceVersion(7, 7, 0, 0)]
void GetSegmentCircleCurve(ElementItemId inSegmentId, out Plane3D outPlane, out double outRadius)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inSegmentId | Identifier of the segment to analyze. |
Plane3D | outPlane | Circle plane. |
Double | outRadius | Circle radius. |
Remarks
This method is available since v7.7.
GetSegmentCount(ElementId)
Gets the number of segments of a sketch.
Declaration
[AvailableSinceVersion(7, 6, 0, 0)]
int GetSegmentCount(ElementId inElementId)
Parameters
Type | Name | Description |
---|---|---|
ElementId | inElementId | Identifier of the sketch entity to analyze. |
Returns
Type | Description |
---|---|
Int32 | Number of segments of the sketch. |
Remarks
This method is available since v7.6.
GetSegmentCurveRange(ElementItemId, out Double, out Double)
Gets the parametric range of the curve attached to a segment.
Declaration
[AvailableSinceVersion(7, 7, 0, 0)]
void GetSegmentCurveRange(ElementItemId inSegmentId, out double outTs, out double outTe)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inSegmentId | Identifier of the segment to analyze. |
Double | outTs | Start parameter value. |
Double | outTe | End parameter value. |
Remarks
This method is available since v7.7.
GetSegmentCurveType(ElementItemId)
Gets the type of the curve attached to a segment.
Declaration
[AvailableSinceVersion(7, 7, 0, 0)]
CurveType GetSegmentCurveType(ElementItemId inSegmentId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inSegmentId | Identifier of the segment to analyze. |
Returns
Type | Description |
---|---|
CurveType | Type of the curve attached to the segment. |
Remarks
This method is available since v7.7.
GetSegmentEllipseCurve(ElementItemId, out Plane3D, out Double, out Double)
Gets the ellipse curve attached to a segment.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
void GetSegmentEllipseCurve(ElementItemId inSegmentId, out Plane3D outPlane, out double outRadiusX, out double outRadiusY)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inSegmentId | Identifier of the segment to analyze. |
Plane3D | outPlane | Ellipse plane. |
Double | outRadiusX | Ellipse radius along plane X axis. |
Double | outRadiusY | Ellipse radius along plane Y axis. |
Remarks
This method is available since v7.7.201.80.
GetSegmentLineCurve(ElementItemId, out Axis3D)
Gets the line curve attached to a segment.
Declaration
[AvailableSinceVersion(7, 7, 0, 0)]
void GetSegmentLineCurve(ElementItemId inSegmentId, out Axis3D outAxis)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inSegmentId | Identifier of the segment to analyze. |
Axis3D | outAxis | Line axis. |
Remarks
This method is available since v7.7.
GetSegmentMiddle(ElementItemId)
Gets the middle of a segment.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
ElementItemId GetSegmentMiddle(ElementItemId inSegmentId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inSegmentId | Identifier of the segment to analyze. |
Returns
Type | Description |
---|---|
ElementItemId | Identifier of the vertex defined as being the middle of the segment, or Empty if none. |
Remarks
A middle may only be defined when the segment curve is a line.
This method is available since v7.7.201.80.
GetSegmentPoint(ElementItemId, Double)
Gets a point on a segment at a specified parametric value.
Declaration
[AvailableSinceVersion(7, 7, 0, 0)]
Point3D GetSegmentPoint(ElementItemId inSegmentId, double inT)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inSegmentId | Identifier of the segment to analyze. |
Double | inT | Parameter within segment parametric range. |
Returns
Type | Description |
---|---|
Point3D | Point on the segment at the specified parametric value. |
Remarks
This method is available since v7.7.
GetSegmentRange(ElementItemId, out Double, out Double)
Gets the parametric range of a segment.
Declaration
[AvailableSinceVersion(7, 7, 0, 0)]
void GetSegmentRange(ElementItemId inSegmentId, out double outTMin, out double outTMax)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inSegmentId | Identifier of the segment to analyze. |
Double | outTMin | Minimum parametric value. |
Double | outTMax | Maximum parametric value. |
Remarks
This method is available since v7.7.
GetSegments(ElementId)
Gets the segments of a sketch.
Declaration
[AvailableSinceVersion(7, 7, 0, 0)]
List<ElementItemId> GetSegments(ElementId inElementId)
Parameters
Type | Name | Description |
---|---|---|
ElementId | inElementId | Identifier of the sketch entity to analyze. |
Returns
Type | Description |
---|---|
List<ElementItemId> | Identifiers of the segments of the sketch. |
Remarks
This method is available since v7.7.
GetSegmentTangent(ElementItemId, Double)
Gets the tangent of a segment at a specified parametric value.
Declaration
[AvailableSinceVersion(7, 7, 0, 0)]
Direction3D GetSegmentTangent(ElementItemId inSegmentId, double inT)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inSegmentId | Identifier of the segment to analyze. |
Double | inT | Parameter within segment parametric range. |
Returns
Type | Description |
---|---|
Direction3D | Tangent to the segment at the specified parametric value. |
Remarks
If the segment is reversed, the orientation of the tangent is the opposite to the parametric first derivative.
This method is available since v7.7.
GetSegmentVertices(ElementItemId, out ElementItemId, out ElementItemId)
Gets the vertices of a segment.
Declaration
[AvailableSinceVersion(7, 7, 0, 0)]
void GetSegmentVertices(ElementItemId inSegmentId, out ElementItemId outStartVertexId, out ElementItemId outEndVertexId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inSegmentId | Identifier of the segment to analyze. |
ElementItemId | outStartVertexId | Identifier of the start vertex, or Empty if none. |
ElementItemId | outEndVertexId | Identifier of the end vertex, or Empty if none. |
Remarks
This method is available since v7.7.
GetSketches(DocumentId)
Gets the sketches entities that are in the sketches folder of a document.
Declaration
[AvailableSinceVersion(7, 6, 0, 0)]
List<ElementId> GetSketches(DocumentId inDocumentId)
Parameters
Type | Name | Description |
---|---|---|
DocumentId | inDocumentId | Identifier of the document to analyze. |
Returns
Type | Description |
---|---|
List<ElementId> | Sketch entities found. |
Remarks
This method is available since v7.6.
GetSketchesFolder(DocumentId)
Gets the sketches folder entity of a document.
Declaration
[AvailableSinceVersion(7, 10, 0, 0)]
ElementId GetSketchesFolder(DocumentId inDocumentId)
Parameters
Type | Name | Description |
---|---|---|
DocumentId | inDocumentId | Identifier of the document to analyze. |
Returns
Type | Description |
---|---|
ElementId | Identifier of the sketches folder entity found. |
Remarks
This method is available since v7.10.
GetVertexCount(ElementId)
Gets the number of vertices of a sketch.
Declaration
[AvailableSinceVersion(7, 6, 0, 0)]
int GetVertexCount(ElementId inElementId)
Parameters
Type | Name | Description |
---|---|---|
ElementId | inElementId | Identifier of the sketch entity to analyze. |
Returns
Type | Description |
---|---|
Int32 | Number of vertices of the sketch. |
Remarks
This method is available since v7.6.
GetVertexPoint(ElementItemId)
Gets the point attached to a vertex.
Declaration
[AvailableSinceVersion(7, 7, 0, 0)]
Point3D GetVertexPoint(ElementItemId inVertexId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inVertexId | Identifier of the vertex to analyze. |
Returns
Type | Description |
---|---|
Point3D | Vertex point. |
Remarks
This method is available since v7.7.
GetVertices(ElementId)
Gets the vertices of a sketch.
Declaration
[AvailableSinceVersion(7, 7, 0, 0)]
List<ElementItemId> GetVertices(ElementId inElementId)
Parameters
Type | Name | Description |
---|---|---|
ElementId | inElementId | Identifier of the sketch entity to analyze. |
Returns
Type | Description |
---|---|
List<ElementItemId> | Identifiers of the vertices of the sketch. |
Remarks
This method is available since v7.7.
IsItemFixed(ElementItemId)
Tells whether a segment or a vertex is fixed.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
bool IsItemFixed(ElementItemId inItemId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inItemId | Identifier of the segment or the vertex to analyze. |
Returns
Type | Description |
---|---|
Boolean | Whether the segment or the vertex is fixed. |
Remarks
This method is available since v7.7.201.80.
IsItemInternal(ElementItemId)
Tells whether a segment or a vertex is internal.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
bool IsItemInternal(ElementItemId inItemId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inItemId | Identifier of the segment or the vertex to analyze. |
Returns
Type | Description |
---|---|
Boolean | Whether the segment or the vertex is internal. |
Remarks
This method is available since v7.7.201.80.
IsProfileClosed(ElementItemId)
Tells whether a profile is closed.
Declaration
[AvailableSinceVersion(7, 7, 0, 0)]
bool IsProfileClosed(ElementItemId inProfileId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inProfileId | Identifier of the profile to analyze. |
Returns
Type | Description |
---|---|
Boolean | Whether the profile is closed. |
Remarks
This method is available since v7.7.
IsSegmentConstruction(ElementItemId)
Tells whether a segment is construction.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
bool IsSegmentConstruction(ElementItemId inSegmentId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inSegmentId | Identifier of the segment to analyze. |
Returns
Type | Description |
---|---|
Boolean | Whether the segment is construction. |
Remarks
This method is available since v7.7.201.80.
IsSegmentReversed(ElementItemId)
Tells whether a segment is reversed.
Declaration
[AvailableSinceVersion(7, 7, 0, 0)]
bool IsSegmentReversed(ElementItemId inSegmentId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inSegmentId | Identifier of the segment to analyze. |
Returns
Type | Description |
---|---|
Boolean | Whether the orientation of the segment is the opposite to the parametric orientation of its attached curve. |
Remarks
This method is available since v7.7.
IsSketch(ElementId)
Tells whether an element is a sketch entity.
Declaration
[AvailableSinceVersion(7, 6, 0, 0)]
bool IsSketch(ElementId inElementId)
Parameters
Type | Name | Description |
---|---|---|
ElementId | inElementId | Identifier of the element to analyze. |
Returns
Type | Description |
---|---|
Boolean | The element a sketch entity. |
Remarks
This method is available since v7.6.
IsVertexTemporary(ElementItemId)
Tells whether a vertex is temporary.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
bool IsVertexTemporary(ElementItemId inVertexId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inVertexId | Identifier of the vertex to analyze. |
Returns
Type | Description |
---|---|
Boolean | Whether the vertex is temporary. |
Remarks
This method is available since v7.7.201.80.
MakeItemInternal(ElementItemId)
Makes a segment or a vertex internal in the ModifiedSketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
void MakeItemInternal(ElementItemId inItemId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inItemId | Identifier of the segment or the vertex to modify. |
Remarks
StartModification(ElementId) must be called before calling this method.
This method is available since v7.7.201.80.
MakeItemNotInternal(ElementItemId)
Makes a segment or a vertex not internal in the ModifiedSketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
void MakeItemNotInternal(ElementItemId inItemId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inItemId | Identifier of the segment or the vertex to modify. |
Remarks
StartModification(ElementId) must be called before calling this method.
This method is available since v7.7.201.80.
MakeSegmentConstruction(ElementItemId)
Makes a segment construction in the ModifiedSketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
void MakeSegmentConstruction(ElementItemId inSegmentId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inSegmentId | Identifier of the segment to modify. |
Remarks
StartModification(ElementId) must be called before calling this method.
This method is available since v7.7.201.80.
MakeSegmentNotConstruction(ElementItemId)
Makes a segment not construction in the ModifiedSketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
void MakeSegmentNotConstruction(ElementItemId inSegmentId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inSegmentId | Identifier of the segment to modify. |
Remarks
StartModification(ElementId) must be called before calling this method.
This method is available since v7.7.201.80.
MakeVertexNotTemporary(ElementItemId)
Makes a vertex not temporary in the ModifiedSketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
void MakeVertexNotTemporary(ElementItemId inVertexId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inVertexId | Identifier of the vertex to modify. |
Remarks
StartModification(ElementId) must be called before calling this method.
This method is available since v7.7.201.80.
MakeVertexTemporary(ElementItemId)
Makes a vertex temporary in the ModifiedSketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
void MakeVertexTemporary(ElementItemId inVertexId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inVertexId | Identifier of the vertex to modify. |
Remarks
StartModification(ElementId) must be called before calling this method.
This method is available since v7.7.201.80.
SetSegmentCenter(ElementItemId, ElementItemId)
Sets the center of a segment in the ModifiedSketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
void SetSegmentCenter(ElementItemId inSegmentId, ElementItemId inVertexId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inSegmentId | Identifier of the segment to modify. |
ElementItemId | inVertexId | Identifier of the vertex defined as being the center of the segment, or Empty if none. |
Remarks
A center may only be defined when the segment curve is a circle or an ellipse.
StartModification(ElementId) must be called before calling this method.
This method is available since v7.7.201.80.
SetSegmentMiddle(ElementItemId, ElementItemId)
Sets the middle of a segment in the ModifiedSketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
void SetSegmentMiddle(ElementItemId inSegmentId, ElementItemId inVertexId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inSegmentId | Identifier of the segment to modify. |
ElementItemId | inVertexId | Identifier of the vertex defined as being the middle of the segment, or Empty if none. |
Remarks
A middle may only be defined when the segment curve is a line.
StartModification(ElementId) must be called before calling this method.
This method is available since v7.7.201.80.
StartModification(ElementId)
Starts performing modifications on a sketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
void StartModification(ElementId inElementId)
Parameters
Type | Name | Description |
---|---|---|
ElementId | inElementId | Identifier of the sketch entity to modify. |
Remarks
StartModification(String, Boolean) and EnsureIsDirty(ref DocumentId) must be called before calling this method.
This method is available since v7.7.201.80.
UnfixItem(ElementItemId)
Unfix a segment or a vertex in the ModifiedSketch.
Declaration
[AvailableSinceVersion(7, 7, 201, 80)]
void UnfixItem(ElementItemId inItemId)
Parameters
Type | Name | Description |
---|---|---|
ElementItemId | inItemId | Identifier of the segment or the vertex to unfix. |
Remarks
StartModification(ElementId) must be called before calling this method.
This method is available since v7.7.201.80.