where is the mcad-vba-specialist?

where is the mcad-vba-specialist?

Anonymous
Not applicable
331 Views
2 Replies
Message 1 of 3

where is the mcad-vba-specialist?

Anonymous
Not applicable
Hallo,

I need help. In a acad-mechanical-2000-pp drawing I must create a extra
layer-group
(how the mechanical-command "amlay").
For example, the new layer-group is: engine.
So are the new layers: engine-AM_0, engine-AM_1,...
The basic-layers are not a problem for me, but a new layer-group.
Who can help me?


Thanks
Hartmut Callies
0 Likes
332 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
[email protected] says...

Hello Hartmut,

> I need help. In a acad-mechanical-2000-pp drawing I must create a extra
> layer-group (how the mechanical-command "amlay").
> For example, the new layer-group is: engine.
> So are the new layers: engine-AM_0, engine-AM_1,...
> The basic-layers are not a problem for me, but a new layer-group.
> Who can help me?
The answer is too easy. First, there is no such thing as a LayerGroup in
Mechanical - BEFORE the follow-ups come saying I'm wrong, read the rest!

In Mechanical, use the regular AutoCAD Layer Manager. You will see that
there are layers with PREFIXes. So if in Mechanical it says that you
have LayerGroups: PART1 and PART2, in the AutoCAD Layer dialog you will
see *at least* layers: AM_0, PART1-AM_0 and PART2-AM_0. LayerGroups are
nothing more than a filtering method as in Layer Groups. Calling them
LayerGroups infers a special object or entity type. The reality is that
the Mechanical Layer dialog is written to strip out the prefixes and
present them in a manner that leads the user to believe in LayerGroups
the object/entity. In order to initialize a new LayerGroup, create a
layer named MYGROUP-AM_0. This is because every group you make has the
AM_0 automatically assigned to it. If you go back to the Mechanical
Layer dialog, you'll now see a LayerGroup called MYGROUP has been added
to the list.

If you want to make a new group that is a copy of another, query the
layer table [lisp] or layer collection [vb/a] for all layers that have
"EXISTING-" within their name [where "EXISTING-" is the name of the
existing layer group]. With this selection set, make a duplicate of each
layer and swap the existing prefix with your new prefix. Now, you'll
have your new LayerGroup.

HTH,

Mike

===============================
Mike Tuersley
PhD @ CADalyst's AutoCAD Clinic
http://www.cadonline.com
0 Likes
Message 3 of 3

Anonymous
Not applicable
Hello again, Hartmut,

I posted a sample project for you in the customer files area.

HTH,

Mike

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