<?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: No OrdinateDimension.setOrigin()? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/no-ordinatedimension-setorigin/m-p/6278003#M39507</link>
    <description>&lt;P&gt;&amp;gt; How can this be done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know the answer to this one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2016 22:33:03 GMT</pubDate>
    <dc:creator>BKSpurgeon</dc:creator>
    <dc:date>2016-04-18T22:33:03Z</dc:date>
    <item>
      <title>No OrdinateDimension.setOrigin()?</title>
      <link>https://forums.autodesk.com/t5/net-forum/no-ordinatedimension-setorigin/m-p/5691557#M39506</link>
      <description>&lt;P&gt;I have associative ordinate dimensions attached to a dynamic block which changes in size and position. &amp;nbsp;When the block is changed,&amp;nbsp;the positions of the leaders are updated correctly, but the origin for the ordinate dimensions is not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The arx class for ordinate dimensions has a method for moving the origin ( AcDbOrdinateDimension.setOrigin() ), but the 2015 OrdinateDimension class does not. &amp;nbsp;The OrdinateDimension.Origin property is read/write but actually writing a value to it appears to do nothing, so I'm out of ideas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can this be done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On a side note, why doesn't the managed class reference guide contain any info on the OrdinateDimension class?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2015 14:56:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/no-ordinatedimension-setorigin/m-p/5691557#M39506</guid>
      <dc:creator>jacofiero</dc:creator>
      <dc:date>2015-06-24T14:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: No OrdinateDimension.setOrigin()?</title>
      <link>https://forums.autodesk.com/t5/net-forum/no-ordinatedimension-setorigin/m-p/6278003#M39507</link>
      <description>&lt;P&gt;&amp;gt; How can this be done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know the answer to this one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 22:33:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/no-ordinatedimension-setorigin/m-p/6278003#M39507</guid>
      <dc:creator>BKSpurgeon</dc:creator>
      <dc:date>2016-04-18T22:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: No OrdinateDimension.setOrigin()?</title>
      <link>https://forums.autodesk.com/t5/net-forum/no-ordinatedimension-setorigin/m-p/6278045#M39508</link>
      <description>&lt;PRE&gt;        [CommandMethod("CreateOrdinateDimension")]
        public static void CreateOrdinateDimension()
        {
            // Get the current database
            Document acDoc = Application.DocumentManager.MdiActiveDocument;
            Database acCurDb = acDoc.Database;

            // Start a transaction
            using (Transaction acTrans = acCurDb.TransactionManager.StartTransaction())
            {
                // Open the Block table for read
                BlockTable acBlkTbl;
                acBlkTbl = acTrans.GetObject(acCurDb.BlockTableId,
                                                OpenMode.ForRead) as BlockTable;

                // Open the Block table record Model space for write
                BlockTableRecord acBlkTblRec;
                acBlkTblRec = acTrans.GetObject(acBlkTbl[BlockTableRecord.ModelSpace],
                                                OpenMode.ForWrite) as BlockTableRecord;

                // Create an ordinate dimension
                using (OrdinateDimension acOrdDim = new OrdinateDimension())
                {
                    acOrdDim.UsingXAxis = true;
                    acOrdDim.Origin = new Point3d(5,5, 0);
                 
                    acOrdDim.DefiningPoint = new Point3d(100, 100, 0);
                    acOrdDim.LeaderEndPoint = new Point3d(200, 50, 0);
                    acOrdDim.DimensionStyle = acCurDb.Dimstyle;

                    // Add the new object to Model space and the transaction
                    acBlkTblRec.AppendEntity(acOrdDim);
                    acTrans.AddNewlyCreatedDBObject(acOrdDim, true);
                }

                using (OrdinateDimension acOrdDim = new OrdinateDimension())
                {
                    acOrdDim.UsingXAxis = true;
                    acOrdDim.Origin = new Point3d(50, 50, 50);
                    acOrdDim.DefiningPoint = new Point3d(100, 100, 0);
                    acOrdDim.LeaderEndPoint = new Point3d(450, 50, 0);
                    acOrdDim.DimensionStyle = acCurDb.Dimstyle;

                    // Add the new object to Model space and the transaction
                    acBlkTblRec.AppendEntity(acOrdDim);
                    acTrans.AddNewlyCreatedDBObject(acOrdDim, true);
                }

                // Commit the changes and dispose of the transaction
                acTrans.Commit();
            }
        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changing the origin property of the ordinate dimension object seemed to work for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For those searching for the answer in the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 23:00:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/no-ordinatedimension-setorigin/m-p/6278045#M39508</guid>
      <dc:creator>BKSpurgeon</dc:creator>
      <dc:date>2016-04-18T23:00:40Z</dc:date>
    </item>
  </channel>
</rss>

