Visual Basic | |
---|---|
Public Interface ICircle |
C# | |
---|---|
public interface ICircle |
JavaScript | |
---|---|
Object dsCircle |
COM native C++ | |
---|---|
interface ICircle |
C++ | |
---|---|
class dsCircle |
COM native C++
If the selected object is an ICircle 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 );
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 Circle entity
if(dsCircleType == retObjType )
{
ICirclePtr dsCircle( selObj );
if(dsCircleType == retObjType )
{
ICirclePtr dsCircle( selObj );
strPrint.Format( L"Circle\r\n" );
fileOutput.WriteString( strPrint );
//Do dump for Circle entity
fileOutput.WriteString( strPrint );
//Do dump for Circle entity
//See the entity's Layer, LineScale, LineStyle, LineWeight,
//or Visible property for the DumpGraphicsEntity template
CAddinDumpManager::DumpGraphicsEntity<ICirclePtr>( dsCircle, fileOutput );
//or Visible property for the DumpGraphicsEntity template
CAddinDumpManager::DumpGraphicsEntity<ICirclePtr>( dsCircle, fileOutput );
...
Construct Circle (C#)
Construct Circle (VB.NET)
Construct Circle (VBA)
Add, Modify, and Remove Custom Data (C#)
Add, Modify, and Remove Custom Data (VB.NET)
Add, Modify, and Remove Custom Data (VBA)
Create Linear Pattern (C#)
Create Linear Pattern (VB.NET)
Create Linear Pattern (VBA)
Create Circles on Different Layers (JavaScript)
Insert Block, Notes, and Sketch Entities (JavaScript)
Add and Modify Custom Data (JavaScript)
Construct Circle (VB.NET)
Construct Circle (VBA)
Add, Modify, and Remove Custom Data (C#)
Add, Modify, and Remove Custom Data (VB.NET)
Add, Modify, and Remove Custom Data (VBA)
Create Linear Pattern (C#)
Create Linear Pattern (VB.NET)
Create Linear Pattern (VBA)
Create Circles on Different Layers (JavaScript)
Insert Block, Notes, and Sketch Entities (JavaScript)
Add and Modify Custom Data (JavaScript)
ISelectionManager::GetSelectedObject
ISelectionManager::GetSelectedObjects
ISketchManager::InsertCircleBy3Points