我已经通过developer.autodesk.com了解有关Forge平台的更多信息,我仍然在寻找可以获取我的obj文件的URN的方式。
我只需要一个示例代码即可继续前进。 :)
答案 0 :(得分:0)
https://github.com/Autodesk-Forge/learn.forge.viewmodels/tree/nodejs
import time
expire_time = 2
while True:
start_time = time.time()
try:
# Do something here
# ....
# If you make it to the bottom of the code, break out of the loop
break
except BaseException as e:
# Compare the start_time with the current time
now_time = time.time()
if now_time > start_time + expire_time:
raise e
# Otherwise try executing the `try` block again
在这个文件上你可以看到URN的用法,只需用console.log或其他方法监视它就可以轻松看到它......