live debug on AutoCAD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi every body
I was wondering if there is anyway to trach changes live on AutoCAD screen while pressing F10?
similar to VBA
I tried out doc.SendStringToExecute("REGENALL ", true, false, true) & Autodesk.AutoCAD.Internal.Utils.FlushGraphics();
but non of them were effective. nothing will change unless the program reaches to its end.
for example, I got a foreach loop which contains as entity.erase command.
but I can not see the live change unless the program reaches to the transaction.commit();
Edit:
can any one guide me what is wrong with this?
foreach (ObjectId obj in objallID)
{
Entity ent = trs.GetObject(obj, OpenMode.ForWrite) as Entity;
ent.Visible=false;
}
and how can I convert an objectID collection to a selection set and vice versa?
or an object ID to an entity?