RuntimeError: 5 : API Function not yet implemented

RuntimeError: 5 : API Function not yet implemented

Anonymous
Not applicable
891 Views
4 Replies
Message 1 of 5

RuntimeError: 5 : API Function not yet implemented

Anonymous
Not applicable

Hi, I am getting a "RuntimeError: 5 : API Function not yet implemented" on the python line

if triangleMesh.hasTexture:

I also get this error on triangleMesh.textureCoordinates

 

Are these properties not yet implemented, or am I calling them incorrectly?

 

Thanks

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

neil.liu
Autodesk
Autodesk

Thanks for reporting the issue. We are trying to make Fusion APIs better. APIs are still under development, these two APIs you mentioned are not implemented yet. We will implement them in the future. 

 

Thanks,

0 Likes
Message 3 of 5

Anonymous
Not applicable

Thanks Neil

 

Is there some other way to get texture coordinates?  I found some old sample code using neu_modeling, and did some querying using dir(), and it appears to have some geometry functions that would give this - neu_modeling.get_body_triangles() for instance.  Is there any documentation on the neu_* python modules?  Can the neu_* and adsk.* modules be iter-mixed (ie. call neu_modeling.get_body_triangles() with the body from Component.bRepBodies.item()?

 

Thanks

0 Likes
Message 4 of 5

KrisKaplan
Autodesk
Autodesk
Accepted solution

No.  At this time there isn't any other way to get these texture coordinates from the API.

 

Please avoid adding any dependency on the neu_* modules.  That was part of an incomplete legacy API that we are no longer supporting, and that will be removed once a few remaining dependencies are migrated to the new API.

 

Kris



Kris Kaplan
0 Likes
Message 5 of 5

Anonymous
Not applicable

Thank you for the quick and detailed answer on this.  Solution accepted.

0 Likes