Overwriting Attributes with the Inspector
The values of functions marked with attr can be set individually for each initial shape in the inspector. For instance, the definition
@Range(min=10, max=40) attr height = 20
yields an entry in the Rule Parameters section of the inspector:
The display of attributes in the Inspector can be controlled by CGA annotations.
You can now click edit the value or use the slider to modify the value.
By entering a value, the attribute has changed to a user value, displayed in bold.
Assuming your shape has an object attribute with the same name height that should be used to control the rule attribute, use the Connection Editor to connect the rule attribute with the object attribute. The value is displayed in italic and marked with (Object). The value used for CGA generation is now taken from the object attribute.
During rule assignment, object attributes with names that match a rule attribute get connected automatically.
Details on mapping attributes
See Mapping Attributes for more details on connecting rule attributes to object attributes or map layers (Layer attributes).
It is possible to manually assign a value to multiple initial shapes in a convenient way. Let's say we selected two initial shapes that have a rule file assigned with the attributes height, roofColor and roofType.
In the Inspector, the attributes of all selected lots can now be manipulated. If you change the height value to 40, both selected shapes will have their height value changed.
Now we select one shape (or model) only, and change the height back to the Rule Default 20. If both models are selected afterwards, the value of height is displayed as a question mark ?, stating that the two selected models do not share the same value for this attribute.
Copyright ©2008-2017 Esri R&D Center Zurich. All rights reserved.