Click or drag to resize

HarnessWriter Class

A writer that exports a simulation Document to a file to be executed by MHARNESS.
Inheritance Hierarchy
SystemObject
  ema3d.Api.V25.Core.ExecutionHarnessWriter

Namespace: ema3d.Api.V25.Core.Execution
Assembly: ema3d.Api.V25 (in ema3d.Api.V25.dll) Version: 0.0.0.0
Syntax
public sealed class HarnessWriter

The HarnessWriter type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCreate Creates a new standard .inp file writer for the provided document.
Public methodStatic memberCreateSParameter Creates a new s-parameter .inp file writer for the provided document.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWrite Exports the .inp file to an arbitrary directory.
Public methodWrite(CancellationToken) Exports the .inp file to an arbitrary directory.
Public methodWrite(String) Exports the .inp file to the provided directory.
Public methodStatic memberWrite(Document, Simulation) Exports a standard .inp file for the provided document.
Public methodWrite(String, CancellationToken) Exports the .inp file to the provided directory.
Public methodStatic memberWriteSParameter Exports a s-parameter .inp file for the provided document.
Top
Events
 NameDescription
Public eventWarningThrown Occurs when a warning is thrown while processing a simulation document for export.
Top
Example
Python
from ema3d.Api.V25.Core.Execution import E3DWriter as E3DWriter
from ema3d.Api.V25.Core.Execution import HarnessWriter as HarnessWriter
# Write out a configuration file
doc = Window.ActiveWindow.Document
writer = HarnessWriter.CreateSParameter(doc, E3DWriter.GetSim()) # Create MHARNESS S-Parameter files
writer.Write() # Write to a new sim directory
See Also