.NET

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

RotatedDimension TextPosition changed after transaction commit

137 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 (127 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
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.