Message 1 of 2
Work with Custom Table at Drawing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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 😄