Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I need to send Autocad commands through C#, and so far I've been using the "acedCmd" system (I'm stuck with Autocad 2013, so I can't use the Editor.Command() method). I would like to call the MOVE command on an object that just has been created. The beginning works, I can select the object:
lastRes = acApp.DocumentManager.MdiActiveDocument.Editor.SelectLast(); rb = new ResultBuffer(); rb.Add(new TypedValue(5005, "_.MOVE")); rb.Add(new TypedValue(5006, lastRes.Value[0].ObjectId)); (...) acedCmd(rb.UnmanagedObject);
What I can't figure out is the (...) part, where I guess I need to programmatically emulate an "Enter" keypress (so Autocad asks for the move base point) and then provide autocad with the displacement point (using a 5002 typeValue I guess?).
How can it be done?
Solved! Go to Solution.

