Comments (5)
This did the trick.
Thanks Man!
Great job,
Regards Spirit
from unity-ifcengine.
That actually looks like a path problem to me. Can you supply a screenshot with your folder structure in the Win_EXE directory?
from unity-ifcengine.
Thanks for Ideas!
Bellow is changed version of Manager.cs
It reads .ifc file from the Root (of Unity project if Editor or where windows build .exe is located).
It is done because .ifc file included into Assets was existed as binary part of builded Unity resources.
Correct me if I'm wrong.
Looking forward for your feedback.
Thank you!
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
public class Manager : MonoBehaviour {
public string fileName = "IfcOpenHouseGeoRef";
ImportIFC import;
void Start () {
string fileFormat = Path.Combine(Directory.GetCurrentDirectory(), "{0}.ifc");
string filePath = Path.GetFullPath(string.Format(fileFormat, fileName));
Debug.Log(filePath);
Debug.Log(File.ReadAllText(filePath));
import = GetComponentInChildren<ImportIFC>();
import.ImportFinished += new ImportIFC.CallbackEventHandler(ImportIsFinished);
import.Init();
import.ImportFile(filePath, fileName);
}
public void ImportIsFinished(GameObject go)
{
Debug.Log(go.name + " is Imported!");
}
}
from unity-ifcengine.
Did you copy the IFC2X3-Settings.xml +.exp and IFC4-Settings.xml + .exp into the binary directory? This is needed for reading the IFC files.
from unity-ifcengine.
This did the trick. ...
@Spirit30 it's great people try to use it ;) if you build something presentable, just drop a note :)
Sent with GitHawk
from unity-ifcengine.
Related Issues (12)
- Better material assignment for compound objects (IfcWindow) HOT 6
- Integrate XBivine as soon as its ready
- (.so) libraries for Android support HOT 2
- Not able to build on IfcEngine.x86_64 HOT 1
- Crashe while running on Unity 2019 HOT 6
- Export IFC out of Unity?
- [QUESTION]can i get GUID of ifc file๏ผ HOT 3
- IFCUNITASSIGNMENT HOT 2
- Convert Game object to IFC HOT 3
- Make identifying IFC attributes available in Unity HOT 17
- Make compatible for release build HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unity-ifcengine.