satyaguru Posted July 20, 2010 Posted July 20, 2010 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 Quote
SanganakSakha Posted July 20, 2010 Posted July 20, 2010 A Hint: When you manually add text what is the information that you provide? Quote
satyaguru Posted July 20, 2010 Author Posted July 20, 2010 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. Quote
SanganakSakha Posted July 20, 2010 Posted July 20, 2010 One easy way is to use (command "_.text" ...... parameters). A more advanced way would be to (entmake ...). Quote
satyaguru Posted July 20, 2010 Author Posted July 20, 2010 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 Quote
SanganakSakha Posted July 20, 2010 Posted July 20, 2010 (setq str1 "Hello") (setq pt1 (getpoint "Enter where you want the text: ")) (command "_.-text" pt1 "" "" str1) Quote
Recommended Posts
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.