• 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. delete the visible xsection layer

Stats

  • Replies 3
  • Subscribers 18
  • Views 9774
  • Members are here 0
More Content

delete the visible xsection layer

tennywhy
tennywhy over 7 years ago

i need a function, it get a number from user , if the number small than the currently xsectin layer number, then it will delete the visible layer pair( one conductor layer and a dielectrinic layer) , but i stuck at i verify a xsection layer are conductor and is visible currently ? im tried as follow ,but it doesnt work. so what's the right way ?

        xslayer = axlXSectionGet( nil 'all )
 foreach( xsNum xslyaer
                 if( xsNum->isEtch && secNum->visible then   ; or xsNum->CONDUCTOR i want verify the layer is conductor and visible
                        printf( "will delete layer pair %" xsNum->position ) 
                        axlDeleteByLayer(xsNum->position + 1 )  ;delete dielectronic first
                        axlDeleteByLayer(xsNum->position )     ;then conductor 
                    )
               ) ; just the position attribute is worked

  • Sign in to reply
  • Cancel
Parents
  • DavidJHutchins
    DavidJHutchins over 7 years ago

    I think you need to be using axlXSectionDelete() instead of axlDeleteByLayer(), since axlDeleteByLayer() requires a layer name, not a position number

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • tennywhy
    tennywhy over 7 years ago in reply to DavidJHutchins

    thanks sir, i tried the axlDeleteByLayer, it's seem as the position and number could be work.  but i confused are how can check one layer if visible and is a conductor layer.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • tennywhy
    tennywhy over 7 years ago in reply to DavidJHutchins

    thanks sir, i tried the axlDeleteByLayer, it's seem as the position and number could be work.  but i confused are how can check one layer if visible and is a conductor layer.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • DavidJHutchins
    DavidJHutchins over 7 years ago in reply to tennywhy

    Something like the following might work:

    when(secNum == xsNum->position
        axlMsgPut("found %d - %s" secNum strcat(axlMapClassName("ETCH") "/" xsNum->name))
        when(xsNum->conductor && axlIsVisibleLayer(strcat(axlMapClassName("ETCH") "/" xsNum->name))
            printf( "will delete layer pair %d" xsNum->position)
            axlDeleteByLayer(strcat(axlMapClassName("ETCH") "/" xsNum->name) 'fixed)
            axlXSectionDelete(xsNum->position + 1)
            axlXSectionDelete(xsNum->position)
        )
    )

    • 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