Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
marcin_otręba
in reply to: Anonymous

Try:

dim occ as ComponentOccurrence

 

 If TypeOf JustSelectedEntities.Item(1) Is ComponentOccurrence Then

set occ = JustSelectedEntities.Item(1)

end if

 

oForm.TextBox2.Text= occ.name

 

or

 

oForm.TextBox2.Text= occ.definition.document.propertysets.item(3).item("Part Number").value