Fusion Manage Forum
Welcome to Autodesk’s Fusion Manage (formerly Fusion 360 Manage) Forum. Share your knowledge, ask questions, and explore popular Fusion Manage topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

update grid's row via script

2 REPLIES 2
Reply
Message 1 of 3
khanh.phan
345 Views, 2 Replies

update grid's row via script

hi

 

i have 30 items in grid and one to update row 15.  but the api doesn't have update() method.  is there a way to do it?

Kevin
2 REPLIES 2
Message 2 of 3
dany.poudrier
in reply to: khanh.phan

Hello Kevin,

 

You may want to have a look at the script reference documentation http://help.autodesk.com/view/PLM/ENU/?guid=GUID-BBBBAB3B-FEAE-4EB7-8D1B-29E76EC6BC65 (search for "item Grid array")

 

Here is the extract that you are looking for:

 

You get and set Grid row properties through field IDs the same way you access Item Details fields (for example, item.grid[0].DESCRIPTION).

 

 

 

 

Example below: I added the first line so you can know how many rows are in your grid (should you need it). The second line is where I update the first grid row's field QUANTITY_ON_HAND.

 

 

var gridSize = item.grid.length;//Get the number of rows in gridtab

item.grid[0].QUANTITY_ON_HAND = 200;//Updating the field value on the first grid row


Dany Poudrier

PLM Product Manager
Message 3 of 3
khanh.phan
in reply to: dany.poudrier

thnx Dany that really helps

Kevin

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

Post to forums  

Autodesk Design & Make Report