Jump to content

why is this not working


tonyvent

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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:

Link to comment
Share on other sites

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