Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

cant batch load fas though code dose work for lsp

1 REPLY 1
Reply
Message 1 of 2
Anonymous
180 Views, 1 Reply

cant batch load fas though code dose work for lsp

i have the following code which works wel for lisp but causes a fatal error for fas, which is beyond me cause I use  lisp to load single fas files all the time.

 

(defun load-lsp ()
  (foreach file (vl-directory-files "C://ICT//AutoCAD_Architecture_suite_2012//FAS//BLOCKS//" "*.FAS" 1)
           (load (strcat "C:/ICT/AutoCAD_Architecture_suite_2012/FAS/BLOCKS/" file))
           )
  )

(load-lsp)

 thing though it needs to be fas not lisp

1 REPLY 1
Message 2 of 2
hmsilva
in reply to: Anonymous


@Anonymous wrote:

i have the following code which works wel for lisp but causes a fatal error for fas, which is beyond me cause I use  lisp to load single fas files all the time.

 

(defun load-lsp ()
  (foreach file (vl-directory-files "C://ICT//AutoCAD_Architecture_suite_2012//FAS//BLOCKS//" "*.FAS" 1)
           (load (strcat "C:/ICT/AutoCAD_Architecture_suite_2012/FAS/BLOCKS/" file))
           )
  )

(load-lsp)

 thing though it needs to be fas not lisp


It should work as expected...

Test each .fas separately to see if it gives an error.

 

Henrique

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost