MastroLube Posted December 28, 2015 Posted December 28, 2015 Hello guys, is it possible to compile the .vlx file using the project file? My work has 18 files and I have to select them in more steps or autocad will do something strange ! Thanks guys, Dennis Quote
BIGAL Posted December 28, 2015 Posted December 28, 2015 Have a google for vlisp-compile it can be ran from within a lisp and do multiple files etc. Quote
MastroLube Posted December 28, 2015 Author Posted December 28, 2015 it seems to compile to .fas and not .vlx.. right? Quote
MastroLube Posted December 28, 2015 Author Posted December 28, 2015 Hello Lee! I've tried this button, but it creates only .fas files but I want a .vlx.. Maybe I've missed something? :/ Quote
Lee Mac Posted December 28, 2015 Posted December 28, 2015 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. Quote
MastroLube Posted December 28, 2015 Author Posted December 28, 2015 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 Quote
Lee Mac Posted December 29, 2015 Posted December 29, 2015 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' Quote
MastroLube Posted December 29, 2015 Author Posted December 29, 2015 Oh, great! Thank you Lee! Is .fas file crypted as vlx right? Will try tomorrow thanks Quote
Lee Mac Posted December 29, 2015 Posted December 29, 2015 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. Quote
BIGAL Posted December 29, 2015 Posted December 29, 2015 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 Quote
MastroLube Posted December 29, 2015 Author Posted December 29, 2015 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 Quote
BIGAL Posted December 30, 2015 Posted December 30, 2015 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) Quote
Recommended Posts
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.