private void UserInputEvents_OnSelect(Inventor.ObjectsEnumerator JustSelectedEntities, ref Inventor.ObjectCollection MoreSelectedEntities, Inventor.SelectionDeviceEnum SelectionDevice, Inventor.Point ModelPosition, Inventor.Point2d ViewPosition, Inventor.View View) { if (View.Parent != null) { Inventor.Document Document = (Inventor.Document)View.Parent; if (Document.DocumentType == Inventor.DocumentTypeEnum.kAssemblyDocumentObject) { Inventor.AssemblyDocument AssemblyDocument = (Inventor.AssemblyDocument)Document; OnSelectionChange(ref AssemblyDocument, ref MoreSelectedEntities); } else { Inventor.AssemblyDocument AssemblyDocument = null; JustSelectedEntities = null; OnSelectionChange(ref AssemblyDocument, ref MoreSelectedEntities); } } }
private void UserInputEvents_OnPreSelect(ref object PreSelectEntity, out bool DoHighlight, ref Inventor.ObjectCollection MorePreSelectEntities, Inventor.SelectionDeviceEnum SelectionDevice, Inventor.Point ModelPosition, Inventor.Point2d ViewPosition, Inventor.View View) { DoHighlight = true; //roll over // MessageBox.Show("On PreSelect"); }
private void UserInputEvents_OnDoubleClick(Inventor.ObjectsEnumerator SelectedEntities, Inventor.SelectionDeviceEnum SelectionDevice, Inventor.MouseButtonEnum Button, Inventor.ShiftStateEnum ShiftKeys, Inventor.Point ModelPosition, Inventor.Point2d ViewPosition, Inventor.View View, Inventor.NameValueMap AdditionalInfo, out Inventor.HandlingCodeEnum HandlingCode) { HandlingCode = Inventor.HandlingCodeEnum.kEventHandled; //MessageBox.Show("On Double Click"); }
private void UserInputEvents_OnUnSelect(Inventor.ObjectsEnumerator UnSelectedEntities, Inventor.SelectionDeviceEnum SelectionDevice, Inventor.Point ModelPosition, Inventor.Point2d ViewPosition, Inventor.View View) { // MessageBox.Show("On UnSelect"); }
private void UserInputEvents_OnSelect(Inventor.ObjectsEnumerator JustSelectedEntities, ref Inventor.ObjectCollection MoreSelectedEntities, Inventor.SelectionDeviceEnum SelectionDevice, Inventor.Point ModelPosition, Inventor.Point2d ViewPosition, Inventor.View View) { if (View.Parent != null) { Inventor.Document Document = (Inventor.Document)View.Parent; Inventor.AssemblyDocument AssemblyDocument = (Inventor.AssemblyDocument)Document; if (JustSelectedEntities.Count > 0) { for (int i = JustSelectedEntities.Count; i >= 1; i--) { GetInventorObjType(JustSelectedEntities[i]); } } } }