.NET

Reply
New Member
uaandrei
Posts: 2
Registered: ‎05-22-2013
Message 1 of 2 (141 Views)
Accepted Solution

RotatedDimension TextPosition changed after transaction commit

141 Views, 1 Replies
05-23-2013 12:00 AM

I'm having a problem with RotatedDimension. I'm initializing it with some values and after I commit the transaction the value of TextPosition is changed. Any ideas why this is happening?

 

 

            using (var transaction = parentDoc.GetNewTransaction())
            {
		var rotatedDimension = new RotatedDimension();
		// ...
                rotatedDimension.TextPosition = textPosition.ToArxPoint3d();
                parentBtr.AppendEntity(rotatedDimension);
                transaction.AddNewlyCreatedDBObject(rotatedDimension, true);
                transaction.Commit();
            }
            return rotatedDimension;

 

In case you encountered something like this, the problem got solved by setting the DimLinePoint property instead of TextPosition.

New Member
uaandrei
Posts: 2
Registered: ‎05-22-2013
Message 2 of 2 (131 Views)

Re: RotatedDimension TextPosition changed after transaction commit

05-23-2013 03:12 AM in reply to: uaandrei

In case you encountered something like this, the problem got solved by setting the DimLinePoint property instead of TextPosition.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!