Home > Community > Forums > PCB SKILL > How to get Crystal, Fuse and Oscillators Ratings?

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

 How to get Crystal, Fuse and Oscillators Ratings? 

Last post Mon, Sep 12 2011 5:22 PM by eDaNoy. 6 replies.
Started by eDaNoy 11 Sep 2011 11:54 PM. Topic has 6 replies and 2863 views
Page 1 of 1 (7 items)
Sort Posts:
  • Sun, Sep 11 2011 11:54 PM

    • eDaNoy
    • Top 200 Contributor
    • Joined on Fri, Sep 9 2011
    • SBMA, Philippines
    • Posts 41
    • Points 940
    How to get Crystal, Fuse and Oscillators Ratings? Reply
    Hello everyone, I am a new to skill programming, i been working as a pcb design layout engr since i have a little knowledge of programming, i would like to make things easier by making a skill to a certain task, i am doing silkscreen and fuse and crystal ratings are one of the most important details that should be correct, i would like to check if my partner added the right ratings, I have already extracted the added text (board geometry/silkscreen top and bottom), i also extracted all the components that should have a ratings refdes: X for crystal and F for fuse, but i cant get the package ratings, example xxx-25A-xxxx, 25A stands for 25amps i am using cadence allegro 16.2
    • Post Points: 20
  • Mon, Sep 12 2011 12:12 AM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 556
    • Points 9,795
    Re: How to get Crystal, Fuse and Oscillators Ratings? Reply

    Hi

    If it is a property that holds these values you can get it very easy, pseudo code below, replace comp_type with whatever property holds the rating etc.

    l_components= axlDBGetDesign()->components   ; get a list of all components

    foreach(compid l_components  ; run through all components

      c_comp_type=compid->compdef->prop->COMP_TYPE ; get property

     

    Best regards

    Ole

    Best regards Ole
    • Post Points: 35
  • Mon, Sep 12 2011 12:46 AM

    • eDaNoy
    • Top 200 Contributor
    • Joined on Fri, Sep 9 2011
    • SBMA, Philippines
    • Posts 41
    • Points 940
    Re: How to get Crystal, Fuse and Oscillators Ratings? Reply
    Thanks Ejlersen, i am excited to try this one, thanks to you, i'll let you know the result tomorrow, by looking to your pseudo code,i could say, i was almost there when trying to solve my problem, im ending up to the prop only, maybe that is why i cant get the result that i want. correct me if im wrong, prop holds dbid also? maybe one of those holds the value... but when im checking it thru telskill compRatings=compid->compdef->prop->? it says it is a "nil" anyways i'll try again...thanks again
    • Post Points: 20
  • Mon, Sep 12 2011 4:34 AM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 556
    • Points 9,795
    Re: How to get Crystal, Fuse and Oscillators Ratings? Reply

    Hi

    If you have a small sample board with just 1 component then you can attach it and I'll see what I can do.

    br

    Ole

    Best regards Ole
    • Post Points: 20
  • Mon, Sep 12 2011 7:44 AM

    • GraF
    • Top 500 Contributor
    • Joined on Thu, Jul 31 2008
    • Terranuova Bracciolini, Arezzo
    • Posts 18
    • Points 195
    Re: How to get Crystal, Fuse and Oscillators Ratings? Reply

    Hi Ole, I've a similar problem to solve.

    I need to show values stored in some key properties (like VALUE) and for a "custom-defined" property (Hyperlink) injected from the PTF file into components. 

    I've tried but seems that I use a wrong name for the property I've to extract.

    where it can be find a list of all properties that can be managed by skill functions?

    Many thanks & best regards

    • Post Points: 20
  • Mon, Sep 12 2011 9:15 AM

    • Randy R
    • Top 50 Contributor
    • Joined on Wed, Jul 16 2008
    • Dupont, WA
    • Posts 192
    • Points 3,025
    Re: How to get Crystal, Fuse and Oscillators Ratings? Reply

    @GraF:  Try "comp_def_props = axlDBGetProperties(compid->compdef)" where compid is a component dbid.

    Good Day, R².
    • Post Points: 5
  • Mon, Sep 12 2011 5:22 PM

    • eDaNoy
    • Top 200 Contributor
    • Joined on Fri, Sep 9 2011
    • SBMA, Philippines
    • Posts 41
    • Points 940
    Re: How to get Crystal, Fuse and Oscillators Ratings? Reply
    Hi Ejlersen, i already figure it out. l_components= axlDBGetDesign()->components ; get a list of all components foreach(compid l_components ; run through all components c_comp_type=compid->compdef->prop->COMP_TYPE ; where comp_type could be VALUE or TOL by simply changing the COMP_TYPE into VALUE, i got what i want, it goes like this. c_comp_type=compid->compdef->prop->VALUE, thanks for the idea, hope to share to you the first skill i've made. anyways maybe you can share me something to learn also, i want to incorporate flexgrid.ocx into my program, is it posible? using notepad++ in doing skill program.
    • Post Points: 5
Page 1 of 1 (7 items)
Sort Posts:
Started by eDaNoy at 11 Sep 2011 11:54 PM. Topic has 6 replies.