• 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. Delet empty Drill layers

Stats

  • Replies 2
  • Subscribers 158
  • Views 13133
  • Members are here 0
More Content

Delet empty Drill layers

ePeter
ePeter over 10 years ago

I am trying to delete empty layers from my design with the following code,

(defun rm_drill_layers ()
;
; Delete empty drill layers , layers whitch contains data can't be deleted
;
 my_layers = axlGetParam("paramLayerGroup:Manufacturing")
 foreach(layer my_layers->groupMembers
 ;axlMsgPut( strcat( "Layer : " layer))
 if(nindex(layer "NCLEGEND")!=nil then
  p = axlLayerGet(strcat("Manufacturing/" layer))
  axlDeleteObject(p)
  axlMsgPut( strcat( "Trying to delete : " layer ) )
  )
 )
); end rm_drill_layers
axlCmdRegister( "rm_drill_layers" 'rm_drill_layers)

 

But it won't delete the layers, can some help me with this code ?

I think I am doing something wrong with axlDeleteObject(p) but can't figure out what.

 

  • Sign in to reply
  • Cancel
  • eDave
    eDave over 10 years ago
    I don't think it's possible to delete NCLEGEND generated subclasses. Try doing it manually.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ePeter
    ePeter over 10 years ago

    Hi Dave,

    Thanks for your aswer

    This also doesn't work, but I found another way of generating the correct artwork layers.

    When you create nc legend this also makes new groups ex. DRILL_LEGEND_1_6 and DRILL_LEGEND_5_6. so I am using this now for my film creation.

     

     

    • 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