• 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

    Hi,Dave

    for(i, 1, n
      obj = car(axlSelectByName("Symtype" sprintf(nil, "Old_Drawing_%d_name", i)))
      when(obj
        axlDeleteObject(obj)
        ...
      )
    )

    is ok, but firstly I need get the value of Old_Drawing_%d's name.just don't know how to get it...

    For delete,My code is :

    if(axlIsLayer(Old_Drawing_id)!=nil
    then
    axlVisibleDesign(nil)
    axlVisibleLayer(Old_Drawing_id t)
    (axlClearSelSet)
     axlSetFindFilter( ?enabled list("all" "symbols"  ) ?onButtons list("noall" "symbols" ))
     sprintf(cmd "delete;pick 0 0;done")
     axlShell(cmd)

    because it is a drawing symbol,so pick 0:0 will be OK for delete.

    so I need to do is that automatic get the value of the Old_Drawing_id's name......

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

    Hi,Dave

    for(i, 1, n
      obj = car(axlSelectByName("Symtype" sprintf(nil, "Old_Drawing_%d_name", i)))
      when(obj
        axlDeleteObject(obj)
        ...
      )
    )

    is ok, but firstly I need get the value of Old_Drawing_%d's name.just don't know how to get it...

    For delete,My code is :

    if(axlIsLayer(Old_Drawing_id)!=nil
    then
    axlVisibleDesign(nil)
    axlVisibleLayer(Old_Drawing_id t)
    (axlClearSelSet)
     axlSetFindFilter( ?enabled list("all" "symbols"  ) ?onButtons list("noall" "symbols" ))
     sprintf(cmd "delete;pick 0 0;done")
     axlShell(cmd)

    because it is a drawing symbol,so pick 0:0 will be OK for delete.

    so I need to do is that automatic get the value of the Old_Drawing_id's name......

    • 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