If different capacitor value I want to assign the different colors to the symbols. for only connected symbols through by input net name. I tired I got the capacitance value but I don't know how to assign colors to the symbols can any one please help me. or if any code developed like my requirement please share me.
I'll attach the code below.
Ex : out put (cap value, name) here for first four symbols has same cap value 10uF for that four symbols need to assign one color. next group of common cap value need to be another color like this gradually want to assign different colors.
("10uF/10V,C00_630" "10uF/10V,C00_636" "10uF/10V,C00_644" "10uF/10V,C00_651" "220R/2A/DCR=45mR,FB00_005" "220R/2A/DCR=45mR,FB00_006" "220R/2A/DCR=45mR,FB00_007" "220R/2A/DCR=45mR,FB00_008" "22uF/10V,C00_607" "4.7uF/6.3V,C00_545" "4.7uF/6.3V,C00_606" "NC_100uF/6.3V,C00_631" "NC_10uF/10V,C00_655" "NC_10uF/10V,C00_659")
procedure(capcheck()out=outfile("report3.rpt")c = nila = "S0_AVDD12_PD_PT_AS_DCT_VI80_2CH_F"print(a)foreach(cmp setof(comps axlDBGetDesign() ->components comps->symbol)foreach(cmp1 cmp ->pinsb = cmp1->net->nameif(b == a then d = sprintf(nil "%s,%s", cmp->compdef->prop->VALUE, cmp ->name) when(d push(d c)) fprintf(out "%s\n" d))))c = unique(sort( c 'alphalessp))print(c)close(out))
try using axlCustomColorObject()
Thanks for your reply i'll tried by using axlCustomColorObject() but i dont know how to change a color for next set of values it shows same color for all the symbols I'll attach the code below can you please recorrect my code please.
procedure(capcheck()c = nila = "S0_AVDD12_PD_PT_AS_DCT_VI80_2CH_F"clr = listnindex(axlColorGet('all), '(255 121 203)) || 7foreach(cmp setof(comps axlDBGetDesign() ->components comps->symbol)foreach(cmp1 cmp ->pinsb = cmp1->net->nameif(b == a then d = sprintf(nil "%s,%s", cmp->compdef->prop->VALUE, cmp ->name) println(d) axlCustomColorObject(cmp, clr)))))