<?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: Reference point  from FamilyInstance in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/13706903#M84206</link>
    <description>&lt;P&gt;This is another horrible answer Jeremy. Autodesk needs to evaluate the tone of the messaging here. I find this distasteful. First of all, the current link is broken, so "reading" the documentation is not possible. Second, documentation is inconsistent, the program changes, and people have other responsibilities, hence the need for a forum to ask a specific question to get a specific answer. If you are just going to chastise people, how can anyone actually learn to satisfy you.&amp;nbsp; I too (have been coding in the API for years), and trying to sort out getting the points from a selected element (Pipe Accessories category, no location curve), and am getting nulls. Answer the questions thoughtfully please. If anyone has anything else to offer please do.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jul 2025 03:01:30 GMT</pubDate>
    <dc:creator>gdavis479JP</dc:creator>
    <dc:date>2025-07-02T03:01:30Z</dc:date>
    <item>
      <title>Reference point  from FamilyInstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/9150244#M38562</link>
      <description>&lt;P&gt;Hi, I tried to get Reference Point from FamilyInstance by this code from TheBuildingCoder blog:&lt;/P&gt;&lt;P&gt;Reference reference = sectionInstance.get_Geometry(options).OfType&amp;lt;Point&amp;gt;().Select&amp;lt;Point, Reference&amp;gt;(x =&amp;gt; x.Reference).FirstOrDefault();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately I recive null. In family creator I can get ReferencePoint using Dynamo using ReferencePoint.ByPoint so Im sure that those points exist. I tried to recive those point in both by family creator and project. I have two family instances in which I want to use this Conceptual Mass and Adaptive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is full code:&lt;/P&gt;&lt;PRE&gt;  public static Reference GetReferencePoint(string targetSectionName)
        {
            Options options = new Options();
            options.ComputeReferences = true;
            options.DetailLevel = ViewDetailLevel.Undefined;
            options.IncludeNonVisibleObjects = true;
            //Set document as current document
            Document document = RevitServices.Persistence.DocumentManager.Instance.CurrentDBDocument;
            //Collect FamilyInstances
            var symbolCollector = new FilteredElementCollector(document)
                .OfClass(typeof(FamilyInstance));
            //Get FamilyInstance by name
            FamilyInstance sectionInstance = symbolCollector
                .Where(x =&amp;gt; ((FamilyInstance)x).Symbol.Name.Equals(targetSectionName))
                .Cast&amp;lt;FamilyInstance&amp;gt;()
                .FirstOrDefault();
            using (Transaction transaction = new Transaction(document, "GetReferencePoint"))
            {
                transaction.Start();
                Reference reference = sectionInstance.get_Geometry(options).OfType&amp;lt;Point&amp;gt;().Select&amp;lt;Point, Reference&amp;gt;(x =&amp;gt; x.Reference).FirstOrDefault();
                transaction.Commit();
                return reference;
            }
        }&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Nov 2019 07:17:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/9150244#M38562</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-16T07:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reference point  from FamilyInstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/9150274#M38563</link>
      <description>&lt;P&gt;Check whether FamilyInstance.GetReferences provides what you need:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.revitapidocs.com/2020/a8a7dc74-db8e-a7b6-a9c8-869397cca6b4.htm" target="_blank"&gt;https://www.revitapidocs.com/2020/a8a7dc74-db8e-a7b6-a9c8-869397cca6b4.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Above all, read the documentation before asking a question &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;</description>
      <pubDate>Sat, 16 Nov 2019 08:14:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/9150274#M38563</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-11-16T08:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reference point  from FamilyInstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/9150311#M38564</link>
      <description>&lt;P&gt;I'm confused now, from method you mentioned I can get only line and surface references, are those points part of surface reference?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2019 09:29:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/9150311#M38564</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-16T09:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reference point  from FamilyInstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/9150491#M38565</link>
      <description>&lt;P&gt;I do not know what references you are after.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at all of the solids contained in your element geometry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can navigate through them all using RevitLookup and other interactive database exploration tools:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2017/01/virtues-of-reproduction-research-mep-settings-ontology.html#3" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2017/01/virtues-of-reproduction-research-mep-settings-ontology.html#3&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2013/11/intimate-revit-database-exploration-with-the-python-shell.html" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2013/11/intimate-revit-database-exploration-with-the-python-shell.html&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can well imagine that many element's geometry will not contain any `Point` objects at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if your element has a solid, the solid will have faces, and those faces (or possibly their edges) will be equipped with references.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can use those instead of the points?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2019 12:19:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/9150491#M38565</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-11-16T12:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reference point  from FamilyInstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/9150547#M38566</link>
      <description>&lt;P&gt;First of all, RevitLookup... It's such a help!&lt;/P&gt;&lt;P&gt;Secondly, I can find point which I want to get in this tool, but I still dont know how to get it via RevitAPI, I attach screenshots.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="point.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/698581i2FFA6229DFFD708C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="point.png" alt="point.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="nullreference.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/698582i9FA25BB8DB5B3686/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nullreference.png" alt="nullreference.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="pointnull.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/698583i83EB7CF0D5CA460A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pointnull.png" alt="pointnull.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2019 13:30:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/9150547#M38566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-16T13:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reference point  from FamilyInstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/9150685#M38567</link>
      <description>&lt;P&gt;You can run RevitLookup in the debugger and look at the call stack to see the exact sequence of calls and their argument that lead you to the desired information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance, when requesting the element geometry, you can specify a specific view. The element geometry returned may be view specific. What view are you requesting it for?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, screen snapshots of source code are pretty useless. I cannot read them, and the search engines cannot find them for future reference. It is more useful to paste source code in text format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2019 16:13:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/9150685#M38567</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-11-16T16:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reference point  from FamilyInstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/9150694#M38568</link>
      <description>&lt;P&gt;Succees, I repeated path from Revit Lookup. But one answer brings more questions, first: Why couldnt I get those points by previous method? And why when I set point visibility as not visible I couldn't receive it geometry even with Options&amp;nbsp;IncludeNonVisible Objects property set as true, Revit Lookup also didn't see that. Is the fact that this family was nested in another one a case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But as to main question I think it's solved, here is the code:&lt;/P&gt;&lt;PRE&gt;GeometryObject geometryObject sectionInstance.get_Geometry(options);
GeometryElement geometryElement = sectionInstance.get_Geometry(options);
GeometryInstance geometryInstance = geometryElement.First() as GeometryInstance;
Point point = geometryInstance.GetInstanceGeometry().OfType&amp;lt;Point&amp;gt;().First();&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Nov 2019 16:21:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/9150694#M38568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-16T16:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reference point  from FamilyInstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/9150705#M38569</link>
      <description>&lt;P&gt;View specific geometry. ActiveView.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2019 16:27:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/9150705#M38569</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-11-16T16:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reference point  from FamilyInstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/10559844#M38570</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I search to cast object of type FamilyInstance to ReferencePoint but I don't met any way to cast. Does anyone have a way to do it?&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;UIDocument uiDoc = commandData.Application.ActiveUIDocument;

                Selection selection = uiDoc.Selection;
                ICollection&amp;lt;ElementId&amp;gt; elemSelected = selection.GetElementIds();
                if (elemSelected.Count == 2)
                {
                    List&amp;lt;ElementId&amp;gt; elemList = new List&amp;lt;ElementId&amp;gt;();
                    foreach (var element in elemSelected)
                    {
                        elemList.Add(element); 
                    }
                    
                    Element elemFirst = uiDoc.Document.GetElement(elemList[0]);
                    Element elemSecond = uiDoc.Document.GetElement(elemList[1]);
                    
                    ReferencePoint rpFirst = elemFirst as ReferencePoint;
                    
                }&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 20 Aug 2021 04:45:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/10559844#M38570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-20T04:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reference point  from FamilyInstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/13706903#M84206</link>
      <description>&lt;P&gt;This is another horrible answer Jeremy. Autodesk needs to evaluate the tone of the messaging here. I find this distasteful. First of all, the current link is broken, so "reading" the documentation is not possible. Second, documentation is inconsistent, the program changes, and people have other responsibilities, hence the need for a forum to ask a specific question to get a specific answer. If you are just going to chastise people, how can anyone actually learn to satisfy you.&amp;nbsp; I too (have been coding in the API for years), and trying to sort out getting the points from a selected element (Pipe Accessories category, no location curve), and am getting nulls. Answer the questions thoughtfully please. If anyone has anything else to offer please do.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 03:01:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/13706903#M84206</guid>
      <dc:creator>gdavis479JP</dc:creator>
      <dc:date>2025-07-02T03:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reference point  from FamilyInstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/13716724#M84256</link>
      <description>&lt;P&gt;That answer replied in 2019.&lt;/P&gt;&lt;P&gt;You're complaining to the wrong person.&lt;BR /&gt;No one could have predicted that website would be deleted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try these (edit the "2020" to another year)&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.revitapidocs.com/2023/a8a7dc74-db8e-a7b6-a9c8-869397cca6b4.htm" target="_blank"&gt;https://www.revitapidocs.com/2023/a8a7dc74-db8e-a7b6-a9c8-869397cca6b4.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.revitapidocs.com/2025/a8a7dc74-db8e-a7b6-a9c8-869397cca6b4.htm" target="_blank"&gt;https://www.revitapidocs.com/2025/a8a7dc74-db8e-a7b6-a9c8-869397cca6b4.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 01:33:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reference-point-from-familyinstance/m-p/13716724#M84256</guid>
      <dc:creator>Sleepingfish_Kuo</dc:creator>
      <dc:date>2025-07-09T01:33:48Z</dc:date>
    </item>
  </channel>
</rss>

