Ish Posted March 11, 2022 Posted March 11, 2022 2 hours ago, BIGAL said: Either of these versions will hatch this if its 2 plines. For Sandeep RC if your confident that all the areas are closed in some way either version will work, I exploded the plines so it was all lines and worked fine. ; hatch boundary's ; By AlanH Mar 2022 (defun c:lothatch1 ( / ss x ang ent pt) (setq ss (ssget (list (cons 0 "*TEXT")))) (setq ang 0.0) (setvar 'HPSCALE 5.0) (setvar 'hpname "Ansi31") (repeat (setq x (sslength ss)) (setq pt (cdr (assoc 10 (entget (ssname ss (setq x (1- x))))))) (command "bpoly" pt "") (setq ent (entlast)) (setvar 'hpang ang) (command "-hatch" "S" ent "" "") (setq ang (+ ang 0.25)) (entdel ent) ) (princ) ) (defun c:lothatch2 ( / ss x ang ent pt) (setq ss (ssget (list (cons 0 "*TEXT")))) (setq ang 0.0) (setvar 'HPSCALE 5.0) (setvar 'hpname "Ansi31") (repeat (setq x (sslength ss)) (setq pt (cdr (assoc 10 (entget (ssname ss (setq x (1- x))))))) (setvar 'hpang ang) (command "-hatch" pt "" "") (setq ang (+ ang 0.25)) ; radians ) (princ) ) This is best, working on text and mtext , closed polyline, non close pline. Quote
Recommended Posts
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.