Zeugwerk / Twinpack

Twinpack is a package manager for TwinCAT libraries with integration into the TwinCAT IDE. It enables the TwinCAT community to share their libraries and simplifies the continous integration of third-party components into TwinCAT projects.
https://twinpack.dev
GNU General Public License v3.0
51 stars 3 forks source link

fix: sysManager.LookupTreeItem is not working with the latest 4026 beta #115

Closed iadonkey closed 7 months ago

iadonkey commented 7 months ago

todo:

iadonkey commented 7 months ago

I think we should ask Beckhoff if this is intendet or not ... ITcSysManager16::LookupTreeItem behaves differently as before since the latest beta

var plc = _plc.Object as dynamic;

// Code that was working in the previous beta and TC3.1.4024.xx
// var sysManager = plc.SystemManager as ITcSysManager2;
// var libManager = sysManager.LookupTreeItem(plc.PathName + "^References") as ITcPlcLibraryManager;

// Now we have todo
var libManagerItem = plc.LookupChild("References");
var libManager = libManagerItem as ITcPlcLibraryManager;
iadonkey commented 7 months ago

already merged fix with https://github.com/Zeugwerk/Twinpack/pull/120