Opens a CAD file. Currently only a subset of Autodesk's standard DXF file format is supported. If a file is already open, it will close the file and open a new file or reopen the same file.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 83.0.0.0
Syntax
Parameters
- fileName
- Type: System String
The name of the file to open.
Events
| Event Type | Reason |
|---|---|
| CogCADFile Changed | Fires when this function is called. The following state flags may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| CogFileOpenException | The file could not be opened. |
| CogBadFileFormatException | The file is invalid. |
Remarks
Opens a CAD file. Currently only a subset of Autodesk's standard DXF file format is supported. If a file is already open, it will close the file and open a new file or reopen the same file.
See Also