Recent

Author Topic: Autocad and Lazarus/FPC?  (Read 30654 times)

zamtmn

  • Hero Member
  • *****
  • Posts: 593
Re: Autocad and Lazarus/FPC?
« Reply #15 on: November 15, 2011, 10:34:52 am »
Quote
The solution is simple;
Make an AutoCad clone in Lazarus-FPC 
That's my philosophy, if nothing suites you, make it your self!
I agree, and am trying to write a "clone" AutoCAD :D
http://shamangrad.net/project.php?act=view&prj=zcad

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Autocad and Lazarus/FPC?
« Reply #16 on: November 15, 2011, 11:25:29 am »
I also have an AutoCAD "clone" called turbocircuit:

http://wiki.lazarus.freepascal.org/Turbo_Circuit

It was started as a circuit drawer, but now it is being rewritten as a general vectorial image program which is based on fpvectorial so it supports a plethora of formats =D

It is being renamed to Turbo Circuits and Vectors to represent it's general usage.

Although I must say that ZCad looks way more advanced then what I have. Also I dont plan on supporting 3D, like ever. Although I will add 3D rendering for fpvectorial in the near future.

I want to use Turbo Circuits and Vectors to draw simple diagrams, I dont expect it to get so advanced like ZCad is.
« Last Edit: November 15, 2011, 11:27:42 am by felipemdc »

zamtmn

  • Hero Member
  • *****
  • Posts: 593
Re: Autocad and Lazarus/FPC?
« Reply #17 on: November 15, 2011, 02:23:23 pm »
ZCAD also started as editor of electrical circuits, but the 3D and "similarity" to AutoCAD were laid down originally. Now I'm trying to distinguish the graphics engine and separate it from the CAD implementation.

ZCAD not advanced - sources in terrible condition, the architecture of the program is not thought
« Last Edit: November 15, 2011, 02:25:48 pm by zamtmn »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4458
  • I like bugs.
Re: Autocad and Lazarus/FPC?
« Reply #18 on: November 15, 2011, 10:08:42 pm »
I agree, and am trying to write a "clone" AutoCAD :D
http://shamangrad.net/project.php?act=view&prj=zcad

Amazing, there are many Lazarus applications I haven't heard of. You could mention it here:
  http://wiki.lazarus.freepascal.org/Projects_using_Lazarus

What is the license? What about making it cross-platform?

Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

zamtmn

  • Hero Member
  • *****
  • Posts: 593
Re: Autocad and Lazarus/FPC?
« Reply #19 on: November 16, 2011, 05:57:42 am »
license - MLGPL (with the exception of several specialized modules for electrical design)
source - http://svn.shamangrad.net/zcad/trunk

The program is cross-platform, I checked the work on windows 32bit and ubuntu 64bit

Quote
You could mention it here:
  http://wiki.lazarus.freepascal.org/Projects_using_Lazarus
ZCAD not yet reached the state so that it can be used as a CAD program. On page http://wiki.lazarus.freepascal.org/Projects_using_Lazarus him too early.
« Last Edit: November 17, 2011, 07:44:57 am by zamtmn »

zamtmn

  • Hero Member
  • *****
  • Posts: 593
Re: Autocad and Lazarus/FPC?
« Reply #20 on: February 20, 2012, 08:21:39 pm »
ZCAD survived a big update:
+ added binary space partitioning
+ added a mechanism to simplify remote graphics
+ almost everywhere earned undo/redo
- Added a lot of bugs((

Now it is possible open and edit big DXF drawings (with hardware OpenGL)
I added a reference to ZCAD on http://wiki.lazarus.freepascal.org/Projects_using_Lazarus and https://sourceforge.net/projects/zcad

CaptBill

  • Sr. Member
  • ****
  • Posts: 435
Re: Autocad and Lazarus/FPC?
« Reply #21 on: February 21, 2012, 12:42:23 am »
Hi fellas,

The DXF file standard is fairly simple to implement. It is the defacto standard used with 3-d CAD and is well documented. Been around a long time and is very mature. Probably the best way to approach any CAD project is to embrace the DXF standard (You will need to anyway.ALL serious CAD programs use it or can at least import/export to/from).

http://www.autodesk.com/techpubs/autocad/acadr14/dxf/ascii_dxf_file_format_al_u05_b.htm

There are many Delphi components already available too. Should be able to locate a header file to have all the DXF elements ready to go at Torreys (seems like I have seen it there) to get rolling.

http://www.torry.net/pages.php?id=196


zamtmn

  • Hero Member
  • *****
  • Posts: 593
Re: Autocad and Lazarus/FPC?
« Reply #22 on: February 21, 2012, 05:04:18 am »
dxf r12 - yes, it is easy to read and write. Write DXF r2000 is not so easy, despite the seeming good of documentation.
Most of the components that I have seen, not so good, the appearance is very different in AutoCAD and component, rendering speed is not satisfactory, not free.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Autocad and Lazarus/FPC?
« Reply #23 on: February 21, 2012, 07:39:02 am »
fpvectorial has DXF reading support. Actually fpvectorial is the base for TurboCircuit.

zamtmn

  • Hero Member
  • *****
  • Posts: 593
Re: Autocad and Lazarus/FPC?
« Reply #24 on: February 21, 2012, 05:14:42 pm »
Unfortunately fpvectorial does not support BlockDef, BlockInsert, Layers, TextStyles, etc. I started writing ZСAD before the appearance of this component, otherwise would have used it

zamtmn

  • Hero Member
  • *****
  • Posts: 593
Re: Autocad and Lazarus/FPC?
« Reply #25 on: March 19, 2012, 10:09:01 am »
felipemdc
It would be nice if in the Lazarus add a small example of loading and displaying the dxf files used fpvectorial

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Autocad and Lazarus/FPC?
« Reply #26 on: March 19, 2012, 03:26:37 pm »
Reading a DXF file is just 1 line of code in fpvectorial, as can be seen here:

http://wiki.lazarus.freepascal.org/fpvectorial#Format_conversion

Rendering to a TCanvas is explained here:

http://wiki.lazarus.freepascal.org/fpvectorial#Rendering_the_image_into_a_TCanvas

See also fpvviewer:

http://wiki.lazarus.freepascal.org/fpvectorial#fpvviewer

There is also 3D rendering with OpenGL, that's not for DXF but just thought I'd show because it is cool =)

http://wiki.lazarus.freepascal.org/fpvectorial#fpv3dviewer

zamtmn

  • Hero Member
  • *****
  • Posts: 593
Re: Autocad and Lazarus/FPC?
« Reply #27 on: June 08, 2012, 09:29:33 am »
felipemdc
Thank you, reviewed more closely fpvectorial. I'll try to use it to import vector formats to zcad

 

TinyPortal © 2005-2018