• 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. Error when void shape?????????

Stats

  • Replies 9
  • Subscribers 161
  • Views 16681
  • Members are here 0
More Content

Error when void shape?????????

ELEKVN
ELEKVN over 16 years ago

   I want to creat one shape and void it.
  I could creat shape by blow code
        
        ;*************************
        mypath = axlPathStart( list(-3200.000:5812.000))
        mypath = axlPathLine( mypath, 0.0, -3200.000:5020.000)
        mypath = axlPathLine( mypath, 0.0, -4016.000:5020.000)
        mypath = axlPathLine( mypath, 0.0, -4016.000:5812.000)
        mypath = axlPathLine( mypath, 0.0, -3200.000:5812.000)
        myshape = axlDBCreateOpenShape( mypath, t,"etch/top", "GND")
        axlDBCreateCloseShape( myshape)
        ;*****************************
 But I could't void this shape by below code:
         ;******************************
        axlSetFindFilter(?enabled (list "noall" "Shapes" "Voids") ?onButtons (list "noall" "Shapes" "Voids"))
        while((axlSelect)
        myshape = axlGetSelSet()
            foreach(myshapes myshape
            myvoidpath = axlPathStart( list(-3519.000:5586.000))
            myvoidpath = axlPathLine( myvoidpath, 0.0, -3519.000:5259.000)
            myvoidpath = axlPathLine( myvoidpath, 0.0, -3742.000:5259.000)
            myvoidpath = axlPathLine( myvoidpath, 0.0, -3742.000:5586.000)
            myvoidpath = axlPathLine( myvoidpath, 0.0, -3519.000:5586.000)
            axlDBCreateVoid(myshapes, myvoidpath)
            axlDBCreateCloseShape( myshapes)
            )
        ;****************************
I see warning in Allegro screen:

    E- Unfilled shape can not contain voids
    E- Database object is not a shape.
    
Can you  help me correct it.


Thank you.
Elek
   

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

    You can't void an existing shape like that. To perform that task you should:

    1/ Extract the polygon of the existing shape (Use axlPolyFromDB).

    2/ Create a new open shape from that polygon

    3/ Create your void

    4/ Create the closed shape

    5/ Delete the original shape if all the above steps are successful.

    Dave

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Jason Hsu
    Jason Hsu over 6 years ago in reply to eDave

    Hi Dave,

      I try your prompt several times, but I failed. Could you please answer me here? Thanks in advance.

      Firstly, I add a rectangle on one layer by using axlDBCreateOpenShape(), and execute axlDBCreateVoidCircle() to add 9 circle on it. Then, I want to add three bar to overlap the circle. Void the shape and generate the shape like the following picture. But the skill window tell me -- E -(SPMHDB-186): Void must be within the shape. I don't know how to define the bar's  coordinate. Maybe it is out of the range after the circle is void. Please help me. Thanks again.

    path1 = axlPathStart( list(-30:30 -30:-30 30:-30 30:30 -30:30) )

    shp1 = axlDBCreateOpenShape( path1, t, "ETCH/TOP", nil )

    axlDBCreateVoidCircle( shp1 list(-19:19 8) )

    axlDBCreateVoidCircle( shp1 list(0:19 8) )

    ...

    ...

    ...        ;The above is ok, now the circles and shape is generated.

    path2 = axlPathStart( list(-19:21 -19:17 30:17 30:21 -19:21) )

    Poly = axlPolyFromDB(shp1 ?layer "ETCH/TOP")

    shp2 = axlDBCreateOpenShape(??)

      Dave, please help me.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • B Bruekers
    B Bruekers over 6 years ago in reply to Jason Hsu

    Personally I would approach this in a different way; first create a rectangle polygon, then create a list of polygons which contain the 9 circles and 3 bars.  Then do an axlPolyOperation with 'ANDNOT. 

    axlPolyOperation(poly_of_rect   list_of_VoidPoly 'ANDNOT)

    This will create a resulting polygon as shown above with which you create a shape on the etch layer.

    Bram

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • B Bruekers
    B Bruekers over 6 years ago in reply to Jason Hsu

    Personally I would approach this in a different way; first create a rectangle polygon, then create a list of polygons which contain the 9 circles and 3 bars.  Then do an axlPolyOperation with 'ANDNOT. 

    axlPolyOperation(poly_of_rect   list_of_VoidPoly 'ANDNOT)

    This will create a resulting polygon as shown above with which you create a shape on the etch layer.

    Bram

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
  • eDave
    eDave over 6 years ago in reply to B Bruekers

    I agree. Bram's method is what I would use.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Jason Hsu
    Jason Hsu over 6 years ago in reply to eDave

    Thank you very much, Bram & Dave: ) I will try this method and add more conditions for my code. Thanks again.

    • 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