cart: empty [ Login ]

Having problems loading .dxf - Just trying to get started

1 
CSGemini
4/19/2022 4:18 PM
Really simple example i am stuck on, just trying to get started. I have a .net console application referencing the trial assemblies. In proj.cs I have added : TargetFramework>net5.0-windows</TargetFramework> <UseWindowsForms>true</UseWindowsForms> I think this is required in a console application as it was complaining System.Windows.Forms not found. In the program.cs:
C# Code:
DxfModel model = null; model = CadReader.Read("C:\\a\\b.dxf"); // faults here with object not set to an instance.
From what I can see CadReader.Read is a static method and the b.dxf file exists. I expect I am doing something really dumb, can someone help? Thanks, Chris
Wout
4/19/2022 4:31 PM
Hi, For the Windows version of CadLib you indeed need to set TargetFramework to net5.0-windows in the project file. Can you reply and attach a zip file with the DXF file? All files are confidential and only you and me can see them. - Wout
CSGemini
4/19/2022 4:44 PM
This particular one was originally created by LT55 laser template software which defaults to R14. I opened it in DraftSight and saved it as 2000 version. Maybe this has started the problem. I will also try opening the original.
CSGemini
4/19/2022 4:46 PM
I have same problem with the original which i understand is R14.
Wout
4/19/2022 5:21 PM
Hi, I'm not able to reproduce the problem. Can you zip your project and e-mail it to wout@woutware.com? - Wout
1