Revit API

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

LineColor for No Override

151 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: 164
Registered: ‎04-01-2011
Message 2 of 4 (134 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 (117 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: 164
Registered: ‎04-01-2011
Message 4 of 4 (114 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
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!