• 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 PCB Editor
  3. Axlairgap help?

Stats

  • Replies 2
  • Subscribers 159
  • Views 12867
  • Members are here 0
More Content

Axlairgap help?

luanvn81
luanvn81 over 11 years ago

 Hi all.

  I try to get air gap between a route keepout shape with a shape's void by using axl airgap and the result  always return nil. And I don't know where is wrong in my code, I have measured them in layout and airgap is exist.

 The code is posted below,  please help me repair it.

;#### Main Process ####
foreach(void AllVoids    ; voids in shapes on ETCH/BOTTOM LAYER
void_bBox = void->bBox
void_bBox_x1 = xCoord(car(void_bBox))
void_bBox_y1 = yCoord(car(void_bBox))
void_bBox_x2 = xCoord(lastelem(void_bBox))
void_bBox_y2 = yCoord(lastelem(void_bBox))
void_xy = axlDBAltOrigin('center void)

void_size_x = max(void_bBox_x1, void_bBox_x2) - min(void_bBox_x1, void_bBox_x2)
void_size_y = max(void_bBox_y1, void_bBox_y2) - min(void_bBox_y1, void_bBox_y2)

if(void_size_x > minimum_size_shape || void_size_y > minimum_size_shape then

check_area = list(axlMXYSub(car(void_bBox) add_value_list) axlMXYAdd(lastelem(void_bBox) add_value_list))

axlVisibleDesign(nil)
axlVisibleLayer(keepout_layer t) ; ROUTE KEEPOUT/BOTTOM layer
axlShell("redisplay")
axlSetFindFilter(?enabled '(noall Shapes ) ?onButtons '(noall Shapes))
data_in_box = axlGetSelSet(axlSingleSelectBox(check_area))
axlClearSelSet()

if(length(data_in_box) > 0 then
    foreach(item data_in_box
        air_gap = axlAirGap(void item nil 'anyLayer)
        ;if(air_gap < airgap_value then
            ;axlDeleteObject(item)    
            fprintf(writeOutFile "%L %L\n", air_gap, void_xy)
        ;);end if
    );end foreach
);end if
);end if

);end foreach

Tks,

Luan

 

  • Sign in to reply
  • Cancel
  • edaMac
    edaMac over 11 years ago
    I think you cannot use objType void for axlAirGap, even in manual measure you cannot use void as input. But you can use other segs or even create a temporary shape for the void for the purpose of axlAirGap. Hope this helps.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • luanvn81
    luanvn81 over 11 years ago

    Hi edaMac!

      Thank for your reply, as your advice, I convert void dbid into r_path by function axlDB2Path, and then create shape with that r_path. After that, I can use axlairgap as usual.

    Tks,

    Luan.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
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