<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Layer State Description in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/layer-state-description/m-p/1884425#M27567</link>
    <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I have created a form that lists all layer states in a drawing, and when &lt;BR /&gt;
double clicked, restores that layer state. Given that we do many high rise &lt;BR /&gt;
buildings, the ability to flick between floor levels in the xref is a great &lt;BR /&gt;
one.&lt;BR /&gt;
&lt;BR /&gt;
I can only manage to have our layer state name in the list box, but would &lt;BR /&gt;
like to have the description in there too.&lt;BR /&gt;
&lt;BR /&gt;
I have attached the form I am using at the moment in the hope that someone &lt;BR /&gt;
will be able to assist in this, because I haven't been able to find anything &lt;BR /&gt;
on the internet or reference books about this.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance&lt;BR /&gt;
&lt;BR /&gt;
Brent</description>
    <pubDate>Thu, 08 Feb 2007 02:32:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-02-08T02:32:08Z</dc:date>
    <item>
      <title>Layer State Description</title>
      <link>https://forums.autodesk.com/t5/vba-forum/layer-state-description/m-p/1884425#M27567</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I have created a form that lists all layer states in a drawing, and when &lt;BR /&gt;
double clicked, restores that layer state. Given that we do many high rise &lt;BR /&gt;
buildings, the ability to flick between floor levels in the xref is a great &lt;BR /&gt;
one.&lt;BR /&gt;
&lt;BR /&gt;
I can only manage to have our layer state name in the list box, but would &lt;BR /&gt;
like to have the description in there too.&lt;BR /&gt;
&lt;BR /&gt;
I have attached the form I am using at the moment in the hope that someone &lt;BR /&gt;
will be able to assist in this, because I haven't been able to find anything &lt;BR /&gt;
on the internet or reference books about this.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance&lt;BR /&gt;
&lt;BR /&gt;
Brent</description>
      <pubDate>Thu, 08 Feb 2007 02:32:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/layer-state-description/m-p/1884425#M27567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-08T02:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Layer State Description</title>
      <link>https://forums.autodesk.com/t5/vba-forum/layer-state-description/m-p/1884426#M27568</link>
      <description>Switching to a multi column list box might be an option.&lt;BR /&gt;
&lt;BR /&gt;
Try the sample below.&lt;BR /&gt;
&lt;BR /&gt;
HTH,&lt;BR /&gt;
&lt;BR /&gt;
Gary&lt;BR /&gt;
&lt;BR /&gt;
Private Sub UserForm_Activate()&lt;BR /&gt;
&lt;BR /&gt;
Dim lbText(0 To 1, 2) As String&lt;BR /&gt;
&lt;BR /&gt;
LboLayerStates.ColumnCount = 2&lt;BR /&gt;
'LboLayerStates.ColumnHeads = True&lt;BR /&gt;
&lt;BR /&gt;
lbText(0, 0) = "Row 1, Col 1"&lt;BR /&gt;
lbText(1, 0) = "Row 1, Col 2"&lt;BR /&gt;
&lt;BR /&gt;
lbText(0, 1) = "Row 2, Col 1"&lt;BR /&gt;
lbText(1, 1) = "Row 2, Col 2"&lt;BR /&gt;
&lt;BR /&gt;
lbText(0, 2) = "Row 3, Col 1"&lt;BR /&gt;
lbText(1, 2) = "Row 3, Col 2"&lt;BR /&gt;
&lt;BR /&gt;
LboLayerStates.Column = lbText&lt;BR /&gt;
&lt;BR /&gt;
End Sub</description>
      <pubDate>Thu, 08 Feb 2007 18:48:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/layer-state-description/m-p/1884426#M27568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-08T18:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Layer State Description</title>
      <link>https://forums.autodesk.com/t5/vba-forum/layer-state-description/m-p/1884427#M27569</link>
      <description>Thanks for that Gary - That was better than the idea I had, which was to &lt;BR /&gt;
combine the Name and description (ie ..... AddItem LayerStateName &amp;amp; " - " &amp;amp; &lt;BR /&gt;
LayerStateDescritpion&lt;BR /&gt;
&lt;BR /&gt;
Do you know how to access the layer state descriptions in the &lt;BR /&gt;
layerstatemanager? I assume that this can be done as AutoCAD shows it.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Gary McMaster" &lt;GLM at="" consiliumus="" period="" com=""&gt; wrote in message &lt;BR /&gt;
news:5480015@discussion.autodesk.com...&lt;BR /&gt;
Switching to a multi column list box might be an option.&lt;BR /&gt;
&lt;BR /&gt;
Try the sample below.&lt;BR /&gt;
&lt;BR /&gt;
HTH,&lt;BR /&gt;
&lt;BR /&gt;
Gary&lt;BR /&gt;
&lt;BR /&gt;
Private Sub UserForm_Activate()&lt;BR /&gt;
&lt;BR /&gt;
Dim lbText(0 To 1, 2) As String&lt;BR /&gt;
&lt;BR /&gt;
LboLayerStates.ColumnCount = 2&lt;BR /&gt;
'LboLayerStates.ColumnHeads = True&lt;BR /&gt;
&lt;BR /&gt;
lbText(0, 0) = "Row 1, Col 1"&lt;BR /&gt;
lbText(1, 0) = "Row 1, Col 2"&lt;BR /&gt;
&lt;BR /&gt;
lbText(0, 1) = "Row 2, Col 1"&lt;BR /&gt;
lbText(1, 1) = "Row 2, Col 2"&lt;BR /&gt;
&lt;BR /&gt;
lbText(0, 2) = "Row 3, Col 1"&lt;BR /&gt;
lbText(1, 2) = "Row 3, Col 2"&lt;BR /&gt;
&lt;BR /&gt;
LboLayerStates.Column = lbText&lt;BR /&gt;
&lt;BR /&gt;
End Sub&lt;/GLM&gt;</description>
      <pubDate>Thu, 08 Feb 2007 23:57:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/layer-state-description/m-p/1884427#M27569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-08T23:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Layer State Description</title>
      <link>https://forums.autodesk.com/t5/vba-forum/layer-state-description/m-p/1884428#M27570</link>
      <description>I have never worked with layer states. I can't offer any help there.&lt;BR /&gt;
&lt;BR /&gt;
Concatenating the name and description probably wouldn't be so bad. I guess&lt;BR /&gt;
the only real advantage to using the list box columns will be the clean text&lt;BR /&gt;
justification you'll get.&lt;BR /&gt;
&lt;BR /&gt;
There are problems with "column headers" in list boxes in VBA. Not sure if&lt;BR /&gt;
it's broken or not meant to work by design but it does not work. The best&lt;BR /&gt;
solution I've found is to use labels above the list box.&lt;BR /&gt;
&lt;BR /&gt;
HTH,&lt;BR /&gt;
&lt;BR /&gt;
Gary</description>
      <pubDate>Fri, 09 Feb 2007 12:29:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/layer-state-description/m-p/1884428#M27570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-09T12:29:24Z</dc:date>
    </item>
  </channel>
</rss>

