<?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: How to insert block, not on drawing, in search path in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3162884#M59232</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I will stop here before I say something to get me kicked off.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edited by&lt;BR /&gt;Discussion_Admin&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;</description>
    <pubDate>Mon, 19 Sep 2011 17:28:43 GMT</pubDate>
    <dc:creator>jeff</dc:creator>
    <dc:date>2011-09-19T17:28:43Z</dc:date>
    <item>
      <title>How to insert block, not on drawing, in search path</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3160734#M59223</link>
      <description>&lt;P&gt;I am trying to insert a block (using .Net) that does not already exist on the drawing.&amp;nbsp; It is on a network share, which is in the search path.&amp;nbsp; If I, from the command line insert the block, it finds it ok and inserts it.&amp;nbsp; But when I do this from .Net code it does not search for the block.&amp;nbsp; So how do you get it to search for the block and insert it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a code snippet I'm using to insert the block:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; myDwg &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;Document&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;Application&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.DocumentManager.MdiActiveDocument&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;Using&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; myDocLock &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;DocumentLock&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;= myDwg.LockDocument()&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;Using&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; myTrans &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;Transaction&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;= myDwg.TransactionManager.StartTransaction&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#008000"&gt;&lt;FONT size="2" face="Consolas" color="#008000"&gt;&lt;FONT size="2" face="Consolas" color="#008000"&gt;'Open the database for Write&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; myBT &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;BlockTable&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;CType&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(myDwg.Database.BlockTableId.GetObject(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;OpenMode&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.ForRead), &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;BlockTable&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; myModelSpace &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;BlockTableRecord&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;CType&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(myBT(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;BlockTableRecord&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.ModelSpace).GetObject(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;OpenMode&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.ForWrite), &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;BlockTableRecord&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#008000"&gt;&lt;FONT size="2" face="Consolas" color="#008000"&gt;&lt;FONT size="2" face="Consolas" color="#008000"&gt;'Insert the Block&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; myBlockDef &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;BlockTableRecord&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;CType&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(myBT(BlockName).GetObject(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;OpenMode&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.ForRead), &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;BlockTableRecord&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; myBlockRef &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; DatabaseServices.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;BlockReference&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(InsertPoint, myBT(BlockName))&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;myBlockRef.ScaleFactors =&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; Geometry.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;Scale3d&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(XScale, YScale, ZScale)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;myModelSpace.AppendEntity(myBlockRef)&lt;/P&gt;&lt;P&gt;myTrans.AddNewlyCreatedDBObject(myBlockRef,&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;True&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;myBlkID = myBlockRef.ObjectId&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2011 14:49:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3160734#M59223</guid>
      <dc:creator>jshipley</dc:creator>
      <dc:date>2011-09-16T14:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert block, not on drawing, in search path</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3160866#M59224</link>
      <description>&lt;P&gt;Well after more searching, it looks like this has been covered over in 'The Swamp'...&lt;/P&gt;&lt;P&gt;&lt;A target="_self" href="http://www.theswamp.org/index.php?topic=37686.0" title="block testing discussion"&gt;http://www.theswamp.org/index.php?topic=37686.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2011 16:03:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3160866#M59224</guid>
      <dc:creator>jshipley</dc:creator>
      <dc:date>2011-09-16T16:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert block, not on drawing, in search path</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3161182#M59225</link>
      <description>&lt;P&gt;Well, there's lots of block stuff on that thread at the Swamp, but unless I missed it when I browsed through the posts, none of them help you out with your actual question of how to find a block in AutoCad's Support File Search Path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim &lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;path &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;As &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;String&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;HostApplicationServices&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.Current.FindFile(FileName, acdocs.MdiActiveDocument.Database, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;FindFileHint&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.Default)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;Do put that into a Try/Catch, because it throws some kind of exception if no file is found.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;Of course, once you know the path to the block, the way to insert it into the current drawing is covered on the Swamp thread.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2011 19:17:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3161182#M59225</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2011-09-16T19:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert block, not on drawing, in search path</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3161184#M59226</link>
      <description>&lt;P&gt;Cool - thanks, that's what I was looking for&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2011 19:19:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3161184#M59226</guid>
      <dc:creator>jshipley</dc:creator>
      <dc:date>2011-09-16T19:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert block, not on drawing, in search path</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3161448#M59227</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/468374"&gt;@chiefbraincloud&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Well, there's lots of block stuff on that thread at the Swamp, but unless I missed it when I browsed through the posts, none of them help you out with your actual question of how to find a block in AutoCad's Support File Search Path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;You probably missed the FindFile Method references .... as you said, it's a full thread ( though still not complete yet )&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2011 00:37:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3161448#M59227</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2011-09-17T00:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert block, not on drawing, in search path</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3161474#M59228</link>
      <description>&lt;P&gt;Kerry, I meant no disrespect, It is a long thread, with a lot of good information.&amp;nbsp; If it's there then I&amp;nbsp;appologize, I just didn't see it, (and perhaps I couldn't see it, since I am not a member of the Swamp)&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2011 04:05:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3161474#M59228</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2011-09-17T04:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert block, not on drawing, in search path</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3161668#M59229</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@KerryBrown wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/468374"&gt;@chiefbraincloud&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Well, there's lots of block stuff on that thread at the Swamp, but unless I missed it when I browsed through the posts, none of them help you out with your actual question of how to find a block in AutoCad's Support File Search Path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;You probably missed the FindFile Method references .... as you said, it's a full thread ( though still not complete yet )&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;==========================================================&lt;/P&gt;
&amp;nbsp;Fix that Search Engine &amp;nbsp;in Swamp,( Never found anything using search)
&lt;P&gt;&amp;nbsp;I never got any answer from Swamp.There are only 4 active&amp;nbsp;members there&amp;nbsp;, all of them, keep the codes in secret. And answering nonsense .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chief is an active member&amp;nbsp;and I have lots of respect for him&amp;nbsp;&amp;nbsp;, helped me personally a lot.&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;Edited by&lt;BR /&gt;Discussion_Admin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2011 17:26:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3161668#M59229</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-19T17:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert block, not on drawing, in search path</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3161734#M59230</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="comic sans ms,sans-serif"&gt;﻿&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ButterFlyShame,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thank you for your generous comments.&lt;/P&gt;&lt;P&gt;&amp;nbsp; What name do you use at TheSwamp ... just so I can recognise you when you ask a question there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kerry Brown&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2011 22:07:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3161734#M59230</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2011-09-17T22:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert block, not on drawing, in search path</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3161784#M59231</link>
      <description>&lt;P&gt;Kerry,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I might make my own complaints about the Swamp, but if I were to do so, I would make them on the Swamp, not here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I applaud your restraint in your reply.&amp;nbsp; No need to start eFights here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For what it's worth, after looking again at the thread on the swamp, I had failed to notice that there were three pages.&amp;nbsp; I had only read the first page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edited by&lt;BR /&gt;Discussion_Admin&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2011 17:28:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3161784#M59231</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2011-09-19T17:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert block, not on drawing, in search path</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3162884#M59232</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I will stop here before I say something to get me kicked off.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edited by&lt;BR /&gt;Discussion_Admin&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;</description>
      <pubDate>Mon, 19 Sep 2011 17:28:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-insert-block-not-on-drawing-in-search-path/m-p/3162884#M59232</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2011-09-19T17:28:43Z</dc:date>
    </item>
  </channel>
</rss>

