I am new to writing visual lisp routines, and i am trying to develop a routine that shows a dialog box for valves and then you can select one and hit ok and then it inserts the block that you selected. Below is what i have so far...
Firstly, I would suggest that you read the Code Posting Guidlines and edit your post to format your code correctly.
Concerning the program: are you writing the program specifically to learn LISP/DCL, because if not, I would recommend you use Tool Palettes for this task - they are very powerful and easy to use.
tool palettes would be fine...the only question i would have with using them is how do i make it to where other users can pull up the Palettes that i create? And then when a new version of AutoCAD is installed with those Palettes transfer?
1. Create a toolpalettes directory on the server.
2. Change the toolpalettepath (in options or do it by code) on everyone's computer to one on server
3. Either make the folder "read only" or have IT remove write access to that folder from everyone except you (keep people from accidentally altering something or you losing work - last out gets priority).
4. Every time you make an update to the tool palettes, everyone else will see the additions.
5. ???
6. Profit!
Thanks Alan for the help on that!
Here is my next question for you and Lee; not all users are on the same version of AutoCAD...are the palettes that i create going to be able to function on different versions?
AFAIK, it shouldn't matter - very little has changed with Tool Palettes over the years. What version differences are we talking? Your biggest limitation with version differences will lie in lower versions not being able to utilize objects/procedures created in a newer version of CAD. Rule of thumb: if you have multiple versions of CAD to deal with and have to streamline blocks, etc., always make sure to create everything with the lowest used version of CAD.
A bit extra if you have your partial menu's on the server only and make a change to the mnu then next time others start Autocad they will automatically see the new menu, you do not have to go to their box and load.