<?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: Revit 2020 API BasePoint  - Unable to access parameter info of linked models in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-api-basepoint-unable-to-access-parameter-info-of/m-p/9829355#M36305</link>
    <description>&lt;P&gt;Did anyone solve this?&lt;/P&gt;</description>
    <pubDate>Wed, 28 Oct 2020 10:04:33 GMT</pubDate>
    <dc:creator>moj</dc:creator>
    <dc:date>2020-10-28T10:04:33Z</dc:date>
    <item>
      <title>Revit 2020 API BasePoint  - Unable to access parameter info of linked models.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-api-basepoint-unable-to-access-parameter-info-of/m-p/9348826#M36299</link>
      <description>&lt;P&gt;We have been using a python script to get the BasePoint info from all linked models in a project. We use this to create a project dashboard showing all linked models and their associated location information. In 2020 this stopped working and I need to figure out a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the 2020 API we cannot access the Built in parameters for BasePoint when using GetLinkedDocument()&lt;/P&gt;&lt;P&gt;Is there another method to get this info from a linked model in the 2020API?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;linkDocuments = []
for linkType in linkTypes:
if DB.RevitLinkType.IsLoaded(doc, linkType.Id):
     linkDoc = None
     for li in linkInstances:
           if li.GetTypeId().IntegerValue == linkType.Id.IntegerValue:
                    linkDoc = li.GetLinkDocument()
            if linkDoc is not None:
                linkDocuments.append(linkDoc)       

basepoints = DB.FilteredElementCollector(linkDoc)\
            .OfClass(DB.BasePoint)
        basePoint = None
        surveyPoint = None
        # print(modelName)
        for e in basepoints:
            if e.IsShared:
                surveyPoint = e
                break
        for e in basepoints:
            if not e.IsShared:
                if e.get_Parameter(DB.BuiltInParameter.BASEPOINT_ANGLETON_PARAM) is not None:
                    basePoint = e
        surveyPointNS, surveyPointEW, surveyPointElev = (
            round(surveyPoint.get_Parameter(
                DB.BuiltInParameter.BASEPOINT_NORTHSOUTH_PARAM).AsDouble(), 3),
            round(surveyPoint.get_Parameter(
                DB.BuiltInParameter.BASEPOINT_EASTWEST_PARAM).AsDouble(), 3),
            round(surveyPoint.get_Parameter(
                DB.BuiltInParameter.BASEPOINT_ELEVATION_PARAM).AsDouble(), 3)
        )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 16:21:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-api-basepoint-unable-to-access-parameter-info-of/m-p/9348826#M36299</guid>
      <dc:creator>Dan_Mapes</dc:creator>
      <dc:date>2020-02-28T16:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Revit 2020 API BasePoint  - Unable to access parameter info of linked models</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-api-basepoint-unable-to-access-parameter-info-of/m-p/9375743#M36300</link>
      <description>&lt;P&gt;I have same issue with you. Did you solve it?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 03:43:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-api-basepoint-unable-to-access-parameter-info-of/m-p/9375743#M36300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-13T03:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Revit 2020 API BasePoint  - Unable to access parameter info of linked models</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-api-basepoint-unable-to-access-parameter-info-of/m-p/9543231#M36301</link>
      <description>&lt;P&gt;No I still have not found a solution to this.&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 13:51:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-api-basepoint-unable-to-access-parameter-info-of/m-p/9543231#M36301</guid>
      <dc:creator>Dan_Mapes</dc:creator>
      <dc:date>2020-05-27T13:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Revit 2020 API BasePoint  - Unable to access parameter info of linked models</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-api-basepoint-unable-to-access-parameter-info-of/m-p/9543539#M36302</link>
      <description>&lt;P&gt;try to use this instead:&lt;/P&gt;&lt;P&gt;.Basepoint[0]&lt;/P&gt;&lt;P&gt;Or better :&lt;/P&gt;&lt;P&gt;BuiltInCategory.OST_ProjectBasePoint&lt;/P&gt;&lt;P&gt;BuiltInCategory.OST_SharedBasePoint&lt;/P&gt;&lt;P&gt;if you use .Basepoint, you will get a list of points (project and shared)&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 15:21:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-api-basepoint-unable-to-access-parameter-info-of/m-p/9543539#M36302</guid>
      <dc:creator>Yien_Chao</dc:creator>
      <dc:date>2020-05-27T15:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Revit 2020 API BasePoint  - Unable to access parameter info of linked models</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-api-basepoint-unable-to-access-parameter-info-of/m-p/9543649#M36303</link>
      <description>&lt;P&gt;You can use static methods:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BasePoint.GetProjectBasePoint(Document)&lt;/P&gt;&lt;P&gt;BasePoint.GetSurveyPoint(Document)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BasePoint class also has the following related properties:&lt;/P&gt;&lt;P&gt;Position&lt;/P&gt;&lt;P&gt;SharedPosition&lt;/P&gt;&lt;P&gt;IsShared&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What you'll find is that instances of BasePoint with category OST_ProjectBasePoint do not have the following parameters attached if they are from a linked document:&lt;/P&gt;&lt;P&gt;BuiltInParameter.BASEPOINT_NORTHSOUTH_PARAM&lt;/P&gt;&lt;P&gt;BuiltInParameter.BASEPOINT_EASTWEST_PARAM&lt;/P&gt;&lt;P&gt;BuiltInParameter.BASEPOINT_ELEVATION_PARAM&lt;/P&gt;&lt;P&gt;BuiltInParameter.BASEPOINT_ANGLETON_PARAM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know the reason for that but I also don't know what bearing these things have on how the link is orientated in the host project? You could have an infinite number of positions for project base point in a link project but still achieve the same relative position between the link and it's host.&amp;nbsp; Maybe it is important for IFC, I don't know. I've worked on project where I set project north 180 degrees opposite from the architect's project north (as that was the elevation more relevant to us) in the end the links still came together in the correct position and orientation using shared coordinates. Also important to remember that there is an active site and same link type can be placed in multiple alternate locations, so I don't know how that relates to your intended task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 16:03:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-api-basepoint-unable-to-access-parameter-info-of/m-p/9543649#M36303</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2020-05-27T16:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Revit 2020 API BasePoint  - Unable to access parameter info of linked models</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-api-basepoint-unable-to-access-parameter-info-of/m-p/9543704#M36304</link>
      <description>&lt;P&gt;In Revit 2020 a third BasePoint exists: BuiltinCategory.OST_IOS_GeoSite in addition to the 2 others categories mentioned by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2591481"&gt;@Yien_Chao&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This third point, IsShared property = False, and doesn't have the BuiltinParameter.BASEPOINT_ANGLETON_PARAM.&lt;/P&gt;&lt;P&gt;There isn't a break in the second loop, so the retrieved BasePoint variable is overwritten by the third basepoint.&lt;/P&gt;&lt;P&gt;Stop the loop as soon as the BasePoint is retrieved OR compare against the BuiltinCategory value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Michel&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 16:12:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-api-basepoint-unable-to-access-parameter-info-of/m-p/9543704#M36304</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2020-05-27T16:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Revit 2020 API BasePoint  - Unable to access parameter info of linked models</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-api-basepoint-unable-to-access-parameter-info-of/m-p/9829355#M36305</link>
      <description>&lt;P&gt;Did anyone solve this?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 10:04:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-api-basepoint-unable-to-access-parameter-info-of/m-p/9829355#M36305</guid>
      <dc:creator>moj</dc:creator>
      <dc:date>2020-10-28T10:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Revit 2020 API BasePoint  - Unable to access parameter info of linked models</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-api-basepoint-unable-to-access-parameter-info-of/m-p/9842560#M36306</link>
      <description>&lt;P&gt;I solved it this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// Get the current project location
ProjectLocation currentLocation = m_selectedLinkedDocument.ActiveProjectLocation;

// Create a 0,0,0 origin
XYZ origin = new XYZ();

// Get the project position
ProjectPosition projectPosition = currentLocation.GetProjectPosition(origin);

// Get the Project Base Point parameters
double northSouth = projectPosition.NorthSouth;
double eastWest = projectPosition.EastWest;
double elevation = projectPosition.Elevation;
double trueNorth = projectPosition.Angle;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 03 Nov 2020 13:22:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-api-basepoint-unable-to-access-parameter-info-of/m-p/9842560#M36306</guid>
      <dc:creator>moj</dc:creator>
      <dc:date>2020-11-03T13:22:49Z</dc:date>
    </item>
  </channel>
</rss>

