Revit API

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

LineColor for No Override

150 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: 162
Registered: ‎04-01-2011
Message 2 of 4 (133 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 (116 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: 162
Registered: ‎04-01-2011
Message 4 of 4 (113 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
Need installation help?

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