© 2026 MVC Software Ltd. All rights reserved. Free to download. AutoStruct 0.1, made from the source of 2026-11-21 (1ed71f970). Where AutoStruct keeps its files, and running several copies at once

Where AutoStruct keeps its files, and running several copies at once

AutoStruct

24 October 2026

1 One directory for everything

Everything AutoStruct writes for itself - its settings, its logs, its temporary files, the Help’s search index, your own routines and start-up script, its Python environment - lives under one directory, the instance root. Nothing is written in the directory the program is installed in: what is installed there is read, never changed.

When you name no root, AutoStruct uses its own, one per person:

Windows C:\Users\<you>\AppData\Local\AutoStruct
Linux ~/.local/share/AutoStruct
macOS ~/Library/Application Support/AutoStruct

With its own root, your projects stay in Documents/AutoStruct, and your own files - the start-up script .autostruct.tcl, your report routines, the Python environment - stay in .autostruct in your home directory, where they always were. The first time this version starts, it copies the drawing and model house style you had into its root; the old files are left as they were.

2 Naming a root of your own

Name a root when you want a copy of AutoStruct that keeps entirely to itself - a second version to try, a training copy, a copy for one client’s work:

AutoStruct --instance D:/AutoStruct/client-a

or set the environment variable AUTOSTRUCT_INSTANCE to the directory before starting it. The command line wins over the variable. The directory is made if it is not there, and a relative path is taken from where the program was started. Under a root you name, everything is inside it:

projects/ the projects, one directory each
config/ the settings, the house style, and the licence key and its last check (licence.json)
logs/ the program’s logs; log.txt begins with where everything is
tmp/ temporary files, its own
help/ the Help’s search index
home/ your start-up script, report routines, caches
python/ its own Python environment
port while it runs, the port its command channel listens on

A new root begins with the settings that came with the program and changes only its own copy of them.

3 Several copies at once

Two copies started with two different roots share nothing: not a setting, not a temporary file, not a port. Each listens for commands on a free port of its own and writes it to its port file, which it removes when it closes.

A project is one copy’s at a time. Two copies whose roots differ have different projects; to let them work on the same ones, point both at one project store with AUTOSTRUCT_PROJECTS. The second to open a project that is already open is then told which copy has it.

4 Naming one place only

A few environment variables name a single place and are kept for that: AUTOSTRUCT_PROJECTS for the project store, AUTOSTRUCT_PYTHON_ENVIRONMENT for the Python environment, AUTOSTRUCT_HOME for your own files, and AUTOSTRUCT_TCL_PORT for the command channel’s port (auto for a free one). One that is set wins over the root for its own place; everything else still follows the root.

5 How long a project’s path may be

The frame’s computation names every file it writes after one path, the building’s base:

<the folder holding the project>/<Building>/calcs/<Building>.pm

That path may be at most 227 bytes long. A letter of the English alphabet, a digit, a space or a stroke is one byte; an accented, Turkish or Greek letter is two (é, ş), and some signs three. A project’s name appears twice in the path, so a long name counts double.

A path longer than that is refused before anything is computed, at whichever step comes first - a Create Model, the gather, the solve or the design - and the Commands panel says how long the path is and how long it may be:

the project’s path is too long: the building’s base, calcs/<name>.pm, is 
230 bytes long ... 
put the project where this path is at most 227 bytes (...)

The project is left as it was. Move it to a shorter folder, or give it a shorter name, and run the step again.

For example, the project Çağlayan_Şişli_Konutları is 24 letters but 29 bytes. Kept in /home/ayse/Belgeler/AutoStruct, its base is 89 letters and 99 bytes, well inside the 227; the folder holding it could be up to 158 bytes long.

6 Where to look

The first lines of logs/log.txt say which root this copy uses and how it was given, every place that follows from it, the process number, and the port its command channel listens on.