Revit API

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

LineColor for No Override

148 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: 153
Registered: ‎04-01-2011
Message 2 of 4 (131 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 (114 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: 153
Registered: ‎04-01-2011
Message 4 of 4 (111 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.

 

 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.