Visual Basic | |
---|---|
Public Interface IRichLine |
C# | |
---|---|
public interface IRichLine |
JavaScript | |
---|---|
Object dsRichLine |
COM native C++ | |
---|---|
interface IRichLine |
C++ | |
---|---|
class dsRichLine |
COM native C++
If the selected object is an IRichLine 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 RichLine entity
if(dsRichLineType == retObjType )
{
IRichLinePtr dsRichLine( selObj );
if(dsRichLineType == retObjType )
{
IRichLinePtr dsRichLine( selObj );
strPrint.Format( L"RichLine\r\n" );
fileOutput.WriteString( strPrint );
//Do dump for RichLine entity
fileOutput.WriteString( strPrint );
//Do dump for RichLine entity
//See the entity's Layer, LineScale, LineStyle, LineWeight,
//or Visible property for the DumpGraphicsEntity template
CAddinDumpManager::DumpGraphicsEntity<IRichLinePtr>( dsRichLine, fileOutput );
//or Visible property for the DumpGraphicsEntity template
CAddinDumpManager::DumpGraphicsEntity<IRichLinePtr>( dsRichLine, fileOutput );
...