<?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: Get Specific Reference from Family in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/get-specific-reference-from-family/m-p/7090141#M58325</link>
    <description>&lt;P&gt;ok great! &amp;nbsp;I will check out those new methods but that looks to be exactly what I need, thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2017 15:13:15 GMT</pubDate>
    <dc:creator>swfaust</dc:creator>
    <dc:date>2017-05-17T15:13:15Z</dc:date>
    <item>
      <title>Get Specific Reference from Family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-specific-reference-from-family/m-p/7085619#M58322</link>
      <description>&lt;P&gt;Is it possible to get a named reference plane from a family without going into the family editor API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I would like to have users be able to name a reference plane 'my arbitrary location' when they are creating a family in the family editor. &amp;nbsp;Then when it's loaded in the project, I would like to find an instance of it and be able to find the 'my arbitrary location' in the project and use that location data for other things in relation to the placement in the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've seen this post:&amp;nbsp;&lt;A href="http://thebuildingcoder.typepad.com/blog/2015/05/how-to-retrieve-dimensioning-references.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2015/05/how-to-retrieve-dimensioning-references.html&lt;/A&gt; but that basically says you would have to use some type of geometry analysis to figure out if it's the correct one or not. &amp;nbsp;Unfortunately it's user (or at least company) specific and varied so there is no way to identify it geometrically, but it would be easy for the user to label the reference plane with a name if I could get that data out...&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 23:27:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-specific-reference-from-family/m-p/7085619#M58322</guid>
      <dc:creator>swfaust</dc:creator>
      <dc:date>2017-05-15T23:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get Specific Reference from Family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-specific-reference-from-family/m-p/7088826#M58323</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Stephen,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your query.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I believe you are in luck.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here are some notes from a previous case, 12730663 [Create dimension for detail items in drafting view]:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[Q] I want to dimension the detail item in drafting view. But the geometry of the family instance only can be retrieved by GetOriginalGeometry method, and there is any reference can be got. How can I add the dimension to detail items by API?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[A] For Revit 2018, we have new capabilities to get the standard references for family instances. I haven’t tested specifically with detail items, but I believe this should work for them as well:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Check out the section 'API access to FamilyInstance references' in What's New in the Revit 2018 API:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2017/04/whats-new-in-the-revit-2018-api.html#3.19" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2017/04/whats-new-in-the-revit-2018-api.html#3.19&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The following new methods have been added to enable easy access to FamilyInstance references that correspond to reference planes and reference lines in the family. Some use the options in the new enumeration FamilyInstanceReferenceType as input to identify "Strong" or "Weak" references or specific positional references in each of the 3 coordinate directions (as determined by the possible values of parameter "Is Reference" of reference planes and parameter "Reference" of reference lines in families).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;FamilyInstance.GetReferences()&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;FamilyInstance.GetReferenceByName()&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;FamilyInstance.GetReferenceType()&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;FamilyInstance.GetReferenceName()&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Prior to 2018, I don’t believe there is a technique to get at the available references.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;An older case 11909355 [Parametric family instance placement] gave rise to the wish list item CF-1271 [API wish: need a way to relate view specific geometry in project with particular ref plane in family] which has now been closed as fixed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It would be very kind of you if you would like to put together and share a minimal example showing how you make use of this for future reference.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 07:18:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-specific-reference-from-family/m-p/7088826#M58323</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-05-17T07:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get Specific Reference from Family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-specific-reference-from-family/m-p/7088928#M58324</link>
      <description>&lt;P&gt;Dear Stephen,&lt;BR /&gt; &lt;BR /&gt;Since this appears to be a very common question, I edited and published it on The Building Coder as well:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2017/05/api-access-to-family-instance-references.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2017/05/api-access-to-family-instance-references.html&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;I hope this helps.&lt;BR /&gt; &lt;BR /&gt;As said, it would be great if you would like to put together and share a minimal example showing how you make use of this for future reference.&lt;BR /&gt; &lt;BR /&gt;Thank you!&lt;BR /&gt; &lt;BR /&gt;Best regards,&lt;BR /&gt; &lt;BR /&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 08:15:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-specific-reference-from-family/m-p/7088928#M58324</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-05-17T08:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Get Specific Reference from Family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-specific-reference-from-family/m-p/7090141#M58325</link>
      <description>&lt;P&gt;ok great! &amp;nbsp;I will check out those new methods but that looks to be exactly what I need, thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 15:13:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-specific-reference-from-family/m-p/7090141#M58325</guid>
      <dc:creator>swfaust</dc:creator>
      <dc:date>2017-05-17T15:13:15Z</dc:date>
    </item>
  </channel>
</rss>

