Sunday, October 12, 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: Concept-SKILL question: changing default property values
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
kerchunk
Posts: 19
Online: User is Offline
5/05/2008 9:58 PM  
Greetings all,

Working on a routine to change all the refdes values on a schematic.
Tried the csChangePropValue routine inside stdAccess.il  but it turns out
that function only works on custom properties because of its
copy template -> delete property -> create new property using template and new value
method. Turns out Concept won't let you delete a default property like LOCATION.

So, anyone know how to change a default property's value using Concept-SKILL?


TIA,

Chris Walters
local Cadence guru
()
kerchunk
Posts: 19
Online: User is Offline
5/16/2008 3:10 PM  
Steve Durrill, creator of stdAccess.il, was kind enough to respond in a different thread:

-----------------
I got a fix from the R&D team a few years ago for
cnCreateProps() to modify an existing prop object when
a dbid is provided.

procedure( chgDefPropVal( h, prop, newVal)
let(((tplList nil))
tplList = cons(cnCreatePropTemplate(
?name cnGetPropName(prop),
?value newVal,
?attachXY cnGetPropAttachXY(prop),
?XY cnGetPropXY(prop),
?color cnGetPropColor(prop),
?visibility cnGetPropVisibility(prop),
?justification cnGetPropJustification(prop),
?size cnGetPropSize(prop),
?angle cnGetPropAngle(prop)
), tplList)
cnCreateProps(h, tplList)
);let
);procedure


handle = cnmpsImport()
props = cnGetProps(cnGetGroupedObjectSet(cnSendCommand(handle, "FINDLOCATION*\n", ?runOptions csDISP1_RES3)))
p = car(props)
chgDefPropVal(handle, p, "NEWVALU")
---------------------

So there you have it. cnCreateProps will change the value of an existing default property just fine, but function csChangePropValue within stdAccess.il is flawed in that it cannot handle default properties since it tries to delete->replace the property and Concept won't allow deletion of a default property.

CASE CLOSED


Chris Walters
local Cadence guru
()


sdurrill
Posts: 1
Online: User is Offline
5/16/2008 5:45 PM  
I just took a look at the csChangePropValue() routine.. Since cnCreateProps() accepts DBIDs
all you have to do to fix the liimitation for default body props is remove this line:

csDeletePropObjects(handle, propList)

The new version is included below.

-Steve


procedure(
csChangePropValue(handle, propList, new_value)
let((tpl_list)
if(propList then ;; Make sure there are properties to change!
if(isCallable('cnCreatePropTemplate) then
;;Get the template objects with changes included
tpl_list = foreach(mapcan prop propList ncons(
csBuildPropTemplate(prop, ?value new_value)))
cnCreateProps(handle, tpl_list)
else ;; Release is pre-PE13.5 so call the old routine
foreach(prop propList
csChangeProperty(handle, prop, new_value)
);foreach
);if
);if
);let
);procedure
Posting to forums is available to community members only.
Login or Register

Forums > Silicon-package-board > Shared code - SKILL > Concept-SKILL question: changing default property values


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.