PDA

View Full Version : Custom Toolbar Control Element



colin.chisholm89902
2005-12-27, 02:56 PM
Howdy ~

In AutoCAD 2006, I'm wondering if there is a way to create a custom toolbar control element that I can associate my own lisp/marcros with. For example, I'd like to create a toolbar control similar to the VIEWPORT SCALE control element, only have it control the dimscale. I have created a drop-down menu for this, but it would be so much cooler to set it up on a toolbar where the current dimscale setting would then be displayed.

~ Colin

rkmcswain
2005-12-27, 04:10 PM
Howdy ~

In AutoCAD 2006, I'm wondering if there is a way to create a custom toolbar control element that I can associate my own lisp/marcros with. For example, I'd like to create a toolbar control similar to the VIEWPORT SCALE control element, only have it control the dimscale. I have created a drop-down menu for this, but it would be so much cooler to set it up on a toolbar where the current dimscale setting would then be displayed.

~ Colin

Maybe with C, but not with VBA or lisp. If you belong to ADN, I'm sure you could find the answer there.

You should be able to create a non-modal VBA form with a drop-down to do this. It wouldn't be a true 'toolbar' though.

colin.chisholm89902
2005-12-27, 05:43 PM
I don't mind getting into the code, but I have no idea where these are burried :-) if you know, please share ;-). I'll try the Developers Network as suggested though.

Thanks

colin.chisholm89902
2005-12-27, 06:01 PM
Hmmm, $1200 to join ADN in hopes of finding the answer to this question is a little steep. If anyone out there is a member and feels like finding out i'd greatly appreciate it.

Thanks

Tom Beauford
2005-12-29, 04:59 PM
An option would be to add a menu item:
Name: $(eval, "Dim Scale = " $(getvar,dimscale))...
Description: Modify dimension scale: DIMSCALE
Macro: '_dimscale
Small image: RCDATA_16_SCALE
Large image: RCDATA_16_SCALE

Howdy ~

In AutoCAD 2006, I'm wondering if there is a way to create a custom toolbar control element that I can associate my own lisp/marcros with. For example, I'd like to create a toolbar control similar to the VIEWPORT SCALE control element, only have it control the dimscale. I have created a drop-down menu for this, but it would be so much cooler to set it up on a toolbar where the current dimscale setting would then be displayed.

~ Colin