Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Changing zoom levels mess up display colors of a surface

2 ANTWORTEN 2
Antworten
Nachricht 1 von 3
Anonymous
317 Aufrufe, 2 Antworten

Changing zoom levels mess up display colors of a surface

Hi everyone,

 

I am rendering some colors over a surface using SpatialFieldManager and AnalysisDisplayStyle. So basically I select the top face of a floor and then for different points on the floor, I have their RGB values. It works fine and I can see the rendered color surface. However, when I change the zoom level of the view for example with mouse scroll, this messes up the display colors on the surface. Following is the :

 

AnalysisDisplayColoredSurfaceSettings coloredSurfaceSettings = new AnalysisDisplayColoredSurfaceSettings();

AnalysisDisplayColorSettings colorSettings = new AnalysisDisplayColorSettings();
Autodesk.Revit.DB.Color blue = new Autodesk.Revit.DB.Color(0, 0, 255);
Autodesk.Revit.DB.Color red = new Autodesk.Revit.DB.Color(255, 0, 0);
colorSettings.MaxColor = red;
colorSettings.MinColor = blue;

AnalysisDisplayLegendSettings legendSettings = new AnalysisDisplayLegendSettings();

this.analysisDisplayStyle = AnalysisDisplayStyle.CreateAnalysisDisplayStyle(doc, "Colored Surface", coloredSurfaceSettings, colorSettings, legendSettings);

SpatialFieldManager sfm = new SpatialFieldManager(); sfm.UpdateSpatialFieldPrimitive(idX, new FieldDomainPointsByUV(points), new FieldValues(values), _schemaId);

 

2 ANTWORTEN 2
Nachricht 2 von 3
L.Maas
als Antwort auf: Anonymous

I would advise to post this question in the Revit API forum.

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

Nachricht 3 von 3
Anonymous
als Antwort auf: L.Maas

I think you are right. Thanks!

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report