<?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 How to get Project Base Point in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3265986#M81161</link>
    <description>&lt;P&gt;Is there a way to get the project Base Point, and if so, how? I can get the Project Location, but I need the base point (N/S, E/W, Elevation, Angle from North).&lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2011 17:06:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-12-16T17:06:20Z</dc:date>
    <item>
      <title>How to get Project Base Point</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3265986#M81161</link>
      <description>&lt;P&gt;Is there a way to get the project Base Point, and if so, how? I can get the Project Location, but I need the base point (N/S, E/W, Elevation, Angle from North).&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2011 17:06:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3265986#M81161</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-16T17:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Project Base Point</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3266038#M81162</link>
      <description>&lt;P&gt;I should clarify that I want to do this in Revit 2011.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2011 17:50:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3266038#M81162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-16T17:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Project Base Point</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3299737#M81163</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you figured this out yet? I need the same for 2012.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 18:46:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3299737#M81163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-19T18:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Project Base Point</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3299849#M81164</link>
      <description>&lt;P&gt;I found it in the elements.&lt;/P&gt;&lt;P&gt;There were two in my project -&amp;nbsp;used Category.Name&amp;nbsp;== "Project Base Point" to get the one I needed.&lt;/P&gt;&lt;P&gt;"E/W", "N/S", "Elev" and "Angle to True North" are in the ParametersMap.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 19:58:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3299849#M81164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-19T19:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Project Base Point</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3455052#M81165</link>
      <description>&lt;P&gt;Can you elaborate on how you got access to the project &amp;nbsp;base point?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 May 2012 21:43:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3455052#M81165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-12T21:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Project Base Point</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3658420#M81166</link>
      <description>&lt;P&gt;I know this post is a few months old now but here is the code that i have used to get the Project Base Point:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ElementCategoryFilter siteCategoryfilter = new ElementCategoryFilter(BuiltInCategory.OST_ProjectBasePoint);

FilteredElementCollector collector = new FilteredElementCollector(doc);
IList&amp;lt;Element&amp;gt; siteElements = collector.WherePasses(siteCategoryfilter).ToElements();

foreach (Element ele in siteElements)
{
    Parameter paramX = ele.ParametersMap.get_Item("E/W");
    double X = paramX.AsDouble();

    Parameter paramY = ele.ParametersMap.get_Item("N/S");
    double Y = paramY.AsDouble();

    Parameter paramElev = ele.ParametersMap.get_Item("Elev");
    double Elev = paramElev.AsDouble();

    XYZ projectBasePoint = new XYZ(X, Y, Elev);
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Oct 2012 13:50:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3658420#M81166</guid>
      <dc:creator>grahamcook</dc:creator>
      <dc:date>2012-10-13T13:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Project Base Point</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3659252#M81167</link>
      <description>&lt;P&gt;Dear grahamcook,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as far as I see, it would be better to adress parameters language independent.&lt;/P&gt;&lt;P&gt;In my German Revit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Parameter paramX = ele.ParametersMap.get_Item("E/W"); wouldn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So one could better use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Parameter paramX = ele.ParametersMap.get_Item(BuiltInParameter.BASEPOINT_EASTWEST_PARAM);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Analogously, there is BASEPOINT_NORTHSOUTH_PARAM for "N/S" and BASEPOINT_ELEVATION_PARAM for the elevation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2012 08:30:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3659252#M81167</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2012-10-15T08:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Project Base Point</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3659254#M81168</link>
      <description>&lt;P&gt;Good spot.&amp;nbsp; Thanks for improving that.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2012 08:42:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3659254#M81168</guid>
      <dc:creator>grahamcook</dc:creator>
      <dc:date>2012-10-15T08:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Project Base Point</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3659264#M81169</link>
      <description>&lt;P&gt;Hi Graham,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this is an important point that should be added to nearly every topic that is about getting parameters.&lt;/P&gt;&lt;P&gt;Since there is an international audience in this forum, localization may matter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2012 08:50:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3659264#M81169</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2012-10-15T08:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Project Base Point</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3659294#M81170</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-GB; mso-fareast-language: EN-GB; mso-bidi-language: AR-SA;"&gt;Just updated my routines to include the BuiltInParameters as suggested.&amp;nbsp; Had to slightly amend the parameter call&amp;nbsp;given that get_Item cannot&amp;nbsp;take a BuiltInParameter:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-GB; mso-fareast-language: EN-GB; mso-bidi-language: AR-SA;"&gt;Parameter paramX = element.get_Parameter(BuiltInParameter.BASEPOINT_EASTWEST_PARAM);&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2012 09:18:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3659294#M81170</guid>
      <dc:creator>grahamcook</dc:creator>
      <dc:date>2012-10-15T09:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Project Base Point</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3659300#M81171</link>
      <description>&lt;P&gt;Hi Graham,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I usually use element.get_Parameter() instead of element.parametersmap.get_Item().&lt;/P&gt;&lt;P&gt;Parametersmap.get_Item() needs a key string since ParametersMap is a dictionary or hashtable.&lt;/P&gt;&lt;P&gt;get_Parameter() overload accepts both a string value and the BuitInParameter enumeration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To adress parameters "in the international way", I would advice to use the last one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2012 09:30:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/3659300#M81171</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2012-10-15T09:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Project Base Point</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/10691335#M81172</link>
      <description>&lt;P&gt;There have been many updates to the Revit API since this post so the following code could be used where doc is a Document class:&lt;/P&gt;&lt;P&gt;XYZ projectBasePoint = new XYZ();&lt;BR /&gt;projectBasePoint = BasePoint.GetProjectBasePoint(doc).Position;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 16:41:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-project-base-point/m-p/10691335#M81172</guid>
      <dc:creator>dkessler</dc:creator>
      <dc:date>2021-10-15T16:41:56Z</dc:date>
    </item>
  </channel>
</rss>

