.NET

Reply
Active Contributor
tangferry
Posts: 43
Registered: ‎04-21-2005
Message 1 of 2 (119 Views)

How to set a layer current?

119 Views, 1 Replies
11-22-2005 11:42 PM
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
*Kerry Brown
Message 2 of 2 (119 Views)

Re: How to set a layer current?

11-23-2005 05:06 AM in reply to: tangferry
The asignment statement is correct.
How are you determining the ObjectId for the layer ?


wrote in message news:5020999@discussion.autodesk.com...
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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community