<?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: Cannot retrieve geometry for an annotation symbol in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/cannot-retrieve-geometry-for-an-annotation-symbol/m-p/6521160#M70112</link>
    <description>&lt;P&gt;I have the same issue and I am trying to get a valid reference to a FamilyInstance in a family document to an annotation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;private static Result Align(Document famdoc, FamilyInstance f, ReferencePlane p, View v)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;try&lt;BR /&gt;&amp;nbsp; &amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Dimension d1 = famdoc.FamilyCreate.NewAlignment(v, Reference.ParseFromStableRepresentation(famdoc, f.UniqueId), p.GetReference());&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return Result.Succeeded;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp; &amp;nbsp;catch (Exception ex)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; MessageBox.Show(ex.ToString());&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return Result.Failed;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is this so hard? The only thing I want to do is that little click (see image - AlignmentClick.pgn).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Aug 2016 21:39:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-08-24T21:39:56Z</dc:date>
    <item>
      <title>Cannot retrieve geometry for an annotation symbol</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/cannot-retrieve-geometry-for-an-annotation-symbol/m-p/5848616#M70109</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been able to use get_geometry() to get GeometryObjects (and their references) from a FamilyInstance without to much trouble.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to get the GeometryObjects from within a AnnotationSymbol?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each time I bring in an AnnotationSymbol and use get_geometry() it returns null so I cannot use GetSymbolGeometry()&amp;nbsp;on an GeometryInstance because none exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code used so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;double ftMM = 1 / 304.8; // Feet to Millimetres

FamilyInstance connectedLoadInstance = doc.Create.NewFamilyInstance(new XYZ(0, 50, 0) * ftMM, connectedLoadFamily, draftView);

doc.Regenerate();

Options opt = new Options();
opt.ComputeReferences = true;
opt.IncludeNonVisibleObjects = true;
opt.View = doc.ActiveView;

connectedLoadInstance.get_geometry(opt); // This returns null&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The purpose of wanting the geometry inside the AnnotationSymbol is to use newAlignment() on the reference planes within them with a Detail Line in the currently project drafting view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can move the Generic Annotation into a Detail Item and use that to be able to do what I need since geo_geometry() gets the GeometryInstance correctly and I can use the center reference plane to do a newAlignment() fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way to get the GeometryObjects in an&amp;nbsp;AnnotationSymbol?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 07:19:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/cannot-retrieve-geometry-for-an-annotation-symbol/m-p/5848616#M70109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-07T07:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot retrieve geometry for an annotation symbol</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/cannot-retrieve-geometry-for-an-annotation-symbol/m-p/5848752#M70110</link>
      <description>Just a couple of things that came into my mind:&lt;BR /&gt;&lt;BR /&gt;1. Have you tried to commit the transaction after using NewFamilyInstance(). Now you do have Regenerate, but sometimes it might not be sufficient.&lt;BR /&gt;2. Have you checked corresponding element with lookup tool? From there you are able to see the geometry structure, if there's one.</description>
      <pubDate>Wed, 07 Oct 2015 09:03:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/cannot-retrieve-geometry-for-an-annotation-symbol/m-p/5848752#M70110</guid>
      <dc:creator>ollikat</dc:creator>
      <dc:date>2015-10-07T09:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot retrieve geometry for an annotation symbol</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/cannot-retrieve-geometry-for-an-annotation-symbol/m-p/5848826#M70111</link>
      <description>&lt;P&gt;Both these paths produced the same issue, commiting the transation and then using the get_geometry still produced a null GeometryElement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used the revitLoopUp Add-in and it shows all the geometry is there (lines, solids, etc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Weird thing is I can use the get_OriginalGeometry() and it will return the geometry, but that method won't allow references to be obtained.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 10:10:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/cannot-retrieve-geometry-for-an-annotation-symbol/m-p/5848826#M70111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-07T10:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot retrieve geometry for an annotation symbol</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/cannot-retrieve-geometry-for-an-annotation-symbol/m-p/6521160#M70112</link>
      <description>&lt;P&gt;I have the same issue and I am trying to get a valid reference to a FamilyInstance in a family document to an annotation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;private static Result Align(Document famdoc, FamilyInstance f, ReferencePlane p, View v)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;try&lt;BR /&gt;&amp;nbsp; &amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Dimension d1 = famdoc.FamilyCreate.NewAlignment(v, Reference.ParseFromStableRepresentation(famdoc, f.UniqueId), p.GetReference());&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return Result.Succeeded;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp; &amp;nbsp;catch (Exception ex)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; MessageBox.Show(ex.ToString());&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return Result.Failed;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is this so hard? The only thing I want to do is that little click (see image - AlignmentClick.pgn).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 21:39:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/cannot-retrieve-geometry-for-an-annotation-symbol/m-p/6521160#M70112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-24T21:39:56Z</dc:date>
    </item>
  </channel>
</rss>

