<p></p>
I have an add-in that works fine in SWX 2014. I am updating it to SWX 2017 and now I can't seem to select anything into my selection boxes. The selection box is added to the PMP and I can change focus between selection boxes. However if I try to select anything the selection box is not populated, tried preselecting as well with no luck. Any ideas?
Here is a typical way I'm adding selection boxes
<p></p>
<p>pm_Reference_Bodies = ppage.AddControl2(Selection_BodiesID, controlType, caption, alignment, options, tip)<br> If Not pm_Reference_Bodies Is Nothing Then<br> Dim filter() As Integer = New Integer() {swSelectType_e.swSelSOLIDBODIES}<br> With pm_Reference_Bodies<br> .Style = swPropMgrPageSelectionBoxStyle_e.swPropMgrPageSelectionBoxStyle_HScroll + _<br> swPropMgrPageSelectionBoxStyle_e.swPropMgrPageSelectionBoxStyle_MultipleItemSelect<br> .SingleEntityOnly = False<br> .AllowMultipleSelectOfSameEntity = True<br> .Height = 50<br> .SetSelectionFilters(filter)<br> .Mark = BoundBoxMark_e.ReferenceBodyMark<br> .SetPictureLabelByName(System.IO.Path.Combine(installDir, "Body 18x18.bmp"), System.IO.Path.Combine(installDir, "BodyMask 18x18.bmp"))<br> End With</p><p> End If</p>SolidworksApi macros