<?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: rotateddimension bug in 2006 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/rotateddimension-bug-in-2006/m-p/1334706#M84921</link>
    <description>thanks albert ,&lt;BR /&gt;
my code is :                &lt;BR /&gt;
RotatedDimension rd = new RotatedDimension();&lt;BR /&gt;
                rd.XLine1Point = startPoint;&lt;BR /&gt;
                rd.XLine2Point = endPoint;&lt;BR /&gt;
                rd.DimLinePoint = locPoint;&lt;BR /&gt;
                //rd.Rotation = rotation; // this line will cause fatal error&lt;BR /&gt;
                ObjectId id = Tools.AddEntity(rd);&lt;BR /&gt;
addentity is a function of my  tools class&lt;BR /&gt;
      public static ObjectId AddEntity(Entity ent)&lt;BR /&gt;
        {&lt;BR /&gt;
            try&lt;BR /&gt;
            {&lt;BR /&gt;
                using (Transaction trans = Tm.StartTransaction())&lt;BR /&gt;
                {&lt;BR /&gt;
                            BlockTable bt = (BlockTable)Tm.GetObject(Db.BlockTableId, OpenMode.ForWrite, false);&lt;BR /&gt;
                            BlockTableRecord btr = BlockTableRecord)Tm.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite, false);&lt;BR /&gt;
                    btr.AppendEntity(ent);&lt;BR /&gt;
                    Tm.AddNewlyCreatedDBObject(ent, true);&lt;BR /&gt;
                    trans.Commit();&lt;BR /&gt;
&lt;BR /&gt;
                    return ent.ObjectId;&lt;BR /&gt;
                }&lt;BR /&gt;
&lt;BR /&gt;
            }&lt;BR /&gt;
            catch (System.Exception e)&lt;BR /&gt;
            {&lt;BR /&gt;
                throw e;&lt;BR /&gt;
            }&lt;BR /&gt;
        }</description>
    <pubDate>Wed, 25 May 2005 00:43:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-05-25T00:43:13Z</dc:date>
    <item>
      <title>rotateddimension bug in 2006</title>
      <link>https://forums.autodesk.com/t5/net-forum/rotateddimension-bug-in-2006/m-p/1334704#M84919</link>
      <description>I use c# 2005 beta2 and  to develop autocad 2006, I want to get a rotateddimension, but  when I create a rotateddimension in 2006 , I got a aligneddimension. and the rotation property of roteddimension can't be set and read, it will cause a fatal error.</description>
      <pubDate>Tue, 24 May 2005 10:50:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/rotateddimension-bug-in-2006/m-p/1334704#M84919</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-24T10:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: rotateddimension bug in 2006</title>
      <link>https://forums.autodesk.com/t5/net-forum/rotateddimension-bug-in-2006/m-p/1334705#M84920</link>
      <description>Can you please post some code that shows the problem? Thanks,&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;NETCAI&gt; wrote in message news:4854215@discussion.autodesk.com...&lt;BR /&gt;
I use c# 2005 beta2 and  to develop autocad 2006, I want to get a &lt;BR /&gt;
rotateddimension, but  when I create a rotateddimension in 2006 , I got a &lt;BR /&gt;
aligneddimension. and the rotation property of roteddimension can't be set &lt;BR /&gt;
and read, it will cause a fatal error.&lt;/NETCAI&gt;</description>
      <pubDate>Tue, 24 May 2005 17:47:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/rotateddimension-bug-in-2006/m-p/1334705#M84920</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-24T17:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: rotateddimension bug in 2006</title>
      <link>https://forums.autodesk.com/t5/net-forum/rotateddimension-bug-in-2006/m-p/1334706#M84921</link>
      <description>thanks albert ,&lt;BR /&gt;
my code is :                &lt;BR /&gt;
RotatedDimension rd = new RotatedDimension();&lt;BR /&gt;
                rd.XLine1Point = startPoint;&lt;BR /&gt;
                rd.XLine2Point = endPoint;&lt;BR /&gt;
                rd.DimLinePoint = locPoint;&lt;BR /&gt;
                //rd.Rotation = rotation; // this line will cause fatal error&lt;BR /&gt;
                ObjectId id = Tools.AddEntity(rd);&lt;BR /&gt;
addentity is a function of my  tools class&lt;BR /&gt;
      public static ObjectId AddEntity(Entity ent)&lt;BR /&gt;
        {&lt;BR /&gt;
            try&lt;BR /&gt;
            {&lt;BR /&gt;
                using (Transaction trans = Tm.StartTransaction())&lt;BR /&gt;
                {&lt;BR /&gt;
                            BlockTable bt = (BlockTable)Tm.GetObject(Db.BlockTableId, OpenMode.ForWrite, false);&lt;BR /&gt;
                            BlockTableRecord btr = BlockTableRecord)Tm.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite, false);&lt;BR /&gt;
                    btr.AppendEntity(ent);&lt;BR /&gt;
                    Tm.AddNewlyCreatedDBObject(ent, true);&lt;BR /&gt;
                    trans.Commit();&lt;BR /&gt;
&lt;BR /&gt;
                    return ent.ObjectId;&lt;BR /&gt;
                }&lt;BR /&gt;
&lt;BR /&gt;
            }&lt;BR /&gt;
            catch (System.Exception e)&lt;BR /&gt;
            {&lt;BR /&gt;
                throw e;&lt;BR /&gt;
            }&lt;BR /&gt;
        }</description>
      <pubDate>Wed, 25 May 2005 00:43:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/rotateddimension-bug-in-2006/m-p/1334706#M84921</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-25T00:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: rotateddimension bug in 2006</title>
      <link>https://forums.autodesk.com/t5/net-forum/rotateddimension-bug-in-2006/m-p/1334707#M84922</link>
      <description>I see. The default constructor is broken. Use the other constructor like &lt;BR /&gt;
this:&lt;BR /&gt;
RotatedDimension rd = new RotatedDimension(1.2,new Point3d(0,0,0),new &lt;BR /&gt;
Point3d(1,0,0),new Point3d(1,1,1),"some text",ObjectId.Null);&lt;BR /&gt;
&lt;BR /&gt;
Sorry about the inconvenience. I see to it that we fix this for the next &lt;BR /&gt;
release.&lt;BR /&gt;
&lt;BR /&gt;
albert&lt;BR /&gt;
&lt;BR /&gt;
&lt;NETCAI&gt; wrote in message news:4855391@discussion.autodesk.com...&lt;BR /&gt;
thanks albert ,&lt;BR /&gt;
my code is :&lt;BR /&gt;
RotatedDimension rd = new RotatedDimension();&lt;BR /&gt;
                rd.XLine1Point = startPoint;&lt;BR /&gt;
                rd.XLine2Point = endPoint;&lt;BR /&gt;
                rd.DimLinePoint = locPoint;&lt;BR /&gt;
                //rd.Rotation = rotation; // this line will cause fatal &lt;BR /&gt;
error&lt;BR /&gt;
                ObjectId id = Tools.AddEntity(rd);&lt;BR /&gt;
addentity is a function of my  tools class&lt;BR /&gt;
      public static ObjectId AddEntity(Entity ent)&lt;BR /&gt;
        {&lt;BR /&gt;
            try&lt;BR /&gt;
            {&lt;BR /&gt;
                using (Transaction trans = Tm.StartTransaction())&lt;BR /&gt;
                {&lt;BR /&gt;
                            BlockTable bt = &lt;BR /&gt;
(BlockTable)Tm.GetObject(Db.BlockTableId, OpenMode.ForWrite, false);&lt;BR /&gt;
                            BlockTableRecord btr = &lt;BR /&gt;
BlockTableRecord)Tm.GetObject(bt[BlockTableRecord.ModelSpace], &lt;BR /&gt;
OpenMode.ForWrite, false);&lt;BR /&gt;
                    btr.AppendEntity(ent);&lt;BR /&gt;
                    Tm.AddNewlyCreatedDBObject(ent, true);&lt;BR /&gt;
                    trans.Commit();&lt;BR /&gt;
&lt;BR /&gt;
                    return ent.ObjectId;&lt;BR /&gt;
                }&lt;BR /&gt;
&lt;BR /&gt;
            }&lt;BR /&gt;
            catch (System.Exception e)&lt;BR /&gt;
            {&lt;BR /&gt;
                throw e;&lt;BR /&gt;
            }&lt;BR /&gt;
        }&lt;/NETCAI&gt;</description>
      <pubDate>Wed, 25 May 2005 05:25:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/rotateddimension-bug-in-2006/m-p/1334707#M84922</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-25T05:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: rotateddimension bug in 2006</title>
      <link>https://forums.autodesk.com/t5/net-forum/rotateddimension-bug-in-2006/m-p/1334708#M84923</link>
      <description>thanks.</description>
      <pubDate>Wed, 25 May 2005 07:26:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/rotateddimension-bug-in-2006/m-p/1334708#M84923</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-25T07:26:32Z</dc:date>
    </item>
  </channel>
</rss>

