Home > Community > Forums > PCB SKILL > To get extents of place bound shape of a part

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: *

 To get extents of place bound shape of a part 

Last post Mon, Jul 21 2014 10:15 PM by myeda. 1 replies.
Started by ShilpaReddy 30 Jun 2014 01:51 PM. Topic has 1 replies and 476 views
Page 1 of 1 (2 items)
Sort Posts:
  • Mon, Jun 30 2014 1:51 PM

    To get extents of place bound shape of a part Reply

    axlVisibleDesign(nil)

    axlVisibleLayer("PACKAGE GEOMETRY/PLACE_BOUND_TOP" t)
    axlVisibleLayer("PACKAGE GEOMETRY/PLACE_BOUND_BOTTOM" t)

     ; MAKE A LIST OF BGAs USING THE SYMBOL LIST
        foreach(symbols l_symbol
            if(rexMatchp("BGA" symbols->name) then
                l_bga = append1(l_bga symbols)
            );if
        );foreach

    ; GET PLACE BOUND SHAPES
        foreach(tempsymbol l_bga
            bBox = axlDBGetExtents(tempsymbol t) ;this code is getting the assembly outline and not place bound
            printf("%B\n" bBox)
        );foreach

    axlDBGetExtents() is giving the the extents of the whole symbol, which is the assembly outline. I have only place bound layers turned on and using argument "t" to get the extents of the visible layer only.

    Anyone used axlDBGetExtents() or setof() to get the extents of place bound, please help.

     

    Thanks

    Shilpa

    • Post Points: 20
  • Mon, Jul 21 2014 10:15 PM

    • myeda
    • Not Ranked
    • Joined on Mon, Jul 21 2014
    • ShangHai, Shanghai
    • Posts 1
    • Points 5
    Re: To get extents of place bound shape of a part Reply

    Some code for you to try:

    lBoundShape = setof(p sym->children (p->objType == "shape") && index(p->layer "PACKAGE GEOMETRY/PLACE_BOUND_"))

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by ShilpaReddy at 30 Jun 2014 01:51 PM. Topic has 1 replies.