.NET

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

LayerManager and AcLayer.dll

115 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 (115 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 (115 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 (115 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 (115 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.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.