<?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: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/insert-block-question/m-p/304093#M64621</link>
    <description>Thanks Jason,&lt;BR /&gt;
&lt;BR /&gt;
    That worked.  It took a little while to figure out the radio buttons but&lt;BR /&gt;
it works.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for you help.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
J_Toy&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Jason Wilder" &lt;JASWILD&gt; wrote in message&lt;BR /&gt;
news:F401143C4AB3C33523B305F0D6C5877E@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; J_Toy,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Here is a snipet of code I use, I think it'll give you the idea.  I use&lt;BR /&gt;
this&lt;BR /&gt;
&amp;gt; for details that I insert into my detail sheets.  I mainly got it out of&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; help refernences in the VBA IDE help.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Dim detInsPt(0 To 2) As Double&lt;BR /&gt;
&amp;gt;     Dim detName As String&lt;BR /&gt;
&amp;gt;     detInsPt(0) = 0#&lt;BR /&gt;
&amp;gt;     detInsPt(1) = 0#&lt;BR /&gt;
&amp;gt;     detInsPt(2) = 0#&lt;BR /&gt;
&amp;gt;     detName = detDir + lstbxDtl.Text&lt;BR /&gt;
&amp;gt;     Set detBlock = ThisDrawing.ModelSpace.InsertBlock(detInsPt, detName,&lt;BR /&gt;
1#,&lt;BR /&gt;
&amp;gt; 1#, 1#, 0)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Obviously you'll have to substitute in your method for the blockname&lt;BR /&gt;
&amp;gt; (detName variable in my case).&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; HTH&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &lt;JERRY.TOY&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:943D97BFCE6B335F4EE75D85902473C4@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; I'm new to VB programming in Autocad.  Here's what I'd like to do.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Say I have 3 groups of blocks(.dwg files)&lt;BR /&gt;
&amp;gt; &amp;gt; Group 1: 1a.dwg, 1b.dwg&lt;BR /&gt;
&amp;gt; &amp;gt; Group 2: 2a.dwg, 2b.dwg&lt;BR /&gt;
&amp;gt; &amp;gt; Group 3: 3a.dwg, 3b.dwg&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I want to have a dialog box that I can select 1 block from each group&lt;BR /&gt;
and&lt;BR /&gt;
&amp;gt; &amp;gt; have it insert all of them at 0,0 and 1:1 scale.  I have the dialog box&lt;BR /&gt;
&amp;gt; but&lt;BR /&gt;
&amp;gt; &amp;gt; can't figure out how to insert the blocks that I select.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; J_Toy&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/JERRY.TOY&gt;&lt;/JASWILD&gt;</description>
    <pubDate>Thu, 03 Apr 2003 13:14:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-04-03T13:14:10Z</dc:date>
    <item>
      <title>Insert block question</title>
      <link>https://forums.autodesk.com/t5/vba-forum/insert-block-question/m-p/304091#M64619</link>
      <description>I'm new to VB programming in Autocad.  Here's what I'd like to do.&lt;BR /&gt;
&lt;BR /&gt;
Say I have 3 groups of blocks(.dwg files)&lt;BR /&gt;
Group 1: 1a.dwg, 1b.dwg&lt;BR /&gt;
Group 2: 2a.dwg, 2b.dwg&lt;BR /&gt;
Group 3: 3a.dwg, 3b.dwg&lt;BR /&gt;
&lt;BR /&gt;
I want to have a dialog box that I can select 1 block from each group and&lt;BR /&gt;
have it insert all of them at 0,0 and 1:1 scale.  I have the dialog box but&lt;BR /&gt;
can't figure out how to insert the blocks that I select.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
J_Toy</description>
      <pubDate>Thu, 03 Apr 2003 09:57:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/insert-block-question/m-p/304091#M64619</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-04-03T09:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Insert block question</title>
      <link>https://forums.autodesk.com/t5/vba-forum/insert-block-question/m-p/304092#M64620</link>
      <description>J_Toy,&lt;BR /&gt;
&lt;BR /&gt;
Here is a snipet of code I use, I think it'll give you the idea.  I use this&lt;BR /&gt;
for details that I insert into my detail sheets.  I mainly got it out of the&lt;BR /&gt;
help refernences in the VBA IDE help.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
    Dim detInsPt(0 To 2) As Double&lt;BR /&gt;
    Dim detName As String&lt;BR /&gt;
    detInsPt(0) = 0#&lt;BR /&gt;
    detInsPt(1) = 0#&lt;BR /&gt;
    detInsPt(2) = 0#&lt;BR /&gt;
    detName = detDir + lstbxDtl.Text&lt;BR /&gt;
    Set detBlock = ThisDrawing.ModelSpace.InsertBlock(detInsPt, detName, 1#,&lt;BR /&gt;
1#, 1#, 0)&lt;BR /&gt;
&lt;BR /&gt;
Obviously you'll have to substitute in your method for the blockname&lt;BR /&gt;
(detName variable in my case).&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;JERRY.TOY&gt; wrote in message&lt;BR /&gt;
news:943D97BFCE6B335F4EE75D85902473C4@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I'm new to VB programming in Autocad.  Here's what I'd like to do.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Say I have 3 groups of blocks(.dwg files)&lt;BR /&gt;
&amp;gt; Group 1: 1a.dwg, 1b.dwg&lt;BR /&gt;
&amp;gt; Group 2: 2a.dwg, 2b.dwg&lt;BR /&gt;
&amp;gt; Group 3: 3a.dwg, 3b.dwg&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I want to have a dialog box that I can select 1 block from each group and&lt;BR /&gt;
&amp;gt; have it insert all of them at 0,0 and 1:1 scale.  I have the dialog box&lt;BR /&gt;
but&lt;BR /&gt;
&amp;gt; can't figure out how to insert the blocks that I select.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; J_Toy&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/JERRY.TOY&gt;</description>
      <pubDate>Thu, 03 Apr 2003 10:00:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/insert-block-question/m-p/304092#M64620</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-04-03T10:00:23Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/insert-block-question/m-p/304093#M64621</link>
      <description>Thanks Jason,&lt;BR /&gt;
&lt;BR /&gt;
    That worked.  It took a little while to figure out the radio buttons but&lt;BR /&gt;
it works.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for you help.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
J_Toy&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Jason Wilder" &lt;JASWILD&gt; wrote in message&lt;BR /&gt;
news:F401143C4AB3C33523B305F0D6C5877E@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; J_Toy,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Here is a snipet of code I use, I think it'll give you the idea.  I use&lt;BR /&gt;
this&lt;BR /&gt;
&amp;gt; for details that I insert into my detail sheets.  I mainly got it out of&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; help refernences in the VBA IDE help.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Dim detInsPt(0 To 2) As Double&lt;BR /&gt;
&amp;gt;     Dim detName As String&lt;BR /&gt;
&amp;gt;     detInsPt(0) = 0#&lt;BR /&gt;
&amp;gt;     detInsPt(1) = 0#&lt;BR /&gt;
&amp;gt;     detInsPt(2) = 0#&lt;BR /&gt;
&amp;gt;     detName = detDir + lstbxDtl.Text&lt;BR /&gt;
&amp;gt;     Set detBlock = ThisDrawing.ModelSpace.InsertBlock(detInsPt, detName,&lt;BR /&gt;
1#,&lt;BR /&gt;
&amp;gt; 1#, 1#, 0)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Obviously you'll have to substitute in your method for the blockname&lt;BR /&gt;
&amp;gt; (detName variable in my case).&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; HTH&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &lt;JERRY.TOY&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:943D97BFCE6B335F4EE75D85902473C4@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; I'm new to VB programming in Autocad.  Here's what I'd like to do.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Say I have 3 groups of blocks(.dwg files)&lt;BR /&gt;
&amp;gt; &amp;gt; Group 1: 1a.dwg, 1b.dwg&lt;BR /&gt;
&amp;gt; &amp;gt; Group 2: 2a.dwg, 2b.dwg&lt;BR /&gt;
&amp;gt; &amp;gt; Group 3: 3a.dwg, 3b.dwg&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I want to have a dialog box that I can select 1 block from each group&lt;BR /&gt;
and&lt;BR /&gt;
&amp;gt; &amp;gt; have it insert all of them at 0,0 and 1:1 scale.  I have the dialog box&lt;BR /&gt;
&amp;gt; but&lt;BR /&gt;
&amp;gt; &amp;gt; can't figure out how to insert the blocks that I select.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; J_Toy&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/JERRY.TOY&gt;&lt;/JASWILD&gt;</description>
      <pubDate>Thu, 03 Apr 2003 13:14:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/insert-block-question/m-p/304093#M64621</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-04-03T13:14:10Z</dc:date>
    </item>
  </channel>
</rss>

