@Group("level_1-group", ..., "level_n-group")

@Group("level_1-group", ..., "level_n-group", order)

@Range(min, max)

@Range(value1, value2, value3, ...)



@File("ext_1", ..., "ext_n")














Annotations are used to add additional information to a rule or an attribute. Annotations are optional and do not affect the semantics of a rule and thus have no influence on the model generation. Annotations are mostly used to give additional hints for user interface elements such as the Inspector on how to present attributes or rules.


Adding annotations


attr hide_me = 0

import hide_all_attrs: "imported.cga"

@Hidden(some_attr, another_attr)
import hide_some_attrs: "imported.cga"

@Group("First", "Second", "Third")
attr grouped = 0


@Range(5, 50)
attr height = 20

@Range(0, 1, 2)
attr lod = 0

@Range("#ff0000", "#00ff00", "#0000ff")
attr color = "#000000"

attr userColor = "#000000"

attr asset = "myfile.obj"

@File("tif", "tiff")
attr texture = "tex0.tiff"

attr assets = "/assets/lod" + lod

attr i_m_1st = 0
attr i_m_2nd = 0
attr i_m_3rd = 0

@Description("The building width")
attr width = 40

@Handle(shape=Solid, align=right)

Annotated attributes displayed in the Inspector.

Copyright ©2008-2017 Esri R&D Center Zurich. All rights reserved.