<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Create gradient with sevral colors and use specific min and max for AVF in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9856554#M30553</link>
    <description>&lt;P&gt;Thank you for the interesting question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please be aware that the Revit API hardly ever supports any functionality that is not also available in the user interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you able to set up an analysis visualisation manually through the user interface that fulfils all your requirements?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, then it is probably not possible to do so programmatically though the API either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Still, I will gladly raise this question for you with the development team.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please specify clearly and succinctly all your requirements in one single list, since I find it hard to extract your exact needs from the description you give.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to specify:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;min value&lt;/LI&gt;
&lt;LI&gt;max value&lt;/LI&gt;
&lt;LI&gt;min colour&lt;/LI&gt;
&lt;LI&gt;max colour&lt;/LI&gt;
&lt;LI&gt;min legend value&lt;/LI&gt;
&lt;LI&gt;max legend value&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anything else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not understand the requirement to specify "&lt;SPAN&gt;serval colors for things which are above or ahead". What? How?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Nov 2020 17:52:42 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2020-11-09T17:52:42Z</dc:date>
    <item>
      <title>Create gradient with sevral colors and use specific min and max for AVF</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9855646#M30552</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm creating a plugin which compares a point cloud and floor or wall in revit. My problem is that i already use AVF to display my result, but i havbe a color for the max and a color for the min, but that's all. I want someting like this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Facade sud.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/842025iD4C0DE08146F49E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Facade sud.png" alt="Facade sud.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There is serval colors for things which are above or ahead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also want to set in the code the min and max values of the legends as it is here, Because i Don't find how to set those values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only way that i found to have multiple colors if to use points marker and not gradient in the AVF. But doing that, it is unreadable and i have a legend for the negativ part and a legend for the positiv part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me with the AVF&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 12:11:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9855646#M30552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-09T12:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create gradient with sevral colors and use specific min and max for AVF</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9856554#M30553</link>
      <description>&lt;P&gt;Thank you for the interesting question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please be aware that the Revit API hardly ever supports any functionality that is not also available in the user interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you able to set up an analysis visualisation manually through the user interface that fulfils all your requirements?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, then it is probably not possible to do so programmatically though the API either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Still, I will gladly raise this question for you with the development team.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please specify clearly and succinctly all your requirements in one single list, since I find it hard to extract your exact needs from the description you give.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to specify:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;min value&lt;/LI&gt;
&lt;LI&gt;max value&lt;/LI&gt;
&lt;LI&gt;min colour&lt;/LI&gt;
&lt;LI&gt;max colour&lt;/LI&gt;
&lt;LI&gt;min legend value&lt;/LI&gt;
&lt;LI&gt;max legend value&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anything else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not understand the requirement to specify "&lt;SPAN&gt;serval colors for things which are above or ahead". What? How?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 17:52:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9856554#M30553</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-11-09T17:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create gradient with sevral colors and use specific min and max for AVF</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9856676#M30554</link>
      <description>&lt;P&gt;Thanks for your interest in my question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’ve never try to do this trough the user interface. In fact, I m not a Revit user, I am a developper and I’m working for someone who use revit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it’s the first time that I create revit plugin and so it’s a bit hard to understand everything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And to clarify, I want to do the exact same thing as it is on the picture.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I want the min and max values on the legend to be always the same for exemple i want my legend to be from -1m and 1m every time (because in my actual plugin the min and max value are determined by the analysis result that I display i can’t choose them)&lt;/P&gt;&lt;P&gt;- I want to have different color for some key value in the legends, like green for the 0, red for the max and blue for the minimum. As it is in the picture, if you look at the legends, there are different color depending on the value, and not a maximum color and a minimum color. (for exemple, in my plugin I compare a point cloud and a wall. if the distance between the wall and the point is 0,12m it will be a color between green and red (because it is in front of the wall) and if the distance is -0,51m it will be between green and blue (because it is behind the wall))&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 18:49:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9856676#M30554</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-09T18:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create gradient with sevral colors and use specific min and max for AVF</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9856888#M30555</link>
      <description>&lt;P&gt;Was the image created with Revit? If so, then that obviously proves that it is possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 20:23:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9856888#M30555</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-11-09T20:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create gradient with sevral colors and use specific min and max for AVF</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9857104#M30556</link>
      <description>&lt;P&gt;It sounds like you are looking for:&lt;/P&gt;&lt;P&gt;AnalysisDisplayColorSettings.GetIntermediateColors &amp;amp;&amp;nbsp;AnalysisDisplayColorSettings.SetIntermediateColors&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This I found via RevitLookup after adding via the UI, learning how to do it in the UI is essential for developing Revit add-ins.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't seem like it is possible to display a value in the legend that doesn't exist in the results e.g. in the below the results values are from 0 to 10, so red is not shown in the Legend (we also see a bit of merger towards cyan since we have no colour for zero in the settings):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="201109.PNG" style="width: 892px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/842249i343C129CAF89EC1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="201109.PNG" alt="201109.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 22:05:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9857104#M30556</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2020-11-09T22:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create gradient with sevral colors and use specific min and max for AVF</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9857902#M30557</link>
      <description>&lt;P&gt;Yes it was created by the revit plugin « Undet ».&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 07:29:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9857902#M30557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-10T07:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create gradient with sevral colors and use specific min and max for AVF</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9857905#M30558</link>
      <description>&lt;P&gt;Thanks a lot ! It seems to be a very good solution ! I will try it and let you know if it works !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 07:31:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9857905#M30558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-10T07:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create gradient with sevral colors and use specific min and max for AVF</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9858237#M30559</link>
      <description>&lt;P&gt;So it works, i set multiple color as you did. So this part of the problem is solved ! thanks, but to add min and max values to the legend, i did that by adding "fake" points on the analysis, I mean that i wanted me legend to go from -0.5 to 0.5 so i created two points with those values and i Don't know how to do it in a ggod way&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 10:24:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9858237#M30559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-10T10:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create gradient with sevral colors and use specific min and max for AVF</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9858391#M30560</link>
      <description>&lt;P&gt;Sounds like an approach bearing in mind that you still need to reflect the correct value at such a location to not affect the distribution of colour from that location further out. If the colour decided for multiple data at the same point is decided by mean average rather than median then the actual value there could be an issue:&lt;/P&gt;&lt;P&gt;e.g. (-0.5 + 0.25 + 0.5)/3 = 0.0833 not 0.25.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how that is decided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 11:55:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9858391#M30560</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2020-11-10T11:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create gradient with sevral colors and use specific min and max for AVF</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9858542#M30561</link>
      <description>&lt;P&gt;Here is code from The Building Coder webcam implementation in the year 2010 that sets the min and max colours as well as the legend scaling:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2010/06/display-webcam-image-on-building-element-face.html" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2010/06/display-webcam-image-on-building-element-face.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;    // color settings:
 
    AnalysisDisplayColorSettings colorSettings 
      = new AnalysisDisplayColorSettings();
 
    colorSettings.MaxColor = new Color( 255, 255, 255 );
    colorSettings.MinColor = new Color( 0, 0, 0 );
 
    // legend settings:
 
    AnalysisDisplayLegendSettings legendSettings 
      = new AnalysisDisplayLegendSettings();
 
    legendSettings.NumberOfSteps = 10;
    legendSettings.Rounding = 0.05;
    legendSettings.ShowDataDescription = false;
    legendSettings.ShowLegend = true;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 12:46:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-gradient-with-sevral-colors-and-use-specific-min-and-max/m-p/9858542#M30561</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-11-10T12:46:17Z</dc:date>
    </item>
  </channel>
</rss>

