Jump to content

Angle of an image

Recommended Posts

Hello all,

is there a way to get the rotation angle of an image (bitmap) inserted in Vectorworks?

The angle is clearly shown in the OIP but it seems to be unreachable by code 🤔 


Here's what I tried:


This returns always 0.


I also searched in the appendix for some documented index to get the angle, but found nothing…

vs.GetObjectVariableReal(h, index)


Also tried to get it from record fields…


but Bitmaps are a native type and not plugin objects, so neither this worked…


Other ideas / suggestions?

Share this post

Link to post

vs.GetEntityMatrix() should do it. The z rotation should give you the plan rotation.

  • Like 1

Share this post

Link to post

Thank you JBenghiat, just tested and it works!


r, offset, rotationXAngle, rotationYAngle, rotationZAngle = vs.GetEntityMatrix(imageHandle)

rotationZAngle is the image (imageHandle) rotation value (the same showed in the OIP)

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

  • Create New...