List and select specific layers from COM+ interface

List and select specific layers from COM+ interface

Anonymous
Not applicable
1,434 Views
4 Replies
Message 1 of 5

List and select specific layers from COM+ interface

Anonymous
Not applicable
Advanced Software processes DWG files in the background, for example as part of a purchase order or production order. The library we build uses the com+ interface. We would like to know how to list layers and select or deselect specific ones so the output created from the dwg file reflects only the information available on the selected layers. Interactive windows need to be suppressed due to the automated process. Autocad version is Mechanical 2016. Does anyone have experience and helpful information? Kind regards, Annette Steup Advanced Software GmbH annette.steup@advanced-software.de or peter.fruehwein@advanced-software.de www.advanced-software.de
0 Likes
1,435 Views
4 Replies
Replies (4)
Message 2 of 5

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

most VBA samples for AutoCAD show how to access AutoCAD drawings through COM.

So look to that documentation and samples >>>click<<<

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 3 of 5

Anonymous
Not applicable
Dear Mr Neswabda, We are in general familiar in how build the project as we have done that for quite a number of years. What we are looking for is the syntax to add some new features to the existing library. These features are list active layers in dwg preferably in model space select specific ones deselct specitic ones save or export as pdf For these features we are looking for the correct commands available in com+ interface. Can you help with this? Kind regards, Annette Steup Advanced Software GmbH pfruehwein@advanced-software.de
0 Likes
Message 4 of 5

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> These features are list active layers

About creating layers >>>click<<<

 

>> list active layers in dwg preferably in model space

Layers exist in the complete drawing-database, they are not specific to a modelspace.

 

>> These features are list active layers in dwg [...] select specific ones deselct specitic ones

Layers can't be selected (at least not what I see as "user selects an object"), they are part of the definition of a drawing.

You might select objects that have the property ".Layer" set to a value you are looking for.

 

>> export as pdf

Find the plot functionality >>>here<<<, use the device "DWG to PDF.pc3".

 

HTH, - alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 5 of 5

Anonymous
Not applicable
Dear Mr Neswadba, Thanks for coming back with more information. We finally found the one help button in Autocad Mech 2016 that has all the information needed for programmers. So we were able to implement the needed methods. Thank you anyway for the trouble you took. Kind regards, Annette Steup Advanced Software GmbH pfruehwein@advanced-software.de
0 Likes