Jump to content

Recommended Posts

Posted

Hi: new to lisp.

I want to write a string say "Hello" but at a user specified point on the drawing.

something like

 

(setq str1 "Hello")

and now I want to write at a point say pt1

(setq pt1 (getpoint "Enter where you want the text"))

 

Now how do i put that str1 at pt1 location?

Sorry if its too basic query. But I could not find much help. Thanks in advance

Posted

A Hint: When you manually add text what is the information that you provide?

Posted

Manually I specify poistion , height and rotation and then text to write.

Now if i try command "_.text" how to pass the above parameters? That's what I am now looking for after your question.

Posted

One easy way is to use (command "_.text" ...... parameters). A more advanced way would be to (entmake ...).

Posted

Yeah . I tried something like this

(command "_.-text" pause fontheight rotation lineread)

where fontheight was set to some value. Not bad for the first day for the first day of lisp, I read a file till it ended and wherever I clicked, the names appeared. Thanks SanganakSakha for your help. I will figure out entmake

Posted

(setq str1 "Hello")

(setq pt1 (getpoint "Enter where you want the text: "))

(command "_.-text" pt1 "" "" str1)

Posted

I moved the thread in the Lisp forum.

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