Git Product home page Git Product logo

dotbim_io_dxf's Introduction

Dotbim <-> DXF converter

This is a collection of scripts to convert from and to the dxf (Drawing Exchange Format) file format and dotbim file format :

  1. Converting dotbim files to dxf :
  • The dotbim geometry is exported in the dxf file using MESH entities (most lightweight entity type for 3D in dxf)
  • Entities are exported in BLOCKs
  • Entities that use the same dotbim mesh id will reference the same BLOCK
  • Entities color will be exported as the BLOCK BYOBJECT true color
  • Entities transparency will be exported as the BLOCK BYOBJECT transparency
  • Entities properties are exported using BLOCK attributes
  • File properties are copied to the dxf header custom variables
  • Entities are placed in a layer corresponding to their type
  • DXF file is exported in the same folder as the dotbim file
  1. Converting dxf files to dotbim :
  • Only type of supported geometry is dxf MESH
  • Only geometry that is placed in the first level of a block is exported
  • Top level BLOCKs BYOBJECT true color and transparency are exported
  • Block attributes are exported as entity properties
  • DXF header custom vars are exported as file info properties
  • dotbim file is exported in the same folder as the dotbim file

Important : Make sure you installed both dotbimpy and ezdxf modules and all their dependencies in your local python environment.

After installing python and adding pip to the PATH system variables, you can install a new module by opening a system console and typing :

pip install dotbimpy

and

pip install ezdxf

The example file contains geometry for a house :

image

dotbim_io_dxf's People

Contributors

gorgious56 avatar

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.