<?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: Code to insert a dynamic block into the current drawing in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2849718#M63496</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Jeffrey_H,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="white-space: pre;"&gt;&lt;/SPAN&gt;I would create the blocks parameterized linear or XY, for example, and modify them when they were inserted, which would otherwise be created for each block a block with different attributes, which is impractical for my solution.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="white-space: pre;"&gt;&lt;/SPAN&gt;The solution to be adopted will be to create template files dwg blocks with predefined dynamic and instantiate them by modifying them to insert code in c #.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;But it is a problem that many are finding as can be seen in several other forums dealing with the matter.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;For now I will adopt the solution above.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I am studying the case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I am very grateful for the aid.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Thanks KailasDhage the solution provided.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;As you may have noticed I am new to developing AutoCAD.net in c # and my English is very bad.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I will take action on it.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hugs ...&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Dec 2010 13:14:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-12-10T13:14:19Z</dc:date>
    <item>
      <title>Code to insert a dynamic block into the current drawing</title>
      <link>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2798420#M63488</link>
      <description>&lt;P&gt;To whom that would be so kind.&lt;/P&gt;&lt;P&gt;I need simple code to do just one thing, inserting a dynamic block that is stored in a separate file on my computer (like C:/base/b-22)&amp;nbsp;in the drawing that I'm currently using. For example, I have a windows form with a list box with names of many dynamic blocks that are stored on my c drive, I would like to pick a block with a name and upon a click event of a button or other will go get this block from a separate file and insert it in the drawing I'm currently using, and would need to be able to pick the point of where I want the block to go. Could someone help, I'm using autocad 2010 with visual studio 2008- using the new autocad .net language.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2010 22:28:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2798420#M63488</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-15T22:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Code to insert a dynamic block into the current drawing</title>
      <link>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2803026#M63489</link>
      <description>&lt;P&gt;You can try using the attached code file. It's not commented, but there are examples of usage towards the top of the file.&lt;/P&gt;&lt;P&gt;The public functions and properties&amp;nbsp;are:&lt;/P&gt;&lt;P&gt;InsertFile() &amp;amp;&lt;/P&gt;&lt;P&gt;InsertBlockFromFile() &amp;amp;&lt;/P&gt;&lt;P&gt;BlockTableRecordId (gets the blocktable record id of the inserted block)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The class doesn't handle any of your dynamics or attributes&amp;nbsp;it just gets&amp;nbsp;the block def from another file into your database, you still have to go about inserting the new block into your drawing, something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Editor editor = AcadApp.DocumentManager.MdiActiveDocument.Editor;&lt;/P&gt;&lt;P&gt;PromptPointResult pr = editor.GetPoint(new PromptPointOptions("\nGet Point: "));&lt;/P&gt;&lt;P&gt;BlockReference blockRef = new BlockReference(pr.Value, insertMan.BlockTableRecordId);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then work on your attributes and/or dynamic properties before&amp;nbsp;or after actually adding&amp;nbsp;the block to your dwg, but those are relatively easy steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note, after using the&amp;nbsp;InsertFile() or InsertBlockFromFile() functions, you may have to regen the dwg.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2010 22:21:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2803026#M63489</guid>
      <dc:creator>cadMeUp</dc:creator>
      <dc:date>2010-10-20T22:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Code to insert a dynamic block into the current drawing</title>
      <link>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2804900#M63490</link>
      <description>&lt;P&gt;cadMeUp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for posting your block insert code. Since I am making the switch from VB/VBA to .Net, this will come in handy for the program I am converting now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I used an online converter to translate your code to VB.Net and I get a couple of errors in VS2008. The first one is at the line 'Imports AcadApp = ...' and the message says "Imports alias 'AcadApp' conflicts with 'Structure AcadApp' declared in the root namespace."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second one is in the line in 'Public Dub New' and begins with 'm_db = AcadApp.DocumentManager...' and the error message says, " 'AcadApp' is not accessible int this context because it is 'Friend'."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I have no clue if this works that way in C# and not in VB, but is there any way you can tell me how to fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2010 13:00:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2804900#M63490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-22T13:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Code to insert a dynamic block into the current drawing</title>
      <link>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2804970#M63491</link>
      <description>&lt;P&gt;Yeah, that's just one of the differences between C# and VB, I normally use C# as I find it to be easier and cleaner,&amp;nbsp;to me anyway. At the top of each C# code file I usually add these statements (below my other C# "using" statements):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using AcadApp = Autodesk.AutoCAD.ApplicationServices.Application;&lt;BR /&gt;using DatabaseServ = Autodesk.AutoCAD.DatabaseServices;&lt;BR /&gt;using TransMan = Autodesk.AutoCAD.DatabaseServices.TransactionManager;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but in VB the equivalent statements would be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imports AcadApp = Autodesk.AutoCAD.ApplicationServices.Application&lt;BR /&gt;Imports DatabaseServ = Autodesk.AutoCAD.DatabaseServices&lt;BR /&gt;Imports TransMan = Autodesk.AutoCAD.DatabaseServices.TransactionManager&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if you add those VB statements to your code file, below your other "Imports" statements, that should fix the problem.&lt;/P&gt;&lt;P&gt;Just give the 'AcadApp' a different name, like AcAppObject or something similar.&lt;/P&gt;&lt;P&gt;Hopefully you won't get the same conflicts with another namespace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have a link to the C# to VB code converter that you use? I would like to experiment with it myself, it might help me with future posts.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2010 13:42:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2804970#M63491</guid>
      <dc:creator>cadMeUp</dc:creator>
      <dc:date>2010-10-22T13:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Code to insert a dynamic block into the current drawing</title>
      <link>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2804996#M63492</link>
      <description>&lt;P&gt;Thanks for the very prompt reply and help! I will check out the changes and let you know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The converter I used is from DeveloperFusion and it is here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" rel="nofollow" href="http://www.developerfusion.com/tools/"&gt;http://www.developerfusion.com/tools/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is just one of several that come up in Google, but it is clean and simple... and it works nicely (I've used it a few times).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2010 13:53:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2804996#M63492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-22T13:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Code to insert a dynamic block into the current drawing</title>
      <link>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2849502#M63493</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi cadMeUp,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;could you provide a full example to insert dynamic block through your code available?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2010 03:54:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2849502#M63493</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-10T03:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Code to insert a dynamic block into the current drawing</title>
      <link>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2849600#M63494</link>
      <description>&lt;P&gt;Please see attached sample code&lt;/P&gt;&lt;P&gt;-Kailas Dhage&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2010 08:45:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2849600#M63494</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-10T08:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Code to insert a dynamic block into the current drawing</title>
      <link>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2849636#M63495</link>
      <description>&lt;P&gt;Inserting a dynamic block would be the same as any other block, but I guess you are&amp;nbsp;wanting to modify the parameters&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is one&lt;/P&gt;&lt;P&gt;&lt;A rel="nofollow" target="_blank" href="http://www.theswamp.org/index.php?topic=31859.0"&gt;http://www.theswamp.org/index.php?topic=31859.0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2010 10:31:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2849636#M63495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-10T10:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Code to insert a dynamic block into the current drawing</title>
      <link>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2849718#M63496</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Jeffrey_H,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="white-space: pre;"&gt;&lt;/SPAN&gt;I would create the blocks parameterized linear or XY, for example, and modify them when they were inserted, which would otherwise be created for each block a block with different attributes, which is impractical for my solution.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="white-space: pre;"&gt;&lt;/SPAN&gt;The solution to be adopted will be to create template files dwg blocks with predefined dynamic and instantiate them by modifying them to insert code in c #.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;But it is a problem that many are finding as can be seen in several other forums dealing with the matter.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;For now I will adopt the solution above.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I am studying the case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I am very grateful for the aid.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Thanks KailasDhage the solution provided.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;As you may have noticed I am new to developing AutoCAD.net in c # and my English is very bad.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I will take action on it.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hugs ...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2010 13:14:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2849718#M63496</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-10T13:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Code to insert a dynamic block into the current drawing</title>
      <link>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2849966#M63497</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I think there's an easier solution to my problem.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;How can I delete a block so you can recreate it?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;if (bt.Has (TestBlock "))&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;/ / Delete block?&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2010 15:21:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2849966#M63497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-10T15:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Code to insert a dynamic block into the current drawing</title>
      <link>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2850794#M63498</link>
      <description>&lt;P&gt;Every DBObject has an Erase() method that you can call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BlockTable bt = (BlockTable)db.BlockTableId.GetObject(OpenMode.ForRead);&lt;BR /&gt;if (bt.Has("TestBlock"))&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;BlockTableRecord btr = (BlockTableRecord)bt["TestBlock"].GetObject(OpenMode.ForWrite);&lt;BR /&gt;&amp;nbsp;try&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;btr.Erase();&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;catch&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ed.WriteMessage("\nException: No Erase!");&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll probably get some strange results if you have blocks that reference the BlockTableRecord that you want to erase.&lt;/P&gt;&lt;P&gt;Also, for pre-defined dynamic blocks you might want to look into using tool palettes, they work pretty well in that way.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Dec 2010 13:03:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2850794#M63498</guid>
      <dc:creator>cadMeUp</dc:creator>
      <dc:date>2010-12-11T13:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Code to insert a dynamic block into the current drawing</title>
      <link>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2877724#M63499</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everybody&lt;/SPAN&gt;&lt;SPAN&gt;!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I continue to have&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;problems&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To simplify&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;the example&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;of&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;my&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;problem&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;is&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;to&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;create a block&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;containing&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;only&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;one&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;line&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;and&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;a&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;text&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;where&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;the&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;line dimension&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;is defined&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;in the&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;block&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;by&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;adding&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;the&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;user&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;to add&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;several&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;block references&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;with&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;different&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;dimensions&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2011 23:59:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/2877724#M63499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-11T23:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Code to insert a dynamic block into the current drawing</title>
      <link>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/4659745#M63500</link>
      <description>&lt;P&gt;Hello There,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If in a Block "Sample" : for example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample1= D1=100,D2=200&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sample2= D1=200,D2=400&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Sample3= D1=300,D2=600&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Among these if i want to pick the last one where should i change to fetch this result.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;rgds&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Amit&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2013 07:39:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/code-to-insert-a-dynamic-block-into-the-current-drawing/m-p/4659745#M63500</guid>
      <dc:creator>amitnkukanur</dc:creator>
      <dc:date>2013-11-29T07:39:07Z</dc:date>
    </item>
  </channel>
</rss>

