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,256);
db.Celtype = db.ByLayerLinetype;
class keyThumper<T> : Lazy<T>; another Swamper
I do not endorse the social media app links below
Yes now i got the solution, This works for me.......
>> Alfred, db.Celtype is an ObjectId
Ooops .... thank you (looked at the wrong place).
Nice weekend, - alfred -
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.