* * *

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

zamtmn

  • Sr. Member
  • ****
  • Posts: 338
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

  • Sr. Member
  • ****
  • Posts: 302
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 1.8, Linux (and reluctantly Win10, OSX)

Thaddy

  • Hero Member
  • *****
  • Posts: 6754
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
Ada's daddy wrote this:"Fools are my theme, let satire be my song."

zamtmn

  • Sr. Member
  • ****
  • Posts: 338
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: 2580
  • 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

  • Sr. Member
  • ****
  • Posts: 338
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

  • Sr. Member
  • ****
  • Posts: 302
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 1.8, Linux (and reluctantly Win10, OSX)

Handoko

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

  • Sr. Member
  • ****
  • Posts: 338
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

  • Sr. Member
  • ****
  • Posts: 338
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

  • Sr. Member
  • ****
  • Posts: 338
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 »

 

Recent

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