Home > Community > Forums > PCB SKILL > Refdes Attribute ?

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

 Refdes Attribute ? 

Last post Thu, May 23 2013 7:09 PM by luanvn81. 2 replies.
Started by luanvn81 20 May 2013 01:22 AM. Topic has 2 replies and 679 views
Page 1 of 1 (3 items)
Sort Posts:
  • Mon, May 20 2013 1:22 AM

    • luanvn81
    • Top 150 Contributor
    • Joined on Fri, Sep 18 2009
    • dnai, Vietnam
    • Posts 61
    • Points 920
    Refdes Attribute ? Reply

     Hi !

    I want to get some atrtibute of refdes, such as rotation, xy, textBlock , isMirrored ( ex: refdes-> rotation), but i don't find any  function to do that. there is only  Text Attribute. How can i do it? Please help me?

    Tks.

    Luan.

    • Post Points: 20
  • Mon, May 20 2013 7:17 AM

    • oldmouldy
    • Top 10 Contributor
    • Joined on Tue, Jul 15 2008
    • Woking, Surrey
    • Posts 1,415
    • Points 24,155
    Re: Refdes Attribute ? Reply
    Try axlDBGetAttachedText documented in algroskill.pdf in the doc\algroskill directory of the installation, this takes the dbid of an object and returns a list of dbids that are the attached Text Attributes, these Text Attributes will have the modifier properties attached.
    • Post Points: 20
  • Thu, May 23 2013 7:09 PM

    • luanvn81
    • Top 150 Contributor
    • Joined on Fri, Sep 18 2009
    • dnai, Vietnam
    • Posts 61
    • Points 920
    Re: Refdes Attribute ? Reply

     Hi oldmouldy! Sorry for reply too late.

     Thank for your advice , I have tested with function  axlDBGetAttachedText and the result is OK. Here's my test code:

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

    foreach(sym_chk, allsymlist
    attach_text_list = axlDBGetAttachedText(sym_chk)
        foreach( item attach_text_list
            if(item->layer == "REF DES/SILKSCREEN_TOP" || item->layer == "REF DES/SILKSCREEN_BOTTOM" then
            sym_chk_refdes_text = item->text
            sym_chk_refdes_layer = item->layer
            sym_chk_refdes_justify = item->justify
            sym_chk_refdes_txtbock = item->textBlock
            sym_chk_refdes_mirror = item->isMirrored
            sym_chk_refdes_rotation = item->rotation
            );end if

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

    ...........................
        );end foreach
    );end foreach 

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

    Tks.

    Luan.

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by luanvn81 at 20 May 2013 01:22 AM. Topic has 2 replies.