Thursday, January 08, 2009     Register | Login | Search | Contact Us
     

Many of you already received communications about the move of the Cadence user community into cadence.com. And many of you have already joined, with over 4000 registrations in the first two weeks.

The new Cadence Community enhances the ability of Cadence users to connect and collaborate. In addition to moving the community into cadence.com -- enabling single sign-on for community, Sourcelink and Cadence events -- the new site is organized around nine technology segments, giving you easy access to product information, training, forums and blogs. Some of the new features include:
  • Ability to respond to posts via e-mail
  • Technology-specific blogs
  • Latest Web 2.0 social networking capabilities
  • Public profile options
  • Private messaging
  • Friends lists
Visit the new Cadence Community today at www.cadence.com/community and join the discussions!

Registration note: Due to the scope of the enhancements and the new SSO registration system, we were not able to migrate existing cdnusers.org member accounts. So new registrations are required, but this enables a broader set of functionality we think you'll enjoy.

Forum note: Under the guidance of forum moderators, we have taken the 20+ cdnusers.org forums and consolidated them into 11 forums on the new site. Posts have been brought over so you can leverage that posting history. CDNusers forums will be set to read only starting 7/30, and cdnusers.org will be redirected to the new community on 8/4.

Best regards,
Mike and Tom

Michael A. Catrambone - Steering Committee Chairman
Distinguished Engineer
PCB/Mechanical
UTStarcom, Inc.

Tom Diederich
Cadence Community Manager
Home
Forums
Subject: Selecting objects based on their layer
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
mgore@amkor.com
Posts: 0
Online: User is Offline
1/03/2007 9:58 AM  
Hello,
I'm new to SKILL and need some help with selecting objects.  I would like to know if it's possible to create a selection set of certain objects base on their layer name.  For example I want to select all of the clines on layer L02.  Is that possible, and if so, how can I do it?

Thanks in advance,
Mark
AshCan
Posts: 20
Online: User is Offline
1/03/2007 11:02 AM  
Mark
I'll assume you have a grounding in programming in a high level OOP language so I'll just put some pseudocode here for you.
Basically your routine could be something like:

a = axlDBGetDesign()
an = a -> nets ;"an" now contains a list of all net objects in the db
foreach net in an
iterate n times, x = nth(n an) -> branches ; and x is now a list of the nets branches
foreach branch in x
iterate n times, y = nth(n x) -> children ; and y is now a liost of that branches children
foreach child in y
iterate n times, z = nth(n y)
if z -> objType == "path"
&& if z -> layer == "ETCH/L02"
then
zs = z -> segments
and then
se = zs -> startEnd

and so on
There are very likely more efficient ways to do the same thing and an experienced Skill programmer would find them. But in a pinch all you need to know is the basic db structure and use some simple loops to match the stuff you want.

Good luck...
Ashcan

fxf
Posts: 43
Online: User is Offline
1/03/2007 11:23 AM  

See which is an example of selecting all shapes on ROUTE_KEEPOUT/ALL but can be easily
modified to select all CLINES on one or more layers.
MarkG
Posts: 10
Online: User is Offline
1/03/2007 11:51 AM  
Thanks, I'm your basic old LiSP programmer for AutoCAD.  I'm teaching myself SKILL to help automate in the Cadence tool now as well.

I appreciate the help, thanks again.
Mark
MarkG
Posts: 10
Online: User is Offline
1/03/2007 11:53 AM  
Hi fxf,
I'm not sure where you're pointing me to.  Could you be more specific as to the code you're talking about.  I really appreciate all this help.

Thanks,
Mark
fxf
Posts: 43
Online: User is Offline
1/03/2007 12:11 PM  

Apparently this message board doesn't like brackets (one of its many problems).

Code examples is @: {cdsroot}/share/pcb/examples/skill/axlcore/ashpoly.il

which is an example of selecting all shapes on ROUTE_KEEPOUT/ALL but can be easily
modified to select all CLINES on one or more layers.
fxf
Posts: 43
Online: User is Offline
1/03/2007 12:12 PM  

a backet test
MarkG
Posts: 10
Online: User is Offline
1/03/2007 12:14 PM  
Ok, thanks for the info.

Mark
Posting to forums is available to community members only.
Login or Register

Forums > Silicon-package-board > Shared code - SKILL > Selecting objects based on their layer


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.