//internal API internal override NodeDesign Export(List <string> path, Action <InstanceDesign, List <string> > createInstanceType) { DataTypeDesign _new = new DataTypeDesign() { Fields = m_DataTypeDefinitionFactoryBase.Export().ToArray <Parameter>(), Encodings = null, //Not supported NoArraysAllowed = false, //Not supported NotInAddressSpace = false //Not supported }; base.Update(_new, path, createInstanceType); return(_new); }
private void InitializeTypes() { try { AssemblyTraceEvent.Tracer.TraceEvent(System.Diagnostics.TraceEventType.Verbose, 37, "Loading the OPC UA Defined Types."); UAModelDesign _modelTypes = UAResources.LoadUADefinedTypes(); if (Properties.Settings.Default.OnlyItemsInAddressSpace) { _modelTypes.Items = _modelTypes.Items.Where <UANodeDesign>((x) => { UADataTypeDesign _dt = x as UADataTypeDesign; return(_dt == null ? true : !_dt.NotInAddressSpace); }).ToArray <UANodeDesign>(); AssemblyTraceEvent.Tracer.TraceEvent(System.Diagnostics.TraceEventType.Verbose, 41, "Removed DataTypeDesign items not belonging to the model."); } AssemblyTraceEvent.Tracer.TraceEvent(System.Diagnostics.TraceEventType.Verbose, 37, "Creating the LibraryTreeNode containing standard model"); Add(new LibraryTreeNode(_modelTypes, "UA Defined Types")); } catch (Exception _ex) { string _tmp = "Cannot load Defined OPC UA Types in {0} from {1} because of error {2}"; AssemblyTraceEvent.Tracer.TraceEvent(System.Diagnostics.TraceEventType.Critical, 37, _tmp, typeof(Libraries).FullName, typeof(UAResources), _ex.Message); } }