Jump to content
Developer Wiki and Function Reference Links Read more... ×
Sam Jones

Workgroup folder

Recommended Posts



As far as I know on Windows it is stored in the Registry in Current User and on Mac in the User/Library/Preferences. I am not sure if this works in your situation. With python I think it is easier to get access to the system files. Maybe this also would work with a pascal script ...



from winreg import *
aReg = ConnectRegistry(None,HKEY_CURRENT_USER)
aKey = OpenKey(aReg, r"Software\Nemetschek\Vectorworks 24\General")
WGF_Path = QueryValueEx(aKey, "Workgroup Folder 0")
target = WGF_Path[0]



import plistlib

MacFile = 'Users/userName/Library/Preferences/net.nemetschek.vectorworks.2019.plist'

pl = {}
with open(MacFile, 'rb') as fp:
    pl = plistlib.load(fp)

vs.AlrtDialog(str(pl.get("NNA Workgroup Folders")))
vs.AlrtDialog(pl["NNA Workgroup Folders"])


I needed this for a quick and dirty job. For sure it could be enhanced as Example by not using a fix path for the user Name:


import getpass
var_username = getpass.getuser()


Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.