Page 1 of 1

Open file problem

Posted: 30 Jul 2019, 04:35
by dlwotj4274
I'm working with CADEditorControlDemo.

Is it possible to open a dwg file without open dialog?

I would like to open a dwg file by file path which I was already known.

I know that I can use 'vDrawing.LoadFromfile(path). However is it need to have a Image in winform?

Re: Open file problem

Posted: 30 Jul 2019, 20:15
by support
Hello,

CADEditorControl provides two overloaded methods that allow to open a drawing file with OpenFileDialog or by the file path:

Code: Select all

public void LoadFile(bool dlg);
public void LoadFile(string fileName);
CADImage.LoadFromFile(path) method loads the drawing data into the CADImage object from a file and doesn't require any visual component on a form.

Mikhail