assimp / assimp/assimp-net

Issue with Importing IFC files

Open
#33 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
218
Forks
83
PR merge metrics
No merged PRs in 30d

Description

Hi,
I have 2 issues with importing IFC files using AssimpNET (keep in mind that I am noob in the topic):

(A) I'm trying to import IFC files with AssimpNet 3.3.2. There is an error (attached Image) when I try to import the IFC file.

(B) I have read on forums that AssimpNet 3.0 imports IFC. The issue here is that I cannot link AssimpNet.dll and Assimp64.dll to my c# project on VS 2015. I forked the AssimpNet 3.0 from the Git repository and built the AssimpNet.sln and then placed the resulting dlls to my c3 projects bin/x64 folder where the exe resides.
Anyway, the VS cannot find the Assimp libraries when I try to declare Assimp with "using Assimp".

But, when I tried placing the assimp 3.0 dlls in my Unity project assets folder and called assimp from a c# script in unity, it works and also imports the IFC file.

What am I doing wrong when linking the AssimpNet 3.0 with VS 2015 c# project?

This is my code:

```
using System;
using System.IO;
using System.Reflection;
using Assimp;
using Assimp.Configs;
namespace Example
{
class Program
{
static void Main(string[] args)
{

String fileName = "F:/rst_basic_sample_project.ifc";

AssimpContext importer = new AssimpContext();

Scene model = importer.ImportFile(fileName);

Console.WriteLine("no. of meshes in the model is: " + model.MeshCount);

importer.Dispose();

}
}
}

```
![issue_ifc](https://cloud.githubusercontent.com/assets/15331399/22864152/35654694-f14c-11e6-96b6-f8128c92d4fd.PNG)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the AssimpNet.sln build, the resulting AssimpNet.dll and Assimp64.dll, and the C# Main entry point shown in the issue. Reproduce the import in the VS 2015 project and compare it with the working Unity setup; done means the project can reference Assimp and import the IFC file without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.