Hello,
Inthe SolidWorks 2007 API documentation, the following displayswhenlooking for information regardingswFMViewNotify_e...
swFMViewNotify_e
To receive notifications, aDLLapplication must register for the notifications by objecttype.This registration must be done for each instance of aparticularobject.
For example, in the file intheVisual C6.0wizard-generated add-inthatsupports FeatureManager design tree events (e.g.,FeatMgrView.h),include:
DECLARE_REGISTRY_RESOURCEID(IDR_FeatMgrView)
BEGIN_SINK_MAP(CFeatMgrView)
SINK_ENTRY_EX(ID_FEATMGRVIEW_EVENTS,DIID_DFeatMgrViewEvents,swFMViewDestroyNotify ,DestroyNotify)
SINK_ENTRY_EX(ID_FEATMGRVIEW_EVENTS,DIID_DFeatMgrViewEvents,swFMViewActivateNotify,ActivateNotify)
SINK_ENTRY_EX(ID_FEATMGRVIEW_EVENTS,DIID_DFeatMgrViewEvents,swFMViewDeactivateNotify ,DeActivateNotify)
END_SINK_MAP()
If developing a C application,usethese enumerators torogram%20FilesSolidWorks%202007apisldworksapi.chm::/Notifications/Events.htm">registerfor notifications for theserogram%20FilesSolidWorks%202007apisldworksapi.chm::/FeatMgrView/FeatMgrView.htm">FeatMgrViewevents:
swFMViewActivateNotify -rogram%20FilesSolidWorks%202007apisldworksapi.chm::/FeatMgrViewEvents/FeatMgrViewEvents__ActivateNotify.htm">ActivateNotify
swFMViewDeactivateNotify -rogram%20FilesSolidWorks%202007apisldworksapi.chm::/FeatMgrViewEvents/FeatMgrViewEvents__DeactivateNotify.htm">DeactivateNotify
swFMViewDestroyNotify -rogram%20FilesSolidWorks%202007apisldworksapi.chm::/FeatMgrViewEvents/FeatMgrViewEvents__DestroyNotify.htm">DestroyNotify
Icannotfind any reference to Feature Manager events in the SW2007Wizard.There is also not any information on the website regardingthis.Does anyone out there have what I would assume would betheFeatMgr.Cpp and FeatMgr.H source files which the Wizardwouldhave generated?
Thanksinadvance,
PeteRimkus,CNC Software, Inc.
SolidworksApi macros