Anonymous
905 Views, 10 Replies
03-20-2018
03:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
03-20-2018
03:49 AM
Hello,
I use following sub to detect that a ipt in my Iassembly has been clicked.
if thre is only one selected, i would like to print the part number in a textbox. But I am not able to figure out how to get that information form the "justselectedentities" parameter.
Private Sub m_userinputevent_OnSelect(JustSelectedEntities As ObjectsEnumerator, ByRef MoreSelectedEntities As ObjectCollection, SelectionDevice As SelectionDeviceEnum, ModelPosition As Point, ViewPosition As Point2d, View As View) Handles m_userinputevent.OnSelect
If JustSelectedEntities.Count = 1 Then
oForm.Auswahl.Visible = True
oForm.TextBox2.Text = ************** PART NUMBER HERE *************
Else
oForm.Auswahl.Visible = False
End If
End Subcould somebody please help me out on this?
Thanks best regards
Solved! Go to Solution.