Allows access to a 2D PolyLine.
.NET Syntax
Visual Basic (Declaration) | |
---|
Public Interface IPolyLine |
C# | |
---|
public interface IPolyLine |
JScript | |
---|
public interface IPolyLine |
Managed Extensions for C++ | |
---|
public __gc __interface IPolyLine |
C++/CLI | |
---|
public interface class IPolyLine |
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
...
Example
Accessors
Access Diagram
See Also