.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Draw on AutoCAD load

0 REPLIES 0
Reply
Message 1 of 1
zoomkey
98 Views, 0 Replies

Draw on AutoCAD load

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.

Labels (2)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


AutoCAD Beta