db.Celtype is an ObjectId
But this works for me too.
using AcadApp = Autodesk.AutoCAD.ApplicationServices.Application; using AcadColor = Autodesk.AutoCAD.Colors; Document doc = AcadApp.DocumentManager.MdiActiveDocument; Database db = doc.Database; db.Celweight = LineWeight.LineWeight015; db.Cecolor = AcadColor.Color.FromColorIndex(ColorMethod.ByAci, 1); db.Celtype = db.ContinuousLinetype; AcadApp.ShowAlertDialog("NOW WE'LL CHANGE THEM BACK."); db.Celweight = LineWeight.ByLayer; db.Cecolor = AcadColor.Color.FromColorIndex(ColorMethod.ByAci,2
56); db.Celtype = db.ByLayerLinetype;
Everything will work just as you expect it to, unless your expectations are incorrect.
class keyThumper<T> : Lazy<T>; another Swamper
>> Alfred, db.Celtype is an ObjectId
Ooops .... thank you (looked at the wrong place).
Nice weekend, - alfred -
Access a broad range of knowledge to help get the most out of your products and services.