<?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 Revit 2016 api Create Dimension between Grid in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-revit-2016-api-create-dimension-between-grid/m-p/5985905#M68576</link>
    <description>&lt;P&gt;Dear cao2013,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you debugged your code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, please do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The answer is probably quite simple.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nobody but you can debug your code without a full and really minimal reproducible case to examine:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2016 07:01:02 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2016-01-13T07:01:02Z</dc:date>
    <item>
      <title>How to Revit 2016 api Create Dimension between Grid</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-revit-2016-api-create-dimension-between-grid/m-p/5971147#M68573</link>
      <description>&lt;P&gt;on Revit 2014,my program ok,but on Revit 2016，it's give me a error,I search web along time,have not find the Reason&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/209343i3E863FF4A0F1F409/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="8b728c5589d31173d2e4d40429940595.png" title="8b728c5589d31173d2e4d40429940595.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Main code&lt;BR /&gt;====================================&lt;BR /&gt;ReferenceArray refArray = new ReferenceArray();//分尺寸&lt;BR /&gt;foreach (ElementId e in eSet)&lt;BR /&gt;{&lt;BR /&gt;if (doc.GetElement(e).GetType() == typeof(Grid))&lt;BR /&gt;{&lt;BR /&gt;Grid gr = doc.GetElement(e) as Grid;&lt;BR /&gt;Curve cv = gr.Curve;&lt;BR /&gt;refArray.Append(cv.Reference);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;if (!doc.IsFamilyDocument)&lt;BR /&gt;{&lt;BR /&gt;doc.Create.NewDimension(doc.ActiveView, line, refArray);//分尺寸&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;doc.FamilyCreate.NewDimension(doc.ActiveView, line, refArray);//分尺寸&lt;BR /&gt;}&lt;BR /&gt;====================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 03:16:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-revit-2016-api-create-dimension-between-grid/m-p/5971147#M68573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-04T03:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to Revit 2016 api Create Dimension between Grid</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-revit-2016-api-create-dimension-between-grid/m-p/5971331#M68574</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how you create the "line" ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 08:22:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-revit-2016-api-create-dimension-between-grid/m-p/5971331#M68574</guid>
      <dc:creator>Charles.Piro</dc:creator>
      <dc:date>2016-01-04T08:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Revit 2016 api Create Dimension between Grid</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-revit-2016-api-create-dimension-between-grid/m-p/5971407#M68575</link>
      <description>&lt;P&gt;The "line"'s start point is pick a point(snap on a Grid point),end point&amp;nbsp;Calculation&amp;nbsp;by start point,Increasing along the X axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;thinks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 09:26:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-revit-2016-api-create-dimension-between-grid/m-p/5971407#M68575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-04T09:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to Revit 2016 api Create Dimension between Grid</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-revit-2016-api-create-dimension-between-grid/m-p/5985905#M68576</link>
      <description>&lt;P&gt;Dear cao2013,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you debugged your code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, please do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The answer is probably quite simple.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nobody but you can debug your code without a full and really minimal reproducible case to examine:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 07:01:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-revit-2016-api-create-dimension-between-grid/m-p/5985905#M68576</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-01-13T07:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Revit 2016 api Create Dimension between Grid</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-revit-2016-api-create-dimension-between-grid/m-p/6262089#M68577</link>
      <description>In 2016, get the grid reference for dimensioning like this&lt;BR /&gt;&lt;BR /&gt;Reference gridRef = null;&lt;BR /&gt;Options opt = new Options();&lt;BR /&gt;opt.ComputeReferences = true;&lt;BR /&gt;opt.IncludeNonVisibleObjects = true;&lt;BR /&gt;opt.View = doc.ActiveView;&lt;BR /&gt;foreach (GeometryObject obj in grid.get_Geometry(opt))&lt;BR /&gt;{&lt;BR /&gt;if (obj is Line)&lt;BR /&gt;{&lt;BR /&gt;Line line = obj as Line;&lt;BR /&gt;gridRef = line.Reference;&lt;BR /&gt;}&lt;BR /&gt;}</description>
      <pubDate>Sun, 10 Apr 2016 15:48:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-revit-2016-api-create-dimension-between-grid/m-p/6262089#M68577</guid>
      <dc:creator>boostyourbim</dc:creator>
      <dc:date>2016-04-10T15:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Revit 2016 api Create Dimension between Grid</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-revit-2016-api-create-dimension-between-grid/m-p/7967901#M68578</link>
      <description>&lt;P&gt;Great answer! Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Apr 2018 12:09:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-revit-2016-api-create-dimension-between-grid/m-p/7967901#M68578</guid>
      <dc:creator>dnenovMXKU9</dc:creator>
      <dc:date>2018-04-29T12:09:36Z</dc:date>
    </item>
  </channel>
</rss>

