• 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. X-out on assembly variants

Stats

  • Replies 9
  • Subscribers 17
  • Views 11302
  • Members are here 0
More Content

X-out on assembly variants

VECTORT
VECTORT over 7 years ago

Hi,

I know that there is an option Manufacture > Variants > Create Assembly Drawing...

but this option makes unpopulated components to disappear, and this is not suitable for documentation for our manufacturing facility.

I know how to go in SKILL through all variants in Variant.lst.

One thing I need is how to draw in skill X of the size of assembly rectangle of the component on certain layer.

Thank you in advance for any tip.

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

    Something like this:

    defun( DE_VariantAssemblyDraw (variantSymbols, topLayer, bottomLayer)
    foreach(sym, variantSymbols
    bBox = nil
    objs = setof(obj, sym ->children, memv(obj ->objType, '("path", "shape", "polygon")) && obj ->layer == strcat("PACKAGE GEOMETRY/ASSEMBLY_", if(sym ->isMirrored, "BOTTOM", "TOP")))
    foreach(obj, objs
    bBox = if(bBox
    then list(list(min(caar(bBox), caar(obj ->bBox)), min(cadar(bBox), cadar(obj ->bBox))), list(max(caadr(bBox), caadr(obj ->bBox)), min(cadadr(bBox), cadadr(obj ->bBox))))
    else obj ->bBox
    )
    newObj = car(axlDBCreateRectangle(bBox, nil, if(sym ->isMirrored, bottomLayer, topLayer), nil, sym))
    )
    )
    )

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • VECTORT
    VECTORT over 7 years ago in reply to eDave

    I have another question.
    this bBox creates rectangular area of whole component is it possible to use only one layer from component?
    For example PACKAGE GEOMETRY/DFA BOUND_(TOP,BOTTOM)
    The reason for that is that some components have some elements that are out of PACKAGE GEOMETRY/DFA BOUND_(TOP,BOTTOM) (e.x. SilkScreen) but using bBox sise I am getting bigger Xout that I would like to have (example attached).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 7 years ago in reply to VECTORT

    Look at my code more carefully.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • VECTORT
    VECTORT over 7 years ago in reply to eDave

    I did and still it is not exactly what I am looking for, there is issue with rotated components.
    I have idea how to solve it but I am not able to find out how to get coordinates of corners for shape from "PACKAGE GEOMETRY/DFA_BOUND_(TOP,BOTTOM)"

    Could you please help with that.

    One more:
    how to display dbid attributes ? I try to do but without success:
    axlClearSelSet()
    axlSetFindFilter(?enabled '(components) ?onButtons '(components))
    result=axlGetSelSet(axlSingleSelectName("COMPONENT" strcat("U10000")))
    printf("Result: %L\n", result->??)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 7 years ago in reply to VECTORT

    Get the bBox attribute from your shapes to find the corners.

    You must take the car of your result as (not surprisingly) axlGetSelSet returns a list of dbids.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • eDave
    eDave over 7 years ago in reply to VECTORT

    Get the bBox attribute from your shapes to find the corners.

    You must take the car of your result as (not surprisingly) axlGetSelSet returns a list of dbids.

    • 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