Skip to content

Commit 9e1778c

Browse files
author
Wawan Solihin
committed
Minor update related to the steel connection
1 parent 8664ec5 commit 9e1778c

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,7 @@ FakesAssemblies/
194194
*.ide-wal
195195
.vs/
196196
*.sig
197+
Source/RevitIFCTools/IFC Shared Parameters-RevitIFCBuiltIn_ALL_out.txt
198+
Source/RevitIFCTools/IFC Shared Parameters-RevitIFCBuiltIn_ALL-old.txt
199+
Source/RevitIFCTools/IFC Shared Parameters-RevitIFCBuiltIn-Type_ALL_out.txt
200+
Source/RevitIFCTools/IFC Shared Parameters-RevitIFCBuiltIn-Type_ALL-old.txt

Source/Revit.IFC.Export/Exporter/Exporter.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,12 @@ protected void ExportAdvanceSteelElements(ExporterIFC exporterIFC, Autodesk.Revi
243243
{
244244
try
245245
{
246-
#if IFC_OPENSOURCE
247-
string dllPath = Assembly.GetExecutingAssembly().Location;
248-
Assembly assembly = Assembly.LoadFrom(Path.GetDirectoryName(dllPath) + @"\Autodesk.SteelConnections.ASIFC.dll");
249-
#else
246+
//#if IFC_OPENSOURCE
247+
// string dllPath = Assembly.GetExecutingAssembly().Location;
248+
// Assembly assembly = Assembly.LoadFrom(Path.GetDirectoryName(dllPath) + @"\Autodesk.SteelConnections.ASIFC.dll");
249+
//#else
250250
Assembly assembly = Assembly.LoadFrom(AppDomain.CurrentDomain.BaseDirectory + @"\Addins\SteelConnections\Autodesk.SteelConnections.ASIFC.dll");
251-
#endif
251+
//#endif
252252
if (assembly != null)
253253
{
254254
Type type = assembly.GetType("Autodesk.SteelConnections.ASIFC.ASExporter");
@@ -588,7 +588,7 @@ protected virtual bool CanExportElement(ExporterIFC exporterIFC, Autodesk.Revit.
588588
if (graphicsCell != null) // Concrete elements with cell that have HasGraphics set to true, must be handled by Revit exporter.
589589
hasGraphics = (bool)graphicsCell.GetValue(cell, null);
590590

591-
if (hasGraphics)
591+
if (!hasGraphics)
592592
return false;
593593
}
594594
}

0 commit comments

Comments
 (0)