It’s possible to program .NET scripts (C# and VBNET) to be run as usual .lst scripts
Of course we’re working to avoid this in next builds.
In case, here is the manual procedure to enable .NET scripting support:
- execute
%CommonProgramFiles%MechworksSharedDBWLibSetupregister_dot_net_scripting.bat
or
%CommonProgramFiles(x86)%MechworksSharedDBWLibSetupregister_dot_net_scriptingx64.bat
depending on the platform (x86 vs x64)
- execute
%CommonProgramFiles%MechworksSharedDBWLibSetupDBWCSSUIinstall.cmd
or
%CommonProgramFiles(x86)%MechworksSharedDBWLibSetupDBWCSSUIinstall.cmd
depending on the platform (x86 vs x64)
To test it, just enable the option for OnOk.LST script and copy the LSTDEMO_CSOnOK.LST.CS in LST folder, then when clicking the OK button in the input data form, you should see a messagebox that returns the filename.
Posted in: Scripting/API/DBWForms