Click or drag to resize

ApiSessionCreateSpot Method (UInt64, String, String, Point)

Creates a new spot inside a location.

Namespace:  Articy.Api
Assembly:  ArticyApp (in ArticyApp.dll) Version: 1.0.0
Syntax
C#
public ObjectProxy CreateSpot(
	ulong aParentId,
	string aDisplayName,
	string aTemplateTechName,
	Point aPosition
)

Parameters

aParentId
Type: SystemUInt64
the ID of the location or location group object that should serve as parent for the new created spot
aDisplayName
Type: SystemString
the display name of the to-be-created spot
aTemplateTechName
Type: SystemString
the technical name of a template, that will be assigned to the to-be-created spot or null to create without assigning a template
aPosition
Type: System.WindowsPoint
the coordinate of the spot as it is displayed in the property view of the articy:draft GUI

Return Value

Type: ObjectProxy
the freshly created object; use this return value to further initialize the properties of the new spot
Remarks
All coordinates are screen/pixel coordinates of the location's underlying background image.
See Also