.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Re: Change Color, Line Type and Line weight without selecting any objects
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-10-2012 12:07 AM in reply to:
alfred.neswadba
Alfred,
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;
Regards,
//-------------------------------------------------------
class keyThumper<T> : Lazy<T>; another Swamper
I do not endorse the social media app links below![]()
Re: Change Color, Line Type and Line weight without selecting any objects
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-10-2012 12:33 AM in reply to:
chockalingam
Yes now i got the solution, This works for me.......
Re: Change Color, Line Type and Line weight without selecting any objects
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-10-2012 01:04 AM in reply to:
KerryBrown
Hi,
>> Alfred, db.Celtype is an ObjectId
Ooops .... thank you (looked at the wrong place).
Nice weekend, - alfred -
-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------


