Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Hi guys, well based on the info provided by @A.Acheson  (thank you for that though) I cleaned and modified the code from Mode the Machine (thanks to @Adam Nagy as well) the intention is to import small group of files converting them to Inventor after the import but is important to get in the inventor part file all the properties that are in the files that we import.

I attached the code (was working on it but end of the day for me) it work fine from one file importing the file as a reference but Im trying to access a folder capturing the files there and then execute the import for all those files

this is the piece of code for reading the files as you can see I previously add a multivalue parameter in Inventor to check is reading the files

 
 
Imports System.IO
Sub Main
    ' Specify the folder path you want to get the file names from
    Dim folderPath As String = "C:\XFolder"   'In here the path to the folder you want to get the files frt
   
    ' Get an array of file names in the specified folder
    Dim files As String() = Directory.GetFiles(folderPath)                              'Files are now in the array variable files
        MultiValue.List("LIST_NAMES") = files
    For Each File As String In files                                                    ' You can loop through the array to access each file name
         Console.WriteLine(File)
    Next
End Sub