ApiSessionImportAssets Method

Bulk asset import. The method returns directly after creating the Asset objects, copying the asset files from the given source to the project folder is done in a background thread and may take some time to complete. If you need to access the files from the asset objects, you should call WaitForAssetProcessing(WaitForAssetProcessingArgs) or its overload first.

Definition

Namespace: Articy.Api
Assembly: ArticyApp (in ArticyApp.dll) Version: 1.0.0
C#
public List<ObjectProxy> ImportAssets(
	ImportAssetsArgs aArgs
)

Parameters

aArgs  ImportAssetsArgs
The args object giving the filename to be imported and optionally customizing DisplayName and Template

Return Value

ListObjectProxy
The list of Asset objects that were created

Exceptions

ArticyApiExceptionCan throw different exception when (pre-)validation fails. Files must exist, Template must be there, the parent is checked, and so on.

See Also