diff --git a/src/Mod/BIM/ArchSketchObject.py b/src/Mod/BIM/ArchSketchObject.py index 4797d47d2b..16239a22f0 100644 --- a/src/Mod/BIM/ArchSketchObject.py +++ b/src/Mod/BIM/ArchSketchObject.py @@ -1,5 +1,6 @@ #*************************************************************************** -#* Copyright (c) 2022 Paul Lee * +#* * +#* Copyright (c) 2018-25 Paul Lee * #* * #* This program is free software; you can redistribute it and/or modify * #* it under the terms of the GNU Lesser General Public License (LGPL) * @@ -19,6 +20,9 @@ #* * #*************************************************************************** +import ArchWindow +from PySide.QtCore import QT_TRANSLATE_NOOP + class ArchSketchObject: def __init__(self, obj): pass @@ -27,4 +31,19 @@ class ArchSketch(ArchSketchObject): def __init__(self, obj): pass + def setPropertiesLinkCommon(self, orgFp, linkFp=None, mode=None): + if linkFp: + fp = linkFp + else: + fp = orgFp + prop = fp.PropertiesList + if not isinstance(fp.getLinkedObject().Proxy, ArchWindow._Window): + pass + else: + if "Hosts" not in prop: + fp.addProperty("App::PropertyLinkList","Hosts","Window", + QT_TRANSLATE_NOOP("App::Property", + "The objects that host this window")) + # Arch Window's code + #from ArchSketchObjectExt import ArchSketch # Doesn't work