• 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. Rename subclass with SKILL

Stats

  • Replies 7
  • Subscribers 18
  • Views 10366
  • Members are here 0
More Content

Rename subclass with SKILL

mir0mik
mir0mik over 4 years ago

Hi,

Could someone help me, give me some pointers on how to rename user-defined subclass by SKILL?

I know how to add/remove subclasses by SKILL, but I can not figure out how to rename them (it is possible to rename them "manualy" so I suppose it is also possible by SKILL).

Thanks!

Miro

  • Cancel
  • Sign in to reply
  • B Bruekers
    B Bruekers over 4 years ago in reply to mir0mik

    Sucht approach should also work. However you need to do more coding to get all elements from one to another sclass.

    Only change layer change api i'm aware of is the axlChangeLayer()

    However I'm not sure about  if this can correctly move all objects to another layer, including properties, parent (when assigned) and groupparent (if grouped).

    If the sclass only contain a few items then this way should go fast.

    But if a sclass has a lot of elements (like a dxf import or so) then it can take some time, perhaps more than just running a script file...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mir0mik
    mir0mik over 4 years ago in reply to B Bruekers

    I've tested it yesterday and there is one problem - If you have a symbol that has some geometry (lines) in one subclass and you use axlChangeLayer() and convert everything to a new subclass and you want to delete the old subclass it will remember that the symbol has definitions in that layer and will prevent the deletion so this probably won't work...

    • 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