Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DropZone2 (used in grid view) doesn't enforce correct object type #121

Open
DavidGoldwasser opened this issue Sep 11, 2015 · 5 comments
Open

Comments

@DavidGoldwasser
Copy link
Contributor

Currently it accepts any kind of surface or sub-surface.

@macumber
Copy link
Collaborator

@DavidGoldwasser can you expand on the issue here? The API already restricts the setInsideShelf method to take an InteriorPartitionSurface and the setOutsideShelf to take a ShadingSurface:

https://github.com/NREL/OpenStudio/blob/develop/openstudiocore/src/model/DaylightingDeviceShelf.hpp#L69

@DavidGoldwasser
Copy link
Contributor Author

Looks like the API enforces it but not the GUI. On screenshot below it accepts any kind of surface or sub-surface, although I did just confirm that if I leave the tab and come back, it disappears. On screenshot below I added a sub-surface as an outside shelf. Seems like it should only accept an interior partition surface or a sharing surface. @macumber does the API enforce outside as shading and inside as interior partition, or can they both take either? Whichever way the API is the GUI should match.

screen shot 2015-11-20 at 10 48 53 am

@macumber
Copy link
Collaborator

Ok, switching this over to @evanweaver then

@macumber macumber assigned evanweaver and unassigned macumber Nov 20, 2015
evanweaver referenced this issue in NREL/OpenStudio Dec 4, 2015
@DavidGoldwasser DavidGoldwasser changed the title Daylighting Shelf object should enforce correct surface type for inside and outside shelf DropZone2 (used in grid view) doesn't enforce correct object type Dec 10, 2015
@DavidGoldwasser
Copy link
Contributor Author

I renamed after realized it wasn't related daylighting shelf, but happens elsewhere in GridView. Still a minor issue because it doesn't do anything wrong to the model. Below is another example where i dropped a schedule set instead of a construction set. No reason to fix this for 1.10. If there isn't easy fix for this issue we could improve the description in daylighting shelf columns to show what kind of object it expects, it isn't as obvious as it is elsewhere.

screen shot 2015-12-10 at 10 37 09 am

@jmarrec
Copy link
Collaborator

jmarrec commented Sep 29, 2017

I can reproduce the "drop schedule set" inside the "construction set" area in 2.2.1. Interestingly, the drop only works if It's already in "My Model" and I'm dragging from "My Model". The drop doesn't work when I drag from the Library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants