AnalyticalLink.Create
Description:
Creates a new instance of a AnalyticalLink element between two Hubs.
Creates a new instance of a AnalyticalLink element between two Hubs.
public static AnalyticalLink Create(
Document doc,
ElementId type,
ElementId startHubId,
ElementId endHubId
)
-
docDocument to which new AnalyticalLink should be added.
-
typeAnalyticalLinkType for the new AnalyticalLink.
-
startHubIdHub at start of AnalyticalLink.
-
endHubIdHub at end of AnalyticalLink.
-
startHubId is not a valid Hub ID for an AnalyticalLink element. -or- endHubId is not a valid Hub ID for an AnalyticalLink element. -or- Thrown if startHubId or endHubId do not represent ids of Hubs. -or- Thrown if startHubId == endHubId. -or- Thrown if type does not represent an id of an AnalyticalLinkType.
-
A non-optional argument was null