pbrumberg
2007-05-31, 06:28 PM
Prior to 2008's annotative features, we used one dimension style and used a set of toolbar buttons on a flyout to choose the drawings scale (which would in turn change a number of variables including the dimscale). We're trying to make the switch to annotative. I still need (at least in the interim) to be able to set the other variables as they affect how blocks are inserted, the ltscale, etc. But I don't want users to have to set the annotative scale at the bottom of the screen AND choose the correct scale from the toolbar flyout. I think the switch is going to be confusing enough for the users, let along if I make it more confusing by making them go through two steps to set their drafting scale.
The problem is I can't figure out how to set cannoscale using a toolbar due to the inch mark in each name. For example to set to 3/4" = 1'-0" scale you would need to do something like (setvar "cannoscale" "3/4" = 1'-0""), but if you try that you get the "too many arguments" error. If you add a backslash in front of the two inch marks, it makes an odd looking character and the lisp works (if you type it at command prompt), but if you take that same concept into the cui editor and add it in a toolbar button the lisp fails.
Can anyone help me out? I guess I could always remake the scales list to eliminate the inch marks in the names, but I really like the definitive scale names as AutoCAD has them set out of the box. I'd really like to avoid changing the scales to something dumbed down like "3/4in=1ft0in" or just "3/4".
ALSO - while I'm at it. Our old method used dimscale to insert a number of different items. Is there a way for me to continue to set a dimscale even though I'm using a dimension style set to annotative scaling? If I can't set a dimscale while using an dimstyle set to annotative scaling it will force me to reset all of my inserts and lisp routines which use dimscale to point to another variable (which I can easily define using the scale flyout).
EDIT: Keep in mind, AutoCAD out of the box uses dimscale as an option for scale in the hatch tool palette. We use it as well for our hatch patterns. This is another place where not being able to set a dimscale will be detrimental.
MODS - if you think this would be better served in the lisp forum, please feel free to move it.
The problem is I can't figure out how to set cannoscale using a toolbar due to the inch mark in each name. For example to set to 3/4" = 1'-0" scale you would need to do something like (setvar "cannoscale" "3/4" = 1'-0""), but if you try that you get the "too many arguments" error. If you add a backslash in front of the two inch marks, it makes an odd looking character and the lisp works (if you type it at command prompt), but if you take that same concept into the cui editor and add it in a toolbar button the lisp fails.
Can anyone help me out? I guess I could always remake the scales list to eliminate the inch marks in the names, but I really like the definitive scale names as AutoCAD has them set out of the box. I'd really like to avoid changing the scales to something dumbed down like "3/4in=1ft0in" or just "3/4".
ALSO - while I'm at it. Our old method used dimscale to insert a number of different items. Is there a way for me to continue to set a dimscale even though I'm using a dimension style set to annotative scaling? If I can't set a dimscale while using an dimstyle set to annotative scaling it will force me to reset all of my inserts and lisp routines which use dimscale to point to another variable (which I can easily define using the scale flyout).
EDIT: Keep in mind, AutoCAD out of the box uses dimscale as an option for scale in the hatch tool palette. We use it as well for our hatch patterns. This is another place where not being able to set a dimscale will be detrimental.
MODS - if you think this would be better served in the lisp forum, please feel free to move it.