Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Work with Custom Table at Drawing

1 REPLY 1
Reply
Message 1 of 2
tomas.bangoA2EPZ
240 Views, 1 Reply

Work with Custom Table at Drawing

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 😄

1 REPLY 1
Message 2 of 2
durgamp
in reply to: tomas.bangoA2EPZ

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report