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

Changing MLeaderStyle - annotation scale.

2 REPLIES 2
Reply
Message 1 of 3
Ertqwa
365 Views, 2 Replies

Changing MLeaderStyle - annotation scale.

Hello Forum,

 

I have code that changes the MLeaderStyle property of a MLeader object.

When I run the code, the current annotation scale is added to the MLeader and set as current. I don't want this to happen, but this happens automatically.

 

Any idea what could cause this?

 

Code:

 

MLeader objMLeader;
DBDictionary dbdMLStyles;
string strMLeaderStyleNew;
...
objMLeader.UpgradeOpen();
objMLeader.MLeaderStyle = (ObjectId)dbdMLStyles[strMLeaderStyleNew];
objMLeader.DowngradeOpen();

 

Thank you.

 

 

2 REPLIES 2
Message 2 of 3
Hallex
in reply to: Ertqwa

Then digg dipper to this article:Thanks to Kean Walmsley

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 3 of 3
Ertqwa
in reply to: Hallex

Hello,

 

The article did not solve my problem.

 

Until I find out what the problem is,  I will check if the current annotation scale is assigned to the object before I edit it. If not, remove it afterwards.

 

Ty for the reply.

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