VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how create a new layer-group

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
205 Views, 6 Replies

how create a new layer-group

Hallo,
how can I create with VBA a new layer-group?
A Layer is easy: ThisDrawing.Layers.Add("AM_cls"). But a new layer-group?

Thanks
Hartmut Callies
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: Anonymous

Exactly what is a layer-group?
Message 3 of 7
Anonymous
in reply to: Anonymous

In AutoCAD or in Mechanical 2000 PP we have a
Basic-Layergroup: AM_0, AM_1, ...

We can create an new layergroup (command: amlay).
For example: engine.

So have the new layers: engine-AM_0,
engine-AM_1,...

 

Hartmut Callies


size=2>______________________________________________________________________


style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
Exactly
what is a layer-group?
Message 4 of 7
Anonymous
in reply to: Anonymous

That sounds like a custom routine if you are
running it in Bacis AutoCAD if it's a MDT feature then you would have to look at
the methods/properties to it if they are even  exposed in VB(A) Like Joe I
never heard of them(it)

Murph

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

In AutoCAD or in Mechanical 2000 PP we have a
Basic-Layergroup: AM_0, AM_1, ...

We can create an new layergroup (command: amlay).
For example: engine.

So have the new layers: engine-AM_0,
engine-AM_1,...

 

Hartmut Callies


size=2>______________________________________________________________________


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Exactly
what is a layer-group?
Message 5 of 7
Anonymous
in reply to: Anonymous

joesu@worldnet.att.net says...

Hi Joe!

> Exactly what is a layer-group?
An internal filtering mechanism that the Mechanical dialog box uses. See
me other post in this area;-)

Mike
===============================
Mike Tuersley
PhD @ CADalyst's AutoCAD Clinic
http://www.cadonline.com
Message 6 of 7
Anonymous
in reply to: Anonymous

It's not just in Mechanical.

We use Map (the 2000i version) and the filtering is there as well. I was
under the impression it was part of the 'base' package.

> > Exactly what is a layer-group?

> An internal filtering mechanism that the Mechanical dialog box uses. See
> me other post in this area;-)
Message 7 of 7
Anonymous
in reply to: Anonymous

> It's not just in Mechanical.
>
> We use Map (the 2000i version) and the filtering is there as well. I was
> under the impression it was part of the 'base' package.
>
It is in the base package if the user sets it up and uses it. In Mech,
the entire layer dialog has been replaced with one that does the
filtering automatically. The average user has no idea what is
transpiring whenever they create a "new" group.


===============================
Mike Tuersley
PhD @ CADalyst's AutoCAD Clinic
http://www.cadonline.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost