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

Hi I am trying to convert JSON file to a Xbim model how can I do that does any one have idea about it #440

Open
nikilKaranjit opened this issue Sep 10, 2022 · 3 comments

Comments

@nikilKaranjit
Copy link

nikilKaranjit commented Sep 10, 2022

Short summary describing the issue. (3-5 sentences)
I am trying to verify the json data obtained from the buildingSMart data dictionary and for that purpose .I have created a IFc file but I don know how can we compare or verify IFC file with the JSon data using Xbim

Assemblies and versions affected:

Which assemblies/packages and their versions are known to be affected. E.g. Xbim.Essentials 4.0.29

Steps (or code) to reproduce the issue:

A simple set of steps to reproduce the issue. Provide a small sample file is required and/or
a small sample of the failing code (or reference a commit / gist)



#### Minimal file to reproduce the issue:

#### Expected behavior:

I would expect to find the common terms from both the JSON data and IFC file 
for an example 
CLassification name :IfClassfication  (from Json) 
 //search similar string   in IFC file  If the sring  is found give output  in the console"


#### Actual behavior or exception details:


#### Additional Details

*Optional, details of the root cause if known. 
Delete this section if you have no additional details to add.*




@martin1cerny
Copy link
Member

In general, you need to read the JSON file and use the Toolkit to create IFC data structures and to save it in the physical format of choice. Can you edit the issue description and add more details please? What JSON data you have? What have you tried? What is the use-case?

@nikilKaranjit
Copy link
Author

I edited the issue a bit the issue is very simple I have Json data from an API of building SMArt data dictionary and I just want to check the classficationName ,property with the IFC file have .so I was thinking whether to convert IFC to JSON and compare without using Xbim only with C# .Is there any tools that I can use for this kind of thing in Xbim for verification

@martin1cerny
Copy link
Member

So, do you want to create IFC from JSON (as in the name of the issue), or JSON from IFC (as in the description), or do you want to use C# to run the validation task where JSON from bSDD is one input and IFC file another? For all of these tasks you would just use standard JSON APIs (System.Text.JSON or Newtonsoft.JSON) to work with JSON and xbim Toolkit (Xbim.Essentials) to work with IFC. All of these have documentation and examples. Everything else is your app business logic layer.

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

No branches or pull requests

2 participants