Skip to content

[Bug]: Create Workset For Linked Element not working #3138

@A5hkan

Description

@A5hkan

✈ Pre-Flight checks

  • I don't have SentinelOne antivirus installed (see above for the solution)
  • I have searched in the issues (open and closed) but couldn't find a similar issue
  • I have searched in the pyRevit Forum for similar issues
  • I already followed the installation troubleshooting guide thoroughly
  • I am using the latest pyRevit Version

🐞 Describe the bug

The tool "Create Workset For Linked Element" has stopped working i the latest release. pyRevit can't see the model has worksharing activated. The tool returns a message saying " The Document doesn't have worksharing enabled. Enable it?" with Yes and No options. Both buttons return the same result. A message saying "The Script cannot run in a document without worksharing." tested in Revit 2025.4.4 (Latest Release).

⌨ Error/Debug Message

DEBUG [pyrevit.versionmgr] Can not create repo from directory: C:\Program Files\pyRevit-Master | Path 'C:\Program Files\pyRevit-Master' doesn't point at a valid Git repository or workdir. 
DEBUG [pyRevitLabs.PyRevit.PyRevitConfig] Try getting config "core:closeotheroutputs"
DEBUG [pyRevitLabs.PyRevit.PyRevitConfig] Config "core:closeotheroutputs" not set.
DEBUG [pyrevit.versionmgr] Can not get pyRevit patch number. | 'NoneType' object has no attribute 'last_commit_hash'

♻️ To Reproduce

No response

⏲️ Expected behavior

No response

🖥️ Hardware and Software Setup (please complete the following information)

==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
==> Attachments
Unknown | Product: "2026 First Customer Ship" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2026\pyRevit.addin"
Unknown | Product: "2025 First Customer Ship" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2025\pyRevit.addin"
Unknown | Product: "2024.3.4" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2024\pyRevit.addin"
Unknown | Product: "2023.1.8" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2023\pyRevit.addin"
Unknown | Product: "2022.1.7" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2022\pyRevit.addin"
==> Installed Extensions
==> Default Extension Search Path
C:\Users\AshkanMadsen\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
==> Extension Sources - Default
https://github.com/pyrevitlabs/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
2026 First Customer Ship | Version: 26.0.4.409 | Build: 20250227_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2026\"
2025 First Customer Ship | Version: 25.0.2.419 | Build: 20240307_1300(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2025\"
2024.3.4 | Version: 24.3.40.26 | Build: 20250918_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2024\"
2023.1.8 | Version: 23.1.80.30 | Build: 20250724_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2023\"
2022.1.7 | Version: 22.1.70.9 | Build: 20240704_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2022\"
==> Running Revit Instances
Error: Object reference not set to an instance of an object.
Run with "--debug" option to see debug messages

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBug that stops user from using the tool or a major portion of pyRevit functionality [class]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions