Hello All,
I'm load AutoCAD using .NET but couldn't figure out on how to create a drawing on AutoCAD LOAD, with my specific inputs.
I'm using something like this to load my DXF files using the Editor.
Editor ed = Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument.Editor;
ed.Command("_INSERT", "DRW_FORMAT.dxf", "-2.2,-116.2", 1, 1, 0);
I need to pass these values(X, Y), in this case(-2.2,-116.2), as an argument. So, when the AutoCAD loads, it should open a New Drawing and insert this DXF at this specific coordinates.
Any help? Thanks in advance.
I'm using Visual Studio 2022 and AutoCAD 2024, along with ObjectARX.