/// <inheritdoc /> /// <summary> /// Called when the addin is first loaded by Solid Edge. /// </summary> public override void OnConnection(Application application, SeConnectMode connectMode, SolidEdgeFramework.AddIn addInInstance) { Log.Info("Item Catalog: OnConnection"); // If you makes changes to your ribbon, be sure to increment the GuiVersion or your ribbon // will not initialize properly. AddInEx.GuiVersion = 1; }
/// <summary> /// Called when the addin is first loaded by Solid Edge. /// </summary> public override void OnConnection(SolidEdgeFramework.Application application, SolidEdgeFramework.SeConnectMode ConnectMode, SolidEdgeFramework.AddIn AddInInstance) { _application = application; // If you makes changes to your ribbon, be sure to increment the GuiVersion or your ribbon // will not initialize properly. AddInEx.GuiVersion = 1; //krkmfkrnkj // Create an instance of the default connection point controller. It helps manage connections to COM events. _connectionPointController = new SolidEdgeCommunity.ConnectionPointController(this); // Uncomment the following line to attach to the Solid Edge Application Events. _connectionPointController.AdviseSink <SolidEdgeFramework.ISEApplicationEvents>(this.Application); // Not necessary unless you absolutely need to see low level windows messages. // Uncomment the following line to attach to the Solid Edge Application Window Events. //_connectionPointController.AdviseSink<SolidEdgeFramework.ISEApplicationWindowEvents>(this.Application); // Uncomment the following line to attach to the Solid Edge Feature Library Events. _connectionPointController.AdviseSink <SolidEdgeFramework.ISEFeatureLibraryEvents>(this.Application); // Uncomment the following line to attach to the Solid Edge File UI Events. //_connectionPointController.AdviseSink<SolidEdgeFramework.ISEFileUIEvents>(this.Application); // Uncomment the following line to attach to the Solid Edge File New UI Events. //_connectionPointController.AdviseSink<SolidEdgeFramework.ISENewFileUIEvents>(this.Application); // Uncomment the following line to attach to the Solid Edge EC Events. //_connectionPointController.AdviseSink<SolidEdgeFramework.ISEECEvents>(this.Application); // Uncomment the following line to attach to the Solid Edge Shortcut Menu Events. //_connectionPointController.AdviseSink<SolidEdgeFramework.ISEShortCutMenuEvents>(this.Application); }