Jump to content

Compile the same .vlx in a fast way?


Recommended Posts

Posted

Hello guys, is it possible to compile the .vlx file using the project file?

My work has 18 files

9ZSc7eI.png

 

and I have to select them in more steps or autocad will do something strange !

mmRp2vn.png

 

Thanks guys,

Dennis

Posted

Have a google for vlisp-compile it can be ran from within a lisp and do multiple files etc.

Posted

it seems to compile to .fas and not .vlx.. right?

Posted

Hello Lee!

 

I've tried this button, but it creates only .fas files but I want a .vlx.. Maybe I've missed something? :/

Posted
I've tried this button, but it creates only .fas files but I want a .vlx.. Maybe I've missed something? :/

 

I think only the 'Make Application' > 'New Application Wizard' may be used to create a VLX.

 

Is there a reason why FAS is not sufficient?

A VLX is merely a FAS file with optional plain text content (e.g. DCL / TXT) appended.

Posted

Ah cool! Anyway the reason is that I want only a file from 18 lsp , so it'll easy to sent to (and to load) other people :)

Posted
Anyway the reason is that I want only a file from 18 lsp

 

You can change the project settings to compile to a single module - 'Project Properties' > 'Build Options' > 'Merge files mode' > 'Single module for all'

Posted

Oh, great! Thank you Lee! Is .fas file crypted as vlx right? Will try tomorrow :) thanks

Posted
Oh, great! Thank you Lee!

 

You're welcome :)

 

Is .fas file crypted as vlx right? Will try tomorrow :) thanks

 

A VLX is merely a FAS file with optional plain text content (e.g. DCL / TXT) appended.

 

;)

Posted

There is no reason why a lisp can not be made up of 18 lisps just copy and paste into 1 the only real thing is that each part must be a defun seperate from the others.

Look at Acaddoc.lsp its lots of lisps. I have a library lisp and its full of defuns 110 to be exact.

 

New I had an example

 

(VL-LOAD-COM)
(setq loads (list "Lisp1" "Lisp2" "Lisp3"))
(setq loc1 "F:\\") ;;change dirs to where ever you want them saved
(setq loc2 "F:\\Compiled Lisp\\")
(foreach lisp loads
(vlisp-compile 'st (strcat loc1 lisp ".lsp") (strcat loc2 lisp ".fas"))
)

from the start menu, a bit of old fashioned DOS make a batch file

CMD 
copy lisp1+lisp2+lisp3 Library.lsp
exit

Posted

Hello bigal! Thanks for the code :)

 

I use separate files because I'm developing this add-on and I don't want to get mad searching for each part eheh

Posted

Definately get each one to work seperately before joining, had a thought you could use findfile build a list of lisps then open each one and use "Append" option "A" to write to a new file then compile just that one. The other thing is if your going to combine have a good look at where you repeat multi lines of code and make them into a library defun. Your welcome to use my Getvals.lisp in your code, this is something I have started to rewrite into new and existing lisps used by us.

 

In a commercial product I was involved in there is library calls in every routine so code is consistent, all objects go on correct layer etc again handled by library calls rather than hard coded layers names. It actually easy to have user defined layers just create a text file with all details name col lt and set these to a variable name on start up of your addon.

 

roof--2         roof--2         5   continuous
roof--3         roof--3         7   continuous
roof--4         roof--4         4   continuous

(setq lay_search roof--2)
(setq lay_colour roof--2col)
(setq l_type roof--2lin)
(lay_miss)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...