• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. Require skill script/function for silk screen coordiant...

Stats

  • Replies 6
  • Subscribers 160
  • Views 3446
  • Members are here 0
More Content

Require skill script/function for silk screen coordiantes

KetCadence
KetCadence over 13 years ago

 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.

  • Cancel
  • Sign in to reply
  • eDave
    eDave over 13 years ago
    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
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • KetCadence
    KetCadence over 13 years ago

    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.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 13 years ago

    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.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • KetCadence
    KetCadence over 13 years ago

    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.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 13 years ago
    Yes, you are on the right track. findTypeObjects returns a list. car(objs) ->?? will return something.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
>
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information