Jump to content

Recommended Posts

Posted

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)
  )

Posted

xref is not an option of the layer command. First try to type the command steps manually and you'll see.

Posted

oh , ok ... your autocad version is probably newer than mine. Still ,when you type in the commands by hand does it work?

Posted

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

 

Posted

try add 'All' because I started newer autocad which has the xref option , but after xref option it says Description All

Posted (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 by rlx
Posted
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 :facepalm:

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...