I used to use the following code to import SVG files but since the May 7 update its not working properly. Im assuming this is due to the update and how SVG files can now be easily rotated and moved. Is there a new way to import SVG files with the API? I've been trying to reference the API documentation but everytime I click on the 'Fusion 360 API Reference Link' it just expands and imediately collapses. Here's the python code that used to work
rootComp = design.rootComponent
sketches = rootComp.sketches
sketch = sketches.add(rootComp.xYConstructionPlane)
ret = sketch.importSVG(WorkingDir + '\\' + file, 0, 0, 1)
I added the ret variable to see if it returned an error but the value was true. Any help on how to achieve this after the update or even how to view the documentation would be greatly appreciated.
Running:
Windows 10 Pro
tried with
Chrome 50.0.2661.102 m
Internet Explorer 11.3
Found an alternative location to view the API Reference Documentation
http://help.autodesk.com/view/NINVFUS/ENU/?guid=GUID-3922697A-7BF1-4799-9A5B-C8539DF57051
The old one I couldnt view because it would expand then immediately collapse
http://fusion360.autodesk.com/learning/learning.html?guid=GUID-A92A4B10-3781-4925-94C6-47DA85A4F65A
Hello,
Thank you for reporting the issue to us. It looked a regression caused by SVG import enhancements. We will investigate/fix the issue in next Fusion 360 updates.
Thanks,
Marshal
I had the same issue with expand/collapse, very frustrating. Thanks for the good link.
Can't find what you're looking for? Ask the community or share your knowledge.