Reading dwg examples

1
Wael
6/4/2021 8:53 AM

going through the documentation but can't find any examples or explanation of how to read the whole dwg file
any idea where to find it?

Wout
6/4/2021 9:52 AM

Like I mentioned in the other post you just call CadReader.Read and you get a DxfModel out of it containing the whole AutoCAD drawing.

- Wout

Wael
6/7/2021 10:18 AM

so

C# Code:
DxfModel model = null;
model = CadReader.Read(filename);
model.myEntity?

is enough to access all drawing data ?

Wout
6/7/2021 10:28 AM

Look at model.Entities in your debugger watch window.

- Wout

1