Thanks guys ..I made some time to test this.
I believe you were correct first time Daniel ..
I made it a static constructor ;
static CommandLine()
{
...
}
and
changed
return new TypedValue((int) o, val)
to
return new TypedValue(Convert.ToInt32(o), val);
because of a casting error ..
and got back to where I started .. loading a CUI menu ..
//
//
[CommandMethod("Test_ZE")]
public void test_ze()
{
CommandLine.ZoomExtents();
}
[CommandMethod("Test_LoadDbCUI")]
public void test_Laconic()
{
string MenuQualifiedName = "K:\\DbCon.cui";
string MenuGroupName = "DBCONNECT";
CommandLine.Command(
"FileDia", "0",
"CuiUnLoad", MenuGroupName,
"CuiLoad", MenuQualifiedName,
"FileDia", "1"
);
}
.. and thanks to Tony for the original.
Command: Test_LoadDbCUI
Customization file unloaded successfully. Customization Group: DBCONNECT
Customization file loaded successfully. Customization Group: DBCONNECT
Command:
DUH: fat finger spelling !