[Gambas-user] GauchoCAD + LibreDWG

Martin mbelmonte at belmotek.net
Tue Nov 3 21:29:00 CET 2020


In the link below there are some indications on the from Vuott, in 
Spanish but it can be useful.
[1] https://gambas-es.org/showthread.php?tid=164

Regarding the component, it is what everyone here in the list said, is 
the optimal option, the correct thing to do due to the complexity of the 
library not extern, but I started to read the tutorial on how to make a 
component using a C library but at the moment I am not ready to the task.
Then I tried something with extern because I try to do something, knows 
how this library works and extracting 1 single data from a dwg with 
extern is already a success for me because it so frustrating.

Respect to bindings I don't know how its works in gambas.

These conversations in themselves are motivating for me because little 
by little you, those who know C and Gambas, are shedding light on this 
topic. I am sure that in the near future we will be able to use the library.

Finally, make a gambas component using libredwg is the correct way to 
solve the problem. I'm not sure but maybe the exercise with extern could 
be useful.

Thank you.


On 2/11/20 22:36, Jussi Lahtinen wrote:
> 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> <mailto: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 functions.
>
> I think you need help from someone who not only knows C, but is also 
> familiar with this kind of software.
>
>
> Jussi
>
>
>
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201103/f475d40c/attachment.htm>


More information about the User mailing list