Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RuntimeError: 3: Environment is not supported

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
11713013
368 Views, 4 Replies

RuntimeError: 3: Environment is not supported

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!

 

4 REPLIES 4
Message 2 of 5
j.han97
in reply to: 11713013

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
in reply to: j.han97

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

Message 4 of 5
11713013
in reply to: j.han97

Thank you so much!
Merry Christmas!
Message 5 of 5
j.han97
in reply to: 11713013

Merry Christmas!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report