Translation prior to rotation

Discuss and ask questions about CAD DLL (CAD Image DLL, CAD Importer DLL).

Moderators: SDS, support, admin

Post Reply
kwebster83
Posts: 2
Joined: 01 Nov 2016, 13:27

Translation prior to rotation

Post by kwebster83 » 02 Nov 2016, 12:56

Is there any way, within CAD DLL to translate the origin of a DXF file prior to calling SetRotateCAD so that the DXF is rotated about an arbitrary point?

As an example, I want to allow the end user to specify a point of origin on a DXF file and once they've done this, I want them to be able to rotate the DXF around this point.

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

Re: Translation prior to rotation

Post by support » 02 Nov 2016, 17:33

Hello Kevin,

It is not possible to modify the drawing data within CAD DLL, including the origin of a DXF file used in the SetRotateCAD function. To give the end user ability to specify the origin point, you will need to implement a translation of the DXF origin in your code.


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

Post Reply