Guest User

Untitled

a guest
Sep 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. AutoCAD: Drag and Drop *.dwg files from my ListBox hosted in Palettset
  2. [CommandMethod("InsertDWG")]
  3. static public void SendCmd()
  4. {
  5. string DWGFile = @"D:sym1047.DWG";
  6. string InsertCmd = @"_.-INSERT " + DWGFile + 'r' + 'n';
  7. Document doc = Application.DocumentManager.MdiActiveDocument;
  8. doc.SendStringToExecute(InsertCmd, true, false, false);
  9. }
Add Comment
Please, Sign In to add comment