Could anyone point me in the right direction? I've setup a selection box in my property manager page:
'SELECTED LINE SelectionBox ------------------------------------------------------------
ID = ID_SELLINEBOX
controlType = swControlType_Selectionbox
caption = "Select layout lines for wall insertion"
alignment = swControlAlign_Indent
options = swControlOptions_Visible + swControlOptions_Enabled
tip = "Specify the stud type"
Set swControl = m_Group1.AddControl(ID, controlType, caption, alignment, options, tip)
If Not swControl Is Nothing Then
Set m_SelLineBox = swControl
m_SelLineBox.Height = 50
m_SelLineBox.AllowSelectInMultipleBoxes = True
m_SelLineBox.SetSelectionFilters (swSelEXTSKETCHSEGS)
m_SelLineBox.Style = swPropMgrPageSelectionBoxStyle_MultipleItemSelect
End If
How do I get the selection lines out of the propertymanagerpage? I tried:
Dim sellines() As Object (or As SldWorks.SketchSegments
sellines = m_SelLineBox.GetSelectedItems
But it just stops at the "selines =" lines (no error, just stops!!). Anyone know how to get the selected lines out???
Thanks,
Doug
SolidworksApi macros