<?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: Place a family instance by Python in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/place-a-family-instance-by-python/m-p/8876888#M48409</link>
    <description>&lt;P&gt;I tried to copy and paste your code, but with python I constantly get "unexpected indent" errors even when everything is typed perfectly.&amp;nbsp; Even if I delete and reinsert all the returns and tabs, still the same thing.&amp;nbsp; Its the one and only reason I quit trying to do anything with python.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, make sure you have a family loaded into the project, and the family should be a Mass type (create the family using the Mass.rft template.)&amp;nbsp; &amp;nbsp;I would name the family "BoxFamily", and if that doesn't work, try also creating a family type called "BoxFamily".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyhow, I do have one suggestion for you.&amp;nbsp; Try using the Revit Macro Editor that comes as part of Revit.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Goto the "manage" ribbon, select "Macro Manager", and create a new Module making sure to pick Python.&amp;nbsp;&amp;nbsp;With a new Python Module,&amp;nbsp; Revit adds a few Python code samples that you can enable and run by changing "if False" to "if True".&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2019 14:46:02 GMT</pubDate>
    <dc:creator>stever66</dc:creator>
    <dc:date>2019-06-27T14:46:02Z</dc:date>
    <item>
      <title>Place a family instance by Python</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/place-a-family-instance-by-python/m-p/8175567#M48405</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to place a family instance by the code from: &lt;A href="http://wiki.theprovingground.org/revit-api-py-family.&amp;nbsp;I" target="_blank"&gt;http://wiki.theprovingground.org/revit-api-py-family.&amp;nbsp;I&lt;/A&gt; opened an Mass.rtf file, pasted the code in Interactive Python Shell, but&amp;nbsp;it&amp;nbsp;doesn’t work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="hl-reserved"&gt;import&lt;/SPAN&gt; &lt;SPAN class="hl-identifier"&gt;clr&lt;/SPAN&gt;
&lt;SPAN class="hl-identifier"&gt;clr&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;AddReference&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;(&lt;/SPAN&gt;&lt;SPAN class="hl-quotes"&gt;'&lt;/SPAN&gt;&lt;SPAN class="hl-string"&gt;RevitAPI&lt;/SPAN&gt;&lt;SPAN class="hl-quotes"&gt;'&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;)&lt;/SPAN&gt; 
&lt;SPAN class="hl-identifier"&gt;clr&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;AddReference&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;(&lt;/SPAN&gt;&lt;SPAN class="hl-quotes"&gt;'&lt;/SPAN&gt;&lt;SPAN class="hl-string"&gt;RevitAPIUI&lt;/SPAN&gt;&lt;SPAN class="hl-quotes"&gt;'&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;)&lt;/SPAN&gt; 
&lt;SPAN class="hl-reserved"&gt;from&lt;/SPAN&gt; &lt;SPAN class="hl-identifier"&gt;Autodesk&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;Revit&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;DB&lt;/SPAN&gt; &lt;SPAN class="hl-reserved"&gt;import&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt; * 
 &lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;app&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt; = &lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;__revit__&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;Application&lt;/SPAN&gt;
&lt;SPAN class="hl-identifier"&gt;doc&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt; = &lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;__revit__&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;ActiveUIDocument&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;Document&lt;/SPAN&gt;
 
&lt;SPAN class="hl-identifier"&gt;t&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt; = &lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;Transaction&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;(&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;doc&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;, &lt;/SPAN&gt;&lt;SPAN class="hl-quotes"&gt;'&lt;/SPAN&gt;&lt;SPAN class="hl-string"&gt;Create family instance.&lt;/SPAN&gt;&lt;SPAN class="hl-quotes"&gt;'&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;)&lt;/SPAN&gt;
 
&lt;SPAN class="hl-identifier"&gt;t&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;Start&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;()&lt;/SPAN&gt;
 
&lt;SPAN class="hl-comment"&gt;#Family symbol name to place.&lt;/SPAN&gt;
&lt;SPAN class="hl-identifier"&gt;symbName&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt; = &lt;/SPAN&gt;&lt;SPAN class="hl-quotes"&gt;'&lt;/SPAN&gt;&lt;SPAN class="hl-string"&gt;BoxFamily&lt;/SPAN&gt;&lt;SPAN class="hl-quotes"&gt;'&lt;/SPAN&gt;
 
&lt;SPAN class="hl-comment"&gt;#create a filtered element collector set to Category OST_Mass and Class FamilySymbol &lt;/SPAN&gt;
&lt;SPAN class="hl-identifier"&gt;collector&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt; = &lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;FilteredElementCollector&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;(&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;doc&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="hl-identifier"&gt;collector&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;OfCategory&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;(&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;BuiltInCategory&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;OST_Mass&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="hl-identifier"&gt;collector&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;OfClass&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;(&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;FamilySymbol&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;)&lt;/SPAN&gt;
 
&lt;SPAN class="hl-identifier"&gt;famtypeitr&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt; = &lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;collector&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;GetElementIdIterator&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;()&lt;/SPAN&gt;
&lt;SPAN class="hl-identifier"&gt;famtypeitr&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;Reset&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;()&lt;/SPAN&gt;
 
&lt;SPAN class="hl-comment"&gt;#Search Family Symbols in document.&lt;/SPAN&gt;
&lt;SPAN class="hl-reserved"&gt;for&lt;/SPAN&gt; &lt;SPAN class="hl-identifier"&gt;item&lt;/SPAN&gt; &lt;SPAN class="hl-reserved"&gt;in&lt;/SPAN&gt; &lt;SPAN class="hl-identifier"&gt;famtypeitr&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;:
    &lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;famtypeID&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt; = &lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;item&lt;/SPAN&gt;
    &lt;SPAN class="hl-identifier"&gt;famsymb&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt; = &lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;doc&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;get_Element&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;(&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;famtypeID&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;)&lt;/SPAN&gt;
 
    &lt;SPAN class="hl-comment"&gt;#If the FamilySymbol is the name we are looking for, create a new instance.&lt;/SPAN&gt;
    &lt;SPAN class="hl-reserved"&gt;if&lt;/SPAN&gt; &lt;SPAN class="hl-identifier"&gt;famsymb&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;Family&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;Name&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt; == &lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;symbName&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;:
 
        &lt;/SPAN&gt;&lt;SPAN class="hl-comment"&gt;#location to place family&lt;/SPAN&gt;
        &lt;SPAN class="hl-identifier"&gt;loc&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt; = &lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;XYZ&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;(&lt;/SPAN&gt;&lt;SPAN class="hl-number"&gt;0&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;,&lt;/SPAN&gt;&lt;SPAN class="hl-number"&gt;0&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;,&lt;/SPAN&gt;&lt;SPAN class="hl-number"&gt;0&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;)&lt;/SPAN&gt; 
 
        &lt;SPAN class="hl-comment"&gt;#NewFamilyInstance()&lt;/SPAN&gt;
        &lt;SPAN class="hl-identifier"&gt;familyInst&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt; = &lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;doc&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;FamilyCreate&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;NewFamilyInstance&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;(&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;loc&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;, &lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;famsymb&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;, &lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;Structure&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;StructuralType&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;NonStructural&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;)&lt;/SPAN&gt;
 
&lt;SPAN class="hl-identifier"&gt;t&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;Commit&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;()&lt;/SPAN&gt;
 
&lt;SPAN class="hl-identifier"&gt;__window__&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;Close&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;()&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a poor rookie, I was confused by the 'BoxFamily' which I guess it is a family instance, introduced and defined by the programmer.&amp;nbsp;So I&amp;nbsp;want to&amp;nbsp;print all family names, so I&amp;nbsp;tried:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hl-reserved"&gt;for&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;item&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="hl-reserved"&gt;in&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;famtypeitr&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hl-identifier"&gt;&amp;nbsp; &amp;nbsp; famtypeID&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;=&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;item&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hl-identifier"&gt;&amp;nbsp; &amp;nbsp; famsymb&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;=&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;doc&lt;/SPAN&gt;&lt;SPAN class="hl-code"&gt;.&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;get_Element&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;(&lt;/SPAN&gt;&lt;SPAN class="hl-identifier"&gt;famtypeID&lt;/SPAN&gt;&lt;SPAN class="hl-brackets"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hl-brackets"&gt;&amp;nbsp; &amp;nbsp; print (&lt;SPAN&gt;famsymb.Family.Name&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hl-brackets"&gt;Still nothing.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hl-brackets"&gt;So can anyone tell me how to print all the family name? and how to define&amp;nbsp;a symbol such as the&amp;nbsp;&lt;SPAN&gt;'BoxFamily' so I can place my own instances?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hl-brackets"&gt;&lt;SPAN&gt;Thank you for your help to a rookie who has now been crazy.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hl-brackets"&gt;&lt;SPAN&gt;Robin&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 09:43:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/place-a-family-instance-by-python/m-p/8175567#M48405</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-03T09:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Place a family instance by Python</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/place-a-family-instance-by-python/m-p/8180292#M48406</link>
      <description>&lt;P&gt;Welcome to the Revit API!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you understand the concepts of families, types and instances?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have any experience with Revit?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you should maybe start with something simpler and gather some experience first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some hints on getting started with the Revit API:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#2" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck and have fun!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 16:18:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/place-a-family-instance-by-python/m-p/8180292#M48406</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-08-06T16:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Place a family instance by Python</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/place-a-family-instance-by-python/m-p/8194831#M48407</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Jeremy, thanks for your kindly reply. I have swum in your&amp;nbsp;Building Coder and&amp;nbsp;BBS in the last two months, luckily I got survived.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to create a new family and insert into the project first, then I can use the code to place the family instance.&amp;nbsp;&amp;nbsp;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 08:22:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/place-a-family-instance-by-python/m-p/8194831#M48407</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-13T08:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Place a family instance by Python</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/place-a-family-instance-by-python/m-p/8875090#M48408</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;SPAN&gt;Dear Jeremy, thanks for your kindly reply. I have swum in your&amp;nbsp;Building Coder and&amp;nbsp;BBS in the last two months, luckily I got survived.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to create a new family and insert into the project first, then I can use the code to place the family instance.&amp;nbsp;&amp;nbsp;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;SPAN&gt;Dear Jeremy, thanks for your kindly reply. I have swum in your&amp;nbsp;Building Coder and&amp;nbsp;BBS in the last two months, luckily I got survived.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to create a new family and insert into the project first, then I can use the code to place the family instance.&amp;nbsp;&amp;nbsp;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Hi Chunhuang, I also need to place a family with python and I came across the same code from the the website. However, I have the same issue as you had before. May I know how did you solve it? I inserted the family first and then ran the code, bus still got nothing. I am assuming the I input the wrong family symbol? Can you give me an example of what the family symbol is? I thought it is just the family type? &amp;nbsp;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 00:01:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/place-a-family-instance-by-python/m-p/8875090#M48408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-27T00:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Place a family instance by Python</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/place-a-family-instance-by-python/m-p/8876888#M48409</link>
      <description>&lt;P&gt;I tried to copy and paste your code, but with python I constantly get "unexpected indent" errors even when everything is typed perfectly.&amp;nbsp; Even if I delete and reinsert all the returns and tabs, still the same thing.&amp;nbsp; Its the one and only reason I quit trying to do anything with python.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, make sure you have a family loaded into the project, and the family should be a Mass type (create the family using the Mass.rft template.)&amp;nbsp; &amp;nbsp;I would name the family "BoxFamily", and if that doesn't work, try also creating a family type called "BoxFamily".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyhow, I do have one suggestion for you.&amp;nbsp; Try using the Revit Macro Editor that comes as part of Revit.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Goto the "manage" ribbon, select "Macro Manager", and create a new Module making sure to pick Python.&amp;nbsp;&amp;nbsp;With a new Python Module,&amp;nbsp; Revit adds a few Python code samples that you can enable and run by changing "if False" to "if True".&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 14:46:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/place-a-family-instance-by-python/m-p/8876888#M48409</guid>
      <dc:creator>stever66</dc:creator>
      <dc:date>2019-06-27T14:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Place a family instance by Python</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/place-a-family-instance-by-python/m-p/8887166#M48410</link>
      <description>&lt;P&gt;Dear Cheng, attached please find the family symbol 'cube' for your reference. See if it can work.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 07:51:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/place-a-family-instance-by-python/m-p/8887166#M48410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-03T07:51:19Z</dc:date>
    </item>
  </channel>
</rss>

