Development Environment¶
Location of the Building Framework¶
The Allplan building framework resides in the ETC directory. You can open the ETC path with Allmenu -> Sevice ->
Windows Explorer, the location should look like C:\\ProgramData\\Nemetschek\\Allplan\\2017
. The framework is in the
ETC\PythonPartsScripts\GeneralScripts folder. In ETC applies the vendor policy: “Just look, don’t touch!”.
See also
Location of the PythonPart parameter *.pyp file: Library Folders.
Location of the PythonPart script *.py file(s): PythonPartScripts Folders.
Reload Scripts¶
Allplan does not reload scripts automatically, to change this behavior open the ETC path with Allmenu, the location
should look like C:\\ProgramData\\Nemetschek\\Allplan\\2017
. This is the rare case you have to break the
“Just look, don’t touch!” policy. Edit the ETC\PythonPartsScripts\GeneralScripts\CreateLibraryPreview.py script in
line #56 (Allplan 2017):
# original
build_element_script = BuildingElementUtil.import_building_element_script(build_ele_list[0], False)
# changed
build_element_script = BuildingElementUtil.import_building_element_script(build_ele_list[0], True)
and do the same in file ETC\PythonPartsScripts\GeneralScripts\BuildingElementComposite.py line #256 (Allplan 2017).
The last parameter tells the import_building_element_script()
function to reload the script.
This only updates the preview at the mouse pointer not the preview window in the side panel. And this may reduces the performance of the preview building process in Allplan.
Windows Python Launcher¶
Since Python3 is the windows python launcher py.exe in the standard distribution included, the launcher is installed
in the C:\\Windows
folder, and is therefore accessible from everywhere, so open a command line (press WIN+R and
type “cmd”) and type “py” to start the Python interpreter or “py <name>.py” to start a python script, for mor
information to py.exe see: Python docs and
Python Insider