Jump to content

Recommended Posts

Posted

Hi everyone, I was trying to do a code where I write some texts and at the end wanted to use the Express tools command tcircle, but tried many times to make it run and couldn't get it to work, so here is my simple question, how can I make this simple code run?

(setq p1 (getpoint "\nPick a point for the text")) 
(vl-cmdf "_.text" p1 "1.0" "0.0" "Test1")
(vl-cmdf "_.tcircle" "_last" "0.35" "_Rectangles" "") ;; Why is this not working?

Thanks in advance for your kind help.

Posted
32 minutes ago, Scoutr4 said:
(setq p1 (getpoint "\nPick a point for the text")) 
(vl-cmdf "text" p1 "1.0" "0.0" "Test1")
(setq ss (ssget "_L"))
(bns_tcircle ss "Variable" "Rectangles" "" 0.35)(princ))

 

Thanks now it's working, although there is an extra parentheses and just to be on the safe side I used

(load "acettxt.lsp")

 

  • Agree 1
Posted

A few of the express tools when used with lisp you have to not use the command name, another is Extrim use (etrim ....

  • Like 1
Posted
37 minutes ago, BIGAL said:

A few of the express tools when used with lisp you have to not use the command name, another is Extrim use (etrim ....

Thank you BigAl, I didn't know that, do you know of any other commands that have something similar?

Posted (edited)

Need to look into express tools .lsp.

 

Did find this need to look in all lsp if you have a user block selection set you can maybe use this in Bcount.lsp

(defun bns_count ( ss / bna lst na e1 n a mx )

 

 

 

Edited by BIGAL
Posted
1 hour ago, BIGAL said:

Need to look into express tools .lsp.

 

Did find this need to look in all lsp if you have a user block selection set you can maybe use this in Bcount.lsp

(defun bns_count ( ss / bna lst na e1 n a mx )

 

 

 

Thanks again, is good to know probably have to check the entire lisp file, and maybe tcount has a similar function.

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