Entity ent = null ;
ent =(Entity)obj ; //as known,now,ent.IsReadEnabled=true and ent.IsWriteEnabled=true
//now,after use ent done ,we'll find ent.IsReadEnabled=false and ent.IsWriteEnabled=false
question: how to make ent.IsReadEnabled or ent.IsWriteEnabled true again??
downgradeopen() must be used while ent is open for write(means ent.IsWriteEnabled=true);
upgradeopen() must be used while ent.IsReadEnabled=true;
but while ent.IsReadEnabled is false,how to make it true ?
Message was edited by: lapiseast
I do not understand your's problem. Try this code:
// Define Command "TestOpen"
static public void TestOpen()
Document doc = Application.DocumentManager.MdiActiveDocument;
Editor ed = doc.Editor;