Hi,
Is there a code to extract the data of (all) KO SHAPES element in the design and report it in a text format?
For instance, the 'element' shown below can be reported as follows:
(<"Ref_Des"> <(XY)> <"Class/Subclass"> <(1st XY seg/arc)> <"Properties">)
Note1: Ref_Des/XY -> leave blank if none. This is the SHAPE attached to a part or component. XY of the Ref_Des. If it can't be done, ok to ignore.
Note2: 1st XY -> 1st segment of the "Exterior Boundary". Prefer to report the center XY if it can be done.
Note3: Properties -> Any or all Properties attached to the shape, including inherited properties. This includes Comments
Note4: KO Shapes for Route KO, Via Keepout, Package Keepout/Keepin, Route Keepin and Constraint regions.
(" " ( ) PACKAGE KEEPOUT/TOP" (267.0000 -101.0000) "PACKAGE_HEIGHT_MIN = 16.5 MM Connector Region Component Max height KOZ Symbol: HOP_VHD590_MECH_REV0 at 0.0000, 0.0000 FIXED")
=======
LISTING: 1 element(s)
< SHAPE >
class PACKAGE KEEPOUT
subclass TOP
Shape is solid filled
Area: 359.80000 (sq cm)
Exterior boundary:
segment:xy (267.0000 -101.0000) xy (267.0000 -241.0000) width (0.0000)
segment:xy (267.0000 -241.0000) xy (10.0000 -241.0000) width (0.0000)
segment:xy (10.0000 -241.0000) xy (10.0000 -101.0000) width (0.0000)
segment:xy (10.0000 -101.0000) xy (267.0000 -101.0000) width (0.0000)
Properties attached to shape
PACKAGE_HEIGHT_MIN = 16.5 MM
COMMENT = Connector Region Component Max height KOZ
Inherited properties attached to shape
Symbol: HOP_VHD590_MECH_REV0 at 0.0000, 0.0000 FIXED
======
Thank you in advance,
Eddie
PS
==Sample VIA KEEPOUT with Ref_Des====
Item 976 < SHAPE >
class VIA KEEPOUT
subclass TOP
RefDes: C78C
Shape is solid filled
Area: 0.00428 (sq cm)
Exterior boundary:
segment:xy (-159.6660 -12.6140) xy (-159.6660 -13.5640) width (0.0000)
segment:xy (-159.6660 -13.5640) xy (-159.2160 -13.5640) width (0.0000)
segment:xy (-159.2160 -13.5640) xy (-159.2160 -12.6140) width (0.0000)
segment:xy (-159.2160 -12.6140) xy (-159.6660 -12.6140) width (0.0000)
====