Author Topic: How can I know some vlx command?  (Read 2047 times)

0 Members and 1 Guest are viewing this topic.

aaa120

  • Guest
How can I know some vlx command?
« 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 ?

Tharwat

  • Swamp Rat
  • Posts: 707
  • Hypersensitive
Re: How can I know some vlx command?
« Reply #1 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 .

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: How can I know some vlx command?
« Reply #2 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.  
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

bruno_vdh

  • Guest
Re: How can I know some vlx command?
« Reply #3 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,