• 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
  • Juuls
    Juuls over 4 years ago

    In addition to the previous question:

    Is there a way to call the "step_out" with an argument, that exports only the highlighted components, like when exporting via file -> export -> step?

    What I do now is replaying a recorded script, which is not the prettiest way - at least, because manual confirmation is needed.

    Unfortunetly there is no argument for this option described in the batchhelp... maybe the step_out.txt is out of date or this option is not supported ...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Juuls
    Juuls over 4 years ago

    In addition to the previous question:

    Is there a way to call the "step_out" with an argument, that exports only the highlighted components, like when exporting via file -> export -> step?

    What I do now is replaying a recorded script, which is not the prettiest way - at least, because manual confirmation is needed.

    Unfortunetly there is no argument for this option described in the batchhelp... maybe the step_out.txt is out of date or this option is not supported ...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Juuls
    Juuls 7 months ago in reply to Juuls

    After upgrading to 24.1 my script does not work anymore, because Cadence has done some significant changes and the "step_out" is no longer available. Normally I would expect the tool to be able export separate step files for each variant itself, but that doesn't seem to be the case.
    Has anyone the same problem and/or has an idea how to solve it? Thanks for any help in advance!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • John T
    John T 6 months ago in reply to Juuls

    Hi Juuls, can you please try the new command "3d_export"

    This uses the 3DX engine using OrCAD X/Allegro X licenses. It also has more optional arguments which can be found by adding -help to the command as follows:

     

    3d_export -help

    Usage: 3d_export outputFile millimeter|centimeter|micron|inch|mil [OPTIONS]

    Export the 3D design to a disk file base on options. The first two arguments specify output file name and unit, respectively, where format STEP (*.stp *.step) | IGES (*.iges) | ACIS (*.asat *.asab *.sat *.sab) | PDF (*.pdf) | USD (*.usda *.usdc *.usdz) is supported for the output file. The z=0 position is set to the LOWER of the BOTTOM conductor by default (z0_stackup="PRIMARY" z0_layer="BOTTOM" z0_layer_position="LOWER").

    Example:

    "3d_export abc.stp millimeter electrical_component external_conductor"

    "3d_export abc.stp millimeter -eE"

    "3d_export abc.stp millimeter -e -E"

    "3d_export abc.stp millimeter -e -E z0_stackup="FLEX1" z0_layer="TOP" z0_layer_position="UPPER""

    Option table:

    Short Long Description

    ----------------------------------------------------

    -e electrical_component Export electrical component

    -m mechanical_component Export mechanical component

    -X 3d_model Export 3d models

    -p place_bound Export place bound

    -d dfa_bound Export DFA bound

    -E external_conductor Export external conductor

    -i internal_conductor Export internal conductor

    -D dielectric Export dielectric

    -k pastemask Export pastemask

    -s soldermask Export soldermask

    -S silkscreen Export silkscreen

    -M mechanical_hole Export mechanical hole

    -P through_pin_hole Export through pin hole

    -V via_hole Export through via hole

    -f fully_bent Export design in fully bent state

    -l separate_file_per_layer Separate file per layer

    -C compress Compress output file

    -b bump Export bumps

    -B bond_wire Export bond wires

    -r rdl Export RDL(Die stack conductor)

    -t etch_back_trace Export etch back traces

    -T plating_bar_tail Export plating bar tails

    -A all Export everything

    NA z0_stackup Specify z=0 stackup

    NA z0_layer Specify z=0 layer

    NA z0_layer_position Specify z=0 layer position

    NA step_protocol Specify STEP protocol (AP203|AP214|AP242), default is AP214

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Juuls
    Juuls 6 months ago in reply to John T

    Hi John,

    thanks for you reply. Unfortunately, this also does not support exporting step files that only contains the components of each variant.

    The "step_out" had the option to export only the highlighted components and therefore somehow worked with my skill script. The "3x_export" has a similiar feature: when you open the 3d canvas, you can select "selected options only", but this does not work with my skill script, even if I select the components instead of highlighting them.

    I would appreciate, if this would work as a built-in function. I can not imagine, that I am the only one, who has a use case for this. But since this is not possible yet, I'm still interested in any other advice.

    • 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