.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Change entity color & linetype problem.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
myAcadEnt.Color = Colors.Color.FromDictionaryName("ByLayer")
Can anybody get me pointed in the right direction? I am grateful for any help.
Scott
Re: Change entity color & linetype problem.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
myAcadEnt.ColorIndex = 256
Re: Change entity color & linetype problem.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Is there a similar value for the LinetypeId as for layers to reset to BYLAYER?
ent.ColorIndex = 256; /BYLAYER
// ent.LinetypeId = ???; //BYLAYER
rather than doing this:
ent.Linetype = "BYLAYER";
Dale
Re: Change entity color & linetype problem.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hello Dale,
"Database.ByLayerLineType" property will give you the ObjectId of the "ByLayer" line type.
Balaji
Developer Technical Services
Autodesk Developer Network
Re: Change entity color & linetype problem.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
That's correct. But what I want to know is what is the LinetypeID eqivalent of "BYLAYER"?. Thanks for hte reply, Dale
Re: Change entity color & linetype problem.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Something like this -
ent.linetype = db.ByLayerLinetype
Re: Change entity color & linetype problem.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
dbartlett wrote:That's correct. But what I want to know is what is the LinetypeID eqivalent of "BYLAYER"?. Thanks for hte reply, Dale
Balaji told you - it is returned by the property he mentioned, and it must be assigned to the entity's LinetypeId property (as opposed to the Linetype property)
