Visual Basic | |
---|---|
Public Interface INote |
C# | |
---|---|
public interface INote |
JavaScript | |
---|---|
Object dsNote |
COM native C++ | |
---|---|
interface INote |
C++ | |
---|---|
class dsNote |
COM native C++
If the selected object is an INote 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 an Note entity
if(dsNoteType == retObjType )
{
INotePtr dsNote( selObj );
if(dsNoteType == retObjType )
{
INotePtr dsNote( selObj );
strPrint.Format( L"Note\r\n" );
fileOutput.WriteString( strPrint );
//Do dump for Note entity
//See the entity's Layer, LineScale, LineStyle, LineWeight,
//or Visible property for the DumpGraphicsEntity template
CAddinDumpManager::DumpGraphicsEntity<INotePtr>( dsNote, fileOutput );
fileOutput.WriteString( strPrint );
//Do dump for Note entity
//See the entity's Layer, LineScale, LineStyle, LineWeight,
//or Visible property for the DumpGraphicsEntity template
CAddinDumpManager::DumpGraphicsEntity<INotePtr>( dsNote, fileOutput );
...
Insert Notes (C#)
Insert Notes (VB.NET)
Insert Notes (VBA)
Insert Notes with Parameters (C#)
Insert Notes with Parameters (VB.NET)
Insert Notes with Parameters (VBA)
Insert Block, Notes, and Sketch Entities (JavaScript)
Insert Notes (VB.NET)
Insert Notes (VBA)
Insert Notes with Parameters (C#)
Insert Notes with Parameters (VB.NET)
Insert Notes with Parameters (VBA)
Insert Block, Notes, and Sketch Entities (JavaScript)