Hi again All,
I have a question about programing within a Tool Palette.
Traffic has many jpg's and have create a file for each sign.
I don't any problem with blocks because I can add the path where to open get the blocks.
However, I found that IMAGEATTACH doesn't work the same.
It open the directory that was last used.
I have try create a lisp with the path to the traffic jpg signs location with no luck.
Here what I have done for blocks:
I added this in the Tool Pro...
Code:
^csymbolr;\(getvar "dimscale");;;
The "Symbolr" command is added in AcadDoc.lsp
Code:
(defun c:symbolr (/ symr) ;Roadway symbols
(Setvar "cmdecho" 0)
(setq symr (getfiled "Select a symbol you Need" symrpath "dwg" 8 ))
(command "insert" symr)(Setvar "cmdecho" 1)(princ))
This lets the user pick the "tool palettes" tool and have it open within the right directory.
Again, I wasn't able to do this with ImageAttach.
Any and all help or comments are welcome.
Thanks