SnapRuleBehavior
Describes how SnapRules affects the interactive snapping behavior of a SnapSource. When rule-based snapping is configured on a GeometryEditor, each SnapSourceSettings.ruleBehavior indicates the snapping behavior for the snap source, based on the SnapRules that were passed to SnapSettings.syncSourceSettings. For more information about configuring a GeometryEditor to use rule-based snapping, see SnapRules.
Each SnapSourceSettings can be enabled or disabled independently of its SnapSourceSettings.ruleBehavior - see SnapSourceSettings.isEnabled for a summary of the other configuration options that can affect interactive snapping.
When snapping is configured without rule-based snapping (by calling SnapSettings.syncSourceSettings), all SnapSourceSettings.ruleBehavior values will be SnapRuleBehavior.None.
Since
200.7.0
See also
Inheritors
Types
There are no applicable snap rules for this SnapSource, snapping behavior is determined by SnapSourceSettings.isEnabled. This value is used in the following situations:
This value is returned from SnapSourceSettings.ruleBehavior when SnapRules.create or SnapRules.create determined that the given asset type can be geometrically coincident with certain features in the applicable snap source.
Rules specify that the asset type being edited should not snap to any features in the snap source. This value is returned from SnapSourceSettings.ruleBehavior when SnapRules.create determined that the given asset type should not be geometrically coincident with features in the applicable snap source. In this case, interactive snaps to features in the snap source are prevented because the utility network data model indicates this is not a logical connection and the features should not be geometrically coincident. For example an electric fuse device feature cannot be coincident with another electric fuse device, as two devices cannot be in the same physical location, and snapping is prevented in this case.