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

Add Layer Description to Layer Dropdown list

12 REPLIES 12
Reply
Message 1 of 13
vryarbe
2143 Views, 12 Replies

Add Layer Description to Layer Dropdown list

Is there a way in .net to add the layer description field (viewable in the Layer Properties Manager menu) to the layer dropdown list? Our designers want to see this information without opening the Layer Properties menu.

Thanks!
12 REPLIES 12
Message 2 of 13
fyathyrio8
in reply to: vryarbe

LayerTableRecord has a Description property. I'm not sure if this is what's used in the layers dropdown, but it might be worth a shot.
Message 3 of 13
Anonymous
in reply to: vryarbe

Hello fyathyrio8,
LayerTableRecord.Description is the property you want to set for the description
that shows up in the Layer dialog.

> LayerTableRecord has a Description property. I'm not sure if this is
> what's used in the layers dropdown, but it might be worth a shot.
>
Message 4 of 13
Anonymous
in reply to: vryarbe

There's several layer controls.

One is on the Ribbon and another is on the layer toolbar.

Which are you using?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6358774@discussion.autodesk.com...
Is there a way in .net to add the layer description field (viewable in the Layer
Properties Manager menu) to the layer dropdown list? Our designers want to see
this information without opening the Layer Properties menu.

Thanks!
Message 5 of 13
Anonymous
in reply to: vryarbe

The OP asked how to get the description to show up in the layer dropdown.

Do you have a suggestion for that?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

"Michael Robertson" wrote in message
news:6359834@discussion.autodesk.com...
Hello fyathyrio8,
LayerTableRecord.Description is the property you want to set for the description
that shows up in the Layer dialog.

> LayerTableRecord has a Description property. I'm not sure if this is
> what's used in the layers dropdown, but it might be worth a shot.
>
Message 6 of 13
vryarbe
in reply to: vryarbe

We are using the Classic AutoCAD layer dropdown,
(see attachment). Our designers have requested the
ability to view the layer description next to the layer
name to help them know which layer to choose.

Normally, I'd define the layer name to provide a
hint, but these files all have generic layer names
for post-processing reasons.

Thanks,
Vic Yarberry
Message 7 of 13
Anonymous
in reply to: vryarbe

Your only option is to create a standalone custom layer control, as there is
no way to customize the built in layer control. There have been some pretty
impressive third party layering systems built over the years, so you may
want to spend some time researching how others have solved the problem.
--
Owen Wengerd
President, ManuSoft <>
VP Americas, CADLock, Inc. <>


wrote in message
news:6360360@discussion.autodesk.com...
> We are using the Classic AutoCAD layer dropdown,
> (see attachment). Our designers have requested the
> ability to view the layer description next to the layer
> name to help them know which layer to choose.
>
> Normally, I'd define the layer name to provide a
> hint, but these files all have generic layer names
> for post-processing reasons.
>
> Thanks,
> Vic Yarberry
>
Message 8 of 13
Anonymous
in reply to: vryarbe

In that case, I'm afraid you're out of luck, because
the toolbar layer dropdown is not customizable in
any way, short of subclassing it and completely
replicating item painting.

OTOH, it took me about 5 minutes to modify some
code I wrote for extending AutoCAD Data Extraction,
to make it happen with the layer dropdown on the
ribbon (see the attached screen grab), and you can
get it here:

http://www.caddzone.com/LayerHelper.zip



--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6360360@discussion.autodesk.com...
We are using the Classic AutoCAD layer dropdown,
(see attachment). Our designers have requested the
ability to view the layer description next to the layer
name to help them know which layer to choose.

Normally, I'd define the layer name to provide a
hint, but these files all have generic layer names
for post-processing reasons.

Thanks,
Vic Yarberry
Message 9 of 13
ralstogj
in reply to: vryarbe

Hi

 

Did any one download Tony's example code who could post it here or email it to me as the link no longer works and his site is not active anymore.:(

 

 

Regards

Justin Ralston
http://c3dxtreme.blogspot.com/
Message 10 of 13
andrewpuller3811
in reply to: ralstogj

The original as downloaded from tony's site.

 



If a post provides a fix for your issue, click on "Accept as Solution" to help other users find solutions to problems they might have that are similar to yours.

Andrew Puller
Maitland, NSW, Australia
Windows 10 Enterprise 64bit
Intel core i7 11800 @ 2.30 GHz with 32GB Ram
Civil 3d 2021
Message 11 of 13
ralstogj
in reply to: vryarbe

Thanks Andrew

 

Regards

Justin Ralston
http://c3dxtreme.blogspot.com/
Message 12 of 13

I would find the function in this package extremely useful, has someone got it to work?

 

I've managed to load the .dll in AutoCAD 2015 Architecture, and still nothing happens in my layer dropdown in the ribbon. 

 

It would speed up my design process so much if I could see the layer description besies the layer name!

Cheers

Message 13 of 13

Autodesk changed the way the layer combo gets the names of layers in recent releases of AutoCAD (going back to at least AutoCAD 2012).

 

I don't know of any way to display descriptions in the layer combo in recent releases.

 


@japebarto5wrote:

I would find the function in this package extremely useful, has someone got it to work?

 

I've managed to load the .dll in AutoCAD 2015 Architecture, and still nothing happens in my layer dropdown in the ribbon. 

 

It would speed up my design process so much if I could see the layer description besies the layer name!

Cheers


 

 

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