- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to make a Lisp that Lists and lets me pick the DimStyle. Don't need it to do anything fancy (I think). The code I have so far does basically what I want it to do except it doesn't work at all. I started off with just trying to get 1 dimstyle to work and so far whenever I "pick" a style, it just says invalid input and asks for me to pick again. I'm sure this is probably something clearly wrong with my code, but to be honest I have very little to no idea what I'm doing so any help would be great, thanks!
Code:
(Defun c:EDS (/ a)
(prompt "DIMSTYLE - ")
(setq a (getkword "Specify Style [ISJ/OSJ/OSB/TTT/DLO/GO/FACE/OA/NOTCH/COBRA/DECIMAL/1.5]: "))
(if (= a "ISJ")
(command "-dimstyle" "r" "ISJ - 1.5")) ;if
(Princ)
)
Solved! Go to Solution.