• 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. axlDBOpenShape() not working for dynamic shapes

Stats

  • Replies 4
  • Subscribers 158
  • Views 13172
  • Members are here 0
More Content

axlDBOpenShape() not working for dynamic shapes

jwhend
jwhend over 11 years ago

Is there away to open a dynamic shape?

I tried axlDBOpenShape(current_shape) and Get  "W- *WARNING* (axlDBOpenShape): Cannot edit a generated shape."

I use this to open static shapes and it works fine, but need to be able to open both.

Thanks,

Jerry

 

  • Sign in to reply
  • Cancel
  • fxffxf
    fxffxf over 11 years ago

    For dynamic shapes, you must open the dynamic shape (BOUNDARY class) not the generated shape (ETCH class).

    To obtain the boundary shape from a generate shape (assumes  generatedShape is the Skill variable hold the shape dbid)

        boundaryShape = generatedShape->shapeBoundary

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jwhend
    jwhend over 11 years ago

    Is there a way to test if a shape is static or dynamic?

    I figured this part. Just didn't scroll down far enough in your reply. Also, what is the function to open the shape BOUNDARY class?

    Thanks,

    Jerry

     

    fxffxf said:

    For dynamic shapes, you must open the dynamic shape (BOUNDARY class) not the generated shape (ETCH class).

    To obtain the boundary shape from a generate shape (assumes  generatedShape is the Skill variable hold the shape dbid)

        boundaryShape = generatedShape->shapeBoundary

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fxffxf
    fxffxf over 11 years ago

     if you have a dbid of a shape the:

        if  dbid->shapeBoundary is nil then you can use dbid to open the shape

        if dbid->shapeBoundary is non-nil then pass  dbid->shapeBoundary to open the shape

    If you finding shapes by using axlSetFindFilter method then you can add "BOUNDARY_SHAPES" to the list of items passed to the '?enabled' option and find will automatically promote a found shape to its owning dynamic shape.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jwhend
    jwhend over 11 years ago

    Great! Works like a charm.

    Thanks,

    Jerry

     

    • 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