<?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: How to access normalizedCurveParameter of a referencePoint, on a curve ? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-access-normalizedcurveparameter-of-a-referencepoint-on-a/m-p/8769745#M42640</link>
    <description>&lt;P&gt;If I understand correctly you want to be able to retrieve the NormalizedCurveParameter for the reference points hosted on ReferenceCurves....&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did a little research using 'Revit Lookup' tool and this seems to be what you should do:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ReferencePoint refPoint;  //However you want to retrieve the point
PointElementReference pReference = refPoint.GetPointElementReference();
if (pReference is PointOnEdge)
{
     PointOnEdge pointOnEdge = pReference as PointOnEdge;
     double mValue = pointOnEdge.LocationOnCurve.MeasurementValue;
     PointOnCurveMeasurementType mType = pointOnEdge.LocationOnCurve.MeasurementType;
}&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/632918iA744E387982B4E5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="20.JPG" alt="20.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2019 15:15:20 GMT</pubDate>
    <dc:creator>BardiaJahan</dc:creator>
    <dc:date>2019-05-03T15:15:20Z</dc:date>
    <item>
      <title>How to access normalizedCurveParameter of a referencePoint, on a curve ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-access-normalizedcurveparameter-of-a-referencepoint-on-a/m-p/8768851#M42639</link>
      <description>&lt;P&gt;How to access normalizedCurveParameter of a referencePoint, on a curve ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any sample code will be a big help. The question looks simple, but I am not able to see the parameter “NormalizedCurveParameter” for referencePoint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Revit 2013 it was not accessible. Is it accessible now in Revit 2019 or 2020 ?&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 08:34:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-access-normalizedcurveparameter-of-a-referencepoint-on-a/m-p/8768851#M42639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-03T08:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to access normalizedCurveParameter of a referencePoint, on a curve ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-access-normalizedcurveparameter-of-a-referencepoint-on-a/m-p/8769745#M42640</link>
      <description>&lt;P&gt;If I understand correctly you want to be able to retrieve the NormalizedCurveParameter for the reference points hosted on ReferenceCurves....&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did a little research using 'Revit Lookup' tool and this seems to be what you should do:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ReferencePoint refPoint;  //However you want to retrieve the point
PointElementReference pReference = refPoint.GetPointElementReference();
if (pReference is PointOnEdge)
{
     PointOnEdge pointOnEdge = pReference as PointOnEdge;
     double mValue = pointOnEdge.LocationOnCurve.MeasurementValue;
     PointOnCurveMeasurementType mType = pointOnEdge.LocationOnCurve.MeasurementType;
}&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/632918iA744E387982B4E5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="20.JPG" alt="20.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 15:15:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-access-normalizedcurveparameter-of-a-referencepoint-on-a/m-p/8769745#M42640</guid>
      <dc:creator>BardiaJahan</dc:creator>
      <dc:date>2019-05-03T15:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to access normalizedCurveParameter of a referencePoint, on a curve ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-access-normalizedcurveparameter-of-a-referencepoint-on-a/m-p/8769990#M42641</link>
      <description>&lt;P&gt;Thanks for the nice explanation.&lt;/P&gt;
&lt;P&gt;Much appreciated!&lt;/P&gt;
&lt;P&gt;Name “PointOnEdge” is so confusing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was looking for “PointOnCurve”.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 17:25:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-access-normalizedcurveparameter-of-a-referencepoint-on-a/m-p/8769990#M42641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-03T17:25:04Z</dc:date>
    </item>
  </channel>
</rss>

