Home > Community > Forums > PCB SKILL > Highlight location xy in rpt file

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

 Highlight location xy in rpt file 

Last post Sun, May 13 2012 6:11 PM by luanvn81. 8 replies.
Started by luanvn81 10 May 2012 11:09 PM. Topic has 8 replies and 3316 views
Page 1 of 1 (9 items)
Sort Posts:
  • Thu, May 10 2012 11:09 PM

    • luanvn81
    • Top 150 Contributor
    • Joined on Fri, Sep 18 2009
    • dnai, Vietnam
    • Posts 61
    • Points 920
    Highlight location xy in rpt file Reply

     Hi everyone!

     I have a code which print out a report file (ex: a.rpt) as below:

    Via Start Layer   Via End Layer     Via Location
    ETCH/TOP          ETCH/BOTTOM       (5.5:42.5)
    ETCH/TOP          ETCH/BOTTOM       (5.5:40.5)
    ETCH/TOP          ETCH/BOTTOM       (6.0:84.0)
    ETCH/TOP          ETCH/BOTTOM       (6.0:86.0)

     I want to highlight location xy with one color  and after I checked a location , it will change into one other color( at the same way dangling report check in allegro)

    How can I do it? 

    Tks.

    Luan.

    • Post Points: 35
  • Thu, May 10 2012 11:17 PM

    • Pawandeep
    • Top 75 Contributor
    • Joined on Sat, Oct 15 2011
    • Singapore, 00-SG
    • Posts 106
    • Points 1,690
    RE: Highlight location xy in rpt file Reply
    Hi Luan,

    I think instead of generating the XY locations as (X:Y) change it to (X Y)

    Then once you click on the location the window will zoom to that via location.

    Regards,

    Pawan

     

     
    • Post Points: 20
  • Fri, May 11 2012 12:03 AM

    • luanvn81
    • Top 150 Contributor
    • Joined on Fri, Sep 18 2009
    • dnai, Vietnam
    • Posts 61
    • Points 920
    Re: RE: Highlight location xy in rpt file Reply
     Hi! thank for your reply, but my problem is when I check a location, and then for example  I repair it, when return to report file ,  I don't know which location I have checked, so I wan to make the location xy with others color like  the way "dangling line report" of allegro do.

     here my code :

    ...................

    foreach(via allViasInDesign
    viaLocation = sprintf(nil "%L:%L" car(via->xy) cadr(via->xy))
    start_layer_via = car(via->startEnd)
    end_layer_via = cadr(via->startEnd)
    net_name_via = via->net->name
    via_name = via->name
    list_layer = list()
    ;list_layer = nil
    via_connects = axlDBGetConnect(via t)

    ;fprintf(writeOutFile, "%s %s %s %s\n",  via_name, start_layer_via, end_layer_via, viaLocation )

    foreach(via_connect via_connects
    type_obj = via_connect->objType

    case(type_obj
     ("pin"
       pin_layer = car(via_connect->startEnd)
       list_layer = cons(pin_layer, list_layer)
       ;fprintf(writeOutFile, "%s, %L\n", via_connect->objType, list_layer)
     ); end case pin

     ("via"
       ;via_layer = via_connect->startEnd
       via_layer = car(via_connect->startEnd)
       list_layer = cons(via_layer, list_layer)
       via_layer = cadr(via_connect->startEnd)
       list_layer = cons(via_layer, list_layer)
       if(cadr(via_connect->startEnd) = "ETCH/AL2" then
       list_layer = cons("ETCH/AL1", list_layer)
       else
       list_layer = list_layer
       ); end if
       ;fprintf(writeOutFile, "%s, %L\n", via_connect->objType, list_layer)
     ); end case via

     ("shape"
       shape_layer = via_connect->layer
       list_layer = cons(shape_layer, list_layer)
       ;fprintf(writeOutFile, "%s, %L\n", via_connect->objType, list_layer)
     ); end case shape

     ("path"
       path_layer = via_connect->layer
       list_layer = cons(path_layer, list_layer)
       ;fprintf(writeOutFile, "%s, %L\n", via_connect->objType, list_layer)
     ); end case path-cline
    ); end case all
    );end foreach via_connect

    a1 = length(member(start_layer_via, list_layer))
    a2 = length(member(end_layer_via, list_layer))

    if( a1 == 0 || a2 == 0 then
    fprintf(writeOutFile, "%-18s%-18s(%-s)\n", start_layer_via, end_layer_via, viaLocation)
    );end if
    );end foreach via allViasInDesign

    ...........................................

    Tks.

    Luan

     
    • Post Points: 20
  • Fri, May 11 2012 12:36 AM

    • Pawandeep
    • Top 75 Contributor
    • Joined on Sat, Oct 15 2011
    • Singapore, 00-SG
    • Posts 106
    • Points 1,690
    RE: RE: Highlight location xy in rpt file Reply
    Hi Luan,

    I just realized that there is no difference in (X:Y) and (X Y) for zooming in the location.

    Regarding your concern on highlighting the text(this is something new here) may be someone can help in the forum…
    • Post Points: 5
  • Fri, May 11 2012 5:29 AM

    • Geoff
    • Top 500 Contributor
    • Joined on Tue, Aug 12 2008
    • Ottawa, Ontario
    • Posts 24
    • Points 390
    Re: RE: Highlight location xy in rpt file Reply

    Hi Luan

    I think you want to put a permanent highlight color on certain vias, and after you have fixed each one, the program would change the color. In that way you could see the vias you have fixed.

     Unfortunately Allegro doesn't let you put a permanent highlight on vias. I wish it did.

     Geoff

    • Post Points: 20
  • Fri, May 11 2012 6:02 AM

    • Pawandeep
    • Top 75 Contributor
    • Joined on Sat, Oct 15 2011
    • Singapore, 00-SG
    • Posts 106
    • Points 1,690
    Re: RE: Highlight location xy in rpt file Reply

    Hi Geoff,

    I think what Luan is asking is that if we run dangling line report from Tools->Reports->Dangling lines, we are able to zoom in the locations and the links(XY locations) that we clicked are highligted in a "Darker Tone" shade then the rest of Blue color locations as shown in my attached image.

    Is there any way to achieve this for any custom reports generated using SKILL?

    -Pawan


    • Post Points: 20
  • Fri, May 11 2012 6:40 AM

    • Geoff
    • Top 500 Contributor
    • Joined on Tue, Aug 12 2008
    • Ottawa, Ontario
    • Posts 24
    • Points 390
    Re: RE: Highlight location xy in rpt file Reply

    Hi Pawandeep

     You are right, the problem is the lack of highlighting in a user report. I should have read Luan's post more closely.

    I also would like to find out if it's possible to do.

    Geoff

    • Post Points: 20
  • Fri, May 11 2012 7:55 AM

    • Randy R
    • Top 50 Contributor
    • Joined on Wed, Jul 16 2008
    • Dupont, WA
    • Posts 193
    • Points 3,060
    Re: RE: Highlight location xy in rpt file Reply

    See if this does what you want:

    Go to Setup->User Preferences->Html and make sure the "Enable HTML" box is checked.

    Then open your file using File->File Viewer.

    Good Day, R².
    • Post Points: 20
  • Sun, May 13 2012 6:11 PM

    • luanvn81
    • Top 150 Contributor
    • Joined on Fri, Sep 18 2009
    • dnai, Vietnam
    • Posts 61
    • Points 920
    Re: RE: Highlight location xy in rpt file Reply

     Hi Randy & everyone !

       Thank for yours  advices. That really what I want, now it works as my expectations.Once again thank you very much.

     Luan.

    • Post Points: 5
Page 1 of 1 (9 items)
Sort Posts:
Started by luanvn81 at 10 May 2012 11:09 PM. Topic has 8 replies.