View Full Version : Need area of Hatched area
2004-07-05, 03:21 AM
I would like to know why a hatch patterns properties does not contain area info and is this a variable that could be pulled from hatch control data.
Thanks for any input.
2004-07-05, 03:21 PM
Look into the PICKSTYLE variable and select the
associative hatch boundary to get the area, not
the hatch object itself. I'm thinking the 'reason'
behind the hatch object not displaying it's area
is due to the idea that it is a 'graphic' element
hence gradient fills option, not a 'design' element
which would display it's area.
2004-11-19, 08:47 PM
What if the hatch doesn't have a boundary line anymore?
2004-11-19, 10:33 PM
Have a browse of the following threads -
hatch woes (http://forums.augi.com/showthread.php?t=6233)
Draw Hatch Boundary (http://forums.augi.com/showthread.php?t=9332)
The following from Peter Jamtgaard via an old LISP Guild post might be of some help -
; This will only work for hatches without nested islands.
; Just an outline with void islands
(defun C:HATCH_AREA (/ AREA CNT HATOBJ POLOBJ SIGN)
(setq HATOBJ (vlax-ename->vla-object
(car (entsel "\nSelect Hatch: "))
(repeat (vla-get-numberofloops HATOBJ)
(setq POLOBJ (vla-getloopat HATOBJ CNT 'LOOP))
(setq AREA (+ AREA
(setq XX (vlax-safearray->list LOOP))
(setq CNT (1+ CNT))
(if (> SIGN 0)
(setq SIGN -1)
Have a good one, Mike
Powered by vBulletin® Version 4.1.11 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.