2025.3 Method
Changes 0
M

AnalyticalLink.Create

Description:
Creates a new instance of a AnalyticalLink element between two Hubs.
public static AnalyticalLink Create(
	Document doc,
	ElementId type,
	ElementId startHubId,
	ElementId endHubId
)
  • doc
    Document to which new AnalyticalLink should be added.
  • type
    AnalyticalLinkType for the new AnalyticalLink.
  • startHubId
    Hub at start of AnalyticalLink.
  • endHubId
    Hub at end of AnalyticalLink.
Return Value AnalyticalLink The newly created AnalyticalLink instance.
  • 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