- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to create a Sweep programatically. I can't make sense of the docs - partly due to the split between python and C++ and the difficulty of debugging, but also partly as it's a bit confusing. The code is in flux at the moment, but it's roughly along the lines of:
# This works fine, it's making a Surface Loft, shows up orange in the timeline
loft_body = loft_feats.add(loft_input)
...
sweep_input = sweeps.createInput(profile, path, op)
sweep_input.guideSurfaces = loft_body.bodies.item(0)
sweep_input.distanceOne = 1.0
If I run it, it's a C++ type error on line 5 (which I can't copy paste from the dialog 😕 )
What *should* I be passing in? And more generally, how should I figure it out?
As a side note - how do I get access to the errors and output logs of Scripts? The online docs (https://help.autodesk.com/view/PLM/ENU/?guid=DEV-ERROR-TRACKING) say there should be a yellow warning icon next to the script, but that doesn't match the current UI
Solved! Go to Solution.
