Method for constructing standard wiring data module for aviation electrical components

Through the method of dynamic circuit diagram drawing and wiring data module generation, the problem that traditional static circuit diagram cannot provide real-time interaction is solved, the generation of standard wiring data modules for avionics components is realized, the operation efficiency and accuracy are improved, and more comprehensive electronic technical manual functions are provided.

CN117786905BActive Publication Date: 2025-04-18CHINA AERO POLYTECH ESTAB
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311795252.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-25
Publication Date
2025-04-18
Estimated Expiration
2043-12-25

AI Technical Summary

Technical Problem

Traditional circuit diagrams and wiring data are usually presented in static images in electronic technical manuals, and cannot provide real-time interaction and dynamic effects, resulting in insufficient user operation efficiency and accuracy.

Method used

Through the method of dynamic circuit diagram drawing and wiring data module generation, conversion rules are formulated for standard wiring data of avionics components, interactive function SVG diagrams are generated, and information interaction between different data modules is realized in XML form.

Benefits of technology

It realizes more intuitive and interactive circuit diagram display and operation, improves the efficiency and accuracy of aviation data processing, and provides more comprehensive electronic technical manual functions, such as fault diagnosis, maintenance guidance, etc.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117786905B_ABST
    Figure CN117786905B_ABST
Patent Text Reader

Abstract

The present invention relates to a method for constructing a standard wiring data module for aviation electrical components, which includes: S1, obtaining a standard circuit diagram and wiring data of aviation electrical components, and performing data analysis; S2, drawing the standard wiring data of aviation electrical components according to a dynamic circuit diagram, and generating an interactive function SVG diagram; S3, formulating conversion rules for aviation electrical components, and generating a standard wiring data module for aviation electrical components. The present invention is based on the standard wiring data of aviation electrical components, draws a dynamic circuit diagram, formulates conversion rules, and realizes the generation of a standard wiring data module for aviation electrical components; it can realize a more interactive circuit diagram display and operation, and improve data processing efficiency and accuracy; at the same time, the module generated by this method can also provide a more comprehensive electronic technical manual function, such as fault diagnosis, maintenance guidance, etc., and realizes the interaction of information between different data modules in the form of XML.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of aviation data processing, and in particular relates to a method for constructing a standard wiring data module for aviation electrical components. Background Art

[0002] Traditional circuit diagrams and wiring data are usually presented in the form of static images in electronic technical manuals, which cannot provide real-time interaction and dynamic effects. The standards for aviation electrical components are technical publication specifications widely used internationally, aiming to provide interactive electronic technical manuals to improve user operation efficiency and accuracy.

[0003] Based on the standards of aviation electrical components, this method provides a method for drawing dynamic circuit diagrams and generating wiring data modules. This method can achieve more intuitive and interactive circuit diagram display and operation, and improve the efficiency and accuracy of aviation data processing. At the same time, this method can also be integrated with other modules to provide more comprehensive electronic technical manual functions, such as fault diagnosis, maintenance guidance, etc. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present invention provides a method for constructing a standard wiring data module for aviation electrical components. For the standard wiring data of aviation electrical components, dynamic circuit diagram drawing is performed and conversion rules are formulated to achieve the generation of standard wiring data modules for aviation electrical components. This method can achieve more intuitive and interactive circuit diagram display and operation, improve the efficiency and accuracy of aviation data processing, and realize the interaction of information between different data modules in the form of XML.

[0005] To achieve the above object, the present invention discloses the following technical solution:

[0006] A method for constructing a standard wiring data module for aviation electrical components, comprising:

[0007] S1: Obtain standard circuit diagrams and wiring data of aviation electrical components and perform data analysis;

[0008] Obtain the standard circuit diagram and wiring data of aviation electrical components, convert them into the data object model input by the dynamic circuit diagram designer, and generate the standard data model of aviation electrical components; perform data analysis on the standard wire data and standard electrical equipment of aviation electrical components, specifically:

[0009]

[0010] Among them, wireGroup is the standard wire data of aviation electrical components; wireNumber is the equipment code of standard wire data; fromEquip is the input end equipment of standard wire data; toEquip is the output end equipment of standard wire data; electricalEquipGroup is the standard electrical equipment of aviation electrical components; partNumber is the equipment code of standard electrical equipment; equipName is the equipment name of standard electrical equipment; reqQuantity is the equipment quality of standard electrical equipment;

[0011] S2: Draw the standard wiring data of aviation electrical components according to the dynamic circuit diagram and generate an interactive function SVG diagram;

[0012] S21: Acquire the standard data model of the aviation electrical component obtained in step S1; read the standard circuit diagram designer of the aviation electrical component and initialize it;

[0013] S22: Use SVG technology to draw standard wiring data of aviation electrical components and generate a circuit diagram; first, create a standard circuit diagram graphics engine for aviation electrical components and perform initialization settings, and set the SVG drawing output object; then, the graphics engine draws each element in the circuit diagram according to the model data requirements based on the position coordinates, width and height of each element object in the standard circuit diagram data model of aviation electrical components; the SVG drawing output object of the aviation electrical component is obtained as follows:

[0014] Rect={x, y, width, height};

[0015] Among them, Rect is the SVG drawing output object; x is the horizontal coordinate of the SVG drawing output object; y is the vertical coordinate of the SVG drawing output object; width is the width of the SVG drawing output object; height is the height of the SVG drawing output object;

[0016] S23: Generate an interactive function SVG diagram of standard wiring data of aviation electrical components; first, convert each element in the standard wiring diagram data model of aviation electrical components into SVG format; generate it into an SVG graphic object according to the SVG format, and generate a highlight SVG element effect according to the object information of each element in the standard wiring diagram data model of aviation electrical components;

[0017] S3: Formulate conversion rules for aviation electrical components and generate standard wiring data modules for aviation electrical components;

[0018] Obtain the interactive function SVG diagram of the standard wiring class data of the aviation electrical components in step S2, convert the wrngdata type data service, load the standard wrngdata data module Schema structure of the aviation electrical components, convert the wrngdata data module, and generate the wrngdata data module; formulate the conversion rules of the aviation electrical components; after the conversion is completed, save the data as an XML file to obtain the standard wiring class data module of the aviation electrical components.

[0019] Preferably, the standard circuit diagram and wiring data of the aviation electrical components in step S1 specifically include the structure, elements, attributes and pictures of the circuit diagram, text content, and the standard wrngdata data module of the aviation electrical components.

[0020] Preferably, the data object model converted into the input of the dynamic circuit diagram designer in step S1 to generate the standard data model of the aviation electrical components specifically includes the following steps:

[0021] S11: Read the wires, harnesses, electrical equipment and standard equipment elements in the wiring data module of aviation electrical components; read the basic electrical properties of each element; read the equipment information associated with both ends of the wire;

[0022] S12: According to the wire connection relationship between the devices, the mapping relationship between the devices and the devices, and between the devices and the wires is determined, and a correlation logic diagram of each device and wire in the circuit diagram is generated;

[0023] S13: According to the generated device and wire association logic diagram, the layout is calculated by the number of device elements to obtain the canvas size, number of rows, and number of columns required for the entire circuit diagram, generate a coordinate model, arrange the devices at both ends of the same wire in adjacent positions, and generate the position layout information of each device one by one;

[0024] S14: Based on the circuit diagram-related electrical data, logic-related data, and wiring layout data generated in steps S11 to S13, create a circuit diagram context, canvas object, coordinate object, and element list to generate a standard data model for aviation electrical components.

[0025] Preferably, the standard data model of the aviation electrical component in step S1 is composed of the wiring data module and circuit diagram design data of the aviation electrical component, specifically:

[0026] The data model of the wiring data of the aviation electrical components includes: equipment, plugs, wire electrical equipment data, and a wiring diagram object model;

[0027] The circuit diagram design data needs to first create a data model parsing engine, and the data engine is responsible for converting the data into a circuit diagram data model.

[0028] Preferably, the step S23 generates a highlight SVG element effect, specifically:

[0029] Generate corresponding JS script content for the SVG element diagram, and implement functions including finding SVG elements according to addresses, selecting a group of SVG elements, highlighting elements, and clearing highlighted content in the JS script; insert the generated SVG element diagram and JS script into the HTML document at the same time, and access the elements in SVG through JS script methods in the HTML document to implement the function of highlighting specified components.

[0030] Preferably, the conversion rules for the aviation electrical components in step S3 include: conversion rules for wire data, conversion rules for device data, conversion rules for connector data and conversion rules for accessory information;

[0031] The conversion rule of the wire data is as follows: one wire data generates one wire node, the devices connected at both ends of the wire are converted to wireConnection elements, fromEquip and toEquip correspond to the information of the two devices respectively; the equipment code is generated to wireNumber under wireIdent, and the color, material and length of the wire are generated to the wireInfo node;

[0032] The conversion rule of the equipment data is as follows: one piece of equipment data generates one electrical equipment node; under the electricalEquip node, the equipment code is generated as partNumber, the equipment name is generated as equipName, the equipment quantity is generated as reqQuantity, and the connector and terminal information on the equipment is generated as installationInfo;

[0033] The connector data conversion rule includes plug data and socket data, specifically: one plug and socket data generates a standard device node; under the connector node, the device code is generated as partNumber, the accessory information of the connector connection is generated under connectorAccessories, and the copper axis cable information is generated to contactDescrGroup;

[0034] The accessory information conversion rule needs to generate the accessory information into accessoryGroup, the sleeve information into solderSleeveGroup, and the catheter information into conduitGroup.

[0035] Compared with the prior art, the present invention has the following beneficial effects:

[0036] (1) The present invention is based on the standard wiring data of aviation electrical components, draws a dynamic circuit diagram, formulates conversion rules, and finally realizes the generation of the standard wiring data module of aviation electrical components;

[0037] (2) The standard wiring data module of aviation electrical components generated by the present invention can realize more intuitive and interactive circuit diagram display and operation, and improve the efficiency and accuracy of aviation data processing and handling;

[0038] (3) The standard wiring data module of aviation electrical components generated by the present invention can also provide more comprehensive electronic technical manual functions, such as fault diagnosis, maintenance guidance, etc., and realize the information interaction between different data modules in the form of XML, further improving the efficiency and accuracy of data analysis and fault data targeting. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A flowchart of a method for constructing a standard wiring class data module for aviation electrical components of the present invention;

[0040] Figure 2 A flow chart of a circuit diagram model for generating the present invention;

[0041] Figure 3 A flow chart drawn for the dynamic circuit diagram of the present invention;

[0042] Figure 4 A flowchart of specific steps for setting an SVG drawing output object according to an embodiment of the present invention;

[0043] Figure 5 It is a structural composition diagram of the device and plug data model of the embodiment of the present invention;

[0044] Figure 6 A structural diagram of a wire data model according to an embodiment of the present invention;

[0045] Figure 7 A flow chart of generating an interactive function SVG diagram of the present invention;

[0046] Figure 8 A flow chart generated for the wiring data module of the present invention;

[0047] Fig. 9 This is a flow chart of the method for generating and managing standard wiring data modules for aviation electrical components of the present invention. DETAILED DESCRIPTION

[0048] The exemplary embodiments, features and aspects of the present invention will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0049] The embodiment of the present invention provides a method for constructing a standard wiring data module for aviation electrical components, such as Figure 1 As shown, the standard circuit diagram and wiring data of aviation electrical components are obtained, data parsing is performed, the standard wiring data of aviation electrical components are drawn in a dynamic circuit diagram, an interactive function SVG diagram is generated, conversion rules are formulated, and a standard wiring data module of aviation electrical components is generated; wherein SVG is an open standard based on XML (Extensible Markup Language), which uses text to describe graphics instead of using pixels like bitmap images (such as JPEG or PNG). Due to the use of vector graphics description, SVG graphics can be scaled and resized losslessly without losing clarity and quality.

[0050] The method for constructing a standard wiring data module for aviation electrical components of the present invention specifically includes:

[0051] Step S1: Obtain standard circuit diagrams and wiring data of aviation electrical components and perform data analysis;

[0052] like Figure 2 The flowchart of the circuit diagram model generation of the present invention is shown, and the standard circuit diagram and wiring data of aviation electrical components are obtained. The standard circuit diagram and wiring data of aviation electrical components specifically include the structure, elements, attributes and pictures of the circuit diagram, text content, and the standard wrngdata data module of aviation electrical components.

[0053] Converting the data object model input into the dynamic circuit diagram designer to generate the standard data model of aviation electrical components includes the following steps:

[0054] Step S11: read the wire, harness, electrical equipment and standard equipment elements in the wiring data module of the aviation electrical component; read the basic electrical properties of each element; read the equipment information associated with both ends of the wire;

[0055] Step S12: According to the wire connection relationship between the devices, the mapping relationship between the devices and the devices and the wires is determined, and a correlation logic diagram of each device and wire in the circuit diagram is generated;

[0056] Step S13: According to the generated device and wire association logic diagram, the layout is calculated by the number of device elements to obtain the canvas size, number of rows and number of columns required for the entire circuit diagram, generate a coordinate model, arrange the devices at both ends of the same wire in adjacent positions, and generate the position layout information of each device one by one;

[0057] Step S14: Based on the circuit diagram related electrical data, logic association data, and wiring layout data generated in steps S11 to S13, create a circuit diagram context, canvas object, coordinate object, and element list to generate a standard data model for aviation electrical components.

[0058] The standard data model of aviation electrical components consists of wiring data modules and circuit diagram design data of aviation electrical components, specifically:

[0059] The data model of the wiring data of aviation electrical components includes: equipment, plugs, wires and electrical equipment data, and generates a circuit diagram object model.

[0060] The circuit diagram design data requires the creation of a data model parsing engine first. The data engine is responsible for converting the data into a circuit diagram data model.

[0061] Data analysis is performed on standard wire data and standard electrical equipment for aviation electrical components, specifically:

[0062]

[0063] Among them, wireGroup is the standard wire data of aviation electrical components; wireNumber is the equipment code of standard wire data; fromEquip is the input end equipment of standard wire data; toEquip is the output end equipment of standard wire data; electricalEquipGroup is the standard electrical equipment of aviation electrical components; partNumber is the equipment code of standard electrical equipment; equipName is the equipment name of standard electrical equipment; reqQuantity is the equipment quality of standard electrical equipment;

[0064] The embodiment of the present invention loads the content of the wiring data module through XML technology, reads the elements such as wire wireGroup, harness harnessGroup, electrical equipment electricalEquipGroup and standard equipment standardPartGroup in the standard wiring data module of aviation electrical components; reads the basic electrical attributes of each element including name, equipment number, wire size, wire color, etc.; reads the equipment information associated with both ends of the wire.

[0065] Conversion rules: wireGroup / wire is converted to wire, and the devices connected at both ends of the wire correspond to the lower-level elements fromEquip and toEquip respectively, and the equipment code is wireNumber, etc. Convert electricalEquipGroup / electricalEquip to equipment, the equipment code is partNumber, the equipment name is equipName, the equipment quantity is reqQuantity, and the connector and terminal information on the equipment is obtained from installationInfo. Convert standardPartGroup / connectorGroup / connector to plugs and sockets, the equipment code corresponds to the lower-level partNumber node, the accessory information of the connector connection corresponds to the lower-level connectorAccessories / partNumber node, and other information is obtained from the contactDescrGroup / contactDescr node. Convert accessoryGroup / accessory to post-accessory information, convert solderSleeveGroup / solderSleeve to sleeve information, and convert conduitGroup / conduit to conduit information.

[0066] Step S2: Draw standard wiring data of aviation electrical components according to the dynamic circuit diagram to generate an interactive function SVG diagram;

[0067] like Figure 3 The flowchart of the dynamic circuit diagram drawing of the present invention is shown, and the function of drawing the standard wiring data of aviation electrical components with the dynamic circuit diagram is mainly realized through steps S21 and S22 in the embodiment.

[0068] Step S21: Acquire the standard data model of the aviation electrical component obtained in step S1; read the standard circuit diagram designer of the aviation electrical component and initialize it;

[0069] Step S22: Use SVG technology to draw standard wiring data of aviation electrical components and generate a circuit diagram; first, create a standard circuit diagram graphics engine for aviation electrical components and initialize it, set the SVG drawing output object, such as Figure 4 The specific steps of setting the SVG drawing output object according to the embodiment of the present invention are as follows:

[0070] Step S221: reading each object data model in the circuit diagram, and traversing each object model;

[0071] Step S222: Each device, plug, and wire is generated in the SVG diagram <g>Elements such as Figure 5 The structure diagram of the device and plug data model of the embodiment of the present invention is shown; it is a data model of a device / plug. After decomposition, the device / plug data model can be divided into <partno> 、 <rect> 、 <style>和<Children>等四部分子元素;

[0072] 步骤S223:根据对象模型中的<Rect>,生成<g>元素中的x、y、width、height;

[0073] 步骤S224:根据零件号<PartNo>生成SVG图中的标题<text>;

[0074] 步骤S225:使用<path>绘制设备矩形4条边,线条的颜色、线类型根据<style>中的<LineColor>、<LineStyle>生成;

[0075] 步骤S226:根据导线中的<Points>点集合,使用<path>将所有点按先后顺序连接起来,绘制导线形状,导线的颜色、线类型根据<style>中的<LineColor>、<LineStyle>生成,如图6所示为本发明实施例导线数据模型的结构组成图为导线数据模型(即WireDto),经过分解,将导线数据模型分为<PartNo>、<style>、<Points>、<SourceID>和<TargetID>等四部分子元素;

[0076] 步骤S227:根据<Children>下的<Pin>,生成设备、插头上的连接点。根据<Pin>上的<Rect>位置信息生成SVG中的<ellipse>小圆圈;

[0077] 然后,图形引擎根据航空电气元件的标准线路图数据模型中各元素对象的位置坐标、宽度和高度,将线路图中的各元素按模型数据要求进行绘制;获得航空电气元件的SVG绘制输出对象为:

[0078] Rect={x,y,width,height};

[0079] 其中,Rect为SVG绘制输出对象;x为SVG绘制输出对象横坐标;y为SVG绘制输出对象纵坐标;width为SVG绘制输出对象宽度;height为SVG绘制输出对象高度。

[0080] 步骤S23:生成航空电气元件的标准布线类数据的交互功能SVG图;

[0081] 如图7所示为本发明的生成交互功能SVG图的流程图,首先,将航空电气元件的标准线路图数据模型中各元素转换成SVG格式;按SVG格式生成到SVG图形对象中,根据航空电气元件的标准线路图数据模型中各元素的对象信息,生成具备高亮SVG元素效果,具体为:

[0082] 针对SVG元素图生成相应JS脚本内容,在JS脚本中实现包括根据地址找SVG元素、选择一组SVG元素、元素高亮显示、清除高亮显示内容功能;将生成的SVG元素图、JS脚本同时插入到HTML文档中,在HTML文档中通过JS脚本方法访问到SVG中的元素,实现高亮指定组件的功能。

[0083] 步骤S3:制定航空电气元件的转换规则,生成航空电气元件的标准布线类数据模块;

[0084] 如图8所示为本发明的布线类数据模块生成的流程图,获取步骤S2中的航空电气元件的标准布线类数据的交互功能SVG图,转换wrngdata类型数据服务,加载航空电气元件的标准wrngdata数据模块Schema结构,转换wrngdata数据模块,生成wrngdata数据模块;

[0085] 制定航空电气元件的转换规则包括:

[0086] 导线数据的转换规则为:一条导线数据生成一个导线节点,导线两端连接的设备转为wireConnection元素,fromEquip、toEquip分别对应两个设备的信息;设备编码生成到wireIdent下wireNumber,导线的颜色、材料、长度生成到wireInfo节点。

[0087] 设备数据的转换规则为:一条设备数据生成一个电气设备节点;在electricalEquip节点下,设备编码生成为partNumber,设备名称生成equipName,设备数量生成reqQuantity,设备上的连接器、端子信息生成到installationInfo。

[0088] 连接器数据转换规则包括插头数据、插座数据具体为:一条插头、插座数据生成一个标准设备节点;在connector节点下,设备编码生成为partNumber,连接器连接的附件信息生成到connectorAccessories下,铜轴电缆信息生成到contactDescrGroup。

[0089] 附件信息转换规则需将附件信息生成到accessoryGroup,套管信息生成到solderSleeveGroup,导管信息生成到conduitGroup。

[0090] 转换完成后,数据保存为XML文件,得到航空电气元件的标准布线类数据模块。

[0091] 如图9所示为本发明的航空电气元件的标准布线类数据模块生成和管理方法流程图,首先需要准备相关的线路图和布线类数据,包括线路图的结构、元素和属性等。这些数据为图片、文字内容或航空电气元件的标准wrngdata数据模块;进行航空电气元件的布线类数据解析,对线路图和布线类数据进行解析和处理。解析工具根据航空电气元件的标准规范,将线路图和布线类数据转换为可读取和处理的格式,如XML;进行动态线路图绘制,绘图工具根据线路图的结构和元素,自动绘制线路图的各个部分;存储数据将解析后的线路图和布线类数据存储到数据库中,以便后续的查询和检索,使用关系型数据库或非关系型数据库,根据实际需求选择合适的存储方式;然后生成交互功能SVG图,在绘制的动态线路图和生成的布线类数据模块中,添加交互功能,使用户进行操作和查询。例如,用户点击线路图中的元素,查看其详细信息或执行相关操作。使用JavaScript等前端技术,实现交互功能的添加;最后生成布线类数据模块,根据解析后的布线类数据,生成相应的布线类数据模块;布线类数据模块包括线路图的布线信息、连接关系、设备位置等。使用合适的模板和工具,将布线类数据转换为符合航空电气元件的标准模块格式。进行用户界面设计,将绘制的动态线路图和生成的布线类数据模块嵌入到用户界面中,提供友好的操作和浏览体验。用户界面包括线路图的缩放、平移、搜索等功能,以及与其他模块的集成,如故障诊断、维修指导等。

[0092] 本发明提供了一种用于航空电气元件的标准布线类数据模块构建方法,针对航空电气元件的标准布线类数据为基础,通过动态线路图绘制,制定转换规则,最终实现了航空电气元件的标准布线类数据模块的生成;本发明生成的航空电气元件的标准布线类数据模块实例能够实现更加直观、交互性更强的线路图展示和操作,提高用户的工作效率和准确性;本发明生成的航空电气元件的标准布线类数据模块还能够提供更全面的电子技术手册功能,如故障诊断、维修指导等,通过XML的形式实现不同数据模块间信息的交互,进一步调高航空电气元件数据分析和故障数据针对的效率和准确度。

[0093] 以上所述的实施例仅是对本发明的优选实施方式进行描述,并非对本发明的范围进行限定,在不脱离本发明设计精神的前提下,本领域普通技术人员对本发明的技术方案做出的各种变形和改进,均应落入本发明权利要求书确定的保护范围内。< / style> < / rect> < / partno> < / g>

Claims

1. A method for constructing a standard wiring data module for aviation electrical components, characterized in that: It includes: S1: Obtain standard circuit diagrams and wiring data of aviation electrical components and perform data analysis; Obtain the standard circuit diagram and wiring data of aviation electrical components, convert them into the data object model input by the dynamic circuit diagram designer, and generate the standard data model of aviation electrical components; perform data analysis on the standard wire data and standard electrical equipment of aviation electrical components, specifically: Among them, wireGroup is the standard wire data of aviation electrical components; wireNumber is the equipment code of standard wire data; fromEquip is the input end equipment of standard wire data; toEquip is the output end equipment of standard wire data; electricalEquipGroup is the standard electrical equipment of aviation electrical components; partNumber is the equipment code of standard electrical equipment; equipName is the equipment name of standard electrical equipment; reqQuantity is the equipment quality of standard electrical equipment; S2: Draw the standard wiring data of aviation electrical components according to the dynamic circuit diagram and generate an interactive function SVG diagram; S21: Reading a standard circuit diagram designer of the aviation electrical component according to the standard data model of the aviation electrical component obtained in step S1 and initializing it; S22: Use SVG to draw the standard wiring data of aviation electrical components and generate a circuit diagram; first, create a standard circuit diagram graphics engine for aviation electrical components and perform initialization settings, and set the SVG drawing output object; then, the graphics engine draws each element in the circuit diagram according to the model data requirements based on the position coordinates, width and height of each element object in the standard circuit diagram data model of aviation electrical components; the SVG drawing output object of the aviation electrical component is obtained as follows: Rect={x, y, width, height}; Among them, Rect is the SVG drawing output object; x is the horizontal coordinate of the SVG drawing output object; y is the vertical coordinate of the SVG drawing output object; width is the width of the SVG drawing output object; height is the height of the SVG drawing output object; S23: Generate an interactive function SVG diagram of standard wiring data of aviation electrical components; first, convert each element in the standard wiring diagram data model of aviation electrical components into SVG format; generate it into an SVG graphic object according to the SVG format, and generate an SVG element with highlighting according to the object information of each element in the standard wiring diagram data model of aviation electrical components; S3: Formulate conversion rules for aviation electrical components and generate standard wiring data modules for aviation electrical components; Obtain the interactive function SVG diagram of the standard wiring class data of the aviation electrical component in step S2, convert the wrngdata type data service, load the standard wrngdata data module Schema structure of the aviation electrical component, convert the wrngdata data module, and generate the wrngdata data module; formulate the conversion rules of the aviation electrical component; after the conversion is completed, save the data as an XML file to obtain the standard wiring class data module of the aviation electrical component; Formulate conversion rules for aviation electrical components, including: conversion rules for wire data, conversion rules for equipment data, conversion rules for connector data, and conversion rules for accessory information; The conversion rule of the wire data is as follows: one wire data generates one wire node, the devices connected at both ends of the wire are converted to wireConnection elements, fromEquip and toEquip correspond to the information of the two devices respectively; the equipment code is generated to wireNumber under wireIdent, and the color, material and length of the wire are generated to the wireInfo node; The conversion rule of the equipment data is as follows: one piece of equipment data generates one electrical equipment node; under the electricalEquip node, the equipment code is generated as partNumber, the equipment name is generated as equipName, the equipment quantity is generated as reqQuantity, and the connector and terminal information on the equipment is generated as installationInfo; The connector data conversion rule includes plug data and socket data, specifically: one plug and socket data generates a standard device node; under the connector node, the device code is generated as partNumber, the accessory information of the connector connection is generated under connectorAccessories, and the copper axis cable information is generated to contactDescrGroup; The accessory information conversion rule needs to generate the accessory information into accessoryGroup, the sleeve information into solderSleeveGroup, and the catheter information into conduitGroup.

2. The method for constructing a standard wiring data module for aviation electrical components according to claim 1, characterized in that: The standard circuit diagram and wiring data of the aviation electrical components in step S1 specifically include the structure, elements, attributes and pictures of the circuit diagram, text content and the standard wrngdata data module of the aviation electrical components.

3. The method for constructing a standard wiring data module for aviation electrical components according to claim 1, characterized in that: The data object model converted into the input of the dynamic circuit diagram designer in step S1 generates a standard data model of aviation electrical components, which specifically includes the following steps: S11: Read the wires, harnesses, electrical equipment and standard equipment elements in the wiring data module of the aviation electrical components; read the basic electrical properties of each element and read the equipment information associated with both ends of the wire; S12: According to the wire connection relationship between the devices, the mapping relationship between the devices and the devices and the wires is determined, and a correlation logic diagram of each device and the wire in the circuit diagram is generated; S13: According to the generated device and wire association logic diagram, the layout is calculated by the number of device elements to obtain the canvas size, number of rows and number of columns required for the entire circuit diagram, generate a coordinate model, arrange the devices at both ends of the same wire in adjacent positions, and generate the position layout information of each device one by one; S14: Based on the circuit diagram related electrical data, logic association data, and wiring layout data generated in steps S11 to S13, create a circuit diagram context, canvas object, coordinate object, and element list to generate a standard data model for aviation electrical components.

4. The method for constructing a standard wiring data module for aviation electrical components according to claim 1, characterized in that: The standard data model of the aviation electrical component in step S1 is composed of the wiring data module and circuit diagram design data of the aviation electrical component, specifically: The data model of the wiring data of the aviation electrical components includes: equipment, plug and wire electrical equipment data, generating a wiring diagram object model; The circuit diagram design data needs to first create a data model parsing engine, and the data engine is responsible for converting the data into a circuit diagram data model.

5. The method for constructing a standard wiring data module for aviation electrical components according to claim 1, characterized in that: In step S23, a highlighted SVG element is generated, specifically: Generate corresponding JS script content for the SVG element diagram, and implement functions including finding SVG elements according to addresses, selecting a group of SVG elements, highlighting elements, and clearing highlighted content in the JS script; insert the generated SVG element diagram and JS script into the HTML document at the same time, and access the elements in SVG through JS script methods in the HTML document to implement the function of highlighting specified components.

Citation Information

Patent Citations

  • Two-dimensional electronic technical drawing format conversion and vectorization interaction system

    CN109636887A

  • SVG label type description method of electrical circuit diagram

    CN115146424A