Jump to content

Recommended Posts

Posted

Is there any way to make this work as a routine? It is just a simple command "line" from 0,0 to 3,5.

 

I cannot figure it out

 

(defun c:tss ()
 (princ (strcat
      (chr 40)
      (chr 99)
      (chr 111)
      (chr 109)
      (chr 109)
      (chr 97)
      (chr 110)
      (chr 100)
      (chr 32)
      (chr 34)
      (chr 108)
      (chr 105)
      (chr 110)
      (chr 101)
      (chr 34)
      (chr 32)
      (chr 34)
      (chr 48)
      (chr 44)
      (chr 48)
      (chr 34)
      (chr 32)
      (chr 34)
      (chr 51)
      (chr 44)
      (chr 53)
      (chr 34)
      (chr 32)
      (chr 34)
      (chr 34)
      (chr 41)
    )
 )
)

 

Thanks a lot in advance

Posted

You should force the evaluation of the string:

[color=red](eval (read [/color](strcat (chr 40)
                   (chr 99) (chr 111) (chr 109) (chr 109) (chr 97) (chr 110) (chr 100)
                   (chr 32)
                   (chr 34) (chr 108) (chr 105) (chr 110) (chr 101) (chr 34)
                   (chr 32)
                   (chr 34) (chr 48) (chr 44) (chr 48) (chr 34)
                   (chr 32)
                   (chr 34) (chr 51) (chr 44) (chr 53) (chr 34)
                   (chr 32)
                   (chr 34) (chr 34)
                   (chr 41))[color=red]))[/color]

Posted

Thank you very very much. Works smooth!

Posted

You're welcome!

 

Just out of curiosity, why did you choused this approach?

Posted

Because I want to extract layer information from several drawings, and I have the properties in one text file which I can "read" and apply in only one "while" reading all these values from each layer. That gives me the chance to make a short script that remains "alive" while these lists are note empty instead of scripting the whole stuff. Once I have the final result, I will share it with you.

 

Through this way? or better through an email

 

Thanks again

Posted

Are you just trying to confuse the other users when ther'ye "checking out" you code? :lol:

 

(eval (read (apply 'strcat  (mapcar 'chr  '(40 99 111 109  109 97 110 100 32
                           34 108 105 110 101 34  32 34 48 44  48 34
                           32  34 51 44 53 34 32  34  34  41)))))

 

Oops. did not see MSasu's post there.

 

Posted

hahahah. not at all, when I am done I will post it completely, it is a formula to extract all layer information to an excel sheet and produce from it a standard layer structure with a command. I'll show you when I¨am done. It is just I want to come to the point I want to know how to make it work through different possibilities.

 

Really thank you both. I'll come back to you asap

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