CN113468833B - Method, device, equipment and medium for marking attribute of component in schematic diagram - Google Patents

Method, device, equipment and medium for marking attribute of component in schematic diagram Download PDF

Info

Publication number
CN113468833B
CN113468833B CN202110656838.6A CN202110656838A CN113468833B CN 113468833 B CN113468833 B CN 113468833B CN 202110656838 A CN202110656838 A CN 202110656838A CN 113468833 B CN113468833 B CN 113468833B
Authority
CN
China
Prior art keywords
attribute
target
target type
type component
component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110656838.6A
Other languages
Chinese (zh)
Other versions
CN113468833A (en
Inventor
付深圳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110656838.6A priority Critical patent/CN113468833B/en
Publication of CN113468833A publication Critical patent/CN113468833A/en
Application granted granted Critical
Publication of CN113468833B publication Critical patent/CN113468833B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/31Design entry, e.g. editors specifically adapted for circuit design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/36Circuit design at the analogue level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/12Symbolic schematics
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Image Generation (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for marking component attributes in a schematic diagram. The method comprises the following steps: screening out target type components from all components contained in the schematic diagram based on the bit number attribute of the components; determining a target attribute corresponding to the target type component according to the type of the target type component, and screening out a corresponding target attribute value; grouping the bit number of the target type component and the target attribute value to obtain an attribute set corresponding to each target type component; and determining attribute coordinates with corresponding quantity according to the attribute quantity of the attribute set, and marking the bit number and the attribute value of the target type component according to the attribute coordinates by utilizing the attribute set. The device attribute marking method can realize automatic, rapid and accurate placement of the device attribute in the schematic diagram, and improves efficiency and accuracy of the device attribute marking in the schematic diagram.

Description

Method, device, equipment and medium for marking attribute of component in schematic diagram
Technical Field
The present invention relates to the field of computer aided design technology, and in particular, to a method, an apparatus, a device, and a medium for marking attributes of components in a schematic diagram.
Background
At present, various schematic design software such as Cadence which is most widely applied in the industry exists in the market, and the Cadence has powerful functions and supports various related software, provides an open secondary development interface and a more perfect development language library, and can be developed secondarily according to the needs of users. The agile language is a high-level programming language based on a C language and a LISP language and is built in Cadence software, rich interactive functions are provided for the agile language by Cadence, tools are written after the agile language is researched, and the working efficiency can be greatly improved after the tools are put into application. In the schematic diagram design process, for the intuitiveness and the aesthetic property of the design, various attributes of components need to be manually arranged to increase the aesthetic property and the readability, such as the bit numbers and the resistance values of resistors and capacitors, and some simple identification information, but through manual adjustment, the efficiency is low and the placement position is easy to be wrong.
Disclosure of Invention
In view of the above, the present invention aims to provide a method, an apparatus, a device and a medium for marking the attribute of a component in a schematic diagram, which can automatically, rapidly and accurately mark the attribute of the component in the schematic diagram. The specific scheme is as follows:
in a first aspect, the present application discloses a method for marking attributes of components in a schematic diagram, including:
screening out target type components from all components contained in the schematic diagram based on the bit number attribute of the components;
determining a target attribute corresponding to the target type component according to the type of the target type component, and screening out a corresponding target attribute value;
grouping the bit number of the target type component and the target attribute value to obtain an attribute set corresponding to each target type component;
and determining attribute coordinates with corresponding quantity according to the attribute quantity of the attribute set, and marking the bit number and the attribute value of the target type component according to the attribute coordinates by utilizing the attribute set.
Optionally, the screening, based on the bit number attribute of the component, the target type component from all components included in the schematic diagram includes:
determining a first screening field according to the bit number attribute characteristics of the target type component, and adding a number range field after the first screening field to obtain a first screening condition;
and screening the target type component from all components contained in the schematic diagram by using the first screening condition based on the bit numbers of all components.
Optionally, the determining the target attribute corresponding to the target type component according to the type of the target type component, and screening out a corresponding target attribute value includes:
determining a target attribute corresponding to the target type component according to the type of the target type component; the target attribute comprises any one or more of a capacity value, precision, wattage, withstand voltage value and packaging type;
determining a second screening field according to the attribute characteristics of the target attribute, and obtaining a second screening condition based on the second screening field;
and screening target attribute values corresponding to the target attributes from all attribute values by using the second screening conditions.
Optionally, the grouping the bit number of the target type component and the target attribute value to obtain an attribute set corresponding to each target type component includes:
and grouping the bit numbers and the target attribute values according to the parent class identifications corresponding to the bit numbers of the target type components and the parent class identifications corresponding to the target attribute values to obtain attribute sets corresponding to each target type component, wherein each group of attribute sets comprises one bit number and one or more target attribute values.
Optionally, the determining the attribute coordinates of a corresponding number according to the attribute number of the attribute set, and marking the bit number and the attribute value of the target type component according to the attribute coordinates by using the attribute set includes:
acquiring entity coordinates of the target type component;
determining attribute coordinates of corresponding quantity according to a preset coordinate calculation rule based on the entity coordinates and according to the attribute quantity of the attribute set;
and according to the attribute coordinates, moving the bit numbers and the attribute values in the attribute set to corresponding coordinate points to realize the attribute marking of the target type component.
Optionally, the determining, based on the entity coordinates and according to the attribute number of the attribute set, a corresponding number of attribute coordinates according to a preset coordinate calculation rule includes:
determining a first attribute coordinate according to the entity coordinate and a preset coordinate offset;
determining the (n+1) th attribute coordinate according to the (N) th attribute coordinate and the character length of the attribute corresponding to the (N) th attribute coordinate until determining the attribute coordinate with the same number as the attribute; wherein N is 1 or more.
In a second aspect, the present application discloses a device for marking attributes of components in a schematic diagram, including:
the component screening module is used for screening out target type components from all components contained in the schematic diagram based on the bit number attribute of the components;
the attribute screening module is used for determining the target attribute corresponding to the target type component according to the type of the target type component and screening out a corresponding target attribute value;
the grouping module is used for grouping the bit number of the target type component and the target attribute value to obtain an attribute set corresponding to each target type component;
and the attribute marking module is used for determining attribute coordinates with corresponding quantity according to the attribute quantity of the attribute set, and marking the bit number and the attribute value of the target type component according to the attribute coordinates by utilizing the attribute set.
Optionally, the attribute marking module includes:
the entity coordinate acquisition unit is used for acquiring entity coordinates of the target type component;
the attribute coordinate determining unit is used for determining attribute coordinates of corresponding quantity according to a preset coordinate calculation rule based on the entity coordinates and according to the attribute quantity of the attribute set;
and the moving unit is used for moving the attribute in the attribute set to a corresponding coordinate point according to the attribute coordinates so as to realize the attribute marking of the target type component.
In a third aspect, the present application discloses an electronic device comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the component attribute marking method in the schematic diagram.
In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program when executed by the processor implements the method for marking the attribute of the component in the schematic diagram.
In the application, the target type components are screened out from all components contained in the schematic diagram based on the bit number attribute of the components; determining a target attribute corresponding to the target type component according to the type of the target type component, and screening out a corresponding target attribute value; grouping the bit number of the target type component and the target attribute value to obtain an attribute set corresponding to each target type component; and determining attribute coordinates with corresponding quantity according to the attribute quantity of the attribute set, and marking the bit number and the attribute value of the target type component according to the attribute coordinates by utilizing the attribute set. Therefore, the attribute set of each target type component is obtained by automatically screening and grouping the target type components and the attributes thereof, then the attribute coordinates of the corresponding quantity are determined according to the attribute quantity of the attribute set, and finally the target type components are subjected to attribute marking according to the attribute coordinates based on the attributes in the attribute set, so that the automatic, rapid and accurate placement of the component attributes in the schematic diagram can be realized, and the efficiency and accuracy of the component attribute marking in the schematic diagram are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for marking the attribute of a component in a schematic diagram provided by the application;
FIG. 2 is a flowchart of a method for marking the attribute of a component in a specific schematic diagram provided in the present application;
FIG. 3 is a schematic diagram of a state of a schematic diagram after marking the attribute of a component;
FIG. 4 is a schematic diagram of states before and after marking of the attribute of the component in the schematic diagram provided in the present application;
FIG. 5 is a schematic diagram of a device for marking attribute of components in a schematic diagram according to the present application;
fig. 6 is a block diagram of an electronic device provided in the present application.
Detailed Description
In the prior art, for the intuitiveness and the aesthetic property of the design, various properties of components need to be manually arranged to increase the aesthetic property and the readability, but through manual adjustment, the efficiency is low and the placement position is easy to be wrong. In order to overcome the technical problems, the application provides the component attribute marking method in the schematic diagram, which can realize automatic, rapid and accurate arrangement of component attributes in the schematic diagram and improve the efficiency and accuracy of component attribute marking in the schematic diagram.
The embodiment of the application discloses a method for marking the attribute of a component in a schematic diagram, which is shown in fig. 1, and comprises the following steps:
step S11: and screening out the target type components from all components contained in the schematic diagram based on the bit number attribute of the components.
In this embodiment, first, based on the bit number attribute of the components, the components of the target type are selected from all the original components included in the schematic diagram, that is, the components of the target type are selected by traversing the bit numbers of all the components according to the bit number characteristics of the components of the target type.
In this embodiment, the screening, based on the bit number attribute of the component, the target type component from all components included in the schematic diagram may include: determining a first screening field according to the bit number attribute characteristics of the target type component, and adding a number range field after the first screening field to obtain a first screening condition; and screening the target type component from all components contained in the schematic diagram by using the first screening condition based on the bit numbers of all components.
It will be appreciated that, for example, taking Cadence application environment as an example, the target type component is a resistor and a capacitor, according to the bit number attribute, i.e. the location attribute, the bit number of the resistor starts with R or PR, and the capacitor starts with C or PC, so R, PR, C, PC is taken as the first screening field, and then the number range fields are added after the first screening field, where the first screening conditions obtained include location=r+ [0-9], location=pr+ [0-9], location=c+ [0-9], and location=pc+ [0-9].
Step S12: and determining the target attribute corresponding to the target type component according to the type of the target type component, and screening out a corresponding target attribute value.
In this embodiment, after the target type component is screened out, the target attribute corresponding to the target type component, that is, the parameter name related to the target type component, is determined according to the type of the target type component, and the corresponding target attribute value is screened out.
In this embodiment, determining, according to the type of the target type component, a target attribute corresponding to the target type component, and screening out a corresponding target attribute value may include: determining a target attribute corresponding to the target type component according to the type of the target type component; the target attribute comprises any one or more of a capacity value, precision, wattage, withstand voltage value and packaging type; determining a second screening field according to the attribute characteristics of the target attribute, and obtaining a second screening condition based on the second screening field; and screening target attribute values corresponding to the target attributes from all attribute values by using the second screening conditions.
It is understood that, for example, the target type component is a resistor and a capacitor, the target attribute corresponding to the resistor may include a value (value), an accuracy, a withstand voltage value (tolerance) and a package type (pack_type), and the target attribute corresponding to the capacitor may include a value (value), a wattage (wattage), a withstand voltage value and a package type, so when the target type component is a resistor and a capacitor, it is determined that the target attribute corresponding to the target type component includes a value of the capacitance, an accuracy, a wattage, a withstand voltage value and a package type. Then determining a second screening field according to the attribute characteristics of the target attribute, obtaining a second screening condition based on the second screening field, and screening target attribute values corresponding to the target attribute from all attribute values by utilizing the second screening condition; it will be appreciated that the principle of generating the second screening condition is the same as that of generating the first screening condition, for example, for the resistance value, R is selected as the second screening field, and a number range field is added before the screening field.
Step S13: and grouping the bit number of the target type component and the target attribute value to obtain an attribute set corresponding to each target type component.
In this embodiment, after obtaining the target attribute and the bit number of the target type component, the bit number and the target attribute value of the target type component are grouped, so as to obtain an attribute set corresponding to each target type component. It will be appreciated that in order to distinguish which attributes correspond to that component, the obtained bit number and target attribute value need to be grouped to obtain the set of attributes corresponding to each target type of component.
In this embodiment, the grouping the bit number of the target type component and the target attribute value to obtain the attribute set corresponding to each target type component may include: and grouping the bit numbers and the target attribute values according to the parent class identifications corresponding to the bit numbers of the target type components and the parent class identifications corresponding to the target attribute values to obtain attribute sets corresponding to each target type component, wherein each group of attribute sets comprises one bit number and one or more target attribute values. It can be understood that, although the grouping cannot be directly performed through the bit number and the target attribute, each attribute of the same component has a same parent class identifier, so that the attribute corresponding to the same parent class identifier is divided into a group according to the parent class identifier corresponding to the bit number of the target type component and the parent class identifier corresponding to the target attribute value, so as to obtain an attribute set corresponding to each target type component, wherein each group of attribute set comprises one bit number and one or more target attribute values. In Cadence application environment, the parent class is identified as DBID, i.e. the attributes corresponding to the same DBID are divided into a group, thereby associating the acquired bit number and target attribute with the component for subsequent attribute marking.
Step S14: and determining attribute coordinates with corresponding quantity according to the attribute quantity of the attribute set, and marking the bit number and the attribute value of the target type component according to the attribute coordinates by utilizing the attribute set.
In this embodiment, after the attribute sets are obtained by grouping, the attribute coordinates of a corresponding number can be determined according to the coordinates of the components and the attribute number of the attribute sets, and the bit numbers and the attribute values in the attribute sets are moved to the corresponding coordinates according to the attribute coordinates, so as to implement the attribute marking of the target type components. It can be understood that, in this embodiment, by loading the execution program corresponding to the method in the command window of the software application interface, the corresponding command is operated to implement automatic marking of the attribute, so as to implement intelligent automation of the component attribute in the schematic diagram.
From the above, in this embodiment, the target type component is selected from all components included in the schematic diagram based on the bit number attribute of the component; determining a target attribute corresponding to the target type component according to the type of the target type component, and screening out a corresponding target attribute value; grouping the bit number of the target type component and the target attribute value to obtain an attribute set corresponding to each target type component; and determining attribute coordinates with corresponding quantity according to the attribute quantity of the attribute set, and marking the bit number and the attribute value of the target type component according to the attribute coordinates by utilizing the attribute set. Therefore, the attribute set of each target type component is obtained by automatically screening and grouping the target type components and the attributes thereof, then the attribute coordinates of the corresponding quantity are determined according to the attribute quantity of the attribute set, and finally the target type components are subjected to attribute marking according to the attribute coordinates based on the attributes in the attribute set, so that the automatic, rapid and accurate placement of the component attributes in the schematic diagram can be realized, and the efficiency and accuracy of the component attribute marking in the schematic diagram are improved.
The embodiment of the application discloses a method for marking the attribute of a component in a specific schematic diagram, which is shown in fig. 2, and can comprise the following steps:
step S21: and screening out the target type components from all components contained in the schematic diagram based on the bit number attribute of the components.
Step S22: and determining the target attribute corresponding to the target type component according to the type of the target type component, and screening out a corresponding target attribute value.
Step S23: and grouping the bit number of the target type component and the target attribute value to obtain an attribute set corresponding to each target type component.
Step S24: and acquiring the entity coordinates of the target type component.
In this embodiment, the entity coordinates of the target type component are obtained, for example, as shown in fig. 3, the solid line box represents the target type component, the center point (X, Y) in the box is the entity coordinates, and the obtained entity coordinates are used as one of the attributes of the target type component, and the entity coordinates also correspond to a parent identifier, through which the entity coordinates corresponding to the attribute set can be determined.
Step S25: and determining the attribute coordinates of the corresponding quantity according to a preset coordinate calculation rule based on the entity coordinates and according to the attribute quantity of the attribute set.
In this embodiment, based on the entity coordinates and according to the attribute number of the attribute set, a corresponding number of attribute coordinates are determined according to a preset coordinate calculation rule. It can be understood that before the attribute is marked, various attributes may be randomly distributed around the schematic diagram, as shown in fig. 4, so that in order to enable the screened attributes to be clearly placed around the component without overlapping with the component, specific coordinate points of the attribute coordinates are determined according to the entity coordinates, and the number of required attribute coordinates is determined according to the number of the attributes of the attribute set.
In this embodiment, the determining, based on the entity coordinates and according to the attribute number of the attribute set, the attribute coordinates of a corresponding number according to a preset coordinate calculation rule may include: determining a first attribute coordinate according to the entity coordinate and a preset coordinate offset; determining the (n+1) th attribute coordinate according to the (N) th attribute coordinate and the character length of the attribute corresponding to the (N) th attribute coordinate until determining the attribute coordinate with the same number as the attribute; wherein N is 1 or more.
It can be understood that, taking the capacitor shown in fig. 4 as an example, the attributes included in the attribute set corresponding to the capacitor include a bit number, a capacitance value, a withstand voltage value and a package type; according to the obtained entity coordinates and the preset coordinate offset (x 0 ,y 0 ) Determining a first attribute coordinate (x 1 ,y 1 ) Wherein x is 1 =x+x 0 、y 1 =y+y 0 Wherein y is 0 Is a negative number; if a volume value of 10UF is placed at the first attribute coordinate, then the second attribute coordinate (x 2 ,y 2 ) X in the middle 2 =x 1 、y 2 =y+y 0 + (n+1) w, where the single character width is w and n is the number of characters with a capacity value of 10 UF; similarly, a third attribute coordinate (x 3 ,y 3 ),x 3 =x 1 、y 3 =y+y 0 And + (n+n1+2) w, n being the number of characters of the withstand voltage value 20V. According to the conventional labeling habit, the attribute coordinates of the bit number attribute can also be determined in the same manner as the first attribute coordinates, so that the bit number is separately placed on one side of the object type component instance for easy viewing.
Step S26: and according to the attribute coordinates, moving the bit numbers and the attribute values in the attribute set to corresponding coordinate points to realize the attribute marking of the target type component.
In this embodiment, according to the calculated attribute coordinates, the bit number and the attribute value in the attribute set are moved to the corresponding coordinate point to complete the attribute marking of the target type component.
For the specific process of steps S21 to S23, reference may be made to the corresponding content disclosed in the foregoing embodiment, and no further description is given here.
From the above, in this embodiment, the entity coordinates of the target type component are obtained; then, determining attribute coordinates of corresponding quantity according to a preset coordinate calculation rule based on the entity coordinates and according to the attribute quantity of the attribute set; and finally, according to the attribute coordinates, moving the bit numbers and the attribute values in the attribute set to corresponding coordinate points to realize the attribute marking of the target type component. The attribute can be clearly placed around the components, the attribute and the components are prevented from overlapping, the automatic, rapid and accurate placement of the component attribute in the schematic diagram is realized, and the efficiency and accuracy of the component attribute marking in the schematic diagram are improved.
Correspondingly, the embodiment of the application also discloses a device for marking the attribute of the component in the schematic diagram, as shown in fig. 5, the device comprises:
the component screening module 11 is used for screening out target type components from all components contained in the schematic diagram based on the bit number attribute of the components;
the attribute screening module 12 is configured to determine a target attribute corresponding to the target type component according to the type of the target type component, and screen out a corresponding target attribute value;
the grouping module 13 is configured to group the bit number of the target type component and the target attribute value to obtain an attribute set corresponding to each target type component;
and the attribute marking module 14 is used for determining attribute coordinates with corresponding quantity according to the attribute quantity of the attribute set, and marking the bit number and the attribute value of the target type component according to the attribute coordinates by utilizing the attribute set.
From the above, in this embodiment, the target type component is selected from all components included in the schematic diagram based on the bit number attribute of the component; determining a target attribute corresponding to the target type component according to the type of the target type component, and screening out a corresponding target attribute value; grouping the bit number of the target type component and the target attribute value to obtain an attribute set corresponding to each target type component; and determining attribute coordinates with corresponding quantity according to the attribute quantity of the attribute set, and marking the bit number and the attribute value of the target type component according to the attribute coordinates by utilizing the attribute set. Therefore, the attribute set of each target type component is obtained by automatically screening and grouping the target type components and the attributes thereof, then the attribute coordinates of the corresponding quantity are determined according to the attribute quantity of the attribute set, and finally the target type components are subjected to attribute marking according to the attribute coordinates based on the attributes in the attribute set, so that the automatic, rapid and accurate placement of the component attributes in the schematic diagram can be realized, and the efficiency and accuracy of the component attribute marking in the schematic diagram are improved.
In some embodiments, the component screening module 11 may specifically include:
the first screening condition determining unit is used for determining a first screening field according to the bit number attribute characteristics of the target type component, and adding a number range field after the first screening field to obtain a first screening condition;
and the first screening unit is used for screening the target type component from all components contained in the schematic diagram by utilizing the first screening condition based on the bit numbers of all components.
In some embodiments, the attribute screening module 12 may specifically include:
the target attribute determining unit is used for determining a target attribute corresponding to the target type component according to the type of the target type component; the target attribute comprises any one or more of a capacity value, precision, wattage, withstand voltage value and packaging type;
the second screening condition determining unit is used for determining a second screening field according to the attribute characteristics of the target attribute and obtaining a second screening condition based on the second screening field;
and the second screening unit is used for screening out target attribute values corresponding to the target attributes from all attribute values by utilizing the second screening conditions.
In some embodiments, the grouping module 13 may specifically include:
the grouping unit is used for grouping the bit number and the target attribute value according to the parent class identifier corresponding to the bit number of the target type component and the parent class identifier corresponding to the target attribute value to obtain attribute sets corresponding to each target type component, and each group of attribute sets comprises one bit number and one or more target attribute values.
In some embodiments, the attribute marking module 14 may specifically include:
the entity coordinate acquisition unit is used for acquiring entity coordinates of the target type component;
the attribute coordinate determining unit is used for determining attribute coordinates of corresponding quantity according to a preset coordinate calculation rule based on the entity coordinates and according to the attribute quantity of the attribute set;
and the moving unit is used for moving the bit numbers and the attribute values in the attribute set to corresponding coordinate points according to the attribute coordinates so as to realize the attribute marking of the target type component.
In some specific embodiments, the attribute coordinate determining unit may specifically include:
the first attribute coordinate determining unit is used for determining a first attribute coordinate according to the entity coordinate and a preset coordinate offset;
an n+1th attribute coordinate determining unit, configured to determine an n+1th attribute coordinate according to an nth attribute coordinate and a character length of an attribute corresponding to the nth attribute coordinate, until determining attribute coordinates with the same number as the attribute number; wherein N is 1 or more.
Further, the embodiment of the application further discloses an electronic device, and referring to fig. 6, the content in the drawing should not be considered as any limitation on the scope of use of the application.
Fig. 6 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is used for storing a computer program, and the computer program is loaded and executed by the processor 21 to implement relevant steps in the component attribute marking method in the schematic diagram disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon include an operating system 221, a computer program 222, and data 223 including a target attribute value, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and the computer program 222, so as to implement the operation and processing of the processor 21 on the mass data 223 in the memory 22, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the method of marking the properties of components in the schematic diagram performed by the electronic device 20 as disclosed in any of the previous embodiments.
Further, the embodiment of the application also discloses a computer storage medium, wherein the computer storage medium stores computer executable instructions, and when the computer executable instructions are loaded and executed by a processor, the method steps for marking the attribute of the component in the schematic diagram disclosed in any embodiment are realized.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above detailed description of the method, the device, the equipment and the medium for marking the attribute of the component in the schematic diagram provided by the invention applies specific examples to describe the principle and the implementation of the invention, and the description of the above examples is only used for helping to understand the method and the core idea of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (7)

1. A method for marking the attribute of a component in a schematic diagram is characterized by comprising the following steps:
screening out target type components from all components contained in the schematic diagram based on the bit number attribute of the components;
determining a target attribute corresponding to the target type component according to the type of the target type component, and screening out a corresponding target attribute value;
grouping the bit number of the target type component and the target attribute value to obtain an attribute set corresponding to each target type component;
determining attribute coordinates of a corresponding number according to the attribute number of the attribute set, and marking the position number and the attribute value of the target type component according to the attribute coordinates by utilizing the attribute set;
the determining the attribute coordinates of a corresponding number according to the attribute number of the attribute set, and marking the bit number and the attribute value of the target type component according to the attribute coordinates by utilizing the attribute set includes:
acquiring entity coordinates of the target type component;
determining a first attribute coordinate according to the entity coordinate and a preset coordinate offset;
determining the (n+1) th attribute coordinate according to the (N) th attribute coordinate and the character length of the attribute corresponding to the (N) th attribute coordinate until determining the attribute coordinate with the same number as the attribute; wherein N is greater than or equal to 1;
and according to the attribute coordinates, moving the bit numbers and the attribute values in the attribute set to corresponding coordinate points to realize the attribute marking of the target type component.
2. The method for marking the attribute of the component in the schematic diagram according to claim 1, wherein the step of screening the target type component from all components included in the schematic diagram based on the bit number attribute of the component includes:
determining a first screening field according to the bit number attribute characteristics of the target type component, and adding a number range field after the first screening field to obtain a first screening condition;
and screening the target type component from all components contained in the schematic diagram by using the first screening condition based on the bit numbers of all components.
3. The method for marking attribute of component in schematic diagram according to claim 1, wherein determining the target attribute corresponding to the target type component according to the type of the target type component, and screening out the corresponding target attribute value comprises:
determining a target attribute corresponding to the target type component according to the type of the target type component; the target attribute comprises any one or more of a capacity value, precision, wattage, withstand voltage value and packaging type;
determining a second screening field according to the attribute characteristics of the target attribute, and obtaining a second screening condition based on the second screening field;
and screening target attribute values corresponding to the target attributes from all attribute values by using the second screening conditions.
4. The method for marking attribute of component in schematic diagram according to claim 1, wherein said grouping the bit number of the target type component and the target attribute value to obtain the attribute set corresponding to each target type component includes:
and grouping the bit numbers and the target attribute values according to the parent class identifications corresponding to the bit numbers of the target type components and the parent class identifications corresponding to the target attribute values to obtain attribute sets corresponding to each target type component, wherein each group of attribute sets comprises one bit number and one or more target attribute values.
5. A device for marking attributes of components in a schematic diagram, comprising:
the component screening module is used for screening out target type components from all components contained in the schematic diagram based on the bit number attribute of the components;
the attribute screening module is used for determining the target attribute corresponding to the target type component according to the type of the target type component and screening out a corresponding target attribute value;
the grouping module is used for grouping the bit number of the target type component and the target attribute value to obtain an attribute set corresponding to each target type component;
the attribute marking module is used for determining attribute coordinates with corresponding quantity according to the attribute quantity of the attribute set, and marking the bit number and the attribute value of the target type component according to the attribute coordinates by utilizing the attribute set;
wherein, the attribute marking module comprises:
the entity coordinate acquisition unit is used for acquiring entity coordinates of the target type component;
the attribute coordinate determining unit is used for determining a first attribute coordinate according to the entity coordinate and a preset coordinate offset; determining the (n+1) th attribute coordinate according to the (N) th attribute coordinate and the character length of the attribute corresponding to the (N) th attribute coordinate until determining the attribute coordinate with the same number as the attribute; wherein N is greater than or equal to 1;
and the moving unit is used for moving the attribute in the attribute set to a corresponding coordinate point according to the attribute coordinates so as to realize the attribute marking of the target type component.
6. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the method for marking the attribute of the component in the schematic diagram as claimed in any one of claims 1 to 4.
7. A computer-readable storage medium storing a computer program; wherein the computer program when executed by a processor implements the method of marking component properties in a schematic diagram according to any one of claims 1 to 4.
CN202110656838.6A 2021-06-11 2021-06-11 Method, device, equipment and medium for marking attribute of component in schematic diagram Active CN113468833B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110656838.6A CN113468833B (en) 2021-06-11 2021-06-11 Method, device, equipment and medium for marking attribute of component in schematic diagram

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110656838.6A CN113468833B (en) 2021-06-11 2021-06-11 Method, device, equipment and medium for marking attribute of component in schematic diagram

Publications (2)

Publication Number Publication Date
CN113468833A CN113468833A (en) 2021-10-01
CN113468833B true CN113468833B (en) 2024-02-09

Family

ID=77869724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110656838.6A Active CN113468833B (en) 2021-06-11 2021-06-11 Method, device, equipment and medium for marking attribute of component in schematic diagram

Country Status (1)

Country Link
CN (1) CN113468833B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8117537B1 (en) * 2007-02-02 2012-02-14 The United States Of America As Represented By The United States Department Of Energy Platform-independent method for computer aided schematic drawings
CN105005696A (en) * 2015-07-15 2015-10-28 浪潮电子信息产业股份有限公司 Method and device for determining failure rates
WO2017088552A1 (en) * 2015-11-23 2017-06-01 广州视源电子科技股份有限公司 Method and system for identifying electronic component polarity, and method and system for marking electronic component polarity
CN109144651A (en) * 2018-08-27 2019-01-04 郑州云海信息技术有限公司 Hidden method, device, equipment and the medium of attribute information in a kind of schematic diagram
CN109256029A (en) * 2018-09-12 2019-01-22 广州小鹏汽车科技有限公司 A kind of automatic setting method and device of site attribute
CN109543327A (en) * 2018-11-30 2019-03-29 郑州云海信息技术有限公司 Placing part method and device in a kind of PCB design
CN111615261A (en) * 2020-04-29 2020-09-01 广州致远电子有限公司 Export design method and device of multi-connector module
WO2020186851A1 (en) * 2019-03-19 2020-09-24 上海望友信息科技有限公司 Method and system for selecting optical reference point, and computer storage medium and device
CN111859847A (en) * 2020-06-29 2020-10-30 苏州浪潮智能科技有限公司 Method and device for detecting routing of printed circuit board and computer readable storage medium
CN112528067A (en) * 2020-12-24 2021-03-19 北京百度网讯科技有限公司 Graph database storage method, graph database reading method, graph database storage device, graph database reading device and graph database reading equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007079705A (en) * 2005-09-12 2007-03-29 Hitachi Ltd Method for extracting illegality of member attribute information, and system for extracting illegality of object attribute information
US8312413B2 (en) * 2010-01-22 2012-11-13 International Business Machines Corporation Navigating analytical tools using layout software
CN104216992B (en) * 2014-09-09 2017-12-15 百度在线网络技术(北京)有限公司 A kind of information processing method and device
JP7246956B2 (en) * 2019-02-13 2023-03-28 株式会社キーエンス Data analysis device and data analysis method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8117537B1 (en) * 2007-02-02 2012-02-14 The United States Of America As Represented By The United States Department Of Energy Platform-independent method for computer aided schematic drawings
CN105005696A (en) * 2015-07-15 2015-10-28 浪潮电子信息产业股份有限公司 Method and device for determining failure rates
WO2017088552A1 (en) * 2015-11-23 2017-06-01 广州视源电子科技股份有限公司 Method and system for identifying electronic component polarity, and method and system for marking electronic component polarity
CN109144651A (en) * 2018-08-27 2019-01-04 郑州云海信息技术有限公司 Hidden method, device, equipment and the medium of attribute information in a kind of schematic diagram
CN109256029A (en) * 2018-09-12 2019-01-22 广州小鹏汽车科技有限公司 A kind of automatic setting method and device of site attribute
CN109543327A (en) * 2018-11-30 2019-03-29 郑州云海信息技术有限公司 Placing part method and device in a kind of PCB design
WO2020186851A1 (en) * 2019-03-19 2020-09-24 上海望友信息科技有限公司 Method and system for selecting optical reference point, and computer storage medium and device
CN111615261A (en) * 2020-04-29 2020-09-01 广州致远电子有限公司 Export design method and device of multi-connector module
CN111859847A (en) * 2020-06-29 2020-10-30 苏州浪潮智能科技有限公司 Method and device for detecting routing of printed circuit board and computer readable storage medium
CN112528067A (en) * 2020-12-24 2021-03-19 北京百度网讯科技有限公司 Graph database storage method, graph database reading method, graph database storage device, graph database reading device and graph database reading equipment

Also Published As

Publication number Publication date
CN113468833A (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN109086204B (en) Node relation tree establishing method, page marking method, page identifying method, page marking device, page identifying device and storage medium
CN110058856A (en) Page configuration method and device
US9760347B2 (en) Method and system to identify GUI objects for non-markup-language-presented applications
WO2016082598A1 (en) Method, apparatus, and device for rapidly searching for application program
CN107622080B (en) Data processing method and equipment
US8782554B2 (en) Context menu dependency on many objects of different type
JP2007094818A (en) Batch copy and paste method, device and computer program for a plurality of pieces of data
CN110968601A (en) Data query processing method and device
US20160239477A1 (en) Persisting the state of visual control elements in uniform resource locator (url)-generated web pages
CN106354483B (en) Data processing method and device and electronic equipment
CN110502577B (en) Method, equipment and medium for deploying container application by cloud management platform
CN103020295A (en) Problem label marking method and device
CN111414727B (en) Editing method and device for PDF document header footer and electronic equipment
CN107679056B (en) Method for generating SQL (structured query language) statement, electronic device and readable storage medium
CN103425632A (en) Serializing method, device and processor
CN109582937A (en) Report form generation method, device, storage medium and processor
CN109241026A (en) The method, apparatus and system of data management
US7908548B2 (en) User interface for establishing mappings from internal metadata to external metadata
CN108446398A (en) A kind of generation method and device of database
CN106776779B (en) Method for generating entity file by JSON data based on Mac platform
CN108958611B (en) Information editing method and device
CN113468833B (en) Method, device, equipment and medium for marking attribute of component in schematic diagram
CN103279420A (en) Optimized automation testing method and system for application program of mobile terminal
CN115311429B (en) Revit-based data export method and system
CN110377811A (en) A kind of display methods of device name, device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant