You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a user mistakenly deleted a Story assignment for a Space, even after setting the Story back to what it was, they cannot view the Space's floor plan or update its render color in the Geometry / Editor tab that connects to FloorspaceJS. If the user then merged FloorspaceJS data with the current model, some Spaces are deleted.
For background information, I was hoping to develop a hands-on exercise for an OpenStudio Application training workshop where the attendee would inherit a half-complete model where various Spaces are missing, or the Spaces that are existing have some key attributes (Story, Thermal Zone, etc.) unassigned. The attached ZIP folder has three OSM files:
'Exercise-01.osm' is the starting point for this exercise I'm developing.
'Exercise-01-assign-story.osm' is after assigning Story to Spaces where that was undefined.
'Exercise-01-assign-story-merge.osm' is after merging the existing OSM with the FloorspaceJS data after attempting to set the Space render color.
Current Behavior
When a Space does not have a Story assigned, it is not listed in the Geometry / Editor tab.
After a Story has been assigned to a Space, the Space is then listed in the Geometry / Editor tab, but the floor plan for the Space is not visible in the grid and the Render Color input for the Space cannot be set.
Expected Behavior
If a Space has its Story setting deleted, setting the Story again should allow the user to edit the Space further on the Geometry / Editor tab:
Select a Render Color for that Space
See the floor plan for that Space in the grid
Steps to Reproduce
I started off using FloorspaceJS to draw a 5-story building with some missing Spaces. I then deleted the Story assignment from a few Spaces, such as L1 Corridor and L1 East Office (see below).
When a Space does not have a Story assigned, it is not listed in the Geometry / Editor tab (see below).
After a Story has been assigned to a Space, the Space is then listed in the Geometry / Editor tab (refer to attached 'Exercise-01-assign-story.osm'). However, the floor plan is not visible in the grid and the Render Color input cannot be set.
For testing, I also tried deleting the Render Color assignment from a Space by:
Clicking on text for Hex Key
Deleting text in pop-up window
Hitting "Esc" key
Clicking on blank window for Hex Key
Selecting color in pop-up window
Hitting "Esc" key
Deleting and assigning a new Render Color like this is working in the Geometry / Editor tab correctly and that is the expected behavior.
For further testing, I also tried merging the FloorspaceJS data with the current OSM, but that ended up deleting Spaces from the model (refer to attached 'Exercise-01-assign-story-merge.osm').
Possible Solution
Details
Environment
Some additional details about your environment for this issue (if relevant):
Platform (Operating system, version): Windows 10, but running through a virtual machine (VM Ware) on a Mac
Version of OpenStudioApplication (if using an intermediate build, include SHA): OS App version 1.7.0
Context
For background information, I was hoping to develop a hands-on exercise for an OpenStudio Application training workshop where the attendee would inherit a half-complete model where various Spaces are missing, or the Spaces that are existing have some key attributes (Story, Thermal Zone, etc.) unassigned.
The text was updated successfully, but these errors were encountered:
aaron-boranian
added
the
Triage
Issue needs to be assessed and labeled, further information on reported might be needed
label
Apr 22, 2024
Thanks for the bug report @aaron-boranian. This happens because the FloorspaceJS data model is based around stories, a space cannot exist in that model without a story (which is different than the OpenStudio Model's scheme in which a space can exist without a story). I think the right fix for this would be to disable deleting stories from spaces if the space came from FloorpsaceJS. The other issue would be if you deleted a story in the OS App, that wouldn't immediately delete the spaces assigned to that story in the OS App but would after merging with the geometry editor.
I think for the purpose of your example, you'd have to think of story as a required field for space. You could have spaces without thermal zone assignments but you can't have a space without a story assigned if you are using FloorspaceJS.
Issue overview
If a user mistakenly deleted a Story assignment for a Space, even after setting the Story back to what it was, they cannot view the Space's floor plan or update its render color in the Geometry / Editor tab that connects to FloorspaceJS. If the user then merged FloorspaceJS data with the current model, some Spaces are deleted.
For background information, I was hoping to develop a hands-on exercise for an OpenStudio Application training workshop where the attendee would inherit a half-complete model where various Spaces are missing, or the Spaces that are existing have some key attributes (Story, Thermal Zone, etc.) unassigned. The attached ZIP folder has three OSM files:
Current Behavior
When a Space does not have a Story assigned, it is not listed in the Geometry / Editor tab.
After a Story has been assigned to a Space, the Space is then listed in the Geometry / Editor tab, but the floor plan for the Space is not visible in the grid and the Render Color input for the Space cannot be set.
Expected Behavior
If a Space has its Story setting deleted, setting the Story again should allow the user to edit the Space further on the Geometry / Editor tab:
Steps to Reproduce
When a Space does not have a Story assigned, it is not listed in the Geometry / Editor tab (see below).
![OS issue_blank story2](https://private-user-images.githubusercontent.com/15160917/324575795-cd25716c-3f8e-4f6d-ad31-4c2c5fe84ec9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Njc4MDgsIm5iZiI6MTczOTU2NzUwOCwicGF0aCI6Ii8xNTE2MDkxNy8zMjQ1NzU3OTUtY2QyNTcxNmMtM2Y4ZS00ZjZkLWFkMzEtNGMyYzVmZTg0ZWM5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDIxMTE0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMyOGVhNTkxOWJiYTNjYTNkZTBlMjQ2MzdkZGEzNjJiZmM0YTVhZTI0MTc0N2U4N2MwNTcyODUwZGFiNWYxZGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.EBZMVsM-rD-xBlooiXXEYYJDKl7Fq8SD6dZ3DNx9ssQ)
Deleting and assigning a new Render Color like this is working in the Geometry / Editor tab correctly and that is the expected behavior.
Possible Solution
Details
Environment
Some additional details about your environment for this issue (if relevant):
Context
For background information, I was hoping to develop a hands-on exercise for an OpenStudio Application training workshop where the attendee would inherit a half-complete model where various Spaces are missing, or the Spaces that are existing have some key attributes (Story, Thermal Zone, etc.) unassigned.
The text was updated successfully, but these errors were encountered: