TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: mkweaver on February 19, 2009, 11:12:04 PM

Title: Programmatically set the annotation scale for an mview?
Post by: mkweaver on February 19, 2009, 11:12:04 PM
From a previous thread (http://www.theswamp.org/index.php?topic=22704.0 (http://www.theswamp.org/index.php?topic=22704.0)) I know how to tell if a viewport has an annotative scale set, and what that scale is.  Now, I need a way to change that annotative scale.  I suspect I can go into the viewport and set cannoscale, then do a zoom to match, but I would like to do it via active-x.  Can this be done?  If so, pointers would be appreciated.

Thanks,
Mike Weaver
Title: Re: Programmatically set the annotation scale for an mview?
Post by: T.Willey on February 26, 2009, 02:42:17 PM
This might help.  Post #25 has code attached.

[ http://forums.augi.com/showthread.php?t=70935 ]
Title: Re: Programmatically set the annotation scale for an mview?
Post by: mkweaver on February 26, 2009, 03:19:24 PM
Thanks for the link, Tim.  He's using the command function, which is where I ended up. Not my first choice, but it works, and I haven't been able to do any better.

Mike
Title: Re: Programmatically set the annotation scale for an mview?
Post by: T.Willey on February 26, 2009, 03:27:16 PM
Thanks for the link, Tim.  He's using the command function, which is where I ended up. Not my first choice, but it works, and I haven't been able to do any better.

Mike

I did some testing, and I could add the scale, but I couldn't show it as current.  I was thinking that you would have to delete the current scale, and then add the new one, but I didn't get around to that, work came up.  If I get around to testing my idea I'll let you know what I come up with.