RuntimeError: 3: Environment is not supported

RuntimeError: 3: Environment is not supported

11713013
Contributor Contributor
1,128 Views
4 Replies
Message 1 of 5

RuntimeError: 3: Environment is not supported

11713013
Contributor
Contributor

Hi, experts in Fusion360!

I met a problem when I want to create a construction point using following code:

# create a geo point
        point1 = adsk.core.Point3D.create(0, 20, 0)
        cons_points = rootComp.constructionPoints
        cons_point_input = cons_points.createInput() # create a constructionPointInput var
        cons_point_input.setByPoint(point1) # set by point
        point = cons_points.add(cons_point_input)
        geo_point = adsk.fusion.JointGeometry.createByPoint(point)

And the problem came out:

11713013_0-1640275812536.png

What is the "Environment" mean here? Is the python environment or the Fusion360 environment?

I search for the error "RuntimeError: 3: Environment is not supported" in google and this forum but do not find any thing.

Hoping for the community's help.

Thanks a lot!

And Merry Christmas to all the community and the Fusion360 experts!

 

0 Likes
Accepted solutions (1)
1,129 Views
4 Replies
Replies (4)
Message 2 of 5

j.han97
Advocate
Advocate
Accepted solution

Hi @11713013 ,

 

Are you working in parametric design mode (with capture design history ON)? In the documentation here, it is stated that this line

 

constructionPoint = constructionPoints.add(input)

 

only works in direct edit mode (turn OFF capture design history).

 

Hope it helps.

Message 3 of 5

11713013
Contributor
Contributor

You are right! After turn off Capture Design History, it works.

0 Likes
Message 4 of 5

11713013
Contributor
Contributor
Thank you so much!
Merry Christmas!
Message 5 of 5

j.han97
Advocate
Advocate

Merry Christmas!