Export driven-dimension-values to csv file

Export driven-dimension-values to csv file

Anonymous
Not applicable
673 Views
3 Replies
Message 1 of 4

Export driven-dimension-values to csv file

Anonymous
Not applicable

Hi,

 

i wonder if its possible to export the values of driven dimensions... Is that what is meant with referencing?

I don't need to manipulate them... just need their values. ... so if there is any option to do this instead copying everything by hand like a monk...

0 Likes
674 Views
3 Replies
Replies (3)
Message 2 of 4

HughesTooling
Consultant
Consultant

Does this help?

https://apps.autodesk.com/FUSION/en/Detail/Index?id=1801418194626000805&appLang=en&os=Win64

 

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


0 Likes
Message 3 of 4

Anonymous
Not applicable

unfortunately not... driven measurements do not appear as parameters the suggested app then could export... so its the Change Parameters that should list them in the first place. There is a feature request pending for several years now... But hey, i'm using the software for free so i won't ask my money back.

0 Likes
Message 4 of 4

markER7TS
Contributor
Contributor

You can output driven dimensions from a sketch with code like this...

import adsk.core, adsk.fusion, adsk.cam, traceback
def run(context):
    try:
        app = adsk.core.Application.get()
        ui  = app.userInterface
        des = adsk.fusion.Design.cast(app.activeProduct)

        f = open('P:\dd.csv', 'w')

        root = des.rootComponent
        ske = root.sketches.itemByName('Sketch1')
        for skd in ske.sketchDimensions:
            prm = skd.parameter
            f.write(prm.name + ',' + str(prm.value) + '\n')
        f.close()
        ui.messageBox('end run ***')

    except:
        if ui:
            ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))

So this is possible, just not super user friendly.

Mark

0 Likes