Recent

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

zamtmn

  • Sr. Member
  • ****
  • Posts: 378
Re: CAD program written in Lazarus / FPC
« Reply #165 on: October 11, 2017, 04:09:57 pm »
I already fix librecad drawings loading and allow @relative coordinates for command line in trunk

>>Polar tracking is good but it cannot fully solve my problem
Press alt+s - you can setup polar angle 90, 45 and 30 degrees. I can add more angles, but that will begin to interfere for drafting

>>LibreCAD has built-in pdf export. Please consider to add this feature.
Not pdf export, but printing will be added, but it's not easy((

>>It should automatically set the grids 1x, 10x, 100x, ...
Perhaps, but I did not think this way. Grid is the past. Snap and trace - that's what you should use
« Last Edit: October 11, 2017, 04:28:35 pm by zamtmn »

Handoko

  • Hero Member
  • *****
  • Posts: 3913
  • My goal: build my own game engine using Lazarus
Re: CAD program written in Lazarus / FPC
« Reply #166 on: October 11, 2017, 05:40:08 pm »
Thank you for the relative coordinate feature. I will try it later.

Adding more polar setup angles is okay but not necessary, you should consider to allow users to type the degree directly when using the command. (I am a teacher too), I saw students prefers using mouse and click more often but I know many serious users they prefer by typing it when using CAD. Able to use keyboard for provide both the relative coordinate and the polar angle degree are great, it's really make you work fast.

For examples:
@30,20  ---> relative coordinate +20 for x and +30 for y
@30<20 ---> relative polar angle length 30 with angle 20 degree

I understand pdf export and printing are hard to implement features. I wish I can help you but my programming skills still aren't good enough for that level.

I understand you said that grid is the past. Not sure how about the others, but I use grid for visual purpose only, not for snapping. For example when I am drawing a floor plan, visually it looks good if I put a table there. But I need to know the distance between the table and the wall (without using dimension tool to measure it). I simply see that there are 8 dots between them, it means it is roughly 90cm. Very useful, isn't it?

Thank you for your attention. ZCAD really is a great program but it is not good enough for serious architectural drawing. Actually I ever tried ZCAD long time ago, I searched and tried (I believe) all the AutoCAD alternatives that can run on Linux including ZCAD. Hopefully, not long later ZCAD already has all the essential features and I can use it.

zamtmn

  • Sr. Member
  • ****
  • Posts: 378
Re: CAD program written in Lazarus / FPC
« Reply #167 on: October 11, 2017, 06:04:42 pm »
>> @30<20
will add it, but it is not going to be tied to a of of the drawing units, the angle is always in degrees

>>I wish I can help you but
In fact, are so many simple things that are missing. Also not have enough many complex things. Some things will not ever, because I don't want or not know to do them. I'm not asking for help, but do not abandon it

Thanks for your time!


zamtmn

  • Sr. Member
  • ****
  • Posts: 378
Re: CAD program written in Lazarus / FPC
« Reply #168 on: October 19, 2017, 10:45:05 pm »
Hi all!

Added
@x,y
@x,y,z
@length<angle
Command line inputs.

Start printing command implementation... and immediately luck, fundamental issues are solved, it remains to configure the scale and other "trivia"

zamtmn

  • Sr. Member
  • ****
  • Posts: 378
Re: CAD program written in Lazarus / FPC
« Reply #169 on: October 22, 2017, 12:15:32 pm »
Scale problem solved. But I can not understand, control of the page orientation from pagesetup dialog not working... from printer setup dialog - working. This is printer4lazarus bug? (windows implementation)

zamtmn

  • Sr. Member
  • ****
  • Posts: 378
Re: CAD program written in Lazarus / FPC
« Reply #170 on: April 03, 2018, 09:48:14 pm »
Hi all!
New icons. Partially stolen from Lazarus

benohb

  • Full Member
  • ***
  • Posts: 200
Re: CAD program written in Lazarus / FPC
« Reply #171 on: April 04, 2018, 12:10:08 am »
I think it is the best open source CAD program ;D
I have tried Freecad librecad ..Zcad   very practical .
Some important stuff trim/extend/break/join

zamtmn

  • Sr. Member
  • ****
  • Posts: 378
Re: CAD program written in Lazarus / FPC
« Reply #172 on: April 04, 2018, 09:29:06 am »
benohb, thanks!

>>Some important stuff trim/extend/break/join
Yes, it is in the future plans, but it will be done much later

zamtmn

  • Sr. Member
  • ****
  • Posts: 378
Re: CAD program written in Lazarus / FPC
« Reply #173 on: April 19, 2018, 10:59:09 pm »
  Hi all!
  I'm thinking it's time for a little rebranding - separate the project into 2 parts. ZCAD - clean CAD program, without any specificity and ZCADelectro (I have not thought about the name yet) - there will be special functions for electricians. Unfortunately, the compiler does not allow making ZCADelectro a dynamic plugin for ZCAD yet, but as soon as the compiler supports the packages, I'll do it.
  I see that the russian electric specific scares people who interested in the project. Most people think that it is something complex and specific, not a simple CAD program
« Last Edit: April 19, 2018, 11:23:21 pm by zamtmn »

benohb

  • Full Member
  • ***
  • Posts: 200
Re: CAD program written in Lazarus / FPC
« Reply #174 on: April 20, 2018, 01:32:13 am »
@zamtmn You read my thoughts  :o
By the way, I deal with the architectural field
Quote
Most people think that it is something complex and specific
For me . I try to understand the program programmatically to add features .I could not build it on Linux
But this is not a problem ..
I noticed that your program deals with objects and lines as a class  .Why do not follow the database method ??

zamtmn

  • Sr. Member
  • ****
  • Posts: 378
Re: CAD program written in Lazarus / FPC
« Reply #175 on: April 20, 2018, 07:10:06 am »
>>I could not build it on Linux
Need trunk Lazarus and 3.0 or trunk FPC. I've been wanting to stop and maintain compatibility with the stable release, but always something is missing.


>>I try to understand the program programmatically to add features
what interests you?

>>I noticed that your program deals with objects and lines as a class  .Why do not follow the database method ??
I think that's right. This is the only way to make fast graphics.

Edson

  • Hero Member
  • *****
  • Posts: 1114
Re: CAD program written in Lazarus / FPC
« Reply #176 on: April 24, 2018, 11:44:38 pm »
Interesting.

I have been playing with Lazarus and CAD in a little program: https://github.com/t-edson/TitoCad

My main objective was to implement a 3D object selection, moving and sizing.
Lazarus 2.0.10 - FPC 3.2.0 - x86_64-win64 on Windows 8

benohb

  • Full Member
  • ***
  • Posts: 200
Re: CAD program written in Lazarus / FPC
« Reply #177 on: April 25, 2018, 04:26:18 am »

@Edson
Why parts of the project are divided ?? each components have repositorie !!


@zamtmn


Quote
Need trunk Lazarus and 3.0 or trunk FPC. I've been wanting to stop and maintain compatibility with the stable release, but always something is missing.
Good thing you are put cad_source/simplecad/
Quote
what interests you?
A lot of things . Calculate area .Advanced print settings like autocad
Quote
I think that's right. This is the only way to make fast graphics.
Exactly .. and will help developers to access the raw data to making addons or functions
Such as the Blender 3d program structure

Edson

  • Hero Member
  • *****
  • Posts: 1114
Re: CAD program written in Lazarus / FPC
« Reply #178 on: April 25, 2018, 07:08:59 am »
@Edson
Why parts of the project are divided ?? each components have repositorie !!

Parts of the project are divided because those parts are libraries who have independent development and are used in different projects. That's why they have a repository.  Some libraries are very complex and widely used in other projects, not all mines.
Lazarus 2.0.10 - FPC 3.2.0 - x86_64-win64 on Windows 8

zamtmn

  • Sr. Member
  • ****
  • Posts: 378
Re: CAD program written in Lazarus / FPC
« Reply #179 on: April 25, 2018, 12:22:55 pm »
Edson
EvalExpres.pas double in Graficador-de-Funciones-3D and TitoCad
and cant compile
Quote
DefObjGraf.pas(53,31) Error: Identifier not found "TMotPoint"

benohb
>>Such as the Blender 3d program structure
I'm watching ideas in autocad

>>A lot of things . Calculate area .Advanced print settings like autocad
If you want, you can join, and realize your interests

 

TinyPortal © 2005-2018