RSS

SolidWorks Dev: Programmatically get the active PropertyManagerPage2 instance (I)

19 Nov

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”:

image image

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++:

image image

Once you dismissed the “Extrude” page, you will see that there is no longer such a page “Extrude” in Spy++.

To be continued…

Advertisements
 
1 Comment

Posted by on November 19, 2008 in CAD, Dotnet/C#

 

One response to “SolidWorks Dev: Programmatically get the active PropertyManagerPage2 instance (I)

  1. Geocache Geocaching Geocacher

    June 15, 2012 at 12:22 am

    Loving the blog thanks for the information.

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: