Jump to content

Recommended Posts

Posted

This the last bit of a routine I'm trying to create. Its very simple in its overall intent

It just adds a line of text inside a rectangle.

The TCIRCLE (Express Tools) command is being executed and then I have to manually accept or change the defaults. How can I write this last bit of TCIRCLE to have it run through automatically?

Thanks

 

  (setvar "cecolor" "6")
 (command "_.text" "Justify" "C" inspt "3.5" "0" a )
 ((c:tcircle) a "" "0.35" "" R "" "" )
(princ)
)

Posted

Still having the same thing with boxtext. Works good on its own but I don't know how to put it into my lisp file to run at the end. same as tcircle

Posted

Try this:

(defun C:TEST ( / )
(setq SS1 (ssget "L"))
(bns_tcircle SS1 "Variable" "Rectangles" nil 0.35)
(princ)
)

Posted

Thank you for your reply. I have tried to enter your text but I can't get it to work.

Would you be so kind as to enter it in the code I submitted?

Posted

Here you go:

Alto i think your 'text' command line is wrong, since your given arguments are not able in the command...

 

(defun C:test ( / oldcecolor inspt )
(setq oldcecolor (getvar "CECOLOR"))
(setvar "cecolor" "6")
(setq inspt (getpoint))
(command "_.text" "Justify" "C" inspt "3.5" "0" "")
(setq SS1 (ssget "L"))
(if (not bns_tcircle) (load "acettxt.lsp"))
(bns_tcircle SS1 "Variable" "Rectangles" nil 0.35)
       (setvar "CECOLOR" oldcecolor)
(princ)
)

Posted
This may be like extrim you can run it from a lisp but it use a differrent command "ETRIM"

 

Aftertouch for the dummys like me

 

Tcircle uses a differrent command "bns_tcircle" if you want to use lisp
  • 3 weeks later...
Posted

Thank you very much Aftertouch your code worked perfect

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