Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
905 Views, 10 Replies

access iproperties of "justSelectedEntities"

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 Sub

could somebody please help me out on this?

 

Thanks best regards