Revit_Core_Engine: pull of windows from link fixed #1281
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issues addressed by this PR
Closes #1280
Test files
See #1280
Changelog
Additional comments
From the two issues raised in the original issue:
Null reference was an easy fix, occurred when the solid was entirely outside of the half space, which makes perfect sense.
Generating ids error originates from an edge case where the element had its geometry defined both as instance geometry and element geometry (from what I understand, instance geometry is the geometry created based on the family definition, while the element geometry is what it actually is in the model - see Revit API docs for more details):
...from what I understand, instance geometry should be ignored in this case because it does not really exist in the model
FamilyInstance
should only have instance geometry, but who knows what will Revit come up with......so I drew a conclusion that the procedure should be as follows:
I made the above assumptions after longer investigation, but I cannot fully guarantee that it is valid for all cases. Therefore, I strongly recommend wider testing using the standard testing procedures before this gets merged @enarhi.