.NET

Reply
*Expert Elite*
6,207 Posts
173 Kudos
Registered: ‎11-18-2006
Post 11 of 13

Re: Associative MLeader using .NET

07-07-2008 07:22 PM in reply to: *Gagan Gajabaharia
Well, as an interesting data point, if I try to run Kean's code in Civil-3D 2008, I get the same results that he does. It's only when I try to run it in Civil-3D 2009 that the leaders only come out the left side.
Sinc
*Expert Elite*
6,207 Posts
173 Kudos
Registered: ‎11-18-2006
Post 12 of 13

Re: Associative MLeader using .NET

07-08-2008 05:20 AM in reply to: *Gagan Gajabaharia
Sure enough, Kean had the answer.

The MLeader works differently in the 2009 series of products. Include this line as the last step, after creating the MLeader and just before committing the transaction:

mld.MoveMLeader(new Vector3d(), MoveType.MoveAllPoints);

Since it uses a 0 vector, this doesn't actually move the MLeader, but it forces the geometry to be recalculated.
Sinc
Active Contributor
27 Posts
0 Kudos
Registered: ‎03-30-2006
Post 13 of 13

Re: Associative MLeader using .NET

07-08-2008 05:22 AM in reply to: *Gagan Gajabaharia
Good to hear the resolution.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!