ReadIGES Class

Utility class for loading IGES files asynchronously.

The list of supported entities follows:

Type Form Entity Name
100 Arc
102 Composite Curve
104 1 Conic Arc
106 1, 2, 12 Copious Data
108 Plane
110 Line
112 Parametric spline
114 Parametric spline surface
116 Point
118 Ruled Surface
120 Surface of Revolution
122 Tabulated Surface
124 Transformation Matrix
126 Rational B-Spline Curve
128 Rational B-Spline Surface
140 Offset surface
141 Boundary Entity
142 Curve on Parametric Surface
143 Bounded Surface
144 Trimmed Parametric Surface
186 Manifold Solid BRep
190 Planar Surface
192 Right Circular Cylindrical Surface
194 Right Circular Conical Surface
196 Spherical Surface
198 Torical Surface
212 General Note
308 Subfigure Definition
314 Color Definition
402 15 Ordered Group
406 3 Level Function Property
408 Singular Subfigure Instance
502 Vertex
504 Edge
508 Loop
510 Face
514 Shell
Public Class ReadIGES 
Inherits ReadFileAsyncWithBlocksAndLayers
This language is not supported or no code example is available.
public class ReadIGES : ReadFileAsyncWithBlocksAndLayers
This language is not supported or no code example is available.
Name Description
Public constructor ReadIGES(Stream, bool) File stream constructor.
Public constructor ReadIGES(string, bool) File name constructor.
Top
Name Description
Public property Blocks Gets or sets the blocks resulting from file reading. (inherited from ReadFileAsyncWithBlocks).
Public property Entities Gets the entities resulting from file reading. (inherited from ReadFileAsync).
Public property ExecutionTime Gets the (last) work execution time in milliseconds. (inherited from WorkUnit).
Public property FileName Gets the file name. (inherited from ReadFileAsync).
Public property Log Gets the list of errors and warnings generated during file import. (inherited from ReadFileAsync).
Public property ModelSpaceScale Gets IGES model space scale. The ratio of model space to real-world space.
Public property ParsingBlocksText Gets or sets the "Parsing blocks..." text string. (inherited from ReadFileAsyncWithBlocks).
Public property ParsingEntitiesText Gets or sets the "Parsing entities..." text string. (inherited from ReadFileAsync).
Public property ParsingText Gets or sets the "Parsing..." text string. (inherited from ReadFileAsync).
Public property Path Gets input file path. (inherited from ReadFileAsync).
Public property ReadingText Gets or sets the "Reading..." text string. (inherited from ReadFileAsync).
Public property Result Gets the result of reading operation (true if the operation succeeded). (inherited from ReadFileAsync).
Public property Simplify Controls if generic surfaces are converted to PlanarSurface, TabulatedSurface or RevolvedSurface to improve import speed.
Public property Stream Gets current stream. (inherited from ReadFileAsync).
Public property SupportedLinearUnitsType Gets the supported linear units
Public property Units Gets or sets imported geometry linear units. (inherited from ReadFileAsyncWithBlocks).
Top
Methods
 
Name Description
Public method AddToScene(Environment, Color) Adds the entities loaded from the file to the scene.
Public method AddToScene(Environment, RegenOptions, bool, string) Adds to the Environment control the entities loaded from the file, along with layers and blocks. Blocks and layers contained previously in the Viewport are merged.
Public method AddToScene(Environment, int) Adds the entities loaded from the file to the scene.
Public method AddToScene(Environment, int, Color) Adds the entities loaded from the file to the scene.
Public method AddToScene(Environment, string) Adds the entities loaded from the file to the scene.
Public method AddToScene(Environment, string, Color) Adds the entities loaded from the file to the scene.
Public method AddToSceneAsSingleObject(Environment, string, Color) Adds to scene putting the entities inside a Block and creating a BlockReference referring to it.
Public method AddToSceneAsSingleObject(Environment, string, int) Adds to scene putting the entities inside a Block and creating a BlockReference referring to it.
Public method AddToSceneAsSingleObject(Environment, string, int, Color) Adds to scene putting the entities inside a Block and creating a BlockReference referring to it.
Public method AddToSceneAsSingleObject(Environment, string, string) Adds to scene putting the entities inside a Block and creating a BlockReference referring to it.
Public method AddToSceneAsSingleObject(Environment, string, string, Color) Adds to scene putting the entities inside a Block and creating a BlockReference referring to it.
Internal protected (Protected Friend) method Cancelled(BackgroundWorker, DoWorkEventArgs) Checks if the user has requested cancellation of the background operation. (inherited from WorkUnit).
Internal protected (Protected Friend) method CloseStream() Closes the stream. Must be called by all derived classes. (inherited from ReadFileAsync).
Internal protected (Protected Friend) method DoWork(BackgroundWorker, DoWorkEventArgs) Does the actual work allowing progress bar update and cancellation.
Public method DoWork() Executes the work synchronously. (inherited from WorkUnit).
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Public method FillBlocks(Environment) Automatically merges block definitions with existing ones. (inherited from ReadFileAsyncWithBlocks).
Public method FillLayers(Environment) Automatically merges layers with existing ones. (inherited from ReadFileAsyncWithBlocksAndLayers).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Internal protected (Protected Friend) method ResetProgressParallel() Resets the progress bar for a parallel loop. (inherited from WorkUnit).
Public method RotateEverythingAroundX(double) Rotates geometry around world X axis. If the file was created in a system that orients with Y Axis Up, the models would by default be brought into Eyeshot (a Z axis up system) with a flipped coordinate system. This method is designed to fix the problem. (inherited from ReadFileAsync).
Internal protected (Protected Friend) method StartContinuousAnimation(string, BackgroundWorker) Start the animation for the continuous progress bar. (inherited from WorkUnit).
Internal protected (Protected Friend) method StopContinuousAnimation(BackgroundWorker) Stop the animation for the continuous progress bar. (inherited from WorkUnit).
Public method ToString Returns a string that represents the current object. (inherited from Object).
Internal protected (Protected Friend) method UpdateProgress(double, double, string, BackgroundWorker, bool) Updates the progress bar value.
Internal protected (Protected Friend) method UpdateProgress(int, int, string, BackgroundWorker, bool) Updates the progress bar value.
Internal protected (Protected Friend) method UpdateProgressAndCheckCancelled(int, int, string, BackgroundWorker, DoWorkEventArgs, bool) Updates the progress bar value and checks if the worker thread has been canceled. (inherited from WorkUnit).
Internal protected (Protected Friend) method UpdateProgressAndCheckCancelledParallel(int, string, BackgroundWorker, DoWorkEventArgs) Updates the progress bar value and checks if the worker thread has been canceled, for a parallel loop. (inherited from WorkUnit).
Internal protected (Protected Friend) method UpdateProgressParallel(double, string, BackgroundWorker) Updates the progress bar value for a parallel loop. (inherited from WorkUnit).
Internal protected (Protected Friend) method UpdateProgressTo100(string, BackgroundWorker) Set the progress bar to 100% and forces screen update. (inherited from WorkUnit).
Internal protected (Protected Friend) method WorkCancelled(Environment) Called when the work is cancelled. (inherited from ReadFileAsync).
Internal protected (Protected Friend) method WorkCompleted(Environment) Called when the work has completed. In the case you are modeling something, the environment parameter allows you to easily add the model to the entities collection. (inherited from WorkUnit).
Internal protected (Protected Friend) method WorkFailed(Environment) Called when the work has failed. (inherited from WorkUnit).
Top
Events
 
Name Description
Public event ProgressChanged Occurs when the DoWork() is called synchronously and the progress has changed. (inherited from WorkUnit).
Top
Fields
 
Name Description
Public field Layers Gets or sets the list of layers resulting from file reading. (inherited from ReadFileAsyncWithBlocksAndLayers).
Internal protected (Protected Friend) field errorLog (inherited from ReadFileAsync).
Protected field readFileCloseStream (inherited from ReadFileAsync).
Top

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition