Jump to content

how i can put text in top or bottom object?


hamidciv

Recommended Posts

hi dear friends

For example, I wrote code the area in order to give me, My goal is to be inserted this the area on object like tools dimension in autocad toolbar, how do this?

thanks

Link to comment
Share on other sites

dear mostafa, my mean is for example putting area or perimeter on the object which is shown beloow.(i want know which command do this in autolisp???)

put-area.png

thanks

Link to comment
Share on other sites

dear asos

codes that you putted, written in visual lisp and also complicated, i want know What's the command in autolisp do that?

thanks

 

command: _dimradius

Edited by hanhphuc
_dimradius, command: a2f was LM's area to field
Link to comment
Share on other sites

dear asos

for example written code for drawing circle that radius with leader dispalyed that shown follow, now i want text "area" put previous of radous in my circle on screen.

i want exactly text "area" putted previous 12.35 in figure attached, with command do this in autolisp?2014-09-27_150538.png

Link to comment
Share on other sites

try with this.

(defun c:test (/ AREA AREAST ARST NP1 NP2 P1 )
 ;mostafa badran
 (vl-load-com)
 (setq p1 (getpoint "\n Specify first leader point,"))
 (setq np1 (getpoint p1 "\n Specify next point:"))
 (setq np2 (getpoint np1 "\n Specify next point:"))
 (setq rad (vla-get-Radius (vlax-ename->vla-object (car (entsel)))))
 (setq radst (rtos rad))
 (setq rast (strcat "Radius=" radst))
 (command "qleader" p1 np1 np2 "" rast "")
 (princ)
)

but you need to Identify size of text and size of arrows.

HTH

Edited by mostafa badran
improve code
Link to comment
Share on other sites

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