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

Revit2018 - Added new option 'Relate doors to rooms' #95

Open
wants to merge 15 commits into
base: Revit2018
Choose a base branch
from

Conversation

Jo64
Copy link

@Jo64 Jo64 commented Mar 9, 2019

The important changes are in projects Revit.IFC.Export and IFCExporterUIOverride.
I have updated the installation project so that it works for us. You can ignore it.
You can change the code or the UI texts according to your personal or project-specific guidelines.

Revit doors that have set the ToRoom or the Room property are added to the ReleatedElements list.
The RelatedStructure is the room.

e.g.
IfcRelContainedInSpatialStructure
RelatingStructure(IfcSpatialStructureElement)
-IfcSpace
RelatedElements(IfcProduct)
-IfcDoor
-IfcDoor
-...

Jo64 added 2 commits March 5, 2019 18:57
QM 27224 - Türen mit Raumbezug im IFC
- issue Autodesk#91
- update to VisualStudio 2017
- added new boolean export option 'DoorBelongsToRoom'
Change MSI release path to revit-ifc\Setup\Release\RevitIFC2018_18410.msi
Removed company specific comments
Back out AssemblyVersion
Back out install project
@AngelVelezSosa
Copy link
Contributor

Is this just a JIRA issue that I keep seeing the install files as part of this pull request? @jmirtsch

Update ProductCode/UpgradeCode to 2018
@castronelson
Copy link

I need to convert revit to ifc file
can please anyone suggests why the RevitAPI.dll not working? if added in a empty project using asp.net

@WawanSolihin
Copy link
Contributor

Generally, this may be a little problematic because IfcRelContainedInSpatialStructure has a restriction that one object can only be contained in one IfcSpatialStructureElement only. In the case of a Door, it usually belongs to 2 spaces so that it should not be contained in one of the space only since this will be ambiguous: which space really contains the door?
One way to get a relationship between the space and the door is through IfcRelSpaceBoundary (must export with space boundary level 1 option selected). Otherwise, a different relationship may be possible to use like IfcRelConnects, which connects Space -> Door -> Space, which is also inline with Revit door information (FamilyInstance) FromRoom and ToRoom

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

Successfully merging this pull request may close these issues.

4 participants