SYSTEM ERROR ==> getAsCoordinateSystem()

SYSTEM ERROR ==> getAsCoordinateSystem()

MichaelT_123
Advisor Advisor
883 Views
5 Replies
Message 1 of 6

SYSTEM ERROR ==> getAsCoordinateSystem()

MichaelT_123
Advisor
Advisor

Hi,

 

This "simplified" script results in a system error.

 

The code is:

"

transform_tmp = adsk.core.Matrix3D.create()

(returnValue, origin, xAxis, yAxis, zAxis) = transform_tmp.getAsCoordinateSystem()

"

The error is:

"

SystemError: <built-in function delete_Point3D> returned a result with an error set

"

 

Is there something wrong with mine code ... or in the system's core?

 

Regards

MichaelT

MichaelT
0 Likes
Accepted solutions (2)
884 Views
5 Replies
Replies (5)
Message 2 of 6

KrisKaplan
Autodesk
Autodesk
Accepted solution

Unfortunately, this is a problem with the documentation.  The return type from getAsCoordinateSystem is 'void' (as is visible from the C++ tab of the documentation).  Void returns are never assigned to variables, so the sample code line should be:

 

(origin, xAxis, yAxis, zAxis) = matrix3D_var.getAsCoordinateSystem()

Your sample should run if you remove the 'returnValue' variable from the tuple you are assigning into.  We will update the documentation for this (and similar) case(s).

 

Kris



Kris Kaplan
Message 3 of 6

MichaelT_123
Advisor
Advisor

Thank you Mr. Kaplan,

 

... it works now ... like a spell of Wiedźmin of Oz !!!

 

With Regards

MichaelT

 

PS. ... and there is some strange synergy here, ... your name means 'Priest'  in slavic languages ( Kapłan in polish language),  Wiedźmin word is based on Sanskrit word Veda which means knowledge (  wiedza in slavic languages ). Smiley Happy

MichaelT
0 Likes
Message 4 of 6

ekinsb
Alumni
Alumni
Accepted solution

Just to let you know that I've fixed this in the help system and it will be corrected when the Fusion update goes live later this week.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
Message 5 of 6

MichaelT_123
Advisor
Advisor

Appreciated !!!, Mr. Ekins

MichaelT
0 Likes
Message 6 of 6

KrisKaplan
Autodesk
Autodesk

Thanks.

Interesting.  My ancestry is (paternally) Polish.  My understanding is that at some point it was shortened from something like Kaplanowski.

 

Kris



Kris Kaplan
0 Likes