In Archibus, there are several tables for which you can define drawing highlights patterns for, such as the Division and Department tables. This information is stored within the hpattern_acad field of each relevant table, and is presented in a user-readable format in both Web Central and the Smart Client.
However, if you look at a hpattern_acad field in the actual database, you'll see a value such as these:
These values are actually an encoded format describing the highlight pattern for each field. Here is what each number means, in order:
1st number: The version of the encoding being used. It should always be set to 14.
2nd number: Set to 0 if it is a solid highlight, 1 if it is a hatch highlight, and 3 if it is a gradient highlight.
3rd number: The number of the color if you are using a hard-coded numbered color, a few of which are selectable via Web Central; if using a 'true color' option instead, will be set to 7 for White.
4th number: The concatenated RGB values for the highlight color. The value stored in this location follows this formula: (b + g * 256 + r * 256 * 256) where b, g, and r are the 0-255 blue, green, and red values.
Additionally, If you are using hatch patterns, additional information will be stored in the field:
5th number: The angle of the hatch pattern. Defaults to 0.
6th number: The scale of the hatch pattern. Defaults to different values depending on the hatch pattern selected.
7th value: The code for the hatch pattern being used. A full list of the values available is located in hpattern.properties, which is located in the \archibus\WEB-INF\config\context\controls\drawing folder of Web Central.
About the Author
More Content by Tim Schaubroeck