• 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
Parents
  • Evel
    Evel over 16 years ago

    Dear eDave,

     thanks for your quick reply and help.

     so now I can follow your mathord, but first of all I need get the drawing's name. because I need delete the whole Old_Drawing_i(i=1,2,3,4....);using your code:

    axlDeleteObject(car(axlSelectByName("Symtype" "Old_Drawing_1_name")))

    so now I need to do is that judge the drawing exit or not and then get the relate drawing symbol name:just like:

    Smathord_board-a-DRAWING-1121

    1,how I can get it?

     LISTING: 1 element(s)

                 < SYMBOL >            

      Symbol name:  Smathord_board-a-DRAWING-1121
      origin-xy:    (0.00 0.00)
      rotation:     0.000  degrees
      not_mirrored

    2,I will delete this old_drawing_i(i=1,2,3,..) and then creat a new drawing change the drawing_i(i=1,2,3..) to old_drawing_i(i=1,2,3...)

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

    Dear eDave,

     thanks for your quick reply and help.

     so now I can follow your mathord, but first of all I need get the drawing's name. because I need delete the whole Old_Drawing_i(i=1,2,3,4....);using your code:

    axlDeleteObject(car(axlSelectByName("Symtype" "Old_Drawing_1_name")))

    so now I need to do is that judge the drawing exit or not and then get the relate drawing symbol name:just like:

    Smathord_board-a-DRAWING-1121

    1,how I can get it?

     LISTING: 1 element(s)

                 < SYMBOL >            

      Symbol name:  Smathord_board-a-DRAWING-1121
      origin-xy:    (0.00 0.00)
      rotation:     0.000  degrees
      not_mirrored

    2,I will delete this old_drawing_i(i=1,2,3,..) and then creat a new drawing change the drawing_i(i=1,2,3..) to old_drawing_i(i=1,2,3...)

    • 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