• 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. How to check minimum aperture for gap width?

Stats

  • Replies 2
  • Subscribers 160
  • Views 13717
  • Members are here 0
More Content

How to check minimum aperture for gap width?

luanvn81
luanvn81 over 10 years ago

Hi All !
  This is my exmaple code that will check "minimum aperture fo gap width" but not work, so i post here hoping receive advices to fix it.
   ( Get void ==> create shape from void ==> check shape minimum aperture with 70um ==> next void check)
    Here my ex code:


axlCmdRegister("shp_chk" `shp_chk)
(defun shp_chk ()
    AllVoidsInDesign = list()
    axlSetFindFilter(?enabled '(noall VOIDS) ?onButtons '(noall VOIDS))
    axlClearSelSet()
    mypopup = axlUIPopupDefine( nil
    (list (list "Done" 'axlFinishEnterFun)
    (list "Cancel" 'axlCancelEnterFun)))
    axlUIPopupSet( mypopup)
    AllVoidsInDesign = axlGetSelSet(axlSelect(?prompt "Select a void..."))
    axlClearSelSet()
    
    if(length(AllVoidsInDesign)== 0 then
        axlUIConfirm("No Void selected. ")
    else
        foreach(void AllVoidsInDesign
            void_poly = car(axlPolyFromDB(void))
            shape_ID = car(axlDBCreateShape(void_poly,t,"ETCH/25PA",nil,nil))
            shape_center = axlDBAltOrigin('center shape_ID)
            cmd_str = sprintf(nil "shape check; pick %.2f %.2f; fillin %L", xCoord(shape_center), yCoord(shape_center), "70")
            axlShell(cmd_str)
            axlShell("Done")
        );end foreach
    );end if
);end defun shp_chk

  • Sign in to reply
  • Cancel
  • luanvn81
    luanvn81 over 10 years ago

    Hi All!

    I found that using ?cmdType "general" will resolve my problem, And now my new problem is I want to delete shape has just been created, I try to use axlDeleteObject(shape_ID) after command axlShell("Done") but not successful, the result return : W- *WARNING* (axlDeleteObject): Invalid database id argument - dbid:removed . How can I repair my code.

    Tks.

    Luan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • SadiqAlZaman
    SadiqAlZaman over 9 years ago

    Hi,

    can you give me the code for this task because i m unable to execute this code, actually i want to calculate the minimum aperture of shape , I will be grateful if you help me out

    I am newbie at skill and want to learn this

    regards

    Sadiq

    • 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