Thanks alot for your suggestion. it works now. true boolean gets pass into the function. I can now turn on/off metal layers created using rectRodObj. however, when i do the same for VIA using dbCreateViaShapeArray, i cannot turn off the VIAs by unchecking the box in Edit Instance Properties window. Below is my code. Do you know if there is anything wrong here? Thanks ;create vias procedure(powerGridPcell_via(cv) for(i 0 7 ;row for(j 0 7 ;col if(mod(j 2) == 0 && mod(i 2) == 0 then tempx1 = 1.12 * (j/2) + 0.195 tempy1 = 1.12 * (i/2) + 0.195 dbCreateViaShapeArray(cv "V2" nil tempx1 tempy1 0.16 0.16 0.08 0.08 3 3) else tempx1 = 1.12 * (j/2) + 0.825 tempy1 = 1.12 * (i/2) + 0.825 dbCreateViaShapeArray(cv "V2" nil tempx1 tempy1 0.16 0.16 0.08 0.08 3 3) );if );for );for ) pcDefinePCell( list(ddGetObj("test_rudy") "power_grid_pcell" "layout") ( ... (V3 t) ... ) let( ((cv pcCellView)) ... powerGridPcell_via(cv) ;V3 ... ); let ) ;; Create the CDF let( (cellId cdfId) when(cellId = ddGetObj("test_rudy" "power_grid_pcell") ;; if the cell CDF already exists, delete it when( cdfId = cdfGetBaseCellCDF(cellId) cdfDeleteCDF(cdfId) ) ;; create the base cell CDF cdfId = cdfCreateBaseCellCDF(cellId) ;; create the parameters cdfCreateParam( cdfId ?name "V3" ?prompt "V3" ?defValue "true" ?type "boolean" ?display "t" ) cdfSaveCDF(cdfId) ); when ); let
↧