Home > Community > Forums > PCB SKILL > Require skill script/function for silk screen coordiantes

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

 Require skill script/function for silk screen coordiantes 

Last post Thu, Dec 8 2011 3:29 PM by eDave. 5 replies.
Started by KetCadence 05 Dec 2011 03:21 PM. Topic has 5 replies and 2887 views
Page 1 of 1 (6 items)
Sort Posts:
  • Mon, Dec 5 2011 3:21 PM

    • KetCadence
    • Not Ranked
    • Joined on Wed, Aug 3 2011
    • Posts 5
    • Points 85
    Require skill script/function for silk screen coordiantes Reply

     Hello,

     

    I am trying to find skill function or develop a skill script that would provide me co-ordinates

    of silk screen of a component. I was not able to find such function.

    Could anyone please help me with this?

     

    Thanks.

    • Post Points: 20
  • Mon, Dec 5 2011 3:33 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 688
    • Points 14,675
    Re: Require skill script/function for silk screen coordiantes Reply
    Look at the children of the symbol that are using the silkscreen layer. eg: component = axlDBFindByName('refdes "IC1") silkscreenObjects = setof(dbid, component ->symbol ->children, dbid ->layer == "PACKAGE GEOMETRY/SILKSCREEN_TOP") Dave
    Dave Elder, Tait Communications
    • Post Points: 20
  • Wed, Dec 7 2011 2:11 PM

    • KetCadence
    • Not Ranked
    • Joined on Wed, Aug 3 2011
    • Posts 5
    • Points 85
    Re: Require skill script/function for silk screen coordiantes Reply

    Hello,

    Dave, Thanks for your reply.

    Your method worked for getting the silkscreen coordinates for components.

     

    Now, I was trying to get coordinates for "BOARD GEOMETRY/SILKSCREEN_TOP".

    I tried using "axlLayerGet(layerName)" and it gave me param dbid of layer.

    However, I was not able to extract any co-ordinate or shape related properties from it.

     

    I also tried, getting shapes on "BOARD GEOMETRY/SILKSCREEN_TOP" layer

    using:

    shapeList = axlDBGetShapes("PACKAGE GEOMETRY/SILKSCREEN_TOP");

    It is returning  null list.

     

    Does anybody have worked on this previously and have any idea how to get this information?

     

    Thanks.

    • Post Points: 20
  • Wed, Dec 7 2011 2:46 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 688
    • Points 14,675
    Re: Require skill script/function for silk screen coordiantes Reply

    1/ Layers don't have any shape-related properties.

    2/ axlDBGetShapes will only return shapes. Chances are that you don't have any shapes on that layer - just lines and text.

    Dave Elder, Tait Communications
    • Post Points: 20
  • Thu, Dec 8 2011 3:14 PM

    • KetCadence
    • Not Ranked
    • Joined on Wed, Aug 3 2011
    • Posts 5
    • Points 85
    Re: Require skill script/function for silk screen coordiantes Reply

    Hello Dave,

    As you suggested, there are no shape properties involved with "BOARD GEOMETRY/ SILKSCREN_TOP".

    I guess there should be some lines, clines associated with it.

    So, I was trying to get hold of those line objects in order to get required extents of silkscreen.

    I came acorss an utility developed by you called autoSilkUtils_public.il

    One of the change log in header information suggests:

    "8.20    26-Aug-09 DE    Also select associated objects that do not have a parent - such as board geometry text."

    So I was searching for the function related to above mentioned functionality.

    I found function called "findTypeObjects (types @key visibleOnly, layers, attrPairs, props, bbox, point, xy)".

    If I am correct, it is related to functionality related to above change log.

    I tried to use it as follows:

    objs = findTypeObjects("LINES", ?layers "BOARD GEOMETRY/SILKSCREEN_TOP")

    It gave me one dbid, but I am not able to identify what it is exaclty.

    I tried to print "objs->??", and it is nil.

     

    Could you please let me know, if this functionality could be used to get hold of line objects

    present in BOARD GEOMETRY/SILKSCREEN_TOP ?

    I am trying to debug this thing, but since I am new to this kind of scripting it is difficult to understand.

    Thanks.

    • Post Points: 20
  • Thu, Dec 8 2011 3:29 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 688
    • Points 14,675
    Re: Require skill script/function for silk screen coordiantes Reply
    Yes, you are on the right track. findTypeObjects returns a list. car(objs) ->?? will return something.
    Dave Elder, Tait Communications
    • Post Points: 5
Page 1 of 1 (6 items)
Sort Posts:
Started by KetCadence at 05 Dec 2011 03:21 PM. Topic has 5 replies.