API Reference > OdDb Classes > OdDbLine Class
OdDbLine Class
OdDbLineOdDbLineOdDbLineOdDbLine
Syntax
C++
class OdDbLine : public OdDbCurve;

DbLine.h

 

This class implements the line object (Line entity) in the database. This class inherits the base functionality of entities. A line is a straight segment in world space.

 
Name 
Description 
 
Builds an instance of the line object. 
 
Name 
Description 
 
Reads the .dwg file data of this object.
 
 
 
 
Writes the .dwg file data of this object.
 
 
Reads the DXF data of this object.
 
 
Reads the DXF R12 format data of this object.
 
 
Writes the DXF data of this object.
 
 
Writes the DXF data of this object.
 
 
Returns the WCS coordinates of the end point of the line (DXF 11) as three-dimensional point instance. 
 
Returns a zero for the line entity. 
 
Computes the distance along the line measured from the start point in drawing units at the specified parameter.
 
 
Returns the entity coordinate system matrix. 
 
Gets the end parameter value. The end parameter equals the line length. Parameter is a distance measured from the start point in drawing units.
 
 
Computes the WCS coordinates of the end point on the line for which the parameter equals the line length.
 
 
Computes the first derivative for the specified parameter of the line entity and returns the three-dimensional vector instance. The first derivative is constant for any point of the line.
 
 
Returns an OdGeCurve3d that is geometrically identical to this OdDbCurve.  
 
Computes the parameter at the distance along the line. Parameter is a distance measured from the start point in drawing units.
 
 
Computes the parameter at the point placed on the line. Parameter is a distance measured from the start point in drawing units.
 
 
Gets an arbitrary plane passed through the line entity. This method is inherited from the OdDbEntity class.
 
 
Computes the WCS coordinates of the point on the line at the specified parameter value. Parameter is a distance measured from the start point in drawing units.
 
 
Computes the second derivative for the specified parameter of the line entity and returns the three-dimensional vector instance. The second derivative is constant for any point of the line.
 
 
Gets the start parameter value. The start parameter equals a zero for lines. Parameter is a distance measured from the start point in drawing units.
 
 
Computes the WCS coordinates of the start point on the line for which the parameter equals zero.
 
 
Returns true if and only if this Curve object is closed. 
 
Returns true if and only if this Curve object is periodic. 
 
Determines whether the line entity is planar as a Boolean value and returns true. This method is inherited from the OdDbEntity class. 
 
Returns the WCS unit vector which is the normal to the plane of the line entity (DXF 210). The normal defines the orientation of the line plane in world space. 
 
Reverses this curve entity so the start becomes the end, and vice versa. 
 
Sets the end point of the line (DXF 11) in WCS. The initial value is (0,0,0) by default.
 
 
Takes an OdGeCurve3d and sets this OdDbCurve to be geometrically identical to the OdGeCurve3d.  
 
Sets the WCS normal to the plane of the line entity (DXF 210). The normal defines the orientation of the line plane in world space. The initial value is (0,0,1) by default.
 
 
Sets the start point of the line (DXF 10) in WCS. The initial value is (0,0,0) by default.
 
 
Sets the thickness of the line entity (DXF 39) in drawing units. Thickness is the extrusion length along the normal. A positive value extrudes along the normal. A negative value extrudes opposite from the normal. A zero value defines a line without thickness. The initial value is zero by default.
 
 
Returns the WCS coordinates of the start point of the line (DXF 10) as three-dimensional point instance. 
 
overridables 
 
 
 
 
 
 
 
This is the overview for the TD_USING method overload. 
 
Returns the thickness of the line entity (DXF 39) in drawing units. Thickness is the extrusion length along the normal. A positive value defines the thickness to be drawn along the normal direction. A negative value defines the thickness to be drawn in the opposite direction from the normal. A zero value defines a line without thickness. 
Copyright © 2002–2021. Open Design Alliance. All rights reserved.