- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
May I receive some advice on adjusting this add-in to be able to select edges as an unchained option? The following code only allows for chained selection of edges.
path_Input = inputs.addSelectionInput('path_Input', 'Path', 'Select path of pipe')
path_Input.setSelectionLimits(1,1)
path_Input.addSelectionFilter('Edges')
path_Input.addSelectionFilter('SketchCurves')
I was able to use an unchained edge selection with a following code as a script, however the same code does not work as an add-in.
sel = ui.selectEntity('Select a path to create a pipe', 'Edges,SketchCurves')
selObj = sel.entity
chainedOption = adsk.fusion.ChainedCurveOptions.noChainedCurves
path = adsk.fusion.Path.create(selObj, chainedOption)
Is there a way to convert the script code to be suitable as an Add-in? Which websites would be recommended when researching specific API lines and sample API codes (including the fusion 360 website) in the future?
Solved! Go to Solution.