Git Product home page Git Product logo

ifcmodeltest's Introduction

使用xbim获取实体属性

getAllIfcProperty

直接使用来获取IFC文件中以下信息:

  1. 所有ifcproduct(和它的子类)的EXPRESS非引用属性信息+Pset属性信息(通过getBasicInfo函数)
  2. 所有RelContainedInSpatialStructure信息(通过GetRelContains函数)

getBasicInfo

获取一个指定实体的信息,包括

  1. express属性信息(express属性只获取直接有值的,不获取引用的)
  2. definedbyProperties信息
  3. AABB包围盒几何信息(通过GetAABB函数)

另外,express属性也获取了几何表达形式IfcProductDefinitionShape

使用

            string path = Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName;
            string fileName = path + "//test.ifc"; //this can be either IFC2x3 or IFC4

            IfcStore model = IfcStore.Open(fileName);
            var context = new Xbim3DModelContext(model);
            context.CreateContext();

            PropertyExtract start = new PropertyExtract(model, context);
            string properties = JsonConvert.SerializeObject(start.getAllIfcProperty());
            //start.GetRelContains();
            Console.WriteLine(properties);

ifcmodeltest's People

Contributors

jenniferzh avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

highan911

ifcmodeltest's Issues

about Getaabb method

Hello, my Getaabb keeps reporting errors. I want to ask how to define the iifcproduct type。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.