Constructors
Properties
Methods
Find
#Low level GUID -> ConnectiveObject resolver. This will search both the object and the group lists.
FindConnections
#Find all connective paths between two objects.
FindConnections
#Find all connective paths between two objects.
FindImmediateInputs
#Iterate over all the immediate inputs for an object. This includes inputs of any attached pins.
FindImmediateInputs
#Iterate over all the immediate inputs for an object. This includes inputs of any attached pins.
FindImmediateOutputs
#Iterate over all the immediate outputs for an object. This includes outputs of any attached pins.
FindImmediateOutputs
#Iterate over all the immediate outputs for an object. This includes outputs of any attached pins.
FindNodes
#Enumerate over all nodes that match the given IDs. Ids which cannot be found will be ignored.
public IEnumerable<ConnectiveObject> FindNodes()
ids,
Ids to find.
failures = null
If not null, will be populated with IDs which failed to resolve.
GetConnectiveId
#Find the topological ID of an object.
GetConnectiveId
#Gets the Id under which an object is represented in a Connectivity graph. This will either be the IDocumentObject.InstanceId of the founding object, or, if the object is an attached pin, the IDocumentObject.InstanceId of the cushion.
IsLinear
#Determine whether a set of objects acts as a linear sequence. That is there is a first object which is allowed to have inputs not in the set, a last object which is allowed to have outputs not in the set, and zero or more objects in between which only connect to their immediate neighbours on either side. Furthermore groups are allowed to exist, but only if all their contained objects are present within the sequence.
public bool IsLinear()
objects,
Objects to test.
out ConnectiveObject
leading,
First object in linear sequence, if found.
out ConnectiveObject
trailing
Last object in linear sequence, if found.
IsLinear
#Determine whether a set of objects acts as a linear sequence. That is there is a first object which is allowed to have inputs not in the set, a last object which is allowed to have outputs not in the set, and zero or more objects in between which only connect to their immediate neighbours on either side. Furthermore groups are allowed to exist, but only if all their contained objects are present within the sequence.
public bool IsLinear()
ids,
Ids to test.
out ConnectiveObject
first,
First object in linear sequence, if found.
out ConnectiveObject
last
Last object in linear sequence, if found.
SubsetTopology
#Measure the topology class for the set of objects. This method assumes that all the objects in the provided subset are part of the same document from which this connectivity was created. No input validation takes place.
WithoutRelays
#Create a new connectivity not containing (certain) relay objects.
public Connectivity WithoutRelays()
dangling,
If true, relays with either no inputs or no outputs are removed.
simple,
If true, relays with single inputs and single outputs are removed.
complex
If true, relays with at least two inputs or two outputs are removed.