Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Wolgraph · Mar 19, 2019 at 02:20 PM · packagesdllimportexternal-librariesinternal compiler error

Integrate Xbim Tool external library into Unity

I'm trying to transfer geometric and architectural data from an .ifc file into Unity In order to accomplish this task, I'm using Xbim Tool's C# libraries

Github Link here
Nuget Link here

Libraries are Xbim Essentials and Xbim Geometries.
I followed this tutorial to make Visual studio accept the packages and prevent them to be wiped out by the rebuild Unity does at every start up.

Since Unity only accept dlls to be stored into the asset folder, I've used the package "Nuget for Unity" to download the packages into the asset folder.

This is the code I wrote

 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 using Xbim.Ifc;
 using Xbim.ModelGeometry.Scene;
 
 public class Testprogetto : MonoBehaviour
 {
     // Start is called before the first frame update
     void Start()
     {
         const string fileName = "Muro finestrato.ifc";
         using (var Stepmodel = IfcStore.Open(fileName, null, -1))
         {
             Stepmodel.SaveAs("Muro finestrato.ifcxml");
         }
         using (var model = IfcStore.Open("Muro finestrato.ifcxml"))
         {
             var context = new Xbim3DModelContext(model);
             context.CreateContext();
         }
     }
 
     // Update is called once per frame
     void Update()
     {
         
     }
 }



In visual studio this compiles heavenly, but in Unity the internal compiler returns the error like I missed to import the libraries.

alt text

console-error.png (21.1 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by SolidVirtual · Feb 06, 2020 at 03:09 PM

@Wolgraph Did you get it?

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Wolgraph · Feb 07, 2020 at 12:39 AM 0
Share

Yeah. I solved the problem by downloading the packages, compile the in order to get the .dll files and saving them in the folder “Plugins” I created within the project directory.

avatar image SolidVirtual Wolgraph · Feb 07, 2020 at 11:57 AM 0
Share

I'm able to compile de .dll files and put them in a Plugins directory but once a copy into the plugins folder some errors appeared. Duplicate assemblies and others ... did it happen to you?

avatar image
0

Answer by Wolgraph · Feb 09, 2020 at 10:11 PM

It's been around 7 months since last time I used xbimtool so I don't remember much about it. I think I got that error a couple of time. If you downloaded packages from nuget or other ways, try deleting every reference of them. As the error says, it finds two version of the assembly and it doesn't know which to use. Since this error doesn't depend specifically on xbimtool or Unity, you may also try search the error message on internet. I'm sure you'll find something.

Another solution may be to create a new project and migrate the assets. This way you'll have a fresh project file and it shouldn't have that error

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Wolgraph · Feb 17, 2020 at 07:48 PM 0
Share

@SolidVirtual

avatar image
0

Answer by FrostbiteX11 · Jun 28, 2020 at 10:54 PM

@Wolgraph : Did you develop the solution or yet to create a solution regarding that? I'm a graduate student trying to look into developing tools to cross=platform between unity-unreal-Revit at a single go. It is pretty tough but I guess it is not impossible!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

102 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Computer name issue 1 Answer

Packaging a tool to keep intellectual property safe? 1 Answer

I keep getting this error but I just installed? What can I do to fix this ASAP? 1 Answer

Custom Package Editor Script 2 Answers

Confusing Transitive Assembly References 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges