Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

3DX - VSTA (C#) SelectMultipleElements

Status
Not open for further replies.

solid7

Mechanical
Jun 7, 2005
1,403
US
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.



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

 
Replies continue below

Recommended for you

Of course. I should have looked a little closer at the description of iFilterType, and done a search for string arrays in C#.

Thank you.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top