Having some trouble understanding what the SelectMultipleElements call is asking me for...
Where xxxxxx is supposed to be Object[] (VBA used to require a CATSafeArrayVariant), according to the signature, and ????? would be the assigned name, and !!!!!! would be the unknown name of the unassigned value.
Where xxxxxx is supposed to be Object[] (VBA used to require a CATSafeArrayVariant), according to the signature, and ????? would be the assigned name, and !!!!!! would be the unknown name of the unassigned value.
Code:
static AxisSystem SelectAxis(Selection cSelection)
{
xxxxx ?????? = !!!!!!; // <--- Should be an AxisSystem
string cMessage = "Select an AxisSystem";
CATMultiSelectionMode cSet = CATMultiSelectionMode.CATMultiSelTriggWhenUserValidatesSelection;
var cSelected = cSelection.SelectMultipleElements(?????, cMessage, false , cSet, true);
return cSelected;
}
Automation Documentation said:Parameters:
iFilterType
An array of string constants defining the Automation object types with which the selection will be filtered.
iMessage
A string displayed in the status bar which tells the user what he/she should select (location, object...).
iMaySkipInteractiveSelection
If true and if the user has selected something before running the script, the interactive step of this method will be skipped. See
SelectElement .
iMultiSelectionMode
The type of multi-selection which will be offered to the user.
iTooltip
Displays a tooltip as soon as an object is located under the mouse without being selected.
oOutputState
The state of the selection command after SelectMultipleElements returns. It can either be "Normal", "Cancel", "Undo" or "Redo". See SelectElement .
VS Object Browser said:string SelectMultipleElements(object[] iFilterType, ref string iMessage bool, iMaySkipInteractiveSelection INFITF.CATMultiSelectionMode, iMultiSelectionMode bool, iTooltip)
Member of INFITF.Selection