Solved

VBScript Arguments for SAP

  • 15 December 2022
  • 4 replies
  • 434 views

Badge +1

Hi all, in AA v11 while using Run Script command, we are able to pass parameters as WScript.Arguments[] in the VBScript. In A360 we weren’t able to find such a feature. Is it available, and if not, which is the best way to do it?

icon

Best answer by Emerson.F2 15 December 2022, 13:16

View original

4 replies

Userlevel 3
Badge +6

Dear @PanagiotisZ,

 

The Run Script command is not available in Autodesk 360. Autodesk 360 is a cloud-based platform, so it doesn't support the execution of scripts on the user's local machine. Instead, you can use the Autodesk Forge API to create custom applications that can be used with Autodesk 360. The Forge API supports a wide range of programming languages, including JavaScript and Python, which you can use to create custom applications that integrate with Autodesk 360.

 

Regards,

Userlevel 7
Badge +13

Hi @PanagiotisZ ,

 

Yes, it is possible. Please find below images for further details.

 

The script used here is to convert an .xls file to .xlsx. Here, I am passing the file path as a parameter to the script.

 

 

 

 

Hope this will help.

Userlevel 1
Badge +4

Hi all, in AA v11 while using Run Script command, we are able to pass parameters as WScript.Arguments[] in the VBScript. In A360 we weren’t able to find such a feature. Is it available, and if not, which is the best way to do it?

So, you need generate one variable contained all arguments that you need separeted by space

and, when you call the VBSCRIT pass this variable how input, in this case “iStr_Transaction”

 

 In you VBs code most has:

 

Badge +1

Padmakumar & Emerson.F2 thank you both for your replies! Both suggested solutions cover our need! Thanks!

Reply