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?
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.