Skip to content

OS:Rendering:Color objects added every time the geometry tab is clicked and the model is saved again #768

@mrdeslau

Description

@mrdeslau

Issue overview

Many OS:Rendering:Color objects are being added every time the geometry tab is clicked and the model is saved again. This is causing the .osm file to become cluttered when viewed in a text editor, especially for larger models. (See diff changes below)

image

Ideally, the model would not add these objects each time the geometry tab is clicked and saved.

To replicate - using the attached example model -

  1. Load in OS App and click the geometry tab
  2. Save as a new name
  3. Compare the two files in a text editor
  4. A new OS:Rendering:Color object will be added each time the geometry tab is selected and the model is saved again.

Possible Solution

One possible, but maybe not ideal solution would be to remove all rendering colors before a save -
rendering_colors = model.getRenderingColors
rendering_colors.each do |color|
color.remove
end

Another possible solution would be to identify which constructions or surfaces are causing these colors to be generated each time and removing just those from the model before a save.

Environment

Some additional details about your environment for this issue (if relevant):

  • Windows 10 Enterprise 22H2
  • OS App 3.6.1

Context

The issue is more annoying than a real problem, but it causes a visibility issue when trying to compare meaningful changes across models.

Example.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions