Home > Community > Forums > PCB SKILL > help on shape fill when using axlDBCreateShape..

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 help on shape fill when using axlDBCreateShape.. 

Last post Wed, Nov 28 2012 9:21 PM by D912349. 16 replies.
Started by D912349 25 Nov 2012 10:48 PM. Topic has 16 replies and 2522 views
Page 1 of 2 (17 items) 1 2 Next >
Sort Posts:
  • Sun, Nov 25 2012 10:48 PM

    • D912349
    • Top 150 Contributor
    • Joined on Fri, Nov 23 2012
    • Posts 47
    • Points 800
    help on shape fill when using axlDBCreateShape.. Reply

    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..

    • Post Points: 20
  • Mon, Nov 26 2012 12:09 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 744
    • Points 16,130
    Re: help on shape fill when using axlDBCreateShape.. Reply
    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.
    Dave Elder, Tait Communications
    • Post Points: 20
  • Mon, Nov 26 2012 5:10 PM

    • D912349
    • Top 150 Contributor
    • Joined on Fri, Nov 23 2012
    • Posts 47
    • Points 800
    Re: help on shape fill when using axlDBCreateShape.. Reply

    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.

    • Post Points: 20
  • Mon, Nov 26 2012 5:23 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 744
    • Points 16,130
    Re: help on shape fill when using axlDBCreateShape.. Reply
    The latest hotfix is s034. Can you install that?
    Dave Elder, Tait Communications
    • Post Points: 20
  • Mon, Nov 26 2012 6:45 PM

    • D912349
    • Top 150 Contributor
    • Joined on Fri, Nov 23 2012
    • Posts 47
    • Points 800
    Re: help on shape fill when using axlDBCreateShape.. Reply

    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

    • Post Points: 20
  • Mon, Nov 26 2012 7:12 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 744
    • Points 16,130
    Re: help on shape fill when using axlDBCreateShape.. Reply

    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? 

    Dave Elder, Tait Communications
    • Post Points: 5
  • Mon, Nov 26 2012 7:14 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 744
    • Points 16,130
    Re: help on shape fill when using axlDBCreateShape.. Reply
    Check your shape_add_filltype setting
    Dave Elder, Tait Communications
    • Post Points: 20
  • Mon, Nov 26 2012 9:28 PM

    • D912349
    • Top 150 Contributor
    • Joined on Fri, Nov 23 2012
    • Posts 47
    • Points 800
    Re: help on shape fill when using axlDBCreateShape.. Reply

    shape add setting is already set to dynamic but still the output remain the same.. is there a way to return user preferences set up back to default setting?. This may help test the routine if user preferences affects the output of the axl function..

    • Post Points: 5
  • Mon, Nov 26 2012 9:31 PM

    • D912349
    • Top 150 Contributor
    • Joined on Fri, Nov 23 2012
    • Posts 47
    • Points 800
    Re: help on shape fill when using axlDBCreateShape.. Reply
    i also tried running your skill code. It works fine but the problem on shape fill is not yet solved
    • Post Points: 20
  • Mon, Nov 26 2012 9:33 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 744
    • Points 16,130
    Re: help on shape fill when using axlDBCreateShape.. Reply
    Try exiting Allegro and renaming your HOME folder before trying again.
    Dave Elder, Tait Communications
    • Post Points: 20
  • Mon, Nov 26 2012 10:01 PM

    • D912349
    • Top 150 Contributor
    • Joined on Fri, Nov 23 2012
    • Posts 47
    • Points 800
    Re: help on shape fill when using axlDBCreateShape.. Reply

    thanks for the suggestion Dave, I also tried that but output generated is still the same.. shape fill is still static cross hatch,,

    • Post Points: 20
  • Tue, Nov 27 2012 3:04 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 744
    • Points 16,130
    Re: help on shape fill when using axlDBCreateShape.. Reply

    Sorry, I'm running out of ideas. 

    Does is happen on every net?

    Does it happen on a brand new design?

    Does it happen if you add a shape manually? 

    Dave Elder, Tait Communications
    • Post Points: 20
  • Tue, Nov 27 2012 5:10 PM

    • D912349
    • Top 150 Contributor
    • Joined on Fri, Nov 23 2012
    • Posts 47
    • Points 800
    Re: help on shape fill when using axlDBCreateShape.. Reply

    Yes, it happen on every net even dummy nets, same with design.. i also tried it on other machine but still shows the same output. but when I add the shape manually, dynamic copper type of shape is generated.. 

    Another thing. is there another way of generating shape without using axlDBCreateShape given that the input data will come from cline object?. or is there a way to change shape type using dbid of a shape?.

    • Post Points: 20
  • Tue, Nov 27 2012 5:27 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 744
    • Points 16,130
    Re: help on shape fill when using axlDBCreateShape.. Reply
    axlDBCreateShape is a wrapper for the two commands: axlDBCreateOpenShape and axlDBCreateCloseShape. You might like to try replacing axlDBCreateShape with these two commands. I don't think there is any other easy way to convert a cline to a shape. Does using a path instead of a polygon make any difference? i.e. rpath = axlPathStart(list(0:0 0:5 5:5 5:0 0:0)), axlDBCreateShape(rpath t "ETCH/TOP" "GND")
    Dave Elder, Tait Communications
    • Post Points: 20
  • Tue, Nov 27 2012 8:48 PM

    • D912349
    • Top 150 Contributor
    • Joined on Fri, Nov 23 2012
    • Posts 47
    • Points 800
    Re: help on shape fill when using axlDBCreateShape.. Reply

    using path might solve the problem but it is difficult to create path from a cline object. because basically, corners of the cline still needs to be solved from width and strartEnd attributes to create a path, considering that clines comes from different angles. Any way, Thanks eDave for the support, I will update whatever I find out regarding this issue..

    Thanks 

    • Post Points: 20
Page 1 of 2 (17 items) 1 2 Next >
Sort Posts:
Started by D912349 at 25 Nov 2012 10:48 PM. Topic has 16 replies.