Hi Lawrence, Using both CDF options I can get the version number into the parameter. However, there is one huge drawback by using this: if I select an instance which is created using an older version (that may or may not have the parameter set) upon looking at its properties (hitting the "q" key) and changing one parameter, the version number gets updated. This is something I don't want to happen. If it is not set, it should keep it untouched. This is what I added to the CDF parameter file: cdfCreateParam( cdfId ?name "PDKVersion" ?prompt "Created with PDK Version" ?defValue "" ?type "string" ?display "t" ?editable "nil" ?callback "ZP250hvmosCB('PDKVersion)" ?storeDefault "no" ) cdfId->doneProc = "spdkSetPDKVersion" This is the code of the "doneProc" procedure: procedure( spdkSetPDKVersion( cellId ) let( ( ( pdkVersion "" ) ( cdfgData nil ) ) pdkVersion = getShellEnvVar( "TECH_VERSION" ) cdfgData = cdfGetInstCDF( cellId ) ;;; Only if not set yet, set the PDK version... when( equal( cdfgData->PDKVersion->value "" ) cdfgData->PDKVersion->value = pdkVersion ) ;;; end of when ) ;;; end of let ) ;;; end of procedure spdkSetPDKVersion What I think I need is a method to know how the procedure was triggered. I mean: was it triggered after instantiating a new device, or after any of the parameters were changed from an "Edit Object Properties Form". If I am able to determine this, it is easy to define whether or not the parameter must be updated. Do you know a method of doing that? With kind regards, Sjoerd
↧
Forum Post: RE: How to automatically store technology version on instance in schematics and layout?
↧