Class LynX
LynX is a query system to introspect SystemGraph assets easily and recursively
Inherited Members
Namespace: Mechatronics.SystemGraph
Assembly: solution.dll
Syntax
public static class LynX
Fields
Name | Description |
---|---|
BindingQueryFormat | Default Binding query format |
kBindingName | The constant binding name format character |
kEdge | The constant edge format character |
kEdgeFollower | The constant edge follower format character |
kGraphDatabaseGuid | The constant graph database unique identifier format character |
kGraphInstanceId | The constant graph instance identifier format character |
kGraphName | The constant graph name format character |
kGraphNodeGuid | The constant graph node unique identifier format character |
kGraphNodeIndex | The constant graph node index format character |
kGraphNodeIndexCreate | The constant graph node index create format character |
kLimitQueryCache | Limit count of instances in the query cache |
kNodeGuid | The constant node unique identifier format character |
kNodeIndex | The constant node index format character |
kParameterGuid | The constant parameter unique identifier format character |
kParameterIndex | The constant parameter index format character |
kParameterName | The constant parameter name format character |
kSep | Separator between fields of a query string |
mapGraphObject | Graph Object Local cache entries |
Methods
Name | Description |
---|---|
ConvertQuery(string, QueryFormat) | Convert the query to a new format |
Get<T>(string) | Get data from a query path string Query format: g:[graphName] (graphName is the file part of the filename) gi:[InstanceID] (Find graph asset from instanceID, can only find object instance, NOT the asset itself, always use the runtime graph instanceid here) gg:[graphDatabaseGUID] (Graph from the AssetDatabase GUID) gn:[graphNodeGUID] (The graph asset is deduced from a graph node) gni:[index] (Search graph node by index of creation in the asset, the function returns null when not found) gnic:[index] (Search graph node by index of creation in the asset in subgraph create new instance mode, the function returns null when not found) ng:[NodeGUID] (NodeGUID of SerializeNode) ni:[NodeIndex] (Retrieve Node by Index) e:[SrcPortName+DstPortName] (Retrieve edge) ef:[SrcPortName+DstPortName] (Retrieve edge, sNode points to connected node) pg:[ParameterGUID] (Retrieve Parameter by GUID) pn:[ParameterName] (Retrieve Parameter by Name) pi:[ParameterIndex] (Retrieve Parameter by Index) bn:[BindingName] (Retrieve the Binding name) |
Get<T>(string[]) | Get data from a query path array |
InvalidateAll() | Clear the cache |
SignalAssetChange(SystemGraphObject) | Signal Asset Change to invalid cache |
SubQuery(string, int, int) | Extract a sub query from the main query string using from/to indexing |