Not applicable
11-01-2016
08:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
So I am trying to prevent my LISP from being run on any file type (mainly the .dwg) and only run on a .dxf extension. I've searched the solutions on here but to no avail and I'm hoping I can get a little help (as always )
Basically I would think the LISP would work like the following:
(defun C:Test ()
;IF this is a .dxf THEN
(command "SomeCommand" "" "" "" "")
(command "SomeCommand" "" "" "" "")
(prompt "\nProcess complete.")
ELSE
(prompt "\nTCannot run LISP - wrong file type")
;Exit this LISP
A rough outline for sure, but the basic idea is there.
Any help (which has been great since I've joined by the way) would be greatly appreciated.
Thanks,
McG
Solved! Go to Solution.
Link copied