• 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. question about the delete subclass

Stats

  • Replies 8
  • Subscribers 159
  • Views 15517
  • Members are here 0
More Content

question about the delete subclass

Evel
Evel over 16 years ago
Dear all, It's my first time for asking help here about a skill. I want to write a function about the class/subclass modify and update. 1,if the Old_Drawing_1 is exist and drawing is not null. I need delete all the Old_Drawing and change the drawing_1 to Old_Drawing_1 But When I want to use the axlDeleteObject function, it said that if the drawing is not null,it can not delete it, and I don't want to use the axlshell delete function. 2, also I found a question about the delete;when I use the delete Symbol "Drawing_name" done, I can not delete, but when I use to other normal symbol. such as U1.it works! 3,In a word, Just done: 1,Drawing_i-->Old_Drawing_i (i=1,2,3,4...) 2,intellect judgement and update.(Notes: Drawing1&Drawing2 or Drawing3&Drawing4 is a symbol load by bsm file) thank you!
  • Sign in to reply
  • Cancel
  • Evel
    Evel over 16 years ago

    sorry Dave,

    Old_Drawing_id such as "BOARD GEOMETRY/Old_Drawing_1" 

    it is a class/subclass, also a symbol (mechanical symbol).I place it as a bsm file into the board.

    maybe the question should be: how to judge the drawing layer belong to which mechanical symbol?

    thank you!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 16 years ago

    Cadence doesn't work like that. Layers do not "belong" to symbols. So there is no Class/Subclass, as such, for a symbol.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 16 years ago

    If you have a mechanical symbol placed that only has objects on one layer you can use the method that I described earlier to detect that layer. i.e. get the layer(s) of the children of the symbol.

    • 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