Recent

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

zamtmn

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

Source: https://github.com/zamtmn/zcad (need Lazarus 2.2 (or trunk) and 3.2 (or trunk) FPC to compile)
Binaries: https://github.com/zamtmn/zcad/releases
Nightly builds https://ci.appveyor.com/project/zamtmn/zcad (win32)
Build from source https://github.com/zamtmn/zcad/blob/master/README_ENG.md
License: mLGPLv2 dual: gpl3/mpl2

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, HATCH entities support
-Polar tracking, Object snap

ToDo:
-Dimensional entities (partially done)
-Hatch entity (partially done)
-Line type
-More entities
-Separate graphics engine from the CAD implementation(partially done)
-GDI and canvas render backends
-DX render backend
-Printing
« Last Edit: July 26, 2022, 09:19:09 pm 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

  • Hero Member
  • *****
  • Posts: 523
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: 1847
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) - Lazarus 2.1/FPC 3.2 (svn 64160 built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (svn 64380 built using fpcupdeluxe),
Delphi

Indy 10.6 series; mORMot; Zeos 7.3; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

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

  • Hero Member
  • *****
  • Posts: 523
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

  • Hero Member
  • *****
  • Posts: 523
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: 668
    • 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

  • Hero Member
  • *****
  • Posts: 523
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

  • Hero Member
  • *****
  • Posts: 523
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

  • Hero Member
  • *****
  • Posts: 523
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: 734
    • My github
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

 

TinyPortal © 2005-2018