Visual Basic | |
---|---|
Public Interface ILayer |
C# | |
---|---|
public interface ILayer |
JavaScript | |
---|---|
Object dsLayer |
COM native C++ | |
---|---|
interface ILayer |
C++ | |
---|---|
class dsLayer |
COM native C++
If the selected object is an ILayer 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 a Layer entity
if(dsLayerType == retObjType )
{
ILayerPtr dsLayer( selObj );
if(dsLayerType == retObjType )
{
ILayerPtr dsLayer( selObj );
strPrint.Format( L"Layer\r\n" );
fileOutput.WriteString( strPrint );
//Do dump for Layer entity
fileOutput.WriteString( strPrint );
//Do dump for Layer entity
//See the entity's LineStyle or LineWeight
//property for the DumpGraphicsEntity template
CAddinDumpManager::DumpGraphicsEntity<ILayerPtr>( dsLayer, fileOutput );
//property for the DumpGraphicsEntity template
CAddinDumpManager::DumpGraphicsEntity<ILayerPtr>( dsLayer, fileOutput );
...
Get and Set Hatch Pattern Data (C#)
Get and Set Hatch Pattern Data (VB.NET)
Get and Set Hatch Pattern Data (VBA)
Create Circles on Different Layers (JavaScript)
Get and Set Hatch Pattern Data (VB.NET)
Get and Set Hatch Pattern Data (VBA)
Create Circles on Different Layers (JavaScript)