[CommandMethod("S2T")]
static public void UpdateTableFromSpreadsheet()
{
Document doc = Application.DocumentManager.MdiActiveDocument;
Database db = doc.Database;
Editor ed = doc.Editor;
PromptEntityOptions opt = new PromptEntityOptions("\nSelect table to update: ");
opt.SetRejectMessage("\nEntity is not a table.");
opt.AddAllowedClass(typeof(Table), false);
PromptEntityResult per = ed.GetEntity(opt);
if (per.Status != PromptStatus.OK)
{
return;
}
Transaction tr = db.TransactionManager.StartTransaction();
}
Hi Daniel,
Where did you find that one ?? . . . looks interesting !
Did they have a sample for usage with C# ?
I asked Mrs Google, she 'knows nothing' to quote Schultz(John Banner)
Perhaps playing with the NOMUTT (https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-Core/files/GUID-9289326E-DEE9-40E7-839C-A4B031A29B2A-htm.html) sysvar?
protected internal sealed override unsafe PromptResult DoIt() . . .
andprivate protected unsafe int ProcessForNoneOrEmptySel(int retcode)