.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RotatedDimension TextPosition changed after transaction commit

1 REPLY 1
SOLVED
Reply
Message 1 of 2
uaandrei
402 Views, 1 Reply

RotatedDimension TextPosition changed after transaction commit

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;

 

1 REPLY 1
Message 2 of 2
uaandrei
in reply to: uaandrei

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost