Lazarus

Programming => Packages and Libraries => FPvectorial => Topic started by: gioazz on June 20, 2016, 11:38:59 am

Title: read, modify dxf etc etc
Post by: gioazz on June 20, 2016, 11:38:59 am
Hello I need to create, read and modify dxf files...
Drawing at runtime points, polylines etc etc...
I have not find clear examples... fpviewer does not work goods and it is not simple...
For example if I read a DXF, how is possible to show the coordinates of the DXF on the event
onmousemove?

Regards, Giorgio
Title: Re: read, modify dxf etc etc
Post by: Edson on June 20, 2016, 06:06:12 pm
Have you seen http://wiki.freepascal.org/fpvectorial ?
Title: Re: read, modify dxf etc etc
Post by: Thaddy on June 20, 2016, 08:02:35 pm
He obviously has, since the viewer is a demo application for fpvectorial...
Title: Re: read, modify dxf etc etc
Post by: felipemdc on June 21, 2016, 12:02:04 pm
The wiki shows how to modify a file using fpvectorial.

Coordinates are already converted into mm by fpvectorial, so if you are using fpvectorial you no longer have the original coordinates, you will have to roll your own solution maybe based on our DXF code, or at least make some changes to fpvectorial to get the original coordinates.
Title: Re: read, modify dxf etc etc
Post by: wp on June 21, 2016, 01:21:03 pm
How to "modify" if there is no dxfwriter?
Title: Re: read, modify dxf etc etc
Post by: zamtmn on June 22, 2016, 08:43:08 pm
http://forum.lazarus.freepascal.org/index.php/topic,16665.0.html
??
Title: Re: read, modify dxf etc etc
Post by: felipemdc on June 22, 2016, 09:55:41 pm
How to "modify" if there is no dxfwriter?

hahaha ... good point! We are all programmers here, it should be trivial for a motivated person to write a writer. The reader is a huge base of knowledge, just needs to do the opposite of what it does.
Title: Re: read, modify dxf etc etc
Post by: zamtmn on June 22, 2016, 10:45:44 pm
felipemdc
I don't agree. Writer much harder to do. Documentation captures the essence for read, but a lot of dark places for writer
Title: Re: read, modify dxf etc etc
Post by: jmpessoa on June 23, 2016, 01:50:50 am


I have put  a dxfwrite here:

https://github.com/jmpessoa/tfpdxfbridge

TinyPortal © 2005-2018