BSD Ports

cad/libopencad 0.2.0_5 DragonFly

Library which provides a way to read/write CAD (DWG/DXF/DXFB) files

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
cad, geography, graphics
Package size
179.6 KiB, 1193.8 KiB installed

Description

Libopencad is a library written in C++11, which provides a way to read/write CAD (DWG/DXF/DXFB) files. It was designed to have a uniformal API to work with any CAD files.

It has a base class - CADFile.

Inheriting this class it's possible to create a driver for any CAD format, all you need to do - is to overwrite interface functions like GetGeometry(index), and others.

Now it has an implementation for DWG2000 (R15), but only for read.

Library comes with cadinfo utility, which prints out everything library can get from file - header variables, CAD custom classes, presented layers and geometries with their attributes.

In the other systems

SystemPortVersion
DragonFlycad/libopencad0.2.0_5
FreeBSDcad/libopencad0.2.0_6
MidnightBSDcad/libopencad0.2.0
HardenedBSDcad/libopencad0.2.0_6
GhostBSDcad/libopencad0.2.0_6

Install

Binary package:

pkg install libopencad

From DPorts:

cd /usr/dports/cad/libopencad && make install clean

Dependencies

No port depends on this one.