CogCADFile Open Method Cognex VisionPro 9.21
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.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 83.0.0.0
Syntax

public void Open(
	string fileName
)
Events

Event TypeReason
CogCADFile Changed

Fires when this function is called.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    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