Wednesday, December 03, 2008     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: axlDesignType
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
willbi
Posts: 63
Online: User is Offline
6/05/2008 2:38 AM  
I want to add some controls before saving the psm file of a symbol dra.
I want this to be done automatically when the symbol is saved (using the Save button to be sure the control is launched by the librarian)
So I need an alias "save" that call my routine but only if the design is a symbol (not a brd, for example).

I use the axlDesignType(nil) that should return "SYMBOL" in case of a symbol, if yes I use axlSetAlias("save" "savesym").

But this has to be done in the loading of ilinit.
The problem is that at this moment (during the load of the ilinit file), the axlDesignType seems to be unknown (it returns "") and then the alias is never created.

How to proceed?

I think that when you open allegro -package at the first time, it loads the skill environment and then the file.
willbi
Posts: 63
Online: User is Offline
6/05/2008 4:55 AM  
One solution:

alias save (skill_routine)

skill_routine:
if axlDesignType(nil) == "SYMBOL then
savesym
else
_save
end if
Dave Elder
Moderator
Posts: 150
Online: User is Offline
6/05/2008 2:14 PM  
You could use axlTriggerSet with the 'save option.
Cheers, Dave

Dave Elder
Tait Electronics
fxf
Posts: 43
Online: User is Offline
6/05/2008 2:38 PM  
The reason why axlDesignType(nil) returns a nil when called from allegro.ilinit is this file is loaded before an Allegro database is
opened. If you do a axlDBGetDesign() from allegro.ilinit, you will see that it returns nil.

As perviously suggested you should look into axlTriggerSet API.
willbi
Posts: 63
Online: User is Offline
6/06/2008 1:19 AM  
Thanks for replies.

As I am not en expert, I prefer my solution ;-)
axlTriggerSet seems to be too complicated for me (i read the doc quickly...)

I will look as ever for an example in accessible code, later.
Posting to forums is available to community members only.
Login or Register



ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.