Files

29 lines
578 B
C#
Raw Permalink Normal View History

2025-04-24 20:56:44 +08:00
using System.Reflection;
2026-02-21 16:31:24 +08:00
namespace ShrlAlgoToolkit.RevitCore.Assists;
2025-04-24 20:56:44 +08:00
public class EncryptParameters
{
public static bool InvokeModule(string mName, object[] parameters, bool apiModule = true)
{
try
{
MethodInfo m;
if (apiModule)
m = NativeModule.GetApiModuleMethod(mName);
else
m = NativeModule.GetUiModuleMethod(mName);
m.Invoke(null, parameters);
return true;
}
catch (Exception)
{
return false;
}
}
}