* * *

Author Topic: CAD program written in Lazarus / FPC  (Read 83061 times)

zamtmn

  • Sr. Member
  • ****
  • Posts: 293
CAD program written in Lazarus / FPC
« on: April 18, 2012, 09:43:04 am »
Hi all,

I developing a simple open source CAD program at Lazarus https://sourceforge.net/projects/zcad/

Binaries: https://sourceforge.net/projects/zcad/files/
Source: http://svn.shamangrad.net/zcad/trunk/ (need trunk or 3.0 FPC to compile)
License: mLGPLv2

Features:
-Fast OpenGL rendering
-Fast GDI rendering
-Crossplatform (Windows x86/x64, Linux x86/x64 - gtk/qt)
-DXF fileformat
-SHX, TTF font support
-true DXF linetypes
-POINT, LINE, CIRCLE, POLYLINE,  LWPOLYLINE, ARC, ELLIPSE, INSERT, TEXT, MTEXT, 3DFACE, SOLID, SPLINE entities support
-Polar tracking, Object snap

ToDo:
-Dimensional entities (partially done)
-Line type
-More entities
-Separate graphics engine from the CAD implementation(partially done)
-GDI and canvas render backends
-Printing
« Last Edit: March 22, 2016, 11:52:35 am by zamtmn »

fredbrastux

  • New member
  • *
  • Posts: 12
Re: CAD program written in Lazarus / FPC
« Reply #1 on: April 18, 2012, 01:01:50 pm »
Nice Work !

LA.Center

  • Full Member
  • ***
  • Posts: 244
    • LA.Center
Re: CAD program written in Lazarus / FPC
« Reply #2 on: April 25, 2012, 12:27:59 pm »
super! well done.

zamtmn

  • Sr. Member
  • ****
  • Posts: 293
Re: CAD program written in Lazarus / FPC
« Reply #3 on: April 26, 2012, 09:45:21 am »
@plusplus, @fredbrastux
Thanks. I am not programmer, but an engineer. Therefore the program looks useful, but the source code is very bad

JD

  • Hero Member
  • *****
  • Posts: 1593
Re: CAD program written in Lazarus / FPC
« Reply #4 on: April 26, 2012, 10:37:43 am »
Very good! I'm impressed. It's nice to see Lazarus/FPC being used for such "heavy" projects. It shows how versatile Lazarus/FPC is and it will surely spread the word about its capabilities.
Windows (10, 7) - Lazarus 1.8RC4/FPC 3.0.4 (also Delphi occasionally)
Linux Mint Cinnamon  - Lazarus 1.6.4/FPC 3.0.2
Indy 10.6 series; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB

nicke85

  • Jr. Member
  • **
  • Posts: 92
  • #13#10
Re: CAD program written in Lazarus / FPC
« Reply #5 on: April 27, 2012, 12:05:28 pm »
Amazing stuff in Lazarus/FPC. Excellent work!  :)
ArchLinux X64 (XFCE) & Windows 7 SP1 Ultimate X64
FPC 2.7.1 / Lazarus 1.1 / ZeosDBO / fortes4lazarus -- all svn

zamtmn

  • Sr. Member
  • ****
  • Posts: 293
Re: CAD program written in Lazarus / FPC
« Reply #6 on: June 12, 2012, 09:05:59 am »
If someone has ideas, suggestions or remarks about ZCAD, please let me know. I implemented everything for my needs, the development process slowed.

zamtmn

  • Sr. Member
  • ****
  • Posts: 293
Re: CAD program written in Lazarus / FPC
« Reply #7 on: June 30, 2012, 10:15:34 am »
Soon I want to implement support DWG format for reading. Based on LIbreDWG source and ODA specifications

exdatis

  • Hero Member
  • *****
  • Posts: 662
    • exdatis
Re: CAD program written in Lazarus / FPC
« Reply #8 on: June 30, 2012, 02:08:09 pm »
   Great job!  ;)

fredycc

  • Sr. Member
  • ****
  • Posts: 264
Re: CAD program written in Lazarus / FPC
« Reply #9 on: July 01, 2012, 02:21:58 am »
 :) Wow, great work

Regards

zamtmn

  • Sr. Member
  • ****
  • Posts: 293
Re: CAD program written in Lazarus / FPC
« Reply #10 on: July 04, 2012, 08:18:24 am »
Thanks.

I got decrypt file dwg2004 and have access to entities. Simple lines import from dwg now works.

bp

  • New member
  • *
  • Posts: 8
Re: CAD program written in Lazarus / FPC
« Reply #11 on: July 06, 2012, 12:49:59 pm »
 Good work Andrey. Actually, I'll doubt your statement "I'm not a programmer", because a lot of code has been written and it works.

(minor nit: drag a separator line in the objectinspector to the left, outside of program window, and you'll not be able to get it back...)

zamtmn

  • Sr. Member
  • ****
  • Posts: 293
Re: CAD program written in Lazarus / FPC
« Reply #12 on: July 06, 2012, 02:15:56 pm »
Thanks.
>>minor nit: drag a separator line in the objectinspector to the left, outside of program window, and you'll not be able to get it back...
This lack of Anchordocking package. Unfortunately so far this package a lot of bugs and limitations ((

zamtmn

  • Sr. Member
  • ****
  • Posts: 293
Re: CAD program written in Lazarus / FPC
« Reply #13 on: July 08, 2012, 11:42:55 am »
I added to sources a simple program (cad_source\simplecad\simplecad.lpr) to show how you can use vector editor in your application. Though it is difficult, but I want to fix it.

BlueIcaro

  • Hero Member
  • *****
  • Posts: 523
Re: CAD program written in Lazarus / FPC
« Reply #14 on: July 21, 2012, 10:30:59 pm »
Hi, I downloaded the source code (svn revison 250), and I tried to compile it, but I got the following error:
Quote
gui\oglwindow.pas(4518,221) Error: Incompatible types: got "OGLSPECFUNC.TViewPortArray" expected "GLU.TViewPortArray"

I tried to compile under Lazarus 1.1 SVN 37964 FPC 2.6

Any idea?

/BlueIcaro
Remenber, the lazarus wiki is your friend: http://wiki.lazarus.freepascal.org/Main_Page
General questions (several lenguages) http://wiki.lazarus.freepascal.org/

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus