Message 1 of 2
How to set a layer current?
Not applicable
11-22-2005
11:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I use the "Clayer" property of the Database object,but it doesn't work.
The codes are like the following:
Database db = HostApplicationServices.WorkingDatabase;
DBTrans tm =db.TransactionManager;
using (Transaction trans=tm.StartTransaction())
{
........
db.Clayer=id; // id is a valid ObjectId of a database layer
trans.commit()
} Message was edited by: tangferry
The codes are like the following:
Database db = HostApplicationServices.WorkingDatabase;
DBTrans tm =db.TransactionManager;
using (Transaction trans=tm.StartTransaction())
{
........
db.Clayer=id; // id is a valid ObjectId of a database layer
trans.commit()
} Message was edited by: tangferry