Skip to content

minor fixes to get central path for cloud models#3486

Merged
jmcouffin merged 2 commits into
pyrevitlabs:developfrom
Wurschdhaud:update-open-file-loc
Jul 13, 2026
Merged

minor fixes to get central path for cloud models#3486
jmcouffin merged 2 commits into
pyrevitlabs:developfrom
Wurschdhaud:update-open-file-loc

Conversation

@Wurschdhaud

Copy link
Copy Markdown
Contributor

Description

fix cloud models, add indicator, update name to forma


Checklist

Before submitting your pull request, ensure the following requirements are met:

  • Code follows the PEP 8 style guide.
  • Code has been formatted with Black using the command:
    pipenv run black {source_file_or_directory}
  • Changes are tested and verified to work as expected.

@devloai devloai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary:

  • Fixes cloud model handling in the "Get Central Path" tool by deriving the ACC/BIM360 project id from revit.doc.GetProjectId() instead of model_path.GetProjectGUID(), stripping the b. Forge DM prefix.
  • Updates docstring wording to mention BIM360/ACC/Forma instead of just ACC.
  • Appends a "●" indicator to the button title (all locales) to signal the Shift+Click alternate behavior.

Review Summary:

Overall a small, well-scoped fix. Two issues were found:

  1. Document.GetProjectId() is a Revit 2022+ API; since this bundle has no min_revit_version gate and pyRevit still supports Revit 2019-2021, Shift+Clicking on a cloud model in those versions will now throw instead of opening the docs URL - the existing HOST_APP.is_newer_than(2026) pattern a few lines above should be extended to guard this new call too.
  2. The bundle.yaml tooltip text (shown in the Revit ribbon, across all 8 languages) wasn't updated to match the new "BIM360/ACC/Forma" wording added to the script docstring, leaving the two descriptions out of sync.

The "●" bullet addition is consistent with pyRevit's convention for indicating Shift+Click alternate behavior, and the Forge DM b. prefix stripping logic is correct per Autodesk's APS documentation.

Suggestions

  • Gate GetProjectId() behind a Revit 2022+ version check to keep Revit 2019-2021 cloud models working Apply
  • Update bundle.yaml tooltip text in all languages to match the new BIM360/ACC/Forma docstring wording Apply

@jmcouffin
jmcouffin merged commit 9a9e6ff into pyrevitlabs:develop Jul 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 6.5.4

@Wurschdhaud
Wurschdhaud deleted the update-open-file-loc branch July 13, 2026 15:38
@github-actions

Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 6.5.4

@github-actions

Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 6.5.4

@github-actions

Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 6.5.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants