Skip to main content

Component Plug-In SDK 2026 R1

Method CreateCloneFrom

Last update: 19.06.2026

Namespace: Phoenix.ComponentAPI
Assembly: Phoenix.ComponentAPI.dll

CreateCloneFrom(IReadOnlyDictionary<string, VariableState>, ComponentRunResultsMetadata)

Creates a new ComponentRunResults by making a clone of the given data.

public static ComponentRunResults CreateCloneFrom(IReadOnlyDictionary<string, VariableState> resultValues, ComponentRunResultsMetadata resultMetadata)

Parameters

resultValues IReadOnlyDictionary<string, VariableState>

The output variable values to clone.

resultMetadata ComponentRunResultsMetadata

Metadata about each run

Returns

ComponentRunResults

A new ComponentRunResults

Remarks

You should always use the returned value in a using block, or otherwise ensure it will be disposed.

Connect with Ansys