Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Menu script for turning off / on programs..

Status
Not open for further replies.

basepointdesignz

Programmer
Jul 23, 2002
566
GB
Hi,

How do i code the menus so the user has the option of turning on / off certain programs / tools i have written..

Is there a generic way to code diesel that way?

One example is that i have a program that switches to certain dimstyles dependant on if the user is is paperspace or modelspace but i want to be able to have a menu switch so they can toggle this function off or on..



Cheers,
Paul @ basepoint designz ltd..

basepointdesignzltd
 
I don't quite follow - the program that switches dimstyles, does it detect when user changes space (with reactors), or is it part of a dimensioning macro? Is the program lisp/vba that can be modified?
 
its only a small vba program that detects if the user switches between modelspace and paperspace and changes the active dimstyle. but what i need is a menu macro that the user can toggle on or off whether the prgram runs or not as they want....



Cheers,
Paul @ basepoint designz ltd..

basepointdesignzltd
 
Hi basepointdesignz,

Since it's vba, you'll need to toggle loading and unloading (you can just use autolisp for this -vbaload/-vbaunload), unless you code your vba macro to read either the menu itself (maybe checked or un-checked) or check the value of one of the user system variables USERR1...5 USERS1...5 etc.

HTH
Todd
 
Does anyone have a lisp to run in 2005 to dimension points as x(linear) and y(diameter(2X))?
TIA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top