I’m currently using a python script to import a single DWG file into a family based on its filepath.
Now i’m working on a script which imports the DWG file, saves the family and deletes the dwg file. i’ve got everything working for a single run but i want to loop this so i can run the script once.
I got the SaveAs and delete function to loop for every family, the dwg import howerever is stuck on the first index it receives from the list.
Here is the script for the single import which needs to be looped by list of filePaths:
@Alban_de_Chasteigner
Thanks for the answer! but i was looking for a python solution cause i need to loop it in another script. the script in itself works, just had to use it differently
@Alban_de_Chasteigner
I was calling the wrong list so it only took the first item.
i changed this code so it uses the whole list and creates multiple imports.
Hope the explanation makes sense. it works now so i’m happy