There seems to be a problem with the 'iv_getOccurrenceWorkPoint' function. The problem is accessing a work point from the flat pattern after accessing a work point in the folded model. In the simplest example, create a sheet metal part, with 1 work point on the folded model and 1 work point on the flat pattern. Adopt this part and set it as the child of an empty intent assembly. Then try to evaluate the expression as below on the sheet metal part. If you notice in my example, the point on the folded model evaluates until we evaluate the point on the flat pattern. Then we get an error when trying to get a point from the folded model. We are able to continue evaluating points on the flat pattern. I'll include a sample project and .cs file to test it with.
{code}
Intent >iv_getOccurrenceWorkPoint(Me, Me, "WPT_FM", scope:=:All)
--> Point_(1.0, -0.72798051774365, 1.08781965257329, WorldFrame())
Intent >iv_getOccurrenceWorkPoint(Me, Me, "WPT_FP", scope:=:All)
--> Point_(0.0, -1.91738312724761, 0.0, WorldFrame())
Intent >iv_getOccurrenceWorkPoint(Me, Me, "WPT_FM", scope:=:All)
--> Inventor error in function 'iv_getOccurrenceWorkPoint': No such interface supported
{code}