Class GraphicConverter
Abstract base class for 3D graphics and CAD converters
Inheritance
GraphicConverter
Assembly: ABB.Robotics.RobotStudio.Stations.dll
Syntax
public abstract class GraphicConverter
Constructors
GraphicConverter()
Declaration
protected GraphicConverter()
Properties
DisplayName
Display Name of the file format (e.g. "VRML", "Catia V5")
Declaration
public string DisplayName { get; set; }
Property Value
Extensions
Returns a collection of supported file extensions. Each extensions should be on the form ".xxx"
Declaration
public Collection<string> Extensions { get; }
Property Value
Gets a filter string for use in a file dialog when importing geometry.
Declaration
public virtual string FileFormatFilter { get; }
Property Value
Hidden
Indicates that the converter should not be visible in GUI but available for API use.
Declaration
public bool Hidden { get; set; }
Property Value
LicenseFeature
Gets or sets a license feature that is required to operate the converter.
Declaration
public string LicenseFeature { get; set; }
Property Value
SupportsExport
Gets or sets if the converter supports export.
Declaration
public bool SupportsExport { get; set; }
Property Value
SupportsImport
Gets or sets if the converter supports import.
Declaration
public bool SupportsImport { get; set; }
Property Value
Methods
BuildFilter(IEnumerable<String>)
Declaration
protected string BuildFilter(IEnumerable<string> extensions)
Parameters
Returns
CanExport(ProjectObject)
Gets if the converter can export the specified object.
Declaration
public virtual bool CanExport(ProjectObject projectObject)
Parameters
Returns
CanImportAsPart(String)
Returns true if the converter can convert an assembly to a single Part when importing (if the AsPart flag is true).
Declaration
public virtual bool CanImportAsPart(string fileName)
Parameters
Type |
Name |
Description |
String |
fileName |
|
Returns
Export(ProjectObject, String, GraphicExportSettings)
Override this to provide an Export implementation
Declaration
public virtual void Export(ProjectObject projectObject, string fileName, GraphicExportSettings settings)
Parameters
GetExportExtensions(ProjectObject)
Gets the file extensions valid for export of the specified object.
Declaration
public virtual IEnumerable<string> GetExportExtensions(ProjectObject projectObject)
Parameters
Returns
GetExportFilter(ProjectObject)
Gets a filter string for use in a file dialog for exporting the specified object.
Declaration
public virtual string GetExportFilter(ProjectObject projectObject)
Parameters
Returns
ImportAsync(String, GraphicImportSettings, IProgressCallback)
Override this to provide an Import implementation
Declaration
public virtual Task<GraphicComponent> ImportAsync(string fileName, GraphicImportSettings settings, IProgressCallback progress)
Parameters
Returns
SetCancellationToken(CancellationToken)
Declaration
public virtual void SetCancellationToken(CancellationToken cancellationToken)
Parameters
SupportsCancel()
Gets if the converter supports cancellation of an export operation.
Declaration
public virtual bool SupportsCancel()
Returns