getting entites of .dwg-file without visual control
Posted: 18 Oct 2011, 10:32
Hello,
i want to get all the entities stored in one .dwg-file. Im using the current test version of the CADImport.NET.
If i load the file with the EditorDemo application, i can see all existing entities. If i start the following code, the entity-collection remains empty:
CADImport.CADImage cadImage = new CADImport.CADImage();
cadImage.LoadFromFile(@"C:\Temp\file.dwg");
CADEntityCollection entities = cadImage.Converter.Entities;
int x = entities.Count; // <---------- 0
Can anyone help me out?
Thanks,
Philipp
i want to get all the entities stored in one .dwg-file. Im using the current test version of the CADImport.NET.
If i load the file with the EditorDemo application, i can see all existing entities. If i start the following code, the entity-collection remains empty:
CADImport.CADImage cadImage = new CADImport.CADImage();
cadImage.LoadFromFile(@"C:\Temp\file.dwg");
CADEntityCollection entities = cadImage.Converter.Entities;
int x = entities.Count; // <---------- 0
Can anyone help me out?
Thanks,
Philipp