• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X Scripting - Skill
  3. KO Shape Report

Stats

  • Replies 0
  • Subscribers 16
  • Views 8735
  • Members are here 0
More Content

KO Shape Report

EdwinB
EdwinB over 7 years ago

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) 
====
 
  • Cancel
  • Sign in to reply
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information