Visual Basic | |
---|---|
Public Interface ICircleArc |
C# | |
---|---|
public interface ICircleArc |
JavaScript | |
---|---|
Object dsCircleArc |
COM native C++ | |
---|---|
interface ICircleArc |
C++ | |
---|---|
class dsCircleArc |
COM native C++
If the selected object is an ICircleArc object, then get the selected 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 Arc entity
if(dsCircleArcType == retObjType )
{
ICircleArcPtr dsCircleArc( selObj );
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 Arc entity
if(dsCircleArcType == retObjType )
{
ICircleArcPtr dsCircleArc( selObj );
strPrint.Format(L"Arc\r\n");
fileOutput.WriteString(strPrint);
//Do dump for Arc entity
fileOutput.WriteString(strPrint);
//Do dump for Arc entity
//See the entity's Layer, LineScale, LineStyle, LineWeight,
//or Visible property for the DumpGraphicsEntity template
CAddinDumpManager::DumpGraphicsEntity<ICircleArcPtr>( dsCircleArc, fileOutput );
//or Visible property for the DumpGraphicsEntity template
CAddinDumpManager::DumpGraphicsEntity<ICircleArcPtr>( dsCircleArc, fileOutput );
...
Construct Arc (C#)
Construct Arc (VB.NET)
Construct Arc (VBA)
Insert and Dimension Sketch (JavaScript)
Mirror Entiites (JavaScript)
Construct Arc (VB.NET)
Construct Arc (VBA)
Insert and Dimension Sketch (JavaScript)
Mirror Entiites (JavaScript)
ISelectionManager::GetSelectedObject
ISelectionManager::GetSelectedObjects