Professional Documents
Culture Documents
The script is to color the SDD plate based on the values provided in the design
table which is set in resourcetable.KnowledgeResources|SLDPLATECOLORINGSHEET. Let
RowNum(Integer)
DTSheetType1 = CreateSheet("KnowledgeResources|SLDPLATECOLORINGSHEET")
RowNum = DTSheetType1.LocateInColumn(1,RefCategory.Name)
if(RowNum > 0)
{
Result = True
ColVal = DTSheetType1.CellAsString(RowNum,5)
if(ColVal == "grey")
ActionList.Append("AreaFill(Coloring=150,150,150)")
else
{
if(ColVal == "color")
{
R = DTSheetType1.CellAsString(RowNum,2)
G = DTSheetType1.CellAsString(RowNum,3)
B = DTSheetType1.CellAsString(RowNum,4)
ActionList.Append("AreaFill(Coloring="+R+","+G+","+B+")")
}
}
}
}