.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LayerManager and AcLayer.dll

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
287 Views, 4 Replies

LayerManager and AcLayer.dll

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.
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

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.
Message 3 of 5
Anonymous
in reply to: Anonymous

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.
Message 4 of 5
Anonymous
in reply to: Anonymous

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.
Message 5 of 5
Anonymous
in reply to: Anonymous

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.

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost