LineSegment Object
Description
The LineSegment object represents a line segment. The object created is a transient mathematical object and is not displayed graphically.
Methods
Copy |
Creates a copy of this LineSegment object. The result is entirely independent and can be edited without affecting the original LineSegment object. |
DistanceTo |
Method that returns the distance to the specified point. |
GetLineSegmentData |
Method that returns the data defining this line segment. |
IntersectWithCurve |
Method that returns Point objects that represent the points at the intersection of the Line/LineSegment and the input curve. Returns Nothing if the curves overlap or are parallel. |
IntersectWithSurface |
Method that returns Point objects that represent the points at the intersection of the Line/LineSegment and the input surface. Returns Nothing if the Line/LineSegment lies on the surface or it is parallel to the surface. |
PutLineSegmentData |
Method that sets the data defining this line segment. |
Properties
Direction |
Property that returns the direction of the line segment. |
EndPoint |
Specifies the end point of the line segment. |
Evaluator |
Property that returns the CurveEvaluator for this line segment. |
MidPoint |
Property that returns the midpoint of the line segment. |
StartPoint |
Specifies the start point of the line segment. |
Accessed From
AngularModelDimension.ExtensionLineOne,
AngularModelDimension.ExtensionLineTwo,
AngularModelDimensionProxy.ExtensionLineOne,
AngularModelDimensionProxy.ExtensionLineTwo,
DWGEntityLineSegment.Geometry,
DWGEntityLineSegmentProxy.Geometry,
LineSegment.Copy,
SketchLine.Geometry3d,
SketchLine3D.Geometry,
SketchLine3DProxy.Geometry,
SketchLineProxy.Geometry3d,
SketchSplineHandle.Geometry3d,
SketchSplineHandle3D.Geometry,
SketchSplineHandle3DProxy.Geometry,
SketchSplineHandleProxy.Geometry3d,
TransientGeometry.CreateLineSegment
Samples
Create sheet metal rip feature |
This sample demonstrates the creation of a rip sheet metal feature. |
Transient surface body creation |
The following sample demonstrates the creation of a transient surface body consisting of a single rectangular face. The body is created in transient space and then copied over to a part document as a base feature. |
Create curve primitives |
This sample demonstrates the creation of curve primitives (lines, arcs, circles, etc.) using client graphics. |
Version
Introduced in version 6