Click or drag to resize

ApiSessionChangeAsset Method

Schedules an re-import of an asset from a new filename (Change asset source). The methods returns immediately. It just enqueues an job that is processing in the background. Use WaitForAssetProcessing(WaitForAssetProcessingArgs) when you need the job(s) to be completed before proceeding

Namespace:  Articy.Api
Assembly:  ArticyApp (in ArticyApp.dll) Version: 1.0.0
Syntax
C#
public void ChangeAsset(
	ObjectProxy aAsset,
	string aFullFilename
)

Parameters

aAsset
Type: Articy.ApiObjectProxy
an object proxy whose type is 'Asset'
aFullFilename
Type: SystemString
the full filename of the new asset data to be used
Exceptions
ExceptionCondition
ArticyApiExceptionErrorCode.AssetObjectExpected when aAsset is either null or not an asset
ArticyApiExceptionErrorCode.WriteDenied when aAsset is not currently claimed
ArticyApiExceptionErrorCode.AssetFileNotFound when the file specified in the property 'OriginalSource' does not exist.
See Also