Modify Entity Matrix and save changes
Moderators: SDS, support, admin
-
- Posts: 54
- Joined: 14 Mar 2015, 22:33
Modify Entity Matrix and save changes
Is possible modify the Entity matrix and save the changes to the drawing?
Example:
xMatrix:= Entity.GetMatrix;
xMatrix.V4[0]:= 1.5
xMatrix.V4[1]:= 2.0
and set that matrix to entity again?
Thanks!
Example:
xMatrix:= Entity.GetMatrix;
xMatrix.V4[0]:= 1.5
xMatrix.V4[1]:= 2.0
and set that matrix to entity again?
Thanks!
Re: Modify Entity Matrix and save changes
Hello,
It is not possible to modify the entity matrix, because TsgDXFEntity class doesn't have methods such as GetMatrix/SetMatrix or Matrix property.
Mikhail
It is not possible to modify the entity matrix, because TsgDXFEntity class doesn't have methods such as GetMatrix/SetMatrix or Matrix property.
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
-
- Posts: 54
- Joined: 14 Mar 2015, 22:33
Re: Modify Entity Matrix and save changes
What about TsgDXFInsert??
Re: Modify Entity Matrix and save changes
Hello,
TsgDXFInsert class has the protected FMatrix field which can be accessed using a class that descends from TsgDXFInsert, for example:
Therefore, it is possible to modify the block reference (INSERT) coordinates using a specified matrix (TFMatrix).
Mikhail
TsgDXFInsert class has the protected FMatrix field which can be accessed using a class that descends from TsgDXFInsert, for example:
Code: Select all
TsgDXFInsertAccess = class(TsgDXFInsert);
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support