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: 

Call a field through a variable

1 REPLY 1
SOLVED
Reply
Message 1 of 2
sdibben
349 Views, 1 Reply

Call a field through a variable

I'm needing to call fields for calculations through a loop.  I'm struggling to find a way to increment through fields via a variable. Example below.

item.TEST[x] where x would be the variable to increment

 

1 REPLY 1
Message 2 of 2
tony.mandatori
in reply to: sdibben

There is a  good example of this in the Octopart Integration that comes OOTB.

 

 

for (var i = 1; i <= 5; i++){
    var mpn = item['MPN' + i];
...
}

 

This would loop through the AML fields which are called MPN1, MPN2 etc.

 

 

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

Post to forums  

Autodesk Design & Make Report