我不确定,你可能是对的,但是,当我把我想要的版本作为AutoCAD 2018时,它似乎是固定的。默认值为 AutoCAD 2000。AutoCAD 2000格式中是否有某些东西会导致AutoCAD 2018中出现这种情况?下面是一个小片段。
- public void New(Documents dxfDocuments, netDxf.DxfDocument dxfActiveDocument)
- {
- string buffer;
- string input; // hello mp
- buffer = ">>> Enter template file name or [. (for none)] :";
- Console.Write("\n" + buffer);
- input = GetInput(0, buffer);
- try
- {
- if (input == ".")
- {
- netDxf.DxfDocument dxfDocument = new netDxf.DxfDocument(netDxf.Header.DxfVersion.AutoCad2018); // Create Document
- dxfDocuments.Add(dxfDocument); // Add document to collection
- dxfActiveDocument = dxfDocument; // Make the document the active document
- Console.Write("\nSuccessfully loaded new dxf document"); // Print to console
- }
- }
- catch
- {
- Console.Write("\nLoad failed");
- }
- }
|