In SolidWorks API, there are api functions which allow users to create property manager pages, however, there is no function to get the active property manager page. And here is the hack.
Using Spy++ shows that the instance of a property page window has the caption “Dve sheet”:
In this figure, one can see that the property page has, in fact the class “AfxWnd100u”, and the page contains three parts:
- The Title/Caption, which is in fact a button, whose name is “Ellipse”;
- A button, captioned “ ” , which is the tick;
- And the rest is in fact is a dialog, which contains all the group boxes and the detailed controls.
It should be noted that it is possible that there exists multiple “Dve sheet” (i.e. the page) in the workbench, as shown in the figures above and below, another page whose title is “Properties” is also there. If you perform other operations, such as “Extrude” in the figure below, another “Dve sheet” will be shown in Spy++:
Once you dismissed the “Extrude” page, you will see that there is no longer such a page “Extrude” in Spy++.
To be continued…