.NET

Reply
*Glenn Ryan
Message 1 of 5 (108 Views)

LayerManager and AcLayer.dll

108 Views, 4 Replies
06-20-2005 03:08 AM
Is there any way to hook into this managed application?

I've wanted for years to be able to display the standard layer manager with
a subset of the layers in the drawing (particularly xref layers).
Using the standard layer manager is desirable for several reasons: user is
familiar with it, and I don't have to create a dumbed down version or go the
whole hog and owner draw my own to look like the real one.

So is it possible and if so, how do I go about it?

Cheers,
Glenn.
*Albert Szilvasy
Message 2 of 5 (108 Views)

Re: LayerManager and AcLayer.dll

06-20-2005 11:00 AM in reply to: *Glenn Ryan
The aclayer.dll has some public method but they are undocumented. I'm not
sure what you are trying to do but you may want to look into layer filters.
They allow you to filter layers in a variaty of ways.

Albert
"Glenn Ryan" wrote in message
news:4879188@discussion.autodesk.com...
Is there any way to hook into this managed application?

I've wanted for years to be able to display the standard layer manager with
a subset of the layers in the drawing (particularly xref layers).
Using the standard layer manager is desirable for several reasons: user is
familiar with it, and I don't have to create a dumbed down version or go the
whole hog and owner draw my own to look like the real one.

So is it possible and if so, how do I go about it?

Cheers,
Glenn.
*Glenn Ryan
Message 3 of 5 (108 Views)

Re: LayerManager and AcLayer.dll

06-20-2005 03:10 PM in reply to: *Glenn Ryan
Albert,

Sorry, I should've given a bit more of an explanation.

The intent, is that when the program is run at the end open event, it will
look at all the xref
layers and look for an xdict "tag". If the tag is not present, then the
layer is new to the xref.

At this point, I would display a notification balloon, informing the user
that new xref layers had been added.

When they click the link in the balloon, I would like to display the layer
manager with those "new" xref layers ONLY.

I hope that makes sense and you can find a solution.

Cheers,
Glenn.

"Albert Szilvasy" wrote in message
news:4879675@discussion.autodesk.com...
The aclayer.dll has some public method but they are undocumented. I'm not
sure what you are trying to do but you may want to look into layer filters.
They allow you to filter layers in a variaty of ways.

Albert
"Glenn Ryan" wrote in message
news:4879188@discussion.autodesk.com...
Is there any way to hook into this managed application?

I've wanted for years to be able to display the standard layer manager with
a subset of the layers in the drawing (particularly xref layers).
Using the standard layer manager is desirable for several reasons: user is
familiar with it, and I don't have to create a dumbed down version or go the
whole hog and owner draw my own to look like the real one.

So is it possible and if so, how do I go about it?

Cheers,
Glenn.
*Albert Szilvasy
Message 4 of 5 (108 Views)

Re: LayerManager and AcLayer.dll

06-20-2005 03:30 PM in reply to: *Glenn Ryan
Here's how I would do it:

1. When I detect the new layers I would create a new "layer group". (see
LayerGroup class)
2. Make this newly created (and appropriately named) layer group current.
(see LayerFilterTree class)
3. Invoke the layer dialog (by posting the layer command to the command
line). It will display the current group showing only the layers you added.
4. When the layer command ends delete the newly created layer group.

Albert

"Glenn Ryan" wrote in message
news:4879938@discussion.autodesk.com...
Albert,

Sorry, I should've given a bit more of an explanation.

The intent, is that when the program is run at the end open event, it will
look at all the xref
layers and look for an xdict "tag". If the tag is not present, then the
layer is new to the xref.

At this point, I would display a notification balloon, informing the user
that new xref layers had been added.

When they click the link in the balloon, I would like to display the layer
manager with those "new" xref layers ONLY.

I hope that makes sense and you can find a solution.

Cheers,
Glenn.

"Albert Szilvasy" wrote in message
news:4879675@discussion.autodesk.com...
The aclayer.dll has some public method but they are undocumented. I'm not
sure what you are trying to do but you may want to look into layer filters.
They allow you to filter layers in a variaty of ways.

Albert
"Glenn Ryan" wrote in message
news:4879188@discussion.autodesk.com...
Is there any way to hook into this managed application?

I've wanted for years to be able to display the standard layer manager with
a subset of the layers in the drawing (particularly xref layers).
Using the standard layer manager is desirable for several reasons: user is
familiar with it, and I don't have to create a dumbed down version or go the
whole hog and owner draw my own to look like the real one.

So is it possible and if so, how do I go about it?

Cheers,
Glenn.
*Glenn Ryan
Message 5 of 5 (108 Views)

Re: LayerManager and AcLayer.dll

06-20-2005 04:15 PM in reply to: *Glenn Ryan
Thanks very much Albert.

I wasn't aware a group could be made current programmatically. I was
thinking it was like filters in previous releases which could be added, but
not made current.

I'll give it whirl. Thanks once again.

Cheers,
Glenn.

"Albert Szilvasy" wrote in message
news:4879942@discussion.autodesk.com...
Here's how I would do it:

1. When I detect the new layers I would create a new "layer group". (see
LayerGroup class)
2. Make this newly created (and appropriately named) layer group current.
(see LayerFilterTree class)
3. Invoke the layer dialog (by posting the layer command to the command
line). It will display the current group showing only the layers you added.
4. When the layer command ends delete the newly created layer group.

Albert

"Glenn Ryan" wrote in message
news:4879938@discussion.autodesk.com...
Albert,

Sorry, I should've given a bit more of an explanation.

The intent, is that when the program is run at the end open event, it will
look at all the xref
layers and look for an xdict "tag". If the tag is not present, then the
layer is new to the xref.

At this point, I would display a notification balloon, informing the user
that new xref layers had been added.

When they click the link in the balloon, I would like to display the layer
manager with those "new" xref layers ONLY.

I hope that makes sense and you can find a solution.

Cheers,
Glenn.

"Albert Szilvasy" wrote in message
news:4879675@discussion.autodesk.com...
The aclayer.dll has some public method but they are undocumented. I'm not
sure what you are trying to do but you may want to look into layer filters.
They allow you to filter layers in a variaty of ways.

Albert
"Glenn Ryan" wrote in message
news:4879188@discussion.autodesk.com...
Is there any way to hook into this managed application?

I've wanted for years to be able to display the standard layer manager with
a subset of the layers in the drawing (particularly xref layers).
Using the standard layer manager is desirable for several reasons: user is
familiar with it, and I don't have to create a dumbed down version or go the
whole hog and owner draw my own to look like the real one.

So is it possible and if so, how do I go about it?

Cheers,
Glenn.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community