GH_WireTopology

References
Represents the topological data for a single connector wire.

Constructors

GH_WireTopology

#
Blank constructor.
public GH_WireTopology()

GH_WireTopology

#
Default constructor.
public GH_WireTopology(
source_id,
Instance ID of source parameter.
target_id,
Instance ID of target parameter.
source_index
Index of source parameter in target Sources list.
)

GH_WireTopology

#
Index-less constructor.
public GH_WireTopology(
source_id,
Instance ID of source parameter.
target_id
Instance ID of target parameter.
)

GH_WireTopology

#
Utility constructor, takes two parameters and figures out the index all by itself.
public GH_WireTopology(
source,
Source parameter.
target
Target parameter.
)
InvalidOperationExceptionThrown if the source is not an actual source of the target.

GH_WireTopology

#
Utility constructor, figures out the source all by itself.
public GH_WireTopology(
target,
Target parameter.
index
Index of source to extract.
)

Properties

SourceIndex

#
Gets the index of the source parameter in the Sources list of the target parameter.
public int SourceIndex { get; }

SourceParameterID

#
Gets the instance ID of the source parameter.
public Guid SourceParameterID { get; }

TargetParameterID

#
Gets the instance ID of the target parameter.
public Guid TargetParameterID { get; }

ValidIndex

#
Gets a value indicating whether or not the source index is a valid number.
public bool ValidIndex { get; }

Methods

DestroyConnection

#
Destroys the topological connector wire if it exists.
public void DestroyConnection(
doc
Document which contains the source and parameter indices.
)

EnsureConnection

#
Creates the topological connector wire if it doesn't already exist.
public void EnsureConnection(
doc
Document which contains the source and parameter indices.
)

Read

#
public bool Read(
reader
)
Read

Write

#
public bool Write(
writer
)
Write