anbard Posted January 16, 2014 Posted January 16, 2014 True kpblc changing this setting before running the script does not save as set earlier version! Quote
Stefan BMR Posted January 20, 2014 Posted January 20, 2014 This example complies save settings (setenv "DefaultFormatForSave" "48") ; AutoCAD 2010 (while (setq layer (tblnext "layer" (not layer))) (setq lname (cdr (assoc 2 layer))) (if (setq ss (ssget "X" (list (cons 8 lname) (cons 410 "Model")))) (command "WBLOCK" (strcat (getvar 'dwgprefix) lname ".dwg") "" '(0.0 0.0 0.0) ss "" "OOPS" ) ) ) Quote
kpblc Posted January 20, 2014 Posted January 20, 2014 Stefan BMR, read phrases: "changing this setting before running the script does not save as set earlier version! " Did you check your code at AutoCAD 2013 / 2014? Quote
Stefan BMR Posted January 20, 2014 Posted January 20, 2014 Stefan BMR, read phrases:"changing this setting before running the script does not save as set earlier version! " Did you check your code at AutoCAD 2013 / 2014? Yes, I did... Did you? I use AutoCAD 2014 Quote
kpblc Posted January 20, 2014 Posted January 20, 2014 Ah... It seems like commands consider this settings (but not vla-methods). Very interesting... Quote
biben Posted March 17, 2015 Posted March 17, 2015 (edited) Hi! I am very new to scripting/lisp and have a job where customer wants singel dwg from multilayer dwg. It is an electrical schematic dwg consisting of n number of layers Layer 0 is the plotframe Layer 1 to n is the electric drawing I am searching for a script to automate this. Say the file name is 415.dwg I want the resulting dwg saved to original folder: Layer 0 + Layer 1 to be saved as filename 415-001.dwg Layer 0 + Layer 2 to be saved as filename 415-002.dwg Layer 0 + Layer n to be saved as filename 415-n.dwg It would be really great to get some help... Thanks! Edited March 17, 2015 by biben spelling Quote
ripatu Posted November 24, 2016 Posted November 24, 2016 Hello, I tried the Lay2dwg program. Action principle well. Are there any restriction on the number of layers because it is not saved at all levels. Quote
123atx Posted May 29, 2023 Posted May 29, 2023 look look http://www.lee-mac.com/layerstodrawings.html Quote
Steven P Posted May 30, 2023 Posted May 30, 2023 (edited) I know this is a thing, but I do wonder if a single post, referencing a link to a thread that is 11 years old is an AI bot trying to work out how people respond to questions that have been solved in the thread (obviously waiting the new member to reply "No I am not") Edited May 30, 2023 by Steven P 1 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.