ApiSessionCreateLink Method (ObjectProxy, String, Point, ObjectProxy) |
Creates a new link inside a location.
Namespace:
Articy.Api
Assembly:
ArticyApp (in ArticyApp.dll) Version: 1.0.0
Syntax public ObjectProxy CreateLink(
ObjectProxy aParent,
string aTemplateTechName,
Point aPosition,
ObjectProxy aReferencedModel
)
Parameters
- aParent
- Type: Articy.ApiObjectProxy
the location or location group object that should serve as parent for the new created link - aTemplateTechName
- Type: SystemString
the technical name of a template, that will be assigned to the to-be-created link or null to create without assigning a template - aPosition
- Type: System.WindowsPoint
the coordinate of the link as it is displayed in the property view of the articy:draft GUI - aReferencedModel
- Type: Articy.ApiObjectProxy
the articy object that shall serve as target for this link object
Return Value
Type:
ObjectProxythe freshly created object; use this return value to further initialize the properties of the new link
Remarks
All coordinates are screen/pixel coordinates of the location's underlying background image.
See Also