Hi there ![]()
I’m trying to find some documentation on how the .invoke button yaml file is meant to work. I did find the debug button sample in the repository but drew a bit of a blank…
I have:
- a .dll named: PushIt.dll with the namespace path to the IExternal command class being: duHast.PushIt.Main
> namespace duHast.PushIt
> {
> [Transaction(TransactionMode.Manual)]
> [Regeneration(RegenerationOption.Manual)]
> public class Main : IExternalCommand
> {
> Models.RevitDataModel _revitDataModel;
> duHast.Utils.WPF.Stores.NavigationStore _navigationStore;
> duHast.Utils.WPF.Stores.MessageStore _messageStore;
> RevitExternalEventHandlerManager _eventManager;
>
> public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
-
I placed that dll and all its dependencies into a lib folder within my extension:
duHast.extension>>duHast.tab>>lib>>PushIt.dll -
my yaml file:
title: PushIt
tooltip: A rapid layouting extension for Revit
author: “Jan Christel”
highlight: new
context: zero-doc
assembly: ‘PushIt’
command_class: ‘duHast.PushIt.Main’
When pressing the button in the Revit UI I get an exception:
Can not find type “duHast.Main” in assembly “C:\…pushit.dll”
I’m not sure why the message is not showing the complete namespace address or why the .dll name is in all lower case in the message? Or whether that matters ![]()
I’m using pyRevit version 5.0.1
Thank you guys for the great work that is pyRevit…wouldnt know what to do without it!