Thanks, but I run on Mac. However, I found a script on modthemachine.typepad.com but can't get it to work properly.
##################################
import traceback, adsk.core, adsk.fusion
import io
def run(context😞
ui = None
try:
app = adsk.core.Application.get()
ui = app.userInterface
# Get all components in the active design.
product = app.activeProduct
design = adsk.fusion.Design.cast(product)
title = 'Export Spline csv'
if not design:
ui.messageBox('No active Fusion design', title)
return
# if app.userInterface.activeSelections.count != 1:
# ui.messageBox('Select profile before running command', title)
# return
# profile = app.userInterface.activeSelections.item(0).entity
# if not type(profile) is adsk.fusion.Profile:
# ui.messageBox('Selected object needs to be a profile', title)
# return
dlg = ui.createFileDialog()
dlg.title = 'Save CSV File'
dlg.filter = 'Comma Separated Values (*.csv)'
if dlg.showSave() != adsk.core.DialogResults.DialogOK :
return
filename = dlg.filename
with io.open(filename, 'w', encoding='utf-8-sig') as f:
profile = adsk.fusion.Profile.cast(profile)
loop = profile.profileLoops.item(0)
curves = loop.profileCurves
for curve in curves:
curve = adsk.fusion.ProfileCurve.cast(curve)
entity = curve.sketchEntity
point = entity.startSketchPoint
point = adsk.fusion.SketchPoint.cast(point)
geometry = point.geometry
f.write(str(geometry.x) + "," + str(geometry.y) + "\\n")
except:
if ui:
ui.messageBox('Failed:\\n\{\}'.format(traceback.format_exc()))