[Gambas-user] GauchoCAD + LibreDWG

Jussi Lahtinen jussi.lahtinen at gmail.com
Mon Nov 2 22:36:15 CET 2020

OK, I tried to simply allocate a "random" amount of memory and rely on
libredwg to handle the structure initialization, etc.
It works..? I don't know what to expect. But this way it is pretty hard to
access the Dwg_Data. See the attachment.
IF this is useful, then next thing is to find out how much memory you will
actually need, not sure how to do that easily. But maybe the library
handles reallocations also, so that we don't need to care, I don't know.

I noticed that libredwg has bindings to perl and python... I don't use
either of those and thus know nothing about them, but maybe they could be
used somehow.

- Regarding writing a container library in C.... Reini Urban
> <rurban at cpan.org> <rurban at cpan.org> started this project on github (see
> below) but I don't know if it prospered and if it could serve as a guide
> for something. Take a look and see what you think.
> https://github.com/LibreDWG/gambas3-bindings
It seems he is writing Gambas component for it. It's hard to say much about
it, because I'm not familiar with the CAD formats, terms, features, etc.
Maybe a component is a better choice, than just a simple wrapper for some

I think you need help from someone who not only knows C, but is also
familiar with this kind of software.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201102/85edc3de/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample-libredwg-0.0.1B.tar.gz
Type: application/gzip
Size: 13880 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201102/85edc3de/attachment-0001.gz>

More information about the User mailing list