I am looking for some help with my Design Script I have been tasked with compiling. Traditionally I have used the PLTCFG files and pen tables to control the output colors. But I have been tasked with migrating these to a design script. The portion I am having trouble with is shown below.
What I am trying to accomplish is if the color is not equal to the numbers listed and if the level is not equal to the ROW levels listed then I want it to print black. Currently, the result is everything is printing color.
IF (.NOT.(Color== 32, 48, 64, 80, 96, 112, 128, 176) .OR. .NOT.(LEVEL_NAME== "ROW_PARCEL", "ROW_Total-Ownership-Boundary", "ROW_Easement-Hatch")) THEN COLOR = (0,0,0) ENDIF
You're using the wrong operator in the IF statement. the == just compares against a single value. You want the .IN. operator for a list of values.
It should look like this...
IF (.NOT.(Color .IN. 32, 48, 64, 80, 96, 112, 128, 176) .OR. .NOT.(LEVEL_NAME .IN."ROW_PARCEL", "ROW_Total-Ownership-Boundary", "ROW_Easement-Hatch")) THEN
Rod WingSenior Systems Analyst