.NET

.NET

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

RotatedDimension TextPosition changed after transaction commit

143 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 (133 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
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.