occurrence.transform vs. occurrence.transform2

SendItCNC
Advocate

occurrence.transform vs. occurrence.transform2

SendItCNC
Advocate
Advocate

What's the difference? The doc has the same description for both:

 

"Gets and sets the 3d matrix data that defines this occurrences orientation and position in its assembly context."

 

But, I see different values, and it looks like transform2 is not correct in some cases.

 

Anybody know what's up with this?

0 Likes
Reply
272 Views
1 Reply
Reply (1)

SendItCNC
Advocate
Advocate

Ok, a little bit more search search found the explanation in the narrative on the January update:  

 

Occurrence Transform Problems 

We were surprised to learn about problems with the API when getting the transformation matrix from an occurrence using the Occurrence.transform. This problem has existed for quite a while but wasn't noticed by us or reported until recently by hajime2MRG3. We've chosen not to fix the existing transform property because someone may be expecting the incorrect behavior and fixing it would break their program. Instead, we've added a new transform2 property to the Occurrence object that works as expected when getting and setting the transform of an occurrence. 

 

1 Like