Jump to content

poly line length with label


Begde

Recommended Posts

Dear all,

I have many polylines that I have to put a label that shows the length and the measurement unit for each of them; basically they are underfloor heating loops.

I started a routine that solved the problem of labeling but I need help to develop it.

(defun c:clength()

(setvar "osmode" 1)

(setq dst1 (getdist "\n Pick first point: "))

(initget "MM CM M")

(setq s (getreal "measurement unit=1000/100/1: "))

(setq g (fix(/ dst1 s)))

(setq dst1(rtos g 2 0))

(setvar "osmode" 0)

(terpri)

(setvar "osmode" 512)

(setq currnt (getint "\n Enter circuit number: "))

(setq gh (getpoint "\nPick insertion point: "))

(setq J (getreal "\nEnter text hieght: "))

;(setq H (atoi J))

(setq kl (rtos currnt 2 0))

(setq d (strcat (strcat "C-" kl": ") dst1 " m"))

(command "text" "j" "c" gh "1" "0" d "")

)

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