• 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. Creating Oblong route keep out

Stats

  • Replies 7
  • Subscribers 160
  • Views 15298
  • Members are here 0
More Content

Creating Oblong route keep out

Rajagopalg
Rajagopalg over 8 years ago

Hi All,

I am new to skill code and I am looking for a skill function to creating a Oblong route keep out for a selected object i.e Via or Pins?

Thanks in advance!

Raj

  • Sign in to reply
  • Cancel
Parents
  • Rajagopalg
    Rajagopalg over 8 years ago

    Brukers,

    Thanks for your code and it works well for selected via's but my requirements is oblong keepout needed for selected two vias.

    Here is the code for rectangle keepout and attached image for what i am looking for it.

    could you please help to convert this rectangle KPO to oblong KPO as like image.

    procedure(rect()
    antipad_w=axlEnterString(?prompts list("Enter width of antipad:"))
    antipad_w=atof(antipad_w)
    antipad_h=axlEnterString(?prompts list("Enter height of antipad:"))
    antipad_h=atof(antipad_h)
    subclass=axlEnterString(?prompts list("Enter the layer name (class/subclass) which shape need to be:"))
    axlSetFindFilter(?enabled list("noall" "vias") ?onButtons list("noall" "vias"))
    axlSingleSelectBox()
    via_dbids=axlGetSelSet()
    via1_dbid=nth(0 via_dbids)
    via1_loc=via1_dbid->xy
    x1=nth(0 via1_loc)
    y1=nth(1 via1_loc)
    via2_dbid=nth(1 via_dbids)
    via2_loc=via2_dbid->xy
    x2=nth(0 via2_loc)
    y2=nth(1 via2_loc)
    x=(x1+x2)/2
    y=(y1+y2)/2
    path=axlPathStart(list(x-antipad_w/2:y-antipad_h/2) 0)
    path=axlPathLine(path 0 x-antipad_w/2:y+antipad_h/2)
    path=axlPathLine(path 0 x+antipad_w/2:y+antipad_h/2)
    path=axlPathLine(path 0 x+antipad_w/2:y-antipad_h/2)
    path=axlPathLine(path 0 x-antipad_w/2:y-antipad_h/2)
    shape=axlDBCreateShape(path t subclass)
    );procedure

    Thanks very much!

    Raj

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Rajagopalg
    Rajagopalg over 8 years ago

    Brukers,

    Thanks for your code and it works well for selected via's but my requirements is oblong keepout needed for selected two vias.

    Here is the code for rectangle keepout and attached image for what i am looking for it.

    could you please help to convert this rectangle KPO to oblong KPO as like image.

    procedure(rect()
    antipad_w=axlEnterString(?prompts list("Enter width of antipad:"))
    antipad_w=atof(antipad_w)
    antipad_h=axlEnterString(?prompts list("Enter height of antipad:"))
    antipad_h=atof(antipad_h)
    subclass=axlEnterString(?prompts list("Enter the layer name (class/subclass) which shape need to be:"))
    axlSetFindFilter(?enabled list("noall" "vias") ?onButtons list("noall" "vias"))
    axlSingleSelectBox()
    via_dbids=axlGetSelSet()
    via1_dbid=nth(0 via_dbids)
    via1_loc=via1_dbid->xy
    x1=nth(0 via1_loc)
    y1=nth(1 via1_loc)
    via2_dbid=nth(1 via_dbids)
    via2_loc=via2_dbid->xy
    x2=nth(0 via2_loc)
    y2=nth(1 via2_loc)
    x=(x1+x2)/2
    y=(y1+y2)/2
    path=axlPathStart(list(x-antipad_w/2:y-antipad_h/2) 0)
    path=axlPathLine(path 0 x-antipad_w/2:y+antipad_h/2)
    path=axlPathLine(path 0 x+antipad_w/2:y+antipad_h/2)
    path=axlPathLine(path 0 x+antipad_w/2:y-antipad_h/2)
    path=axlPathLine(path 0 x-antipad_w/2:y-antipad_h/2)
    shape=axlDBCreateShape(path t subclass)
    );procedure

    Thanks very much!

    Raj

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