- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a script that runs well and completes without issue. However, when I go to save the project I get the following error:
Error: The source asset Toolpath in document Untitled v1 has not referenced the target asset FusionAssetName in document Untitled v1!
I went through my script and commented out the sections until I found what is causing the issue, but I don't know how to change it to fix the save problem.
I am using some tricks that I saw @kandennti explaining in this thread:
https://forums.autodesk.com/t5/fusion-360-api-and-scripts/create-new-cam-setups/m-p/10215806
as well as some others from other posts.
I think that the TextCommand UI.EnableCommandInput is causing issues.
# Select Z Axis for setup
zAxis = design.rootComponent.zConstructionAxis
app.executeTextCommand(u'UI.EnableCommandInput job_rotaryAxis')
sels.clear()
sels.add(zAxis)
Thanks in advance for any assistance,
Kind regards,
Josh
Solved! Go to Solution.