Jump to content

Create polygon from GRID


Recommended Posts

I'd recommend that you create single one, set variable (setq el (entlast)) and then do ARRAYCLASSIC - Rectangular option... Finally you iterate through newly created entities and change numbers in texts :


(setq k 1)
(while (setq el (entnext el))
  (if (wcmatch (cdr (assoc 0 (entget el))) "*TEXT")
    (entupd (cdr (assoc -1 (entmod (subst (cons 1 (strcat (substr (cdr (assoc 1 (entget el))) 1 (1- (strlen (cdr (assoc 1 (entget el)))))) (itoa (setq k (1+ k))))) (assoc 1 (entget el)) (entget el))))))


Edited by marko_ribar
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.

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