• 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. help on shape fill when using axlDBCreateShape..

Stats

  • Replies 16
  • Subscribers 158
  • Views 18685
  • Members are here 0
More Content

help on shape fill when using axlDBCreateShape..

D912349
D912349 over 12 years ago

Hi everyone,

 I am currently working on a certain program wherein a certain cline segment will be converted to shape(version of allegro used is 16.5).. i was able to generate the shape by first getting the polygon object of the cline then use it on axlDBCreateShape.. refer to code below..

clineDbid = (dbid of cline to converted to shape)

polyDbid = car(axlPolyFromDB(clineDbid ?endCapType 'SQUARE))

axlDBCreateShape(polyDbid t layer netName) 

The program works fine but the main problem is the shape fill type. As default, solid fill shape or dynamic copper type should be generated but whenever i run the program, static crosshatch type is generated.. I need the shapes generated to be in solid fill shape/dynamic type..

Thanks..

  • Sign in to reply
  • Cancel
  • eDave
    eDave over 12 years ago
    What release and hotfix are you on? I can't emulate this problem on 16.6 and I'm certain that this didn't happen in later releases of 16.5.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • D912349
    D912349 over 12 years ago

    Hi eDave,

    The hotfix version that i am using is S024. here is exact text that is shown when "About.." command is clicked 16.5 S024(v16-5-13BH)(6/15/2012)i86.  

    Thanks in advance eDave.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 12 years ago
    The latest hotfix is s034. Can you install that?
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • D912349
    D912349 over 12 years ago

    I already installed the latest hotfix and tried the same code but still generated the same output. just to confirm that the problem is not on my code. kindly check the code below if it..

    (defun clineToShapes ()
     let((clineDbid layer netName parent polys)

    axlSetFindFilter(?enabled `("noALL" "clines") ?onButtons `("noALL" "clines"))

    while(axlEnterPoint()
       axlSingleSelectPoint(axlLastPick(nil))
       clineDbid = car(axlGetSelSet())
       layer = clineDbid->layer
       netName = clineDbid->net->name
       polys = car(axlPolyFromDB(clineDbid ?endCapType 'SQUARE)) 
       axlDBCreateShape(polys t layer netName)
       axlDeleteObject(clineDbid) 
      )

    Thanks

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

    Your code works OK for me. I wonder if there is a setting in your Allegro that forces shapes to fill in a certain way?

    See my version of this (attached) that has some right mouse buttom options. Does it work for you? 

    clineToShape_public.zip
    • 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