tonyvent Posted November 30, 2022 Posted November 30, 2022 the following lisp is ending at the first * i try to enter. the command is asking for that to be entered and it just doesnt happen for some reason. (defun c:cfade ( / filename) (command "-layer" "xref" "c" "*" "tr" "*" "" "" "") (command "-layer" "t" "*" "on" "*" "" "") (while (setq filename (getfiled "Select Excel File:" (getvar 'dwgprefix) "xlsx" 2)) (LayersFromFile filename "Transparency") (LayersFromFile filename "Color")) (princ) ) Quote
rlx Posted November 30, 2022 Posted November 30, 2022 xref is not an option of the layer command. First try to type the command steps manually and you'll see. Quote
rlx Posted November 30, 2022 Posted November 30, 2022 oh , ok ... your autocad version is probably newer than mine. Still ,when you type in the commands by hand does it work? Quote
tonyvent Posted November 30, 2022 Author Posted November 30, 2022 yes it works by hand which is the weird part. i literally just cant get it to go past entering the *. it doesnt want to add that Quote
rlx Posted November 30, 2022 Posted November 30, 2022 try add 'All' because I started newer autocad which has the xref option , but after xref option it says Description All Quote
rlx Posted November 30, 2022 Posted November 30, 2022 (edited) nope it doesn't work at my computer too... if I type xref it only seems to want to reset the xref layers. maybe a bug in autocad? if I want to change the color for example I have to use something like -layer color 001|* red or something. Hope somebody else has a solution for this... Edited November 30, 2022 by rlx Quote
Lee Mac Posted November 30, 2022 Posted November 30, 2022 Try issuing (initcommandversion) prior to the first command call. 1 Quote
rlx Posted November 30, 2022 Posted November 30, 2022 44 minutes ago, Lee Mac said: Try issuing (initcommandversion) prior to the first command call. tried that but wasn't working but now I see what i did wrong , tried to give a argument 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.