silviu Posted January 12, 2009 Posted January 12, 2009 hello, how can i create a toggle button? i want to toggle between options/drafting/replace z value... on/off , and i want to know when i am on and when i am off. thank you Quote
chulse Posted January 12, 2009 Posted January 12, 2009 look in the lower right - by the command line. I think there should be one there already Quote
silviu Posted January 12, 2009 Author Posted January 12, 2009 i am using autocad map 3d 2009. in the lower right i have the following: model; quick view layouts; quick view drawings; pan;zoom;wheel;showmotion;workspace switching;toolbar position (un)locked;clear screen. on the lower left i have the following: snap mode; grid display;orthomode;polar tracking;object snap; osnap tracking; dynamic ucs; dynamic input; show/hide lineweight; quick properties. that's it. i am not able to find the toggle button you said, i'm sorry . also do you know how to create a new toggle button? thank you for your quick answare . Quote
chulse Posted January 13, 2009 Posted January 13, 2009 i am using autocad map 3d 2009. in the lower right i have the following: model; quick view layouts; quick view drawings; pan;zoom;wheel;showmotion;workspace switching;toolbar position (un)locked;clear screen. on the lower left i have the following: snap mode; grid display;orthomode;polar tracking;object snap; osnap tracking; dynamic ucs; dynamic input; show/hide lineweight; quick properties. that's it. i am not able to find the toggle button you said, i'm sorry . also do you know how to create a new toggle button? thank you for your quick answare . Ok - looks like they took that off in '09 (it was there in '09 ) Well, here is the macro I came up with to toggle the OSNAPZ setting: ^C^C$M=$(if,$(=,$(getvar,OSNAPZ),1),OSNAPZ 0;,OSNAPZ 1;)^Z just apply this to a new toolbar button Quote
MaxwellEdison Posted January 13, 2009 Posted January 13, 2009 Ok - looks like they took that off in '09 (it was there in '09 ) ...What? As far as replace Z goes, On my 2009 vertical it is on the lower right, however it does not show up in any of the options for the application status bar menu (thats what the tooltip calls it anyway), so if it was somehow removed from the display I have no idea how to return it. Quote
chulse Posted January 13, 2009 Posted January 13, 2009 ...What? As far as replace Z goes, On my 2009 vertical it is on the lower right, however it does not show up in any of the options for the application status bar menu (thats what the tooltip calls it anyway), so if it was somehow removed from the display I have no idea how to return it. It was there in LDD '08, but I don't see it in C3D '09... Not sure where i might find it....but my toggle works (or just use that old command line thing!):wink: Quote
silviu Posted January 13, 2009 Author Posted January 13, 2009 Ok - looks like they took that off in '09 (it was there in '09 ) Well, here is the macro I came up with to toggle the OSNAPZ setting: ^C^C$M=$(if,$(=,$(getvar,OSNAPZ),1),OSNAPZ 0;,OSNAPZ 1;)^Z just apply this to a new toolbar button thanks a lot my friend! is there a little bit of a problem. the button works just fine, but i don.t know when it's on and when it's off. is there something that can be done? thank you for your support Quote
chulse Posted January 13, 2009 Posted January 13, 2009 thanks a lot my friend! is there a little bit of a problem. the button works just fine, but i don.t know when it's on and when it's off. is there something that can be done? thank you for your support It should display in the command line what it changes - just hit the button and watch the command line. Alternatively - you could set MODEMACRO to report the value if you wanted... Or use a FIELD in an MTEXT object to report the variable setting (I do this for several variables in my standard template file, on a noplot layer...) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.