When using Pcell , press q to use "Edit Instance Properties" to change parameter (e.g. length) ,
in cdf , it has callback , everything is right according to callback function . Different length has it different result in Pcell.
Now I have many Pcells needs to changed parameter - length (from 2um to 4um) by "Edit Instance Properties" ,
Is there any approach to do that ? (Not manual use "Edit Instance Properties" to change each Pcell's parameter ?
After changing parameter - length , its result should same as using "Edit Instance Properties" .
what about the following piece of code:
tc=geGetEditCellView()foreach(ti tc~>instances if(ti~>PCLENGTH then ti~>PCLENGTH = 4))
i check for existence of the parameter PCLENGTH to avoid to add this as property toother cells; perhaps you need to modify the if-condition to be sure only to modify thecorrect set of cells.
hope this helps
In reply to StefanSL:
Hi Stefan ,
Does it do any CDF callback if length has callback function ?
In reply to Charley Chen:
i'm not really sure about that, but the cdfuser-manual states"Callbacks are triggered whenever a change is made to the parameter value, even if thechange is caused by loading a default value."
This sounds good, but you should check if this applies to your special application too.
Take a look at solution 11018344 - this has code to call CDF callbacks procedurally.
In reply to Andrew Beckett:
CDF callbacks are only executed during the interactive editing of the parameters through the Edit Property form or the Edit Property Assistant (IC6.1). If you are changing them programmatically, you have to execute the callback. Here is a way to do it:
;; Get the instance inst = car(selectedSet()) ;; Instance CDFcdfgData = cdfGetInstCDF(inst)inst->length = newLength param = cdfFindParamByName( cdfgData "length")when(param->callback evalstring(param->callback))
Ted (this line is not part of the code)
there's a small (but nevertheless vital) error in Andrews link:
remove the space within "Nu mber", then it works fine...
regards, have a nice weekend
In reply to Austin CAD Guy:
It works , thank you.