??=>(objType "paramTextBlock" width 0.584 photoWidth 0.127 name "2" lineSpace 0.991 height 0.787 charSpace 0.203)2. n=2p=axlGetParam("paramTe">
     
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: About the axlGetParam command
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
leonlee
Posts: 81
Online: User is Offline
2/28/2006 6:31 AM  
I want to get the TextBlock attribute by variate.

1. The general situation: OK

p=axlGetParam("paramTextBlock:2")
 p->??

=>
(objType "paramTextBlock" width 0.584 photoWidth
    0.127 name "2" lineSpace 0.991
    height 0.787 charSpace 0.203
)


2.
n=2
p=axlGetParam("paramTextBlock:n")
p->??
=>(objType "paramTextBlock")

3.
procedure( Text(x "n")
axlGetParam("paramTextBlock:x")
)
Text(2)->??

=>(objType "paramTextBlock")

The result of the 2nd and 3rd situation are not correct. why? how can I get it?

Leon Lee
Schneider-Electric
natebizu
Posts: 0
Online: User is Offline
2/28/2006 7:08 AM  
The problem is that you are passing a string to the axlGetParam procedure.

Because "x" is inside of double quotes,  you are passing a string "x" rather than the evaluation of the variable x.

use sprintf, and I would check to make sure that x is an integer:

procedure(Text(x)
   when(integerp(x)
      axlGetParam(sprintf(nil "paramTextBlock:%d" x))
   )
)

This should return the param or nil (when invalid input).
leonlee
Posts: 81
Online: User is Offline
2/28/2006 8:26 PM  

Ok.

It means that I can use sprintf to convert  number type to string type.

haha, thanks.


Leon Lee
Schneider-Electric
Posting to forums is available to community members only.
Login or Register

Forums > Silicon-package-board > Shared code - SKILL > About the axlGetParam command


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.