Recent

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

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #195 on: September 03, 2018, 12:38:33 pm »
Hi all!
New release:
-"stretch" command added
-version numbering changed - exclude SVN revision
-separate "clean" and "electrotech" versions

https://github.com/zamtmn/zcad/releases/tag/0.9.8.2

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: CAD program written in Lazarus / FPC
« Reply #196 on: September 03, 2018, 03:12:34 pm »
zamtmm, just a suggestion.

Your git page includes a simple wiki. Dead easy to put some pictures of your app in there. They say a picture is worth a thousand words, I'd suggest in the case of a CAD program its even more than that !

Show us what it can do !

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Thaddy

  • Hero Member
  • *****
  • Posts: 14205
  • Probably until I exterminate Putin.
Re: CAD program written in Lazarus / FPC
« Reply #197 on: September 03, 2018, 05:11:12 pm »
zamtmm, just a suggestion.

Your git page includes a simple wiki. Dead easy to put some pictures of your app in there. They say a picture is worth a thousand words, I'd suggest in the case of a CAD program its even more than that !

Show us what it can do !

Davo
http://wiki.freepascal.org/Projects_using_Lazarus#ZCAD
Specialize a type, not a var.

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #198 on: September 03, 2018, 09:22:14 pm »
@dbannon
I added screenshots. But this is the case when words are better than pictures. If you are interested in something, it is better to ask

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: CAD program written in Lazarus / FPC
« Reply #199 on: September 03, 2018, 10:08:41 pm »
Below are a screenshot and the source I drew using ZCAD v0.9.8.2. It is based on a real project I done some years ago. The screenshot and the source are in CC0 Public Domain license.

Although there are many missing features, ZCAD is capable for architectural drawing. One feature ZCAD has but LibreCAD doesn't, is Polar Tracking.

I found a bug when using ZCAD. The mirror tool didn't mirror arc correctly.

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #200 on: September 03, 2018, 10:50:24 pm »
@Handoko
>>One feature ZCAD has but LibreCAD doesn't, is Polar Tracking.
More than one. For example - object inspector is also missing in LibreCAD. The ability to edit multiple-selected entities makes it an indispensable tool for mass editing.
I would also note the rendering speed. I often easily work in ZCAD with huge drawings, which are impossible to work with in LibreCad because of Its speed

>>I found a bug when using ZCAD. The mirror tool didn't mirror arc correctly.
Thanks!

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: CAD program written in Lazarus / FPC
« Reply #201 on: September 04, 2018, 04:38:32 am »
Handoko, that drawing is pretty good, how long did it take you ?

I have done a lot of architectural drawing for a house I built using Inkscape. Inkscape is really not a suitable tool for that purpose (more intended for artistic work and I'm no artist !) but I did know how to use it it. Similarly, I draw up a number of electronic drawing, again using Inkscape and again its unsuited.

Zamtmm, can you tell me what you mean by "electrotech" ? (Sorry but again I feel a screen shot would save a lot of words ! )  Can your drawings work with a 'library' of components ? For example, in drawing up electronic circuit diagrams you like to have a pile of predrawn electronic components on hand and drag then onto the drawing. In many cases, lots and lots of times.

And getting back to the architectural, dimensions are very important. Do you 'scale' your drawings so, as I add features, I can determine how big they are ? eg, I want to put a wall in, and I know its 6m long, can I easily draw a (scaled) 6m wall ?

Interesting project !

Davo

Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: CAD program written in Lazarus / FPC
« Reply #202 on: September 04, 2018, 05:09:23 am »
how long did it take you ?

It took me hours because of some missing important tools on ZCAD.

I have done a lot of architectural drawing for a house I built using Inkscape. Inkscape is really not a suitable tool for that purpose (more intended for artistic work and I'm no artist !) ...

Yes, Inkscape is an awesome artist tool but it is not suitable for architectural drawing. I often combine LibreCAD + Inkscape + GIMP for the final result, for example below is the result done using all 3 of them.

If you do architectural drawing for home building/renovation, you may want to try Sweet Home 3D. It can save you lots of time.

And getting back to the architectural, dimensions are very important. Do you 'scale' your drawings ...

Yes, I mainly use 1 drawing unit for 1 cm.

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #203 on: September 04, 2018, 07:37:48 am »
Quote
Zamtmm, can you tell me what you mean by "electrotech" ?
I'm an electrical engineer and I use ZCAD in work. So there are some highly specialized things.

Quote
Can your drawings work with a 'library' of components ? For example, in drawing up electronic circuit diagrams you like to have a pile of predrawn electronic components on hand and drag then onto the drawing. In many cases, lots and lots of times.
Yes.
Library files: https://github.com/zamtmn/zcad/tree/master/environment/runtimefiles/zcadelectrotech/blocks/el/general (*.dxf - files with blocks defs, *.pas - files with blockdefs variables)
Loading these files at startup https://github.com/zamtmn/zcad/blob/master/environment/runtimefiles/zcadelectrotech/components/autorun.cmd
But I don't use drag and drop components in the work. Therefore, the insert window is inconvenient. I'm attaching a screenshot

Quote
And getting back to the architectural, dimensions are very important. Do you 'scale' your drawings so, as I add features, I can determine how big they are ? eg, I want to put a wall in, and I know its 6m long, can I easily draw a (scaled) 6m wall ?
ZCAD supports some dimensional primitives and dimension styles. LibreCAD by the way does not support dimension styles, so it has a limitation: one drawing = one scale
« Last Edit: September 04, 2018, 07:48:01 am by zamtmn »

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #204 on: September 07, 2018, 12:52:44 pm »
I found a bug when using ZCAD. The mirror tool didn't mirror arc correctly.

Fixed, thanks!

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #205 on: September 13, 2018, 07:20:11 am »
Hi all!
Monochrome printing is already working. But still stay problems with the lines thickness. Lines look too thin. Need recalculate the table of line thicknesses for printing
« Last Edit: September 13, 2018, 07:36:29 am by zamtmn »

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #206 on: October 11, 2018, 12:47:49 am »
Hi all!
Made the command line switchable https://imgur.com/a/0vbQz89, you can now use single-letter hotkeys

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #207 on: October 15, 2018, 08:55:00 pm »
Hi all!
Adjusted building with Lazarus 2.0RC1 & FPC3.0.4 Everything works))
You only need to install the packages:
cad_source\other\rtl-generics_for_FPC304\ - for FPC3.0.4
or
cad_source\other\rtl-generics_dummy\ - for trunk FPC

Now I will maintain compatibility with stable releases

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #208 on: October 23, 2018, 08:42:09 am »

engerex

  • Newbie
  • Posts: 1
Re: CAD program written in Lazarus / FPC
« Reply #209 on: December 03, 2018, 07:32:47 pm »
Hi,
Good project.
What is DXF and DWG version supports?

 

TinyPortal © 2005-2018