Jump to content

increasing the size of coordinates


IMB

Recommended Posts

Hello,

 

I have the following code to point out a location in autocad:

 

(defun c:lb (/  p x y ptcoord textloc)
  (while
    (setq p (getpoint "\nPick Point: "))
    (setq textloc (getpoint "\nPick Label Location: "))
    (setq x (rtos (car p)))
    (setq y (rtos (cadr p)))
    (setq ptcoord (strcat x ", " y))
    (command "_LEADER" p textloc "" ptcoord "")
  )
)

 

Now I want to increase the size of the coordinates when inserting them into autocad.

Does anybody have an idea how to change the code so that the coordinates will appear bigger in autocad?
 

Thanks in advance.

Link to comment
Share on other sites

It's using the DIMSCALE * the Text Height specified in the current DIMSTYLE

 

In my drawing for example, the text is coming out 7.2 units high.

That's because my DIMSCALE = 40 and the text height in the current dimstyle is 0.18

40 * 0.18 = 7.2

 

So I would suggest changing the size of the text in the dimstyle.

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