<?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 Re: Create combo box list of blocks in a drawing which begin with &amp;quot;type1&amp;amp;am in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815469#M312541</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#000080"&gt;&amp;gt;&amp;gt; When I run the code below, I can select an option for combo box3 but combox 2 remains blank&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Well, in ComboBox3 your screenshot shows "&lt;EM&gt;Select Category&lt;/EM&gt;" ... that means that ComboBox2 only lists layers with names starting with "&lt;EM&gt;Select Category&lt;/EM&gt;" ... do you have such layers?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
    <pubDate>Mon, 14 Sep 2015 11:22:18 GMT</pubDate>
    <dc:creator>Alfred.NESWADBA</dc:creator>
    <dc:date>2015-09-14T11:22:18Z</dc:date>
    <item>
      <title>Create combo box list of blocks in a drawing which begin with "type1"</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5812590#M312536</link>
      <description>&lt;P&gt;I would like to get a code taht creates a combo box list of all the blocks in a drawings whihc begin with "type1" in the name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is code I have at the moment whihc i thought would create a combo box off all the blocks, but it does not populate the box for some reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Private Sub ComboBox2_Change()&lt;BR /&gt;Dim oBlocks As AcadBlocks&lt;BR /&gt;For Each oBlocks In ThisDrawing.Blocks&lt;BR /&gt;ComboBox2.ListIndex = 0&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help fixing my current code and then altering to search for blocks which begin with "type1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sandy&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2015 12:41:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5812590#M312536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-11T12:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box list of blocks in a drawing which begin with "type1&amp;qu</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5814731#M312537</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not tested ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oBlock As AcadBlock
For Each oBlock In ThisDrawing.Blocks
   If ucase(oBlock.Name) like "TYPE1*" then
      Call ComboBox2.AddItem(oBlock.Name)
   End If
Next
If ComboBox2.ListCount &amp;gt; 0 then
   ComboBox2.ListIndex = 0
End If&lt;/PRE&gt;
&lt;P&gt;Just for info for your next questions, there is a separate forum for AutoCAD &amp;amp; VBA &lt;A href="https://forums.autodesk.com/t5/visual-basic-customization/bd-p/33" target="_self"&gt;&amp;gt;&amp;gt;&amp;gt;click&amp;lt;&amp;lt;&amp;lt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Sun, 13 Sep 2015 14:48:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5814731#M312537</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2015-09-13T14:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box list of blocks in a drawing which begin with "type1&amp;am</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815343#M312538</link>
      <description>&lt;P&gt;Hi Alfred,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help, I will post my next question on the correct forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have inserted your code into my form and it works great - thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to modify the code so that the list in the combo box depends on the selection of a previous combo box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I.e, If the value of combo1 is "TYPE1" then combo box 2 lists all the blocks with the names containing "TYPE1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is where I am -&amp;nbsp; I can select the value of the first combo box but then it fails to populate the second combo box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code so far;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Private Sub UserForm_Initialize()&lt;BR /&gt;&lt;BR /&gt;ComboBox3.AddItem ("RISERS")&lt;BR /&gt;ComboBox3.AddItem ("BOP'S")&lt;BR /&gt;ComboBox3.AddItem ("VALVES")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If ComboBox3.Value = "RISERS" Then&lt;BR /&gt;&lt;BR /&gt;Dim oBlock As AcadBlock&lt;BR /&gt;For Each oBlock In ThisDrawing.Blocks&lt;BR /&gt;&amp;nbsp;&amp;nbsp; If UCase(oBlock.Name) Like "Riser*" Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call ComboBox2.AddItem(oBlock.Name)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;Next&lt;BR /&gt;If ComboBox2.ListCount &amp;gt; 0 Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ComboBox2.ListIndex = 0&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sandy,&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 08:53:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815343#M312538</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T08:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box list of blocks in a drawing which begin with "type1&amp;am</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815389#M312539</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oBlock As AcadBlock
For Each oBlock In ThisDrawing.Blocks
   If ucase(oBlock.Name) like &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;(combobox3 &amp;amp; "*")&lt;/STRONG&gt;&lt;/FONT&gt; then
      Call ComboBox2.AddItem(oBlock.Name)
   End If
Next
If ComboBox2.ListCount &amp;gt; 0 then
   ComboBox2.ListIndex = 0
End If&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 09:35:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815389#M312539</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2015-09-14T09:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box list of blocks in a drawing which begin with "type1&amp;am</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815448#M312540</link>
      <description>&lt;P&gt;Not working properly for some reason... :-s&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the code below, I can select an option for combo box3 but combox 2 remains blank. If i remove "Combobox3.listIndex = 0" then when I run the code, combobox2 just lists all the blocks in the dwg file before i have selected an option for combobox3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Private Sub UserForm_Initialize()&lt;BR /&gt;&lt;BR /&gt;ComboBox3.AddItem ("Select Catagory")&lt;BR /&gt;ComboBox3.AddItem ("Risers")&lt;BR /&gt;ComboBox3.AddItem ("B.O.P.'S")&lt;BR /&gt;ComboBox3.AddItem ("Valves")&lt;BR /&gt;ComboBox3.ListIndex = 0&lt;BR /&gt;&lt;BR /&gt;Dim oBlock As AcadBlock&lt;BR /&gt;For Each oBlock In ThisDrawing.Blocks&lt;BR /&gt;&amp;nbsp;&amp;nbsp; If UCase(oBlock.Name) Like (ComboBox3 &amp;amp; "*") Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call ComboBox2.AddItem(oBlock.Name)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;Next&lt;BR /&gt;If ComboBox2.ListCount &amp;gt; 0 Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ComboBox2.ListIndex = 0&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the Names of the blocks i have in the dwg file so it should detect these names: "Risers - 1","Risers - 2", "B.O.P.'s - 1", "B.O.P.'s - 2"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a snap of my form for clarity,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sandy&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/188531iFF72BF2F7BAA7637/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="Capture.JPG" title="Capture.JPG" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 10:55:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815448#M312540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T10:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box list of blocks in a drawing which begin with "type1&amp;am</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815469#M312541</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#000080"&gt;&amp;gt;&amp;gt; When I run the code below, I can select an option for combo box3 but combox 2 remains blank&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Well, in ComboBox3 your screenshot shows "&lt;EM&gt;Select Category&lt;/EM&gt;" ... that means that ComboBox2 only lists layers with names starting with "&lt;EM&gt;Select Category&lt;/EM&gt;" ... do you have such layers?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 11:22:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815469#M312541</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2015-09-14T11:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box list of blocks in a drawing which begin with "type1&amp;am</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815481#M312542</link>
      <description>&lt;P&gt;No Alfred, there are no blocks that contain "Select Catagory" this was just the first option I put into the list to prompt the user. (Perhaps there is a better way to do this)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand that with no blocks starting with "Select Catagory" in the name, the following combo box will remain blank. However when I change the selection from "Select Catagory" to "Risers" say, the following combobox still remains blank even thought I have multiple blocks which contain "Risers" in the name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the form need to refresh/regen when a new option is selected in the first combobox? If so, are you able to help me achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for all your assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sandy&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 11:37:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815481#M312542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T11:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box list of blocks in a drawing which begin with "type1&amp;am</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815560#M312543</link>
      <description>&lt;P&gt;@Anonymous﻿&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/389680"&gt;@Alfred.NESWADBA﻿&lt;/a&gt; Just forgot to add the qualifier after combobox3 It should be combobox3.text &amp;amp;"*"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully it should work now.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 12:42:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815560#M312543</guid>
      <dc:creator>h_s_walker</dc:creator>
      <dc:date>2015-09-14T12:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box list of blocks in a drawing which begin with "type1&amp;am</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815615#M312544</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#000080"&gt;&amp;gt;&amp;gt; Just forgot to add the qualifier after combobox3 It should be combobox3.text&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;In VBA the .TEXT property is the default one, so it's returning the text-content as default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 13:08:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815615#M312544</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2015-09-14T13:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box list of blocks in a drawing which begin with "type1&amp;am</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815630#M312545</link>
      <description>&lt;P&gt;My "select block" combobox still remains blank for some reason. It will not show the list of blocks in the drawing starting with the selection in the first combobox i.e "Risers", "B.O.P's" or "Valves"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My complete Code &amp;amp; Form:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Private Sub INSERTBLOCK_Click()&lt;BR /&gt;&amp;nbsp;' Define the block&lt;BR /&gt;&amp;nbsp;Dim blockObj As AcadBlock&lt;BR /&gt;&amp;nbsp;Dim insertionPnt(0 To 2) As Double&lt;BR /&gt;&amp;nbsp;insertionPnt(0) = 0&lt;BR /&gt;&amp;nbsp;insertionPnt(1) = 0&lt;BR /&gt;&amp;nbsp;insertionPnt(2) = 0&lt;BR /&gt;&amp;nbsp;Set blockObj = ThisDrawing.Blocks.Add _&lt;BR /&gt;&amp;nbsp;(insertionPnt, "ComboBox2.Name")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;' Insert the block&lt;BR /&gt;&amp;nbsp;Dim blockRefObj As AcadBlockReference&lt;BR /&gt;&amp;nbsp;insertionPnt(0) = 0&lt;BR /&gt;&amp;nbsp;insertionPnt(1) = 0&lt;BR /&gt;&amp;nbsp;insertionPnt(2) = 0&lt;BR /&gt;&amp;nbsp;Set blockRefObj = ThisDrawing.ModelSpace.INSERTBLOCK _&lt;BR /&gt;&amp;nbsp;(insertionPnt, "ComboBox2.Name", 1#, 1#, 1#, 0)&lt;BR /&gt;&amp;nbsp;'ZoomAll&lt;BR /&gt;&amp;nbsp;MsgBox "Block Inserted" '&amp;amp; blockRefObj.ObjectName&lt;BR /&gt;&amp;nbsp;ThisDrawing.Regen acActiveViewport&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;BR /&gt;Private Sub REFRESHFORM_Click()&lt;BR /&gt;ComboBox3.ListIndex = 0&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;BR /&gt;Private Sub UserForm_Initialize()&lt;BR /&gt;&lt;BR /&gt;ComboBox3.AddItem ("Select Catagory")&lt;BR /&gt;ComboBox3.AddItem ("Risers")&lt;BR /&gt;ComboBox3.AddItem ("B.O.P.'S")&lt;BR /&gt;ComboBox3.AddItem ("Valves")&lt;BR /&gt;ComboBox3.ListIndex = 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dim oBlock As AcadBlock&lt;BR /&gt;For Each oBlock In ThisDrawing.Blocks&lt;BR /&gt;&amp;nbsp;&amp;nbsp; If UCase(oBlock.Name) Like (ComboBox3.Text &amp;amp; "*") Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call ComboBox2.AddItem(oBlock.Name)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;Next&lt;BR /&gt;If ComboBox2.ListCount &amp;gt; 0 Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ComboBox2.ListIndex = 0&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/188549i90ECF55ADAFFAF1F/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="Capture.JPG" title="Capture.JPG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anything you guys can see that I am doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Block Names that exist in the drawing;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Risers -1"&lt;/P&gt;&lt;P&gt;"Risers -2"&lt;/P&gt;&lt;P&gt;"B.O.P's -1"&lt;/P&gt;&lt;P&gt;"B.O.P's -2"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sandy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.s. - please ignore the "Catagory" Typo!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 13:14:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815630#M312545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T13:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box list of blocks in a drawing which begin with "type1&amp;am</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815901#M312546</link>
      <description>&lt;P&gt;You do not use Call Combobox2.Additem. It's just Combobox2.Additem&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 15:04:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815901#M312546</guid>
      <dc:creator>h_s_walker</dc:creator>
      <dc:date>2015-09-14T15:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box list of blocks in a drawing which begin with "type1&amp;am</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815942#M312547</link>
      <description>&lt;P&gt;I have removed the "call" but unfortunately that has not solved the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "block" combobox is still blank no matter what i select in the "category" combobox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only way I can get the "block" combo box to list anything is if:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I remove "ComboBox3.AddItem ("Select Catagory")" and "ComboBox3.ListIndex = 0"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or change&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"If UCase(oBlock.Name) Like (ComboBox3.Text &amp;amp; "*") Then" to "&amp;nbsp;&amp;nbsp; If UCase(oBlock.Name) Like (ComboBox2.Text &amp;amp; "*") Then"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;even then, it just lists all the blocks in the drawing file and does not filter as I want with the category combobox selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sandy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 15:30:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815942#M312547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T15:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box list of blocks in a drawing which begin with "type1&amp;am</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815998#M312548</link>
      <description>&lt;P&gt;Here is a quick crude program put together in VB. Note to change the numbers in the combo2 box. You need to use the CLICK value for Combo1&lt;/P&gt;
&lt;PRE&gt;Private Sub Form_Load()
Combo1.AddItem "1"
Combo1.AddItem "2"
Combo1.AddItem "3"
Combo1.AddItem "4"
Combo1.ListIndex = 0
End Sub


Private Sub Combo1_Click()
If Combo1.Text = "1" Then
 Combo2.Clear
 Combo2.AddItem "1"
 Combo2.AddItem "2"
 Combo2.AddItem "3"
 Combo2.AddItem "4"
 Combo2.ListIndex = 0
ElseIf Combo1.Text = "2" Then
 Combo2.Clear
 Combo2.AddItem "2"
 Combo2.AddItem "4"
 Combo2.AddItem "6"
 Combo2.AddItem "8"
 Combo2.ListIndex = 0
ElseIf Combo1.Text = "3" Then
 Combo2.Clear
 Combo2.AddItem "3"
 Combo2.AddItem "6"
 Combo2.AddItem "9"
 Combo2.AddItem "12"
 Combo2.ListIndex = 0
ElseIf Combo1.Text = "4" Then
 Combo2.Clear
 Combo2.AddItem "4"
 Combo2.AddItem "8"
 Combo2.AddItem "12"
 Combo2.AddItem "16"
 Combo2.ListIndex = 0
End If
End Sub

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 16:01:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5815998#M312548</guid>
      <dc:creator>h_s_walker</dc:creator>
      <dc:date>2015-09-14T16:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box list of blocks in a drawing which begin with "type1&amp;am</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5817222#M312549</link>
      <description>&lt;P&gt;Thanks, That works fine in VBA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try and incorporate into my original form,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sandy&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 08:32:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5817222#M312549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-15T08:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box list of blocks in a drawing which begin with "type1&amp;am</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5817454#M312550</link>
      <description>&lt;P&gt;hwalker,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not exactly a solution to my original query but I have managed a pretty good work around with the code you wrote above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, instead of the VBA searching for blocks that start with certain characters and inserting, the VBA is just selecting text which matches the names of blocks that are in the drawing so they still insert.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sandy&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 12:33:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5817454#M312550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-15T12:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box list of blocks in a drawing which begin with "type1&amp;am</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5817499#M312551</link>
      <description>&lt;P&gt;Glad I managed to help&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 13:04:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5817499#M312551</guid>
      <dc:creator>h_s_walker</dc:creator>
      <dc:date>2015-09-15T13:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box list of blocks in a drawing which begin with "type1&amp;qu</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5819233#M312552</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#000080"&gt;&amp;gt;&amp;gt; You do not use Call Combobox2.Additem. It's just Combobox2.Additem&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Jut one additional info about "Call" or "not Call" within VBA:&lt;/P&gt;
&lt;P&gt;You can use "Call", but then the parameters have to be embedded in brackets, without "Call" the parameters can't be used within brackets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So both of that lines are valid&lt;/P&gt;
&lt;PRE&gt;Call ComboBox2.AddItem("AAA")
ComboBox2.AddItem "AAA"&lt;/PRE&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 11:49:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/create-combo-box-list-of-blocks-in-a-drawing-which-begin-with/m-p/5819233#M312552</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2015-09-16T11:49:57Z</dc:date>
    </item>
  </channel>
</rss>

