<?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 create beams by lines from dwg linked into revit in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7049957#M58897</link>
    <description>&lt;P&gt;&lt;SPAN&gt;it is possible for me to pick after exploding after linked&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;DWG file using the API？&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;I need to realize function that allows user to pick lines or text in dwg linked into revit. &amp;nbsp; &amp;nbsp; I&lt;/SPAN&gt;&lt;SPAN&gt;f it is impossible, does it have the API to have a operation to pick different&amp;nbsp;Layers in dwg linked into revit?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks very much&lt;img id="smileyembarrassed" class="emoticon emoticon-smileyembarrassed" src="https://forums.autodesk.com/i/smilies/16x16_smiley-embarrassed.png" alt="Smiley Embarassed" title="Smiley Embarassed" /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2017 16:31:58 GMT</pubDate>
    <dc:creator>27925916</dc:creator>
    <dc:date>2017-04-28T16:31:58Z</dc:date>
    <item>
      <title>how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7036953#M58884</link>
      <description>&lt;P&gt;I link the dwg by the tool of revit &amp;nbsp;below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test2.png" style="width: 379px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/348469i7B72FD0C95204844/image-dimensions/379x79?v=v2" width="379" height="79" role="button" title="test2.png" alt="test2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and we can see it &amp;nbsp;below, and I wanna know how to use the API to create beams by the lines standing for beam in dwg?&lt;/P&gt;&lt;P&gt;what should I do ? &amp;nbsp;should I use the API to select lines representing beams first ? and what to do next ..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test1.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/348471i61F188AC468519F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="test1.png" alt="test1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test3.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/348474i9D43CD07A6945499/image-size/large?v=v2&amp;amp;px=999" role="button" title="test3.png" alt="test3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 05:52:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7036953#M58884</guid>
      <dc:creator>27925916</dc:creator>
      <dc:date>2017-04-24T05:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7037934#M58885</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4258783"&gt;@27925916&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you haven't installed RevitLookup yet, do so now. It is an indispensable tool that will help you reach an understanding of how the Revit object model is put together.&lt;/P&gt;
&lt;P&gt;If you select an import instance, then 'Addins &amp;gt; Revit Lookup &amp;gt; Snoop Current Selection', you will be able to access the geometry (GeometryElement) of the import instance. From there choose&amp;nbsp;'View&amp;nbsp;= Document.ActiveView', then 'GeometryElement', then 'GetSymbolGeometry', then 'GeometryElement'. You should then have another dialog with a list of the elements within the import instance. You should be able to check the GraphicsStyleId of each line, and if the GraphicsStyle is the one you want, then use its properties to create your framing instance. (You can clone either clone the line, or use its endpoints.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is an example in the SDK called CreateBeamsColumnsBraces that may be useful&amp;nbsp;(amongst others).&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 14:13:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7037934#M58885</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-04-24T14:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7039511#M58886</link>
      <description>&lt;P&gt;thanks，I will try it ,and come back this question if any problem&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://forums.autodesk.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 03:02:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7039511#M58886</guid>
      <dc:creator>27925916</dc:creator>
      <dc:date>2017-04-25T03:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7044151#M58887</link>
      <description>&lt;P&gt;I have try the example of&amp;nbsp;&lt;SPAN&gt;CreateBeamsColumnsBraces,and it showed&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="show.png" style="width: 366px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/349760iD0B050803E983CE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="show.png" alt="show.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it means I should load the family &amp;nbsp;of beams? why do I use&amp;nbsp;LoadFamily to load a beam family ,it seems no working&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 15:58:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7044151#M58887</guid>
      <dc:creator>27925916</dc:creator>
      <dc:date>2017-04-26T15:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7044175#M58888</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4258783"&gt;@27925916&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;There are many examples of how to load a family in the SDK.&lt;/P&gt;
&lt;P&gt;First of all, just manually load a family, and use its hard coded elementId. Once you have the bones working, you can go back and do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, refer here for help on getting started:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/check-out-the-self-paced-guide-my-first-plug-in/m-p/3032684#U3032684" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/check-out-the-self-paced-guide-my-first-plug-in/m-p/3032684#U3032684&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 16:05:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7044175#M58888</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-04-26T16:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7047160#M58889</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I have a question,it is a whole piece after linking dwg into revit, like below it is a image dwg linked into revit:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="211.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/350197i30A8DB01FFCD7D49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="211.png" alt="211.png" /&gt;&lt;/span&gt;&lt;STRONG&gt;when I select,it becomes like below:&lt;/STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="222.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/350198iF3D9D499656CF6C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="222.png" alt="222.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I can't select a&amp;nbsp;single line&amp;nbsp;,there is any API to break down it into many lines so that I could select any line&amp;nbsp;?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;there is such API to make it true?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and I have another question ,how to pick these text like below by API? &amp;nbsp; &amp;nbsp;thanks very much,I am looking forward to your help&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="text.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/350201iC7839F3D781178DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="text.png" alt="text.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 16:29:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7047160#M58889</guid>
      <dc:creator>27925916</dc:creator>
      <dc:date>2017-04-27T16:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7048738#M58890</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4258783"&gt;@27925916&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;To select a single sub-object, you can use:&lt;/P&gt;
&lt;PRE&gt;Dim ref As DB.Reference = _
   docUi.Selection.PickObject(UI.Selection.ObjectType.PointOnElement, "Pick element")
Dim elem As DB.Element = doc.GetElement(ref)
Dim geomObject As DB.GeometryObject = _
   elem.GetGeometryObjectFromReference(ref)
                 
&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Apr 2017 08:13:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7048738#M58890</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-04-28T08:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7048933#M58891</link>
      <description>&lt;P&gt;I have used the same way to pick,like below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="code.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/350513i4C8AF7DB99AAE7BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="code.png" alt="code.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I mean when I pick , I want to &amp;nbsp;pick the single line like picture 1,not a whole dwg like picture 2：&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2221.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/350519iA3B208E902FC73A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2221.png" alt="2221.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;&amp;nbsp; Picture 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="222.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/350520iC110CDC850746571/image-size/medium?v=v2&amp;amp;px=400" role="button" title="222.png" alt="222.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;picture 2&lt;/STRONG&gt;&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;STRONG&gt;is there any API&amp;nbsp;to b&lt;SPAN&gt;reakdown the whole thing like picture2,so that I can use pickobject to select any line in it like pickture 1?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 09:48:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7048933#M58891</guid>
      <dc:creator>27925916</dc:creator>
      <dc:date>2017-04-28T09:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7048978#M58892</link>
      <description>&lt;P&gt;Your geoObj object is the line (or text etc).&lt;/P&gt;
&lt;P&gt;It's not an element, so you can't 'select' it, or highlight it, but the code I gave you allows you to retrieve the line and its properties.&lt;/P&gt;
&lt;P&gt;If you want to simulate selection, you may be able to do that by creating detail or model lines over top of the geometry.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 10:04:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7048978#M58892</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-04-28T10:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7049011#M58893</link>
      <description>&lt;P&gt;&lt;SPAN&gt;how to create detail or model lines over top of the geometry,? &amp;nbsp; retrieve all lines and text and create detail or model lines over them?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; I find revit has a function: when I select the whole block of dwg linked into revit, a button&amp;nbsp;appears &amp;nbsp;like picture1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="C2.png" style="width: 380px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/350530iBF9171CE25026EA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="C2.png" alt="C2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PICTURE 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and when I click it, the dwg block breakdowns ,and it is no problem for me to pick any lines or text in this dwg block like below:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="C3.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/350531i8389F80324EAFC75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="C3.png" alt="C3.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am confused how it realizes? is it also useing the way&amp;nbsp;creating detail or model lines over top of the geometry?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;but if I click Esc , it becomes back again, which is a whole dwg block again.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;that is to say ,this button can allow us to pick any lines or text in a whole dwg block. how it do..&lt;img id="smileyembarrassed" class="emoticon emoticon-smileyembarrassed" src="https://forums.autodesk.com/i/smilies/16x16_smiley-embarrassed.png" alt="Smiley Embarassed" title="Smiley Embarassed" /&gt;&lt;/STRONG&gt;&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;</description>
      <pubDate>Fri, 28 Apr 2017 10:28:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7049011#M58893</guid>
      <dc:creator>27925916</dc:creator>
      <dc:date>2017-04-28T10:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7049015#M58894</link>
      <description>&lt;P&gt;this is my dwg file , I link it into revit..maybe it is helpful for my question&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 10:31:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7049015#M58894</guid>
      <dc:creator>27925916</dc:creator>
      <dc:date>2017-04-28T10:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7049092#M58895</link>
      <description>&lt;P&gt;I understand what you are trying to do. The Revit API doesn't support selection for non-element objects (as far as I know).&lt;/P&gt;
&lt;P&gt;The visualisation is not the important part of your coding. (You would probably do better to turn them straight into beams anyway.)&lt;/P&gt;
&lt;P&gt;Here's a proof of concept:&lt;/P&gt;
&lt;PRE&gt;#Region "Imported Namespaces"

Imports System.Linq
Imports Autodesk.Revit
Imports Autodesk.Revit.Attributes

#End Region

&amp;lt;Transaction(TransactionMode.Manual)&amp;gt; _
&amp;lt;Regeneration(RegenerationOption.Manual)&amp;gt; _
&amp;lt;Journaling(JournalingMode.UsingCommandData)&amp;gt; _
Public Class AddBeam
    Implements UI.IExternalCommand
    Public Function Execute(ByVal commandData As UI.ExternalCommandData, _
                            ByRef message As String, ByVal elements As DB.ElementSet) _
                        As UI.Result Implements UI.IExternalCommand.Execute
        Dim app As ApplicationServices.Application = commandData.Application.Application
        Execute = UI.Result.Failed
        Dim doc As DB.Document = commandData.Application.ActiveUIDocument.Document
        Dim docUi As UI.UIDocument = commandData.Application.ActiveUIDocument
        Dim ref As DB.Reference = _
            docUi.Selection.PickObject(UI.Selection.ObjectType.PointOnElement, "Pick element")
        Dim elem As DB.Element = doc.GetElement(ref)
        Dim geomObject As DB.GeometryObject = _
           elem.GetGeometryObjectFromReference(ref)
        If TypeOf (geomObject) Is DB.Line Then
            Dim line As DB.Line = TryCast(geomObject, DB.Line)
            Dim familySymbol As DB.FamilySymbol = New DB.FilteredElementCollector(doc) _
                                                .OfCategory(DB.BuiltInCategory.OST_StructuralFraming) _
                                                .OfClass(GetType(DB.FamilySymbol)) _
                                                .Cast(Of DB.FamilySymbol) _
                                                .FirstOrDefault
            Using trans As New DB.Transaction(doc, "Add Beam")
                trans.Start()
                Dim curve As DB.Curve = line
                Dim familyInstance As DB.FamilyInstance = _
                    doc.Create.NewFamilyInstance(curve, familySymbol, _
                         doc.ActiveView.GenLevel, DB.Structure.StructuralType.Beam)
                trans.Commit()
                Return UI.Result.Succeeded
            End Using
        End If
        Return Execute
    End Function
End Class&lt;/PRE&gt;
&lt;P&gt;You'll need a framing family in your model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 11:21:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7049092#M58895</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-04-28T11:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7049932#M58896</link>
      <description>&lt;P&gt;&lt;SPAN&gt;it is possible for me to pick after exploding after linked&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;DWG file using the API？&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;I need to realize function that allows user to pick lines or text in dwg linked into revit,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if it is impossible, does it have the API to have a operation to pick different&amp;nbsp;Layers in dwg linked into revit?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks very much&lt;img id="smileyembarrassed" class="emoticon emoticon-smileyembarrassed" src="https://forums.autodesk.com/i/smilies/16x16_smiley-embarrassed.png" alt="Smiley Embarassed" title="Smiley Embarassed" /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 16:20:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7049932#M58896</guid>
      <dc:creator>27925916</dc:creator>
      <dc:date>2017-04-28T16:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7049957#M58897</link>
      <description>&lt;P&gt;&lt;SPAN&gt;it is possible for me to pick after exploding after linked&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;DWG file using the API？&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;I need to realize function that allows user to pick lines or text in dwg linked into revit. &amp;nbsp; &amp;nbsp; I&lt;/SPAN&gt;&lt;SPAN&gt;f it is impossible, does it have the API to have a operation to pick different&amp;nbsp;Layers in dwg linked into revit?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks very much&lt;img id="smileyembarrassed" class="emoticon emoticon-smileyembarrassed" src="https://forums.autodesk.com/i/smilies/16x16_smiley-embarrassed.png" alt="Smiley Embarassed" title="Smiley Embarassed" /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 16:31:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7049957#M58897</guid>
      <dc:creator>27925916</dc:creator>
      <dc:date>2017-04-28T16:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7049989#M58898</link>
      <description>&lt;P&gt;if I retrive all data from the importinstance of dwg, how could I get the data of number which describes the line?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 16:43:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7049989#M58898</guid>
      <dc:creator>27925916</dc:creator>
      <dc:date>2017-04-28T16:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7050929#M58899</link>
      <description>&lt;P&gt;&lt;img id="smileyembarrassed" class="emoticon emoticon-smileyembarrassed" src="https://forums.autodesk.com/i/smilies/16x16_smiley-embarrassed.png" alt="Smiley Embarassed" title="Smiley Embarassed" /&gt;&lt;SPAN&gt;I am sorry for the &lt;/SPAN&gt;&lt;EM&gt;trouble&lt;/EM&gt;&lt;SPAN&gt; I have caused &lt;/SPAN&gt;&lt;EM&gt;you ，it is the first time for me to operate dwg linked into revit by api,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I have another question about how to get the text in dwg linkd into revit, and &amp;nbsp;one more question is how to make sure its relationship with lines standing for beams?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="33.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/350800iF5B4C83C69D9A3AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="33.png" alt="33.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;\ know these lines standing for beams could be achieved by geometry like that:&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="331.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/350801i1984558778BB962A/image-size/large?v=v2&amp;amp;px=999" role="button" title="331.png" alt="331.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2017 06:27:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7050929#M58899</guid>
      <dc:creator>27925916</dc:creator>
      <dc:date>2017-04-29T06:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7054731#M58900</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4258783"&gt;@27925916&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It's no problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's not helpful starting new topics asking the same thing. It was the weekend - be patient. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is how you get the 'layer' name of an importInstance line:&lt;/P&gt;
&lt;PRE&gt;Dim ref As DB.Reference = _
  docUi.Selection.PickObject(UI.Selection.ObjectType.PointOnElement, _
  "Pick element")
Dim elem As DB.Element = doc.GetElement(ref)
Dim geomObject As DB.GeometryObject = _
                   elem.GetGeometryObjectFromReference(ref)
If TypeOf (geomObject) Is DB.Line Then
   Dim graphicsStyleElem As DB.Element = doc.GetElement(geomObject.GraphicsStyleId)
   Dim graphicsStyle As DB.GraphicsStyle = _
      TryCast(graphicsStyleElem, DB.GraphicsStyle)
   MsgBox(String.Format("Layer Name={0}", _     
      graphicsStyle.GraphicsStyleCategory.Name))
End If&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 May 2017 10:09:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7054731#M58900</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-05-02T10:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7057245#M58901</link>
      <description>&lt;P&gt;&lt;img id="smileyembarrassed" class="emoticon emoticon-smileyembarrassed" src="https://forums.autodesk.com/i/smilies/16x16_smiley-embarrassed.png" alt="Smiley Embarassed" title="Smiley Embarassed" /&gt;I am so confused that I make a new topic about the same question...&lt;/P&gt;&lt;P&gt;yes ,I have used the way you advise to get the name of&amp;nbsp;&lt;SPAN&gt; 'layer' about a line, and alse I can use it to get the&amp;nbsp; 'layer' of text like below :&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="text.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/351821iFF0BEEB1DE456B86/image-size/medium?v=v2&amp;amp;px=400" role="button" title="text.png" alt="text.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but the GraphicsStyleCategory.Name is not the content inside it , and is there any way to get the content of it and its position?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;because I want to&amp;nbsp;judge the relationship of the lines standing for beam and the text whcih describes the size of beam&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 02:35:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7057245#M58901</guid>
      <dc:creator>27925916</dc:creator>
      <dc:date>2017-05-03T02:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7057455#M58902</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4258783"&gt;@27925916&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I understand it looks very daunting, but I promise it's not that complicated.&lt;/P&gt;
&lt;P&gt;You really need to refer to my first comment. It tells you exactly how to get all of the lines/text etc using RevitLookup. With RevitLookup,&amp;nbsp;you can browse the content of your importInstance. RevitLookup is an open sourced app - just look at it's code to see how it gets the information it does, and use that in your app. You can step through the code as you follow my steps.&lt;/P&gt;
&lt;P&gt;If you have trouble with that, it's probably worth going back a step and up-skilling yourself until you feel more comfortable with it.&lt;/P&gt;
&lt;P&gt;(Of course, if you find you want someone to write the app for you, you may find this post useful: &lt;A href="http://thebuildingcoder.typepad.com/blog/2011/12/finding-a-development-partner.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2011/12/finding-a-development-partner.html&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 06:30:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7057455#M58902</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-05-03T06:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to create beams by lines from dwg linked into revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7057569#M58903</link>
      <description>&lt;P&gt;thanks, I have tried to use revitloopup,but I can;t find any information about text ,I delete all layers except layer standing size by text:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="note111.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/351903i5D19C6EDE28CD305/image-size/medium?v=v2&amp;amp;px=400" role="button" title="note111.png" alt="note111.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I use revit lookup to query and find nothing about text:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ttt.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/351906i0ED0DCA0FFC35066/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ttt.png" alt="ttt.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 07:37:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-beams-by-lines-from-dwg-linked-into-revit/m-p/7057569#M58903</guid>
      <dc:creator>27925916</dc:creator>
      <dc:date>2017-05-03T07:37:14Z</dc:date>
    </item>
  </channel>
</rss>

