Can I save drawing on TPaintBox control to DXF?

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
marym
Posts: 15
Joined: 22 Jul 2015, 00:03

Can I save drawing on TPaintBox control to DXF?

Post by marym » 06 Sep 2016, 17:50

I see that your code sample projects use the TImage control. I have an existing project that has a drawing made on a TPaintBox control. How can I save the TPaintBox drawing to DXF?

By the way, I am using C++ (I do not have Delphi).

Thanks in advance for your assistance.

support
Posts: 3253
Joined: 30 Mar 2005, 11:36
Contact:

Re: Can I save drawing on TPaintBox control to DXF?

Post by support » 06 Sep 2016, 20:25

Hello Mary,

I'm afraid it is not possible, because the TPaintBox control doesn't have a Picture property (TImage has it) that means you can't obtain a TGraphic object for this control. Only TGraphic object and its descendants (TsgCADImage, TsgDWGImage, TsgCADdxfImage, etc.) can be saved to the DXF format.


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

marym
Posts: 15
Joined: 22 Jul 2015, 00:03

Re: Can I save drawing on TPaintBox control to DXF?

Post by marym » 06 Sep 2016, 20:29

Mikhail,
I suspected that was the case, but I wanted to make sure. Thank you for your prompt reply.
Mary

Post Reply