Strange behavior of Occurrence.transform when it was assigned

Strange behavior of Occurrence.transform when it was assigned

hajime2MRG3
Enthusiast Enthusiast
666 Views
2 Replies
Message 1 of 3

Strange behavior of Occurrence.transform when it was assigned

hajime2MRG3
Enthusiast
Enthusiast

Hi,

I've encountered a strange behavior about Occurrence.transform. Sometimes it ignores assigned value and goes to somewhere unpredictable. I feel it is a bug.

My script in the screencast:

 

 

from adsk.core import *
app = Application.get()
ui = app.userInterface
ui.activeSelections[0].entity.transform = Matrix3D.create()
ui.activeSelections[0].entity.transform.asArray()

 
0 Likes
667 Views
2 Replies
Replies (2)
Message 2 of 3

hajime2MRG3
Enthusiast
Enthusiast
0 Likes
Message 3 of 3

BrianEkins
Mentor
Mentor

I'm able to reproduce the problem and a bug has been filed.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com