• 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. Variant STEP Export using Skill

Stats

  • Replies 6
  • Subscribers 18
  • Views 11195
  • Members are here 0
More Content

Variant STEP Export using Skill

Juuls
Juuls over 4 years ago

Hello,

I'm looking for a way to export each variant to a seperate step-file. I have not found a custom solution to this problem,
so I tried to solve this problem using skill.

My idea was:

- reading the variant.lst and getting all variants and the associated components
- selecting the components with "axlAddSelectName("SYMBOL" l_names)"
- and export the step using a script, with the option: Parts -> "Selected and highlighted parts only"

The first strange behavior is, that the axlAddSelectName(...) always returns "nil" unless I call
axlSelectByName("SYMBOL" ...) and axlClearSelSet() before ...

But the more confusing behavior is, that all selected parts (selected with the function call) are deselected when the export menu is opened...

Is the a more simply solution for my problem? Or can anybody help, what to do, to keep the selection valid for the export process?

Thank you for your help in advance!

Regards,

Julian

  • Sign in to reply
  • Cancel
Parents
  • eDave
    eDave over 4 years ago

    Don't dehighlight the symbols in your skill code  will run before the script starts. Something like this would work:

    defun( MyStepOut (variantRefdesList)
    axlDehighlightObject('all, t)
    axlVisibleUpdate(t)
    syms = mapcar(lambda((refdes), axlDBFindByName('refdes, refdes)), variantRefdesList)
    axlHighlightObject(syms, t)
    axlShell("step out")
    )

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • eDave
    eDave over 4 years ago

    Don't dehighlight the symbols in your skill code  will run before the script starts. Something like this would work:

    defun( MyStepOut (variantRefdesList)
    axlDehighlightObject('all, t)
    axlVisibleUpdate(t)
    syms = mapcar(lambda((refdes), axlDBFindByName('refdes, refdes)), variantRefdesList)
    axlHighlightObject(syms, t)
    axlShell("step out")
    )

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Juuls
    Juuls over 4 years ago in reply to eDave

    Hi,

    thanks for your fast reply! Your code works fine for me, many thanks!

    Regards,

    Julian

    • 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