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: change compdef properties
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
willbi
Posts: 63
Online: User is Offline
7/19/2007 5:53 AM  
Hello All. Does anybody know if it is possible to change a component property and how? Components have instance properties(like CLIP_DRAWING) and definition properties (like PART_NUMBER). I want to change the PART_NUMBER. I tried with axlDBDeleteProp but unsucessfully. (I was thinking to delete and then add a new one with axlDBAddProp.) I only succeeded on deleting ALL part_numbers properties... so it might be possible, but "nil" is the only answer to my tries! ;-) I also tried to add properties to dictionary but once again with nil (axlDBCreatePropDictEntry)... Thanks in advance.
fxf
Posts: 43
Online: User is Offline
7/19/2007 6:43 AM  
1) You need to know where the property in question is located. For example the PART_NAME property resides
on the compDef not the compInst. PART_NUMBER may be located on compDef, symDef or symInst.

You view the properties in Skill as follows

d = axlDBGetDesign()

; list all compDef props on 1st compDef in list
cd = car(d->compdefs)
cd->prop->??

; list all compDef props on 1st compInst in list
ci = car(d->components)
ci->prop->??

; get to the compDef given a compInst
cd = ci->compdef

2) To replace a property just use axlDBAddProp, you don't need first delete it
axlDBAddProp(cd '("PART_NAME" "foo"))
; verify
cd->prop->??
willbi
Posts: 63
Online: User is Offline
7/19/2007 7:49 AM  
Thanks fxf. I was not so far... ;-) Thanks for the information that we do not need to remove the property... In fact, I was extracted the "comp" like this: axlSetFindFilter(?enabled list("NOALL" "COMPONENTS") ?onButtons list("ALL")) comp = car(axlGetSelSet(axlSingleSelectPoint())) then I was trying to do: axlDBAddProp(comp '("PART_NUMBER" "Wanted Value")) and it did not work. In fact I just need to do this: axlDBAddProp(comp->compdef '("PART_NUMBER" "Wanted Value")) to get it working! Of course, I have to add the property to the compdef and not to the comp which has no prop section... So thanks for your answer, it helps a lot. Bye.
fxf
Posts: 43
Online: User is Offline
7/19/2007 9:45 AM  
The PART_NUMBER property is not permitted on a component instance (compInst) which is what you get when you
fetch them via the Selection set method. Instead modify your code to
compDef = comp->comdef
axlDBAddProp(compDef '("PART_NUMBER" "Wanted Value"))

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

Forums > Silicon-package-board > Shared code - SKILL > change compdef properties


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.