Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: CAD environment



Permlink Replies: 9 - Last Post: Jul 1, 2016 8:00 AM Last Post By: Wil van Antwerpen
Goffredo Vincenzo

Posts: 68
Registered: 10/1/02
CAD environment
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 17, 2016 6:55 AM
Hello everyone,

I would like to create an AutoCAD environment where I can draw the object selected in the work area at the time I have the interface for selecting the types of objects and lists of objects (such as nodes and arcs selection list, where each arc is a segment between two nodes).

What is missing to me is to understand that the components use, because at the time I create just the type rectangle objects and nodes in an image.

There are some examples on the net of my case (on google I can not find anything)?
Douglas Rudd

Posts: 314
Registered: 5/16/97
Re: CAD environment
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 17, 2016 7:08 PM   in response to: Goffredo Vincenzo in response to: Goffredo Vincenzo
What are you talking about? Are you talking about communicating with AutoCad through COM interface?
Goffredo Vincenzo

Posts: 68
Registered: 10/1/02
Re: CAD environment
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 18, 2016 5:39 AM   in response to: Douglas Rudd in response to: Douglas Rudd
absolutely no, I have to build a small CAD, that drawings only points and lines
Douglas Rudd

Posts: 314
Registered: 5/16/97
Re: CAD environment
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 18, 2016 1:05 PM   in response to: Goffredo Vincenzo in response to: Goffredo Vincenzo
Start by making a program that draws a line, and build on that.
http://docwiki.embarcadero.com/CodeExamples/Berlin/en/FMXTCanvasDrawFunctions_%28Delphi%29
Goffredo Vincenzo

Posts: 68
Registered: 10/1/02
Re: CAD environment
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 18, 2016 4:13 PM   in response to: Douglas Rudd in response to: Douglas Rudd
I already know this perfectly, I'm trying to create a CAD with vector objects, not a static image
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: CAD environment
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 19, 2016 12:11 AM   in response to: Goffredo Vincenzo in response to: Goffredo Vincenzo
Am 19.06.2016 um 01:13 schrieb Goffredo Vincenzo:
I already know this perfectly, I'm trying to create a CAD with vector objects, not a static image

You might create a drawing object which holds all the data needed for
its representation like starting point coordinates and end coordinates,
line thincknes, kind of object (line...) etc.
and when your user draws something such an object will be created in the
ackground and stored in some list. With that you can keep track of
everything the user has drawn.

If you need to rescale the screen because of zooming you simply go
through the list of objects and recalculate the display coordinates
based on the coordinates stored there, which would be kept as they are.

Greetings

Markus
Goffredo Vincenzo

Posts: 68
Registered: 10/1/02
Re: CAD environment
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 19, 2016 4:57 AM   in response to: Markus Humm in response to: Markus Humm
Currently, I do this. I have a Timage in which I add Tciercle and Tline. This way if the user clicks on a line may have information about the object.

I was looking for something similar, but more professional (type AutoCAD or other)
John Gray

Posts: 15
Registered: 10/3/99
Re: CAD environment
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 19, 2016 7:45 AM   in response to: Goffredo Vincenzo in response to: Goffredo Vincenzo
Goffredo Vincenzo wrote:
Currently, I do this. I have a Timage in which I add Tciercle and Tline. This way if the user clicks on a line may have information about the object.

I was looking for something similar, but more professional (type AutoCAD or other)

It sounds like you're looking for a full-blown drawing package.
You might want to have a look at TMS Diagram Studio. It's VCL though, not FMX.
http://tmssoftware.com/site/diagram.asp
Gilbert Padilla

Posts: 315
Registered: 3/8/04
Re: CAD environment
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 19, 2016 10:23 AM   in response to: Goffredo Vincenzo in response to: Goffredo Vincenzo
dtpDocuments have some of that functionality, I think it is now open source
Wil van Antwerpen

Posts: 24
Registered: 11/26/01
Re: CAD environment
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 1, 2016 8:00 AM   in response to: Goffredo Vincenzo in response to: Goffredo Vincenzo
Hi,

GLScene has a lot of 3D functionality, I remember reading some claims that it would run under macOS, but I somehow doubt they use FMX.

See http://www.glscene.org

At least it has a lot of 3D logic for you to look at.
--
Wil
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02