IPolyLine Interface

IPolyLine Interface | Send Feedback
See Also Members Example

Allows access to a 2D PolyLine.

# Syntax

Visual Basic |
--- | ---
    Public Interface IPolyLine

C# |
--- | ---
    public interface IPolyLine

JavaScript |
--- | ---
    Object dsPolyLine

COM native C++ |
--- | ---
    interface IPolyLine

C++ |
--- | ---
    class dsPolyLine

# Example

#### COM native C++

If the selected object is an IPolyLine object, then get the object.

...
//Write number of selected objects to output file
long selCount = dsSelManager->GetSelectedObjectCount( dsSelectionSetType_Current );
strPrint.Format( L"Selected objects: (%d):\r\n", selCount );
fileOutput.WriteString( strPrint );
if( selCount > 0 )
{
for( long i = 0; i < selCount; ++i )
{
//Get selected object type
dsObjectType_e retObjType;
IDispatchPtr selObj = dsSelManager->GetSelectedObject( dsSelectionSetType_Current, i, &retObjType );
//If selected object is an 2D PolyLine entity
if(dsPolyLineType == retObjType )
{
IPolyLinePtr dsPolyLine( selObj );
strPrint.Format( L"2D PolyLine\r\n" );
fileOutput.WriteString( strPrint );
//Do dump for 2D PolyLine entity
//See the entity's Layer, LineScale, LineStyle, LineWeight,
//or Visible property for the DumpGraphicsEntity template
CAddinDumpManager::DumpGraphicsEntity<IPolyLinePtr>( dsPolyLine, fileOutput );
...

# Example

Construct 2D PolyLine (C#)
Construct 2D PolyLine (VB.NET)
Construct 2D PolyLine (VBA)
Create Aligned Linear and Ordinate Dimenions (C#)
Create Aligned Linear and Ordinate Dimensions (VB.NET)
Create Aligned Linear and Ordinate Dimensions (VBA)
Create Linear Pattern (C#)
Create Linear Pattern (VB.NET)
Create Linear Pattern (VBA)
Insert Block, Notes, and Sketch Entities (JavaScript)
Mirror Entities (JavaScript)

# Accessors

IDocument::GetObjectByHandle

IPolyLine::Split

ISelectionManager::GetSelectedObject

ISelectionManager::GetSelectedObjects

ISketchManager::GetEntities

ISketchManager::InsertPolyLine2D

IViewport::GetClippedObject

# Object Model

PolyLine

# See Also

####

IPolyLine Members
Interop.dsAutomation Namespace
IInfiniteLine Interface
ILine Interface
IRay Interface
IPolyLine3D Interface
IRegion Interface
ITrace Interface
ISketchManager::ChamferPolyLine ()
ISketchManager::FilletPolyLine Method ()