-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add method that scrapes data from multiple models #200
Add method that scrapes data from multiple models #200
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool may be easier to use the Rhino.FileIO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful. 🌷
/azp run Rhinoceros_Toolkit.CheckInstaller |
Azure Pipelines successfully started running 1 pipeline(s). |
Based on conversation earlier we should reopen #67 to create and adapter for Rhino initially to handle the method in this PR. |
Converted this to draft to keep it off Fraser's open PR radar. |
The base branch was changed.
f14bec2
to
c8e221a
Compare
@BHoMBot check versioning |
@FraserGreenroyd to confirm, the following actions are now queued:
|
@BHoMBot check compliance |
@FraserGreenroyd to confirm, the following actions are now queued:
There are 12 requests in the queue ahead of you. |
@FraserGreenroyd to confirm, the following actions are now queued:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have run a test on 2 files and geometry was pulled in nicely so happy to approve this for deployment via alpha.
@BHoMBot check ready-to-merge |
@FraserGreenroyd to confirm, the following actions are now queued:
There are 11 requests in the queue ahead of you. |
NOTE: Depends on
Issues addressed by this PR
Closes #199
Adding a compute method that lets you feed in a list of filepaths and the method returns all geometry objects in those models as well as a concatenated layer name and layer colour.
There are some weirdness with how this is running which makes it trigger multiple times when called from GH.
I think I managed to solve the worst issue by the addition of a static boolean that returns if the method is already running. Not the best solution, but what I could think of on the spot.
This also means the method returns one empty branch and one filled branch in GH. Again, far from ideal, but at least lets you progress.
Would have also liked to add the option of generating a fresh model once it was done, but that command seem to have been added in rhino 6, so not possible for rhino 5 which we still support.
Test files
https://burohappold.sharepoint.com/:f:/s/BHoM/EpskE0cM0mBPpvr5gA3Tu50Bs-4BTimcJ18VxbSqmVXulA?e=oq1QPy
Changelog
Additional comments
As this is not working perfectly, I would be fine with this not being merged, if deemed to unreliable, but raising the PR to get the code up here as it was useful for some current project work (with all its flaws).
Also, if this is in any way clashing with #198 and the representation work, please do not let this get in the way!