Revit API

Reply
Active Contributor
dhorger
Posts: 46
Registered: ‎06-18-2003
Message 1 of 4 (152 Views)

LineColor for No Override

152 Views, 3 Replies
04-05-2013 09:21 AM

I'm trying to use the API to set the LineColor property of PipingSystemTypes to No Override, but I can't quite figure out the value to use for that. Setting a specific color is easy; turning it off not so much. Anybody know the answer?

 

Thanks,

Dave Horger

Mentor
ollikat
Posts: 165
Registered: ‎04-01-2011
Message 2 of 4 (135 Views)

Re: LineColor for No Override

04-07-2013 10:08 PM in reply to: dhorger

Hi

 

Have you tried the Color class static "InvalidColorValue" property?

Active Contributor
dhorger
Posts: 46
Registered: ‎06-18-2003
Message 3 of 4 (118 Views)

Re: LineColor for No Override

04-08-2013 02:06 PM in reply to: ollikat

No, I haven't tried that. In fact, I don't even see that in Intellisense. Where do I find that? I'm using VB.Net 2010 and Revit MEP 2013.

Mentor
ollikat
Posts: 165
Registered: ‎04-01-2011
Message 4 of 4 (115 Views)

Re: LineColor for No Override

04-08-2013 10:04 PM in reply to: dhorger

Hmp...unfortunate. Seems that this property is new in 2014 API.

 

So maybe it is so that you just need to store old color and restore it rather than "disabling" an override.

 

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.