TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: aaa120 on April 11, 2014, 03:51:42 AM

Title: How can I know some vlx command?
Post by: aaa120 on April 11, 2014, 03:51:42 AM
I have a vlx files ,but I do not know its command so I can not run it .
How can I know its command to make it run ?
Title: Re: How can I know some vlx command?
Post by: Tharwat on April 11, 2014, 03:55:07 AM
Hi ,

I think the name of the file should be the command call of the application otherwise it should show in the command line while loading it .
Title: Re: How can I know some vlx command?
Post by: Kerry on April 11, 2014, 05:33:33 AM

untested: Perhaps something like this

Code - Auto/Visual Lisp: [Select]
  1.  
  2. (setq before (atoms-family 1))
  3.  
  4. ;; load the file
  5.  
  6. (setq after (atoms-family 1))
  7.  
  8.   (vl-remove-if
  9.     (function (lambda (x) (vl-position x before)))
  10.     after
  11.   )
  12.  
Title: Re: How can I know some vlx command?
Post by: bruno_vdh on April 11, 2014, 05:46:48 AM
Hello,

Otherwise there this variant much like that of Kerry:
Code: [Select]
((lambda (l)
   (load (getfiled "Select a Lisp File" "" "vlx" 8))
   (foreach cmd (vl-remove-if '(lambda (x) (or (wcmatch x "~C:*") (member x l))) (atoms-family 1))
     (princ "\n")
     (princ cmd)
   )
   (princ)
 )
  (atoms-family 1)
)

Best regard,