.net LayerFilter
Hello,
Can somebody help me? I would like to create filter for layer in .net c#.
I found class with name LayerFilter in in these namespaces Teigha.DatabaseServices.Filters and Teigha.LayerManager, but I do not know how to use it.
Thanks
Marek Falta
0
Comments
-
have a look at this article...
http://through-the-interface.typepad.com/through_the_interface/2008/07/adding-and-remo.html0 -
Hello KonstantinThanks for your link it works.0
-
Hello,
I use this code to get list of all layers.
[code]
// Start a transaction
using (Transaction acTrans = database.TransactionManager.StartTransaction())
{
// Open the Layer table for read
LayerTable acLyrTbl;
acLyrTbl = acTrans.GetObject(database.LayerTableId, OpenMode.ForRead) as LayerTable;foreach (ObjectId acObjId in acLyrTbl)
{LayerTableRecord acLyrTblRec;
acLyrTblRec = acTrans.GetObject(acObjId, OpenMode.ForRead) as LayerTableRecord;
}
}[/code]
What should I change to get only list of layers in some filter?
0 -
Have a look at this article...the C# .NET code example...
http://adndevblog.typepad.com/autocad/2012/05/creating-and-accessing-layer-filter-information.html0
This discussion has been closed.