Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Output Path

Anonymous
Not applicable
I am trying to create a text file using the database extension in a specific path. My script stops when i try to do this. Any ideas?

ch2 = open ("DATA", ProjectNumber + "_Comp_" + TypeModeName + ".txt","SEPARATOR=',', MODE = WO, H:\SomeFolder\)

I would use LIBRARY for the path, except my file does not exist yet, and i do not want to save it in the data folder.
2 REPLIES 2
Barry Kelly
Moderator
Mark wrote:
I am trying to create a text file using the database extension in a specific path. My script stops when i try to do this. Any ideas?

ch2 = open ("DATA", ProjectNumber + "_Comp_" + TypeModeName + ".txt","SEPARATOR=',', MODE = WO, H:\SomeFolder\)

I would use LIBRARY for the path, except my file does not exist yet, and i do not want to save it in the data folder.
Try this - this is the format I use.
The file path and name needs to be all one entry.

ch2 = open ("DATA", "H:\SomeFolder"+ProjectNumber + "_Comp_" + TypeModeName + ".txt","SEPARATOR=',', MODE = WO")

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Anonymous
Not applicable
Thanks Barry, that did the trick.

Such a simple syntax error, i must have tried everything but this.