Hi everyone,
I'm developing a SolidWorks add-in using VB.NET for SolidWorks 2022. The add-in adds a custom command to the toolbar, and when the user clicks it, a PropertyManagerPage
(PMP) is displayed. The PMP includes a SelectionBox
configured to allow selection of faces and planes.
However, when the PMP is open, I’m unable to select anything in the graphics area. The viewport still responds to zoom and rotate, but no entities can be selected, either by clicking directly or by box selection.
Here’s a summary of what I’ve tried:
The PMP is created using
CreatePropertyManagerPage
with theswPropertyManagerOptions_OkayCancel
option.The
SelectionBox
is configured with filters:swSelFACES
andswSelDATUMPLANES
.The
SelectionBox
is visible and enabled.I am not storing the PMP instance in a global field (I instantiate it locally).
I'm calling
Application.DoEvents()
before showing the PMP to ensure the UI is fully initialized.The issue occurs even when launched from a clean toolbar command, not from a TaskPane.
Still, no selection is possible.
Has anyone encountered this behavior or knows what might cause it? Any suggestions or known limitations I should be aware of?
Thanks in advance for your help!