Recent

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

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: CAD program written in Lazarus / FPC
« Reply #180 on: April 25, 2018, 10:16:54 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"

I have updated de project in GitHub, to the last changes. TitoCad is at the very beginning state.

EvalExpres.pas is some different in Graficador-de-Funciones-3D and TitoCad. Probably it will be part of a library in the future, but now is only a unit of the project.

"TMotPoint" is defined in the unit "MotGraf3d" of the library "MotGraf-0.2".

"MotGraf-0.2" pretend to be a graphic library, working like a wrapper for the real graphic library (that is Canvas in this case, but could be replaced for some other), and include the transformations needed to convert virtuals coordinates to pixel coordinates, and the functions of scroll, zoom and rotation.
« Last Edit: April 25, 2018, 10:18:39 pm by Edson »
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #181 on: April 26, 2018, 10:38:46 am »
Hi all!
I've separate clean CAD. But so far I haven't done the automatic generation of the environment, form it into manual mode
https://sourceforge.net/projects/zcad/files/Windows%20x86/cad_clean.7z/download
« Last Edit: April 26, 2018, 11:35:10 am by zamtmn »

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #182 on: April 27, 2018, 10:42:54 am »
Edson
I failed to compile TitiCad. But I looked at the published binary. A lot of work has been done, it's very cool. But there are still a lot of problems, obvious and not. In zcad some of them are already solved. Why do the same thing? we need to unite

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: CAD program written in Lazarus / FPC
« Reply #183 on: April 27, 2018, 08:37:19 pm »
I failed to compile TitiCad. But I looked at the published binary. A lot of work has been done, it's very cool.
Thanks. Most of the work is done by the libraries. I can prepare a full version of the source, including the libraries, if you need.

But there are still a lot of problems, obvious and not. In zcad some of them are already solved.
Yes. A lot of problem. Actually TitoCad was more an experiment to test some libraries I made. My first need was to have a graphic library to some SQL editor and other programs. Then I ported a 3D editor library I made for a VB software (a long time ago) and used it as a 2D interfaz. Having a 3D library I decided to test in some 3D editor and TitoCad is the result and it's far from to be complete.

Why do the same thing? we need to unite
Good. I think we can start sharing some modules or libraries to reuse the code and see if finally they can be unified.
What graphic API you use? OpenGL? I currently use LCL Canvas but there is a graphic layer aimed to be adaptable to another engine, although OpenGL is some special to work.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #184 on: April 27, 2018, 09:14:34 pm »
>>What graphic API you use? OpenGL?
zcad can use opengl, gdi and canvas as draw backend. My abstract drawer class - https://svn.shamangrad.ru/zcad/trunk/cad_source/zengine/zgl/drawers/uzgldrawerabstract.pas

Opengl and gdi - full work drawers, canvas - only for printing and draw on GUI (preview and etc.) Also necessary to make DX backend.
I try to make zсad from as much as possible independent parts. Can be identified the following parts:
-gui
-object inspector (although this is part of the gui, but the complexity of it deserves a separate punkt)
-commands
-dxf styles
-dxf entities and drawings
-dxf entities extenders
-drawers and low level graphix entities

benohb

  • Full Member
  • ***
  • Posts: 213
Re: CAD program written in Lazarus / FPC
« Reply #185 on: April 28, 2018, 01:42:42 am »

zamtmn


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

This is what I wish
:D
But I have to study your entire code to make contributions

Edson
I seem  ..it is  an electronic program (I Deduced from
selection type)
« Last Edit: April 28, 2018, 02:35:40 am by benohb »

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: CAD program written in Lazarus / FPC
« Reply #186 on: April 28, 2018, 04:30:21 am »
Opengl and gdi - full work drawers, canvas - only for printing and draw on GUI (preview and etc.) Also necessary to make DX backend.
I try to make zсad from as much as possible independent parts. Can be identified the following parts:
-gui
-object inspector (although this is part of the gui, but the complexity of it deserves a separate punkt)
-commands
-dxf styles
-dxf entities and drawings
-dxf entities extenders
-drawers and low level graphix entities
I will revise the code and I'll give my opinion. Do you have some documentation? Can it be compiled with Lazarus 1.8?

Edson
I seem  ..it is  an electronic program (I Deduced from [/size]selection type)

TitoCad? I remember I used the graphic library (an old ancestor) in a Printer Circuit Design Program a long time ago.

Now I use a similar library (https://github.com/t-edson/ogEditGraf) of what TitoCad use, for implementing the electronic diagram of the Real Time Simulator of my Compiler: https://github.com/t-edson/PicPas

Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #187 on: April 28, 2018, 06:43:17 am »
Edson
>>I will revise the code and I'll give my opinion. Do you have some documentation? Can it be compiled with Lazarus 1.8?
can be compiled with fpc 3.0.x and trunk Lazarus (need https://bugs.freepascal.org/view.php?id=24703). Zcad is not documented, but I can comment on problem areas quickly

benohb
>>But I have to study your entire code to make contributions
I'm sure it's not easy (my code). Ask questions, it's not really as bad as it seems))

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #188 on: May 02, 2018, 12:51:30 pm »
Hi all!
I've separate clean CAD. But so far I haven't done the automatic generation of the environment, form it into manual mode
Now I've written scripts to generate the environment. Run zcad.{bat|sh} or zcadelectrotech.{bat|sh} before compiling

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #189 on: June 04, 2018, 10:55:01 am »
Hi all!
Project moved to https://github.com/zamtmn/zcad

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #190 on: June 11, 2018, 11:16:50 pm »
Hi all!
Binaries will be posted on github
https://github.com/zamtmn/zcad/releases/download/0.9.8-2574/cad_win32.7z
New summary filter properties help you filter selection by the criteria you want

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #191 on: July 06, 2018, 11:48:29 pm »
benohb
Apparently my code is not perceived by other people((
I have some suggestions for the printing system:
1 monochrome mode
2 preview
I will be glad of any help.
zcad print "command": https://github.com/zamtmn/zcad/blob/master/cad_source/zcad/commands/uzccommand_print.pas

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #192 on: July 09, 2018, 11:41:37 pm »
anderbelluno, perhaps it was a mistake?

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: CAD program written in Lazarus / FPC
« Reply #193 on: July 10, 2018, 01:09:03 am »
@ anderbelluno, perhaps it was a mistake?

Not mistake but spam.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: CAD program written in Lazarus / FPC
« Reply #194 on: July 10, 2018, 09:22:13 pm »
Blaazen
spam on this forum thrives((

benohb
Apparently my code is not perceived by other people((
I have some suggestions for the printing system:
1 monochrome mode
2 preview
I will be glad of any help.
zcad print "command": https://github.com/zamtmn/zcad/blob/master/cad_source/zcad/commands/uzccommand_print.pas
1 monochrome mode - without intervention in the engine not to do, so will do it myself
2 preview - to do just need to replace printer canvas on something else

 

TinyPortal © 2005-2018