Class AdapterImportContext
AdapterImportContext
Namespace: Unity.Industrial.Forma.Editor.Adapters
Syntax
public class AdapterImportContext : object
Constructors
AdapterImportContext(IImportSource, FormaAdapter)
Context constructor
Declaration
public AdapterImportContext(IImportSource importSource, FormaAdapter adapter)
Parameters
| Type | Name | Description |
|---|---|---|
| IImportSource | importSource | |
| FormaAdapter | adapter |
Properties
Adapter
Import adapter
Declaration
public FormaAdapter Adapter { get; }
Property Value
| Type | Description |
|---|---|
| FormaAdapter |
DebugOutput
Add custom debug output for this import action
Declaration
public Dictionary<string, object> DebugOutput { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<String, Object> |
Source
Import source
Declaration
public IImportSource Source { get; }
Property Value
| Type | Description |
|---|---|
| IImportSource |
Methods
ClearProgressBar()
Clears the Progress Bar
Declaration
public void ClearProgressBar()
DisplayProgressBar(Single, String)
Show a progress bar
Declaration
public bool DisplayProgressBar(float progress = null, string step = "")
Parameters
| Type | Name | Description |
|---|---|---|
| Single | progress | |
| String | step |
Returns
| Type | Description |
|---|---|
| Boolean |