70002569 Have an option so that the rotation is always done around the center of the entities bounding box

Article 70002569
Type Wish
Product WebJS
Version 1101
Date Added 10/2/2024 12:00:00 AM
Fixed 11.2.5.0 (10/2/2024 12:00:00 AM)
Submitted by Stuart Cross

Summary

Have an option so that the model 3d rotation to be always done around the center of the entities bounding box

Solution

A new property vdcanvas.ActiveAction().RotateModelOrigin was added in version 11.2.5
Get/Set the origin used to rotate the scene model
It can be one of the following values
vdConst.RotateModelOrigin_Default : The user 3d model rotation is done around the first pick point on the screen
vdConst.RotateModelOrigin_MIDEXTENTS :The user 3d model rotation is done around the center of the entities bounding box
default value is vdConst.RotateModelOrigin_Default

example:
vdcanvas.ActiveAction().RotateModelOrigin = vdConst.RotateModelOrigin_MIDEXTENTS

Send comments on this topic.