<?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: EndPointReference() in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/endpointreference/m-p/7133747#M57927</link>
    <description>&lt;P&gt;Thank you very much. Now was possible take the reference point.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2017 04:54:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-07T04:54:13Z</dc:date>
    <item>
      <title>EndPointReference()</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/endpointreference/m-p/7131328#M57925</link>
      <description>I am strugglying with a problem that is to access the reference of the end point of a pipe curve to then create a dimension in the model, by the method doc.Create.Dimension().I already tried to use the Curve.EndPointReference(int index) method but it returns only null value. Can anyone help how acess this information ?</description>
      <pubDate>Tue, 06 Jun 2017 10:26:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/endpointreference/m-p/7131328#M57925</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-06T10:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: EndPointReference()</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/endpointreference/m-p/7131513#M57926</link>
      <description>&lt;P&gt;You probably are using the LocationCurve to find the reference. You need to use the&amp;nbsp;"reference" Curve/Line that is part of the Element.Geometry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;			        Selection sel = this.ActiveUIDocument.Selection;
				Element elem = doc.GetElement(sel.GetElementIds().FirstOrDefault());
				Options opt = new Options();
				opt.ComputeReferences = true;
				opt.IncludeNonVisibleObjects = true;
				opt.View = doc.ActiveView;
				Reference ptRef =null;
				foreach( var geoObj in elem.get_Geometry(opt) )
				{
					Curve cv = geoObj as Curve;
					if (cv==null) continue;
					ptRef = cv.GetEndPointReference(0);
				}
				if (ptRef!=null)
				{
					TaskDialog.Show("debug",ptRef.ConvertToStableRepresentation(doc));
				}
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 11:51:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/endpointreference/m-p/7131513#M57926</guid>
      <dc:creator>FAIR59</dc:creator>
      <dc:date>2017-06-06T11:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: EndPointReference()</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/endpointreference/m-p/7133747#M57927</link>
      <description>&lt;P&gt;Thank you very much. Now was possible take the reference point.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 04:54:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/endpointreference/m-p/7133747#M57927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-07T04:54:13Z</dc:date>
    </item>
  </channel>
</rss>

