CN116306539A - Method, device and equipment for creating detail table in engineering drawing and readable storage medium - Google Patents

Method, device and equipment for creating detail table in engineering drawing and readable storage medium Download PDF

Info

Publication number
CN116306539A
CN116306539A CN202310186694.1A CN202310186694A CN116306539A CN 116306539 A CN116306539 A CN 116306539A CN 202310186694 A CN202310186694 A CN 202310186694A CN 116306539 A CN116306539 A CN 116306539A
Authority
CN
China
Prior art keywords
information
detail
target
engineering drawing
creating
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.)
Pending
Application number
CN202310186694.1A
Other languages
Chinese (zh)
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.)
Weifang Geldanna Electronic Technology Co ltd
Original Assignee
Weifang Geldanna Electronic 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 Weifang Geldanna Electronic Technology Co ltd filed Critical Weifang Geldanna Electronic Technology Co ltd
Priority to CN202310186694.1A priority Critical patent/CN116306539A/en
Publication of CN116306539A publication Critical patent/CN116306539A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging
    • 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)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Architecture (AREA)
  • Human Computer Interaction (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a method, a device, equipment and a computer readable storage medium for creating a detail table in an engineering drawing, wherein the method comprises the following steps: acquiring a product material detail file, and extracting target material detail information from the product material detail file; under the engineering drawing environment, drawing information of an engineering drawing page is obtained, and the target placement position of the form is determined according to the drawing information; and drawing a detail table at a target placement position in a drawing of the engineering drawing page, writing target material detail information into the detail table, and finishing drawing of the detail table in the engineering drawing. The invention realizes a scheme of automatically creating the detail table in the engineering drawing software, and improves the efficiency and accuracy of drawing the detail table in the engineering drawing software.

Description

Method, device and equipment for creating detail table in engineering drawing and readable storage medium
Technical Field
The present invention relates to the field of software development technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for creating a detail table in an engineering drawing.
Background
Engineering drawings are indispensable technical files in engineering design, implementation and the like of engineers, and with the development of computer science and technology, computer drawing technology promotes the development of engineering design methods (from manual design to computer aided design) and engineering drawing tools (from ruler gauge to computer), and changes the thinking modes and working programs of engineers and scientists. Engineers need to draw detailed tables in the engineering drawings for giving detailed information of the individual parts required for the products drawn in the engineering drawings. Currently, adding detail forms in engineering drawing software (e.g., CATIA) relies primarily on engineers drawing forms and manually filling in data. Because the operation of the table and the text in the engineering drawing environment is inconvenient, the drawing process is time-consuming and is easy to make mistakes, and information is lost or input and output.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a computer readable storage medium for creating a detail table in an engineering drawing, and aims to provide a scheme for creating the detail table in the engineering drawing, so that the efficiency and the accuracy of drawing the detail table in engineering drawing software are improved.
In order to achieve the above object, the present invention provides a method for creating a detail table in an engineering drawing, the method comprising the steps of:
acquiring a product material detail file, and extracting target material detail information from the product material detail file;
under the engineering drawing environment, drawing information of an engineering drawing page is obtained, and a target placement position of a table is determined according to the drawing information;
and drawing a detail table at the target placement position in the drawing of the engineering drawing page, and writing the target material detail information into the detail table.
Optionally, the step of determining the target placement position of the table according to the drawing information includes:
according to a preset detailed table placement rule and the drawing information, calculating coordinate information of one vertex of the table in the drawing of the engineering drawing page, and taking the coordinate information as the target placement position;
the step of drawing a detail table at the target placement position in the drawing of the engineering drawing page comprises the following steps:
determining a target size according to the row number and the column number of the target material detail information and a preset table size constraint rule;
and drawing a detail table according to the target size at the target placement position in the drawing of the engineering drawing page.
Optionally, the product material detail file includes information of each material under each field, and the step of extracting the target material detail information from the product material detail file includes:
acquiring a detail information extraction rule, wherein the detail information extraction rule comprises a field to be extracted;
and extracting information of each material under the field to be extracted from the product material detail file, and obtaining target material detail information according to the extracted information.
Optionally, the detail information extraction rule further includes a screening field and a screening range corresponding to the screening field, and the obtaining the target material detail information according to the extracted information includes:
and screening each material according to the screening range and the information of each material under the screening field, and taking the information of the screened material under the field to be extracted as target material detail information.
Optionally, the step of writing the target material detail information into the detail table includes:
writing the field to be extracted into the detail table as a header;
and writing the target material detail information into the detail table according to the field to be extracted.
Optionally, the step of writing the target material detail information into the detail table includes:
acquiring a target font and a target font size;
and filling the target material detail information into the detail form according to the target font and the target font size.
Optionally, the step of obtaining the product material detail file includes:
outputting a file selection interface;
and acquiring a product material detail file selected based on the file selection interface.
In order to achieve the above object, the present invention further provides a device for creating a detail table in an engineering drawing, where the device includes:
the acquisition module is used for acquiring a product material detail file and extracting target material detail information from the product material detail file;
the determining module is used for acquiring drawing information of an engineering drawing page in an engineering drawing environment and determining a target placement position of a form according to the drawing information;
and the drawing module is used for drawing a detail table at the target placement position in the drawing of the engineering drawing page and writing the target material detail information into the detail table.
In order to achieve the above object, the present invention further provides an apparatus for creating a detailed table in an engineering drawing, the apparatus for creating a detailed table in an engineering drawing comprising: the system comprises a memory, a processor and a program for creating the detail table in the engineering drawing, wherein the program is stored in the memory and can run on the processor, and the program for creating the detail table in the engineering drawing realizes the steps of the method for creating the detail table in the engineering drawing when being executed by the processor.
In addition, in order to achieve the above object, the present invention also proposes a computer-readable storage medium having stored thereon a program for creating a detailed table in an engineering drawing, which when executed by a processor, implements the steps of the method for creating a detailed table in an engineering drawing as described above.
In the embodiment of the invention, the object material detail information is extracted from the product material detail file by acquiring the product material detail file; under the engineering drawing environment, drawing information of an engineering drawing page is obtained, and the target placement position of the form is determined according to the drawing information; and drawing a detail table at a target placement position in a drawing of the engineering drawing page, writing target material detail information into the detail table, and finishing drawing of the detail table in the engineering drawing. Compared with the scheme that engineers manually add the detailed form in the engineering drawing software and manually fill in data, the scheme of the embodiment of the invention improves the efficiency and accuracy of drawing the detailed form in the engineering drawing software.
Drawings
FIG. 1 is a flow chart of an embodiment of a method for creating a list in an engineering drawing according to the present invention;
FIG. 2 is a schematic diagram of a process for creating a detail table in an engineering drawing according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a hardware running environment according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating an embodiment of a method for creating a detail table in an engineering drawing according to the present invention.
The embodiments of the present invention provide embodiments of a method of creating a list of details in an engineering drawing, it should be noted that, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown or described herein. In this embodiment, the execution subject of the method for creating the detail table in the engineering drawing may be a device such as an earphone, a smart phone, a personal computer, or a server, which is not limited in this embodiment. In this embodiment, for convenience of description, description of each embodiment will be omitted below. In this embodiment, the method for creating the detail table in the engineering drawing includes the following steps:
step S10, acquiring a product material detail file, and extracting target material detail information from the product material detail file;
in order to solve the problems of low efficiency and easy error in manually drawing the detailed table in engineering drawing software, in the embodiment, a scheme for automatically creating the detailed table in the engineering drawing is provided so as to improve the efficiency and accuracy of creating the detailed table. In a specific implementation manner, the implementation of the embodiment scheme can be realized by adopting a mode of writing a macro program plug-in VB language, and the drawing software can be CATIA software or other engineering drawing software.
The product material detail file is a file for recording the detail information of each material in the product, and may be acquired locally or from other devices, and the acquisition mode is not limited in this embodiment. After the product material specification file is obtained, material specification information (hereinafter referred to as target material specification information to show distinction) to be written in the engineering drawing specification table may be extracted from the file. In the specific embodiment, the target material detail information may include all the material detail information recorded in the product material detail file, or may include only part of the material detail information recorded in the product material detail file, and specifically, whether to extract all the material detail information or extract the material detail information meeting a certain requirement may be set according to the requirement. The step of extracting the target material detail information from the product material detail file may be specifically to call a file opening interface corresponding to the product material detail file to open the file, and then extracting the target material detail information from the active page. For example, when the product material detail file is an Excel table file, after the product material detail file is obtained, the operation file needs to use an Excel COM object provided by MicroSoft Office; if an Excel application program is installed in the current equipment, the system automatically registers an Excel COM programming interface, and can successfully open a product material detail file; if the Excel application program is not installed, a prompt for failure in opening can be output. Illustratively, the product material specification file may be opened using the following code.
' open Excel File and read the currently active Page
Set xIBook=App.Workbooks.Open(ScriptPath)
Set osheet=xIBook.ActiveSheet
In one possible implementation, the extracted target material detail information may be stored in a temporary array for filling in, for example, a detail form when the detail form is subsequently created.
In a possible implementation manner, the method for obtaining the product material detail file may be to output a file selection interface, provide an interaction component for selecting the file for the user in the file selection interface, select the required product material detail file through the file selection interface, and then obtain the product material detail file selected by the user based on the file selection interface.
Step S20, drawing information of an engineering drawing page is obtained under the engineering drawing environment, and the target placement position of a table is determined according to the drawing information;
because the detail table is required to be drawn in the engineering drawing, the drawing of the table is required to be performed under the engineering drawing environment in the drawing software, in a specific embodiment, whether the current window of the drawing software is in the engineering drawing environment can be judged first, if the current window is in the engineering drawing environment, drawing information of an engineering drawing page can be obtained, and if the current window is not in the engineering drawing environment, a popup window can be output to prompt a user that the current window is not the engineering drawing. By way of example, the detection of engineering drawing environments may be implemented using the following code.
' judging whether the current window is engineering drawing environment or not, if not, popping up a prompt box and terminating operation
Figure BDA0004104179640000051
Figure BDA0004104179640000061
The engineering drawing page is a page for drawing an engineering drawing, and a drawing is displayed in the engineering drawing page. The drawing information may include the dimensions of the drawing, or may include some other information, such as the range of locations in the drawing where tables may be placed. There are many specific implementations of determining the target placement position of the table according to the drawing information, and the specific implementation is not limited herein. For example, when the drawing information includes a position range in which a form can be placed in the drawing, the target placement position of the form can be randomly selected or centrally selected in the position range according to the size of the form set in advance or the size of the form calculated from the target material form information. In a specific embodiment, the target placement position of the detail table may include only coordinate information of one vertex of the detail table in the drawing of the engineering drawing page, or may also include coordinate information of four vertices of the detail table in the drawing of the engineering drawing page, which is not limited in this embodiment.
And step S30, drawing a detail table at the target placement position in the drawing of the engineering drawing page, and writing the target material detail information into the detail table.
After determining the target placement position of the detail table, the detail table can be drawn at the target placement position in the drawing of the engineering drawing page, and target material detail information extracted from the product material detail file is written into the detail table. In one possible implementation, the target material detail information stored in the temporary array may be written into a detail table, thereby completing the drawing of the detail table in the engineering drawing. Further, the engineering drawing file may be saved after the detailed table is drawn.
Further, in a possible implementation manner, the fonts and the font sizes in the detail table can be automatically adjusted, so that the creation efficiency of the detail table is further improved. Specifically, a target font and a target font size may be acquired, and target material detail information is filled into the detail form according to the target font and the target font size. Specifically, the target font and the target font size may be preset fonts and font sizes, or may also be acquired user-defined fonts and font sizes. For example, the following code may be used to implement the adjustment of fonts and font sizes.
' font size of set text
myText.SetFontSize long iFirst,long inbCharacter,double iFontSize
myText.SetFontName long iFirst,long inbCharacter,CATBSTR inFontName
In the embodiment, the target material detail information is extracted from the product material detail file by acquiring the product material detail file; under the engineering drawing environment, drawing information of an engineering drawing page is obtained, and the target placement position of the form is determined according to the drawing information; and drawing a detail table at a target placement position in a drawing of the engineering drawing page, writing target material detail information into the detail table, and finishing drawing of the detail table in the engineering drawing. Compared with the scheme that engineers manually add the detailed form in the engineering drawing software and manually fill in data, the scheme of the embodiment improves the efficiency and accuracy of drawing the detailed form in the engineering drawing software.
Further, based on the first embodiment, a second embodiment of the method for creating a detail table in an engineering drawing according to the present invention is provided, and in this embodiment, the step of determining the target placement position of the table according to the drawing information in step S20 includes:
step S201, according to a preset detailed table placement rule and the drawing information, calculating to obtain coordinate information of one vertex of a table in the drawing of the engineering drawing page, and taking the coordinate information as the target placement position;
in an actual application scene, the detail table is not placed at any position in the drawing, so in this embodiment, a rule for placing the detail table can be set in advance according to the requirement of the actual application scene, where the rule is used to limit the placement position of the detail table in the drawing, for example, the rule can be that the detail table needs to be placed on the header frame in the drawing, and the rule can be specifically expressed by using coordinate information of the header frame in the drawing. In a specific embodiment, the rule of placing the detail table may also be set to be user-defined.
The coordinate information of one vertex on the table in the drawing of the engineering drawing page can be calculated according to the rule of placing the detail table and the drawing information, and accordingly, when the detail table is drawn, the position indicated by the coordinate information of the vertex of the detail table in the drawing of the engineering drawing page can be determined by combining the size information of the detail table.
Illustratively, the target placement location (iPositionX, iPositionY) may be calculated using the following code implementation.
' coordinates of calculation detail table
Dim sheetWidth As integer
sheetWidth=sheet.GetPaperWidth
Dim iPositionX As Integer,iPositionY As Integer
iPositionX=sheetWidth-xSize
iPositionY=ySize
The step of drawing a detail table at the target placement position in the drawing of the engineering drawing page in the step S30 includes:
step S301, determining a target size according to the number of rows and columns of the target material detail information and a preset table size constraint rule;
the material detail information comprises a plurality of pieces of information corresponding to a plurality of materials respectively, wherein the row number and the column number are the number of the materials and the number of information items of each material. In one possible embodiment, after the extracted target material detail information is stored in the temporary array, the size of the temporary array may represent the number of rows and columns of the target material detail information. A table size constraint rule for limiting the size of each row and each column in the table or for limiting the size of the entire table may be set in advance as needed. The size of the detail table to be created (hereinafter referred to as the target size) can be determined according to the number of rows and columns of the target material detail information and a preset table size constraint rule.
Step S302, drawing a detail table according to the target size at the target placement position in the drawing of the engineering drawing page.
After the target placement position and the target size of the detail table are determined, the detail table can be drawn at the target placement position in the drawing of the engineering drawing page according to the target size. By way of example, the drawing of the detail table may be implemented with the following code.
' drawing a form at a location defined by an engineering drawing page
Dim myTable
Set myTable=myView.Tables.Add(iPositionX,iPositionX,
iNumberOfRow,iNumberOfColumn,iRowHeight,iColumnWidth)
In one possible embodiment, as shown in fig. 2, a schematic diagram of a process for creating a detail table in a possible engineering drawing is shown. Judging whether the current page is an engineering drawing environment or not, and if not, outputting prompt information to prompt a user; if yes, a file selection interface is displayed for a user to select BOM (product material detail) files; after a product material detail file is acquired, extracting part information (target material detail information) in the product material detail file and storing the part information into a temporary array; creating a table according to the size of the temporary array, and calculating the target placement position (coordinate information) of the detail table in the drawing of the engineering drawing page; placing a detail table at the target placement position, writing target material detail information in the temporary array into the detail table, and adjusting the table format and the font size; finally, the engineering drawing can be saved.
Further, based on the first and/or second embodiments, a third embodiment of the method for creating a list in an engineering drawing according to the present invention is provided, and in this embodiment, the step of extracting the target material list information from the product material list file in step S10 includes:
step S101, acquiring a detail information extraction rule, wherein the detail information extraction rule comprises a field to be extracted;
the product material detail file comprises information of each material under each field, and each field comprises a serial number, a material name, a material, a quantity, notes, labels and the like. In a specific application scenario, the information that needs to be drawn into the detail table in the engineering drawing may not include all the information in the product material detail file. The detail information extraction rules are used to define the rules that the information extracted from the product material detail file needs to conform to. For example, in one possible implementation, the detail information extraction rule may include fields to be extracted, e.g., only information under the fields of serial number, material name, material, quantity need be extracted.
There are various ways to obtain the detailed information extraction rule, for example, a pre-stored detailed information extraction rule may be obtained locally from a device, or a detailed information extraction rule may be received from another device, or a user-defined detailed information extraction rule based on an interactive interface may be received.
Step S102, extracting information of each material under the field to be extracted from the product material detail file, and obtaining target material detail information according to the extracted information.
The information of each material under the field to be extracted can be extracted from the product material detail file, and the target material detail information is obtained according to the extracted information. In a specific embodiment, the extracted information may be directly used as the target material detail information, or the extracted information may be further screened.
Further, in a possible implementation manner, the obtaining the target material detail information according to the extracted information in step S102 includes:
and step 2011, screening each material according to the screening range and the information of each material under the screening field, and taking the information of the screened material under the field to be extracted as target material detail information.
The rule for extracting the detail information may further include a filtering field and a filtering range corresponding to the filtering field, where the filtering range may be a range that needs to be reserved or a range that needs to be removed. For example, the screening field is a material name, and the screening range may be a range that needs to be removed, including [ a material, b material, c material ], and then according to the material names of the extracted materials, the information of the a material, the b material, and the c material may be removed, and the information of the remaining other materials under the field to be extracted is taken as the target material detail information.
Further, in a possible implementation manner, the step of writing the target material detail information into the detail table in the step S301 includes:
step S303, writing the field to be extracted into the detail table as a header;
and step S304, writing the target material detail information into the detail table according to the field to be extracted.
Under the condition that the field to be extracted is preset, after the detail table is drawn, the field to be extracted is used as a header to be written into the detail table, and then the detail information of the target material is written into the detail table according to the field to be extracted. Illustratively, the following code implementation may be employed to write the field to be extracted as a header into the detail table, where the field to be extracted is exemplified by a serial number, a name, a specification/model, a number, and a remark.
' header information writing
myTable.SetCellstring i,1, "sequence number"
myTable.SetCellstring i,2, "number"
myTable.SetCellstring i,3, "name"
myTable.SetCellstring i,4, "rule/model"
myTable.SetCellstring i,5, "quantity"
myTable.SetCellstring i,6, "remarks"
For example, the writing of target material detail information into the detail table may be implemented with the following code.
Writing part information in' table
Figure BDA0004104179640000101
In addition, the embodiment of the invention also provides a device for creating the detail table in the engineering drawing, which comprises the following steps:
the acquisition module is used for acquiring a product material detail file and extracting target material detail information from the product material detail file;
the determining module is used for acquiring drawing information of an engineering drawing page in an engineering drawing environment and determining a target placement position of a form according to the drawing information;
and the drawing module is used for drawing a detail table at the target placement position in the drawing of the engineering drawing page and writing the target material detail information into the detail table.
Further, the determining module is further configured to:
according to a preset detailed table placement rule and the drawing information, calculating coordinate information of one vertex of the table in the drawing of the engineering drawing page, and taking the coordinate information as the target placement position;
the drawing module is further configured to:
determining a target size according to the row number and the column number of the target material detail information and a preset table size constraint rule;
and drawing a detail table according to the target size at the target placement position in the drawing of the engineering drawing page.
Further, the product material detail file includes information of each material under each field, and the obtaining module is further configured to:
acquiring a detail information extraction rule, wherein the detail information extraction rule comprises a field to be extracted;
and extracting information of each material under the field to be extracted from the product material detail file, and obtaining target material detail information according to the extracted information.
Further, the detail information extraction rule further includes a filtering field and a filtering range corresponding to the filtering field, and the obtaining module is further configured to:
and screening each material according to the screening range and the information of each material under the screening field, and taking the information of the screened material under the field to be extracted as target material detail information.
Further, the drawing module is further configured to:
writing the field to be extracted into the detail table as a header;
and writing the target material detail information into the detail table according to the field to be extracted.
Further, the drawing module is further configured to:
acquiring a target font and a target font size;
and filling the target material detail information into the detail form according to the target font and the target font size.
Further, the acquisition module is further configured to:
outputting a file selection interface;
and acquiring a product material detail file selected based on the file selection interface.
In addition, the embodiment of the invention also provides a device for creating the detail table in the engineering drawing, as shown in fig. 3, and fig. 3 is a schematic device structure diagram of the hardware operation environment related to the scheme of the embodiment of the invention. It should be noted that, the creation device of the detail table in the engineering drawing of the embodiment of the present invention may be devices such as an earphone, a smart phone, a personal computer, a server, and the like, which is not limited herein.
As shown in fig. 3, the creation device of the detail table in the engineering drawing may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the apparatus structure shown in FIG. 3 does not constitute a limitation of the apparatus for creating a list of engineering drawings, and may include more or less components than those illustrated, or may combine certain components, or may be arranged in different components.
As shown in fig. 3, an operating system, a network communication module, a user interface module, and a program for creating a detailed table in an engineering drawing may be included in the memory 1005 as one type of computer storage medium. An operating system is a program that manages and controls the hardware and software resources of the device, supporting the creation of a statement in an engineering drawing, as well as the running of other software or programs. In the device shown in fig. 3, the user interface 1003 is mainly used for data communication with the client; the network interface 1004 is mainly used for establishing communication connection with a server; and the processor 1001 may be configured to call a program for creating a list in the engineering drawing stored in the memory 1005, and perform the following operations:
acquiring a product material detail file, and extracting target material detail information from the product material detail file;
under the engineering drawing environment, drawing information of an engineering drawing page is obtained, and a target placement position of a table is determined according to the drawing information;
and drawing a detail table at the target placement position in the drawing of the engineering drawing page, and writing the target material detail information into the detail table.
Further, the operation of determining the target placement position of the table according to the drawing information comprises the following steps:
according to a preset detailed table placement rule and the drawing information, calculating coordinate information of one vertex of the table in the drawing of the engineering drawing page, and taking the coordinate information as the target placement position;
the operation of drawing a detail table at the target placement position in the drawing of the engineering drawing page comprises the following steps:
determining a target size according to the row number and the column number of the target material detail information and a preset table size constraint rule;
and drawing a detail table according to the target size at the target placement position in the drawing of the engineering drawing page.
Further, the product material detail file includes information of each material under each field, and the operation of extracting the target material detail information from the product material detail file includes:
acquiring a detail information extraction rule, wherein the detail information extraction rule comprises a field to be extracted;
and extracting information of each material under the field to be extracted from the product material detail file, and obtaining target material detail information according to the extracted information.
Further, the rule for extracting the detail information further includes a filtering field and a filtering range corresponding to the filtering field, and the obtaining the detail information of the target material according to the extracted information includes:
and screening each material according to the screening range and the information of each material under the screening field, and taking the information of the screened material under the field to be extracted as target material detail information.
Further, the operation of writing the target material detail information into the detail table includes:
writing the field to be extracted into the detail table as a header;
and writing the target material detail information into the detail table according to the field to be extracted.
Further, the operation of writing the target material detail information into the detail table includes:
acquiring a target font and a target font size;
and filling the target material detail information into the detail form according to the target font and the target font size.
Further, the operation of obtaining the product material detail file includes:
outputting a file selection interface;
and acquiring a product material detail file selected based on the file selection interface.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the storage medium stores a program for creating the detail table in the engineering drawing, and the program for creating the detail table in the engineering drawing realizes the steps of the method for creating the detail table in the engineering drawing when being executed by a processor.
Embodiments of the apparatus for creating a detail table in an engineering drawing and the computer readable storage medium of the present invention may refer to embodiments of the method for creating a detail table in an engineering drawing of the present invention, and are not described herein.
It should be noted that, in this document, 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 foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The method for creating the detail table in the engineering drawing is characterized by comprising the following steps of:
acquiring a product material detail file, and extracting target material detail information from the product material detail file;
under the engineering drawing environment, drawing information of an engineering drawing page is obtained, and a target placement position of a table is determined according to the drawing information;
and drawing a detail table at the target placement position in the drawing of the engineering drawing page, and writing the target material detail information into the detail table.
2. The method for creating a detailed table in an engineering drawing according to claim 1, wherein the step of determining a target placement position of the table based on the drawing information comprises:
according to a preset detailed table placement rule and the drawing information, calculating coordinate information of one vertex of the table in the drawing of the engineering drawing page, and taking the coordinate information as the target placement position;
the step of drawing a detail table at the target placement position in the drawing of the engineering drawing page comprises the following steps:
determining a target size according to the row number and the column number of the target material detail information and a preset table size constraint rule;
and drawing a detail table according to the target size at the target placement position in the drawing of the engineering drawing page.
3. The method for creating a list in an engineering drawing according to claim 1, wherein the product material list file includes information of each material under each field, and the step of extracting target material list information from the product material list file includes:
acquiring a detail information extraction rule, wherein the detail information extraction rule comprises a field to be extracted;
and extracting information of each material under the field to be extracted from the product material detail file, and obtaining target material detail information according to the extracted information.
4. The method for creating a list in an engineering drawing according to claim 3, wherein the list information extraction rule further includes a screening field and a screening range corresponding to the screening field, and the obtaining the target material list information according to the extracted information includes:
and screening each material according to the screening range and the information of each material under the screening field, and taking the information of the screened material under the field to be extracted as target material detail information.
5. The method of creating a statement in an engineering drawing according to claim 3, wherein the step of writing the target material statement information into the statement comprises:
writing the field to be extracted into the detail table as a header;
and writing the target material detail information into the detail table according to the field to be extracted.
6. The method of creating a statement in an engineering drawing according to claim 1, wherein the step of writing the target material statement information into the statement comprises:
acquiring a target font and a target font size;
and filling the target material detail information into the detail form according to the target font and the target font size.
7. The method for creating a list in an engineering drawing according to any one of claims 1 to 6, wherein the step of obtaining a product material list file includes:
outputting a file selection interface;
and acquiring a product material detail file selected based on the file selection interface.
8. A device for creating a list in an engineering drawing, the device comprising:
the acquisition module is used for acquiring a product material detail file and extracting target material detail information from the product material detail file;
the determining module is used for acquiring drawing information of an engineering drawing page in an engineering drawing environment and determining a target placement position of a form according to the drawing information;
and the drawing module is used for drawing a detail table at the target placement position in the drawing of the engineering drawing page and writing the target material detail information into the detail table.
9. The device for creating the detail table in the engineering drawing is characterized by comprising the following components: memory, a processor and a program for creating a list in an engineering drawing stored in the memory and executable on the processor, wherein the program for creating a list in an engineering drawing, when executed by the processor, implements the steps of the method for creating a list in an engineering drawing according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein a program for creating a list in an engineering drawing is stored on the computer-readable storage medium, which when executed by a processor, implements the steps of the method for creating a list in an engineering drawing according to any one of claims 1 to 7.
CN202310186694.1A 2023-02-24 2023-02-24 Method, device and equipment for creating detail table in engineering drawing and readable storage medium Pending CN116306539A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310186694.1A CN116306539A (en) 2023-02-24 2023-02-24 Method, device and equipment for creating detail table in engineering drawing and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310186694.1A CN116306539A (en) 2023-02-24 2023-02-24 Method, device and equipment for creating detail table in engineering drawing and readable storage medium

Publications (1)

Publication Number Publication Date
CN116306539A true CN116306539A (en) 2023-06-23

Family

ID=86829935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310186694.1A Pending CN116306539A (en) 2023-02-24 2023-02-24 Method, device and equipment for creating detail table in engineering drawing and readable storage medium

Country Status (1)

Country Link
CN (1) CN116306539A (en)

Similar Documents

Publication Publication Date Title
CN109801347B (en) Method, device, equipment and medium for generating editable image template
CN111240669B (en) Interface generation method and device, electronic equipment and computer storage medium
CN104820589A (en) Method and device for dynamically adapting webpage
CN103605502A (en) Form page display method and server
CN111068328A (en) Game advertisement configuration table generation method, terminal device and medium
CN113741898B (en) Form generation method, device and equipment
CN110990010A (en) Software interface code generation method and device
CN109783782B (en) Method, equipment, storage medium and device for generating electronic contract template
CN112198998A (en) Text input control method, related device, equipment and medium
CN114937270A (en) Ancient book word processing method, ancient book word processing device and computer readable storage medium
CN107391148B (en) View element saving method and device, electronic equipment and computer storage medium
US11436404B2 (en) Techniques for automated resizing of text content responsive to layout changes
CN106535002B (en) Desktop starter template layout updating method and device
CN111753347A (en) Component screening method based on Revit primitive, Revit platform and storage medium
CN116306539A (en) Method, device and equipment for creating detail table in engineering drawing and readable storage medium
KR102649627B1 (en) An automatic image placement and execution method using the DTP program, an adobe indesign
CN116110065A (en) Method, device, computer equipment and storage medium for generating question card data
CN113449485B (en) Lead generation method, device, equipment and storage medium
CN108846883B (en) Quick drawing method and system for fractal graph, user equipment and storage medium
CN113254131A (en) Page background display method and device
CN114443022A (en) Method for generating page building block and electronic equipment
CN110263310B (en) Data graph generation method and device and computer readable storage medium
CN103309878A (en) Method and device used for layout in webpage displaying
CN112416503A (en) Applet icon display method, device and equipment and computer readable storage medium
JP5528410B2 (en) Viewer device, server device, display control method, electronic comic editing method and program

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