Jump to content

Recommended Posts

Posted

I want to increase to number in the WHILE. For example IP1 (starting number) when i click the next point it will change to IP2. Below is what i've tried but i dont know how to change it.

(while
(setq IP (getpoint "\nPick IP: "))
(setq txt_IP_1 00)
(setq txt_IP_2 (+ 1 txt_IP_1))
(setq txt_IP_Node (strcat "IP" (rtos txt_IP_2 2 0)))
(command ".text" "C" (list ( car IP) (+ 1 (cadr IP)) 0.0) 0.75 0 txt_IP_Node)
)

Thank you.

Posted (edited)

 

(setq txt_IP_1 00)

(while
(setq IP (getpoint "\nPick IP: "))
(setq txt_IP_1 (1+ txt_IP_1))
(setq txt_IP_Node (strcat "IP" (rtos txt_IP_1 2 0)))
(command ".text" "C" (list ( car IP) (1+ (cadr IP)) 0.0) 0.75 0 txt_IP_Node)
)

 

On a more advanced note, this will do: Incremental Numbering Suite... And I mean, waaaay more advanced

Edited by Jonathan Handojo
  • Like 1
Posted
15 minutes ago, Jonathan Handojo said:

 


(setq txt_IP_1 00)

(while
(setq IP (getpoint "\nPick IP: "))
(setq txt_IP_1 (1+ txt_IP_1))
(setq txt_IP_Node (strcat "IP" (rtos txt_IP_1 2 0)))
(command ".text" "C" (list ( car IP) (1+ (cadr IP)) 0.0) 0.75 0 txt_IP_Node)
)

 

On a more advanced note, this will do: Incremental Numbering Suite... And I mean, waaaay more advanced

Thank you so much.

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