Work with Custom Table at Drawing

Work with Custom Table at Drawing

tomas.bangoA2EPZ
Advocate Advocate
467 Views
1 Reply
Message 1 of 2

Work with Custom Table at Drawing

tomas.bangoA2EPZ
Advocate
Advocate

Hello I would like to ask if it is possible to fill the embedded Custom table.

I managed to insert an empty Custom Table using this script.

 

#Author-
#Description-

import adsk.core, adsk.fusion, adsk.cam, traceback

def run(context):

    app=adsk.core.Application.get()
    ui=app.userInterface
    D_doc=app.activeDocument
    cmd_pick=ui.commandDefinitions.itemById('FusionDrawingEmptyTableCommand')
    val_list_create=adsk.core.NamedValues.create()
    VL1=adsk.core.ValueInput.createByString('Ahoja')
    val_list_create.add('A:2',VL1)
    hoax=cmd_pick.execute(val_list_create)

 

I noticed that the commandDefinition object has a .execute property which has a NamedValues parameter which could maybe be used for this? I have not been able to track down the information in the API documentation.

 

Warning: using this script outside of the drawing environment will cause an immediate crash of Fusion 360 😄

0 Likes
468 Views
1 Reply
Reply (1)
Message 2 of 2

durgamp
Autodesk
Autodesk

Thanks for reaching out. The NamedValues parameter is not serving that purpose. Unfortunately, it is not currently possible to directly manipulate tables within the drawing space using the Fusion 360 API.

 

Please provide further details on your aim with the custom table in the Fusion 360 drawing. Specifically, what kind of data do you need to display in the table, and how do you plan to use it? Understanding the intended workflow and end goal will allow us to provide more precise advice and recommendations.


Prasad Durgam

Software Development Manager - Fusion 360
0 Likes