Skip to content

Determine the library version in .invokebutton bundle #1341

@dosymep

Description

@dosymep

Hello, Ehsan!

I would like you to add the feature of invocation various .NET libraries depending on the version of Revit.
At the moment, I can't even imagine how can support multiple versions of Revit at once when using InvokeButton.

And it would also be nice to add the ability to determine the library version at the runtime - use the name specified in the file bundle.yaml by default.
If there is an assembly with a name containing the Revit version, then pyRevit should use this library.

Sample structure InvokeButton:

bundle.yaml
	assembly: RevitPlugin.dll
	command_class: RevitCommand
		
\bin
	RevitPlugin.dll
	RevitPlugin_2020.dll
	RevitPlugin_2021.dll
	RevitPlugin_2022.dll

Metadata

Metadata

Assignees

No one assigned

    Labels

    BundlesIssues related to the pyRevit bundles [subsystem]Closed Old IssueIssue older than a year. Thanks for pointing it out. If you feel it is still relevant, feel free toEnhancementEnhancement request [class->Improved #{number}: {title}]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions