[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN115455510A - Automatic drawing method, electronic equipment and storage medium - Google Patents

Automatic drawing method, electronic equipment and storage medium Download PDF

Info

Publication number
CN115455510A
CN115455510A CN202211176427.8A CN202211176427A CN115455510A CN 115455510 A CN115455510 A CN 115455510A CN 202211176427 A CN202211176427 A CN 202211176427A CN 115455510 A CN115455510 A CN 115455510A
Authority
CN
China
Prior art keywords
cad
instruction
instruction information
instructions
converting
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
CN202211176427.8A
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.)
Shanghai Hongji Information Technology Co Ltd
Original Assignee
Shanghai Hongji Information 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 Shanghai Hongji Information Technology Co Ltd filed Critical Shanghai Hongji Information Technology Co Ltd
Priority to CN202211176427.8A priority Critical patent/CN115455510A/en
Publication of CN115455510A publication Critical patent/CN115455510A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/02CAD in a network environment, e.g. collaborative CAD or distributed simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Geometry (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computational Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Computer Hardware Design (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides an automatic drawing method, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring an instruction information sequence for drawing; converting each instruction information in the instruction information sequence into a CAD instruction; and sequentially executing the CAD instructions through the CAD application program to obtain a CAD image. In the implementation process of the scheme, each instruction information in the instruction information sequence is converted into a CAD instruction of the computer aided design software, and the CAD instruction is sequentially executed through a CAD application program to obtain the CAD image corresponding to the instruction information sequence, so that the condition that errors sometimes occur in the conversion process of image files (such as jpg or pdf format files) is avoided, and the accuracy of obtaining the CAD image corresponding to the instruction information sequence is effectively improved.

Description

Automatic drawing method, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of machine process automation (RPA), and in particular, to an automated drawing method, an electronic device, and a storage medium.
Background
Computer Aided Design (CAD) refers to Design software developed for Computer Aided (e.g., autoCAD) for two-dimensional drawing, detailed drawing, design documentation and basic three-dimensional Design, and has a good user interface for performing various operations through an interactive menu or command line manner.
Most of the existing automatic drawing methods are implemented by calling an Application Programming Interface (API), which converts image files (such as jpg format files and pdf format files) into image data information that can be read by a CAD Application program, and finally generates a corresponding CAD image according to the image data information. Wherein, above-mentioned API includes: objectARX interface,. Net API interface, and AutoLisp interface, among others. In particular practice, it has been found that errors sometimes occur in the conversion of image files (e.g., jpg or pdf format files), which can result in less accurate CAD images being generated.
Disclosure of Invention
An object of the embodiments of the present application is to provide an automatic drawing method, an electronic device, and a storage medium, which are used to solve the problem of low accuracy of a generated CAD image.
The embodiment of the application provides an automatic drawing method, which comprises the following steps: acquiring an instruction information sequence for drawing; converting each instruction information in the instruction information sequence into a CAD instruction of the computer aided design software; and sequentially executing the CAD instructions through the CAD application program to obtain a CAD image. In the implementation process of the scheme, each piece of instruction information in the instruction information sequence is converted into a CAD instruction of CAD (computer aided design) software, and the CAD instruction is sequentially executed through a CAD application program to obtain a CAD image corresponding to the instruction information sequence, so that the condition that errors sometimes occur in the conversion process of image files (such as jpg or pdf format files) is avoided, and the accuracy of obtaining the CAD image corresponding to the instruction information sequence is effectively improved.
Optionally, in an embodiment of the present application, the instruction information includes: program instructions; converting each instruction information in the instruction information sequence into CAD instructions, comprising: and converting the program instruction into a first CAD instruction, wherein the first CAD instruction is used for executing instruction operation corresponding to the program instruction in the CAD application program. In the implementation process of the scheme, the program instruction is converted into the first CAD instruction for executing the instruction operation corresponding to the program instruction in the CAD application program, so that the situation that errors sometimes occur in the conversion process of the image file (such as a jpg or pdf format file) is avoided, and the accuracy of obtaining the CAD image corresponding to the instruction information sequence is effectively improved.
Optionally, in an embodiment of the present application, the instruction information includes: coordinate parameters; converting each instruction information in the instruction information sequence into computer aided design software (CAD) instructions, and further comprising: and converting the coordinate parameters into second CAD instructions, wherein the second CAD instructions are used for moving the cursor to coordinate points corresponding to the coordinate parameters in the CAD application program. In the implementation process of the scheme, the coordinate parameter is converted into the second CAD instruction for moving the cursor to the coordinate point corresponding to the coordinate parameter in the CAD application program, so that the condition that errors sometimes occur in the conversion process of an image file (such as a jpg or pdf format file) is avoided, and the accuracy of obtaining the CAD image corresponding to the instruction information sequence is effectively improved.
Optionally, in an embodiment of the present application, the instruction information includes: inputting parameters; converting each instruction information in the instruction information sequence into computer aided design software (CAD) instructions, and further comprising: and converting the input parameters into third CAD instructions, and simulating the input operation corresponding to the input parameters by the third CAD instructions in the CAD application program. In the implementation process of the scheme, the input parameters are converted into the third CAD instructions for simulating the input operation corresponding to the input parameters in the CAD application program, so that the full-flow auxiliary drawing personnel can complete the standardized drawing flow work and the like, and the automation performance of drawing is improved.
Optionally, in an embodiment of the present application, the input parameters include: inputting parameters by a keyboard; simulating input operation corresponding to the input parameters in the CAD application program, including: and simulating keyboard input operation in the CAD application program according to the keyboard input parameters. In the implementation process of the scheme, more complex keyboard operations (such as opening a CAD file, storing a specified file path and the like) can be completed by simulating the keyboard input operation according to the keyboard input parameters, so that the full-process auxiliary drawing personnel can complete standardized drawing process work and the like, and the automation performance of drawing is improved.
Optionally, in an embodiment of the present application, the input parameters include: inputting parameters by a mouse; simulating input operation corresponding to the input parameters in the CAD application program, including: and simulating mouse input operation in the CAD application program according to the mouse input parameters. In the implementation process of the scheme, more complicated mouse operations (such as opening a CAD file, storing a path to a specified file and the like) can be completed by simulating the mouse input operation according to the mouse input parameters, so that the full-flow auxiliary drawing personnel can complete standardized drawing flow work and the like, and the automation performance of drawing is improved.
Optionally, in an embodiment of the present application, the instruction information includes: presetting an instruction; converting each instruction information in the instruction information sequence into CAD instructions, further comprising: and converting the preset instruction into a fourth CAD instruction, wherein the fourth CAD instruction is used for executing any two or more of instruction operation corresponding to the program instruction, operation of coordinate points corresponding to the coordinate parameters, keyboard input operation and mouse input operation. In the implementation process of the scheme, the preset instruction is converted into the fourth CAD instruction corresponding to the execution program instruction, the coordinate point corresponding to the coordinate parameter, any two or more of the keyboard input operation and the mouse input operation, and the like, so that more complicated instruction operation, keyboard operation, mouse operation and the like can be completed, the full-flow auxiliary drawing personnel can complete standardized drawing flow work and the like, and the automation performance of drawing is improved.
Optionally, in an embodiment of the present application, acquiring a sequence of instruction information for drawing includes: acquiring voice instruction data for drawing; and carrying out voice recognition on the voice instruction data to obtain an instruction information sequence. In the implementation process of the scheme, the instruction information sequence is obtained by carrying out voice recognition on the voice instruction data, so that the function of automatic drawing by voice is realized, and the speed and the efficiency of automatic drawing are improved.
The embodiment of the present application further provides an automatic drawing device, including: the instruction information acquisition module is used for acquiring an instruction information sequence for drawing; the instruction information conversion module is used for converting each instruction information in the instruction information sequence into a Computer Aided Design (CAD) instruction; and the CAD image obtaining module is used for sequentially executing the CAD instructions through the CAD application program to obtain the CAD image.
Optionally, in an embodiment of the present application, the instruction information includes: program instructions; the instruction information conversion module comprises: and the first instruction conversion submodule is used for converting the program instruction into a first CAD instruction, and the first CAD instruction is used for executing instruction operation corresponding to the program instruction in the CAD application program.
Optionally, in an embodiment of the present application, the instruction information includes: coordinate parameters; an instruction information conversion module comprising: and the second instruction conversion submodule is used for converting the coordinate parameters into second CAD instructions, and the second CAD instructions are used for moving the cursor to the operation of coordinate points corresponding to the coordinate parameters in the CAD application program.
Optionally, in an embodiment of the present application, the instruction information includes: inputting parameters; the instruction information conversion module comprises: and the third instruction conversion sub-module is used for converting the input parameters into third CAD instructions, and the third CAD instructions simulate the input operation corresponding to the input parameters in the CAD application program.
Optionally, in an embodiment of the present application, the input parameters include: inputting parameters by a keyboard; a third instruction conversion submodule comprising: and the keyboard output operation unit is used for simulating keyboard input operation in the CAD application program according to the keyboard input parameters.
Optionally, in an embodiment of the present application, the input parameters include: inputting parameters by a mouse; a third instruction converting submodule including: and the mouse output operation unit is used for simulating mouse input operation in the CAD application program according to the mouse input parameters.
Optionally, in an embodiment of the present application, the instruction information includes: presetting an instruction; an instruction information conversion module comprising: and the fourth instruction conversion submodule is used for converting the preset instruction into a fourth CAD instruction, and the fourth CAD instruction is used for executing any two or more of instruction operation corresponding to the program instruction, operation of coordinate points corresponding to the coordinate parameters, keyboard input operation and mouse input operation.
Optionally, in this embodiment of the present application, the instruction information obtaining module includes: the voice data acquisition submodule is used for acquiring voice instruction data for drawing; and the instruction information identification submodule is used for carrying out voice identification on the voice instruction data to obtain an instruction information sequence.
An embodiment of the present application further provides an electronic device, including: a processor and a memory, the memory storing processor-executable machine-readable instructions which, when executed by the processor, perform a method as described above.
Embodiments of the present application also provide a computer-readable storage medium having a computer program stored thereon, where the computer program is executed by a processor to perform the method as described above.
Additional features and advantages of embodiments of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of embodiments of the present application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart illustrating an automated mapping method provided by an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating a processing procedure of an instruction information sequence provided in an embodiment of the present application;
FIG. 3 is a schematic structural diagram of an automatic drawing device provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as presented in the figures, is not intended to limit the scope of the embodiments of the present application, as claimed, but is merely representative of selected embodiments of the present application. All other embodiments obtained by a person skilled in the art based on the embodiments of the present application without making any creative effort belong to the protection scope of the embodiments of the present application.
It is to be understood that "first" and "second" in the embodiments of the present application are used to distinguish similar objects. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
Before the description of the automatic drawing method provided by the embodiment of the present application, some concepts related to the embodiment of the present application are described:
the machine Process Automation (RPA) technology can simulate the operation of an employee on a computer through a keyboard and a mouse in daily work, and can replace a human to execute operations of logging in a system, operating software, reading and writing data, downloading files, reading mails and the like. The automatic robot is used as virtual labor force of an enterprise, so that employees can be liberated from repeated and low-value work, and the energy is put into the work with high added value, so that the enterprise can realize digital intelligent transformation and meanwhile achieve cost reduction and benefit increase.
The RPA is a software robot to replace manual tasks in the business process and interact with the front-end system of a computer like a human, so the RPA can be regarded as a software program robot running in a personal PC or a server, and automatically repeats operations such as mail retrieval, attachment downloading, system login, data processing and analysis and other activities by imitating the operations performed by a user on a computer instead of a human, and is fast, accurate and reliable.
Although the RPA robot and the conventional physical robot solve the problems of speed and accuracy in human work through specific set rules, the conventional physical robot is a robot combining software and hardware, and can execute work only by matching with software under the support of specific hardware; the RPA robot is a pure software level, and can be deployed to any Personal Computer (PC) and server to complete specified work as long as corresponding software is installed. In particular, the functions of the RPA robot can be improved and augmented using the automated mapping method described above, such as: the RPA robot is used for converting the acquired self-defined instruction information into CAD instructions, and the CAD application program is controlled and operated through the CAD instructions, so that the effect of operating the CAD application program by using 'digital staff' is achieved. In essence, the RPA robot realizes unmanned operation of software (such as CAD application programs) through a software automation technology, and finally realizes the effects of CAD operation and design automation processing, cost and labor conservation and processing efficiency improvement.
It should be noted that the automatic drawing method provided in the embodiment of the present application may be executed by an electronic device, where the electronic device refers to a device terminal or a server having a function of executing a computer program, and the device terminal includes, for example: smart phones, personal computers, tablet computers, personal digital assistants, or mobile internet access devices, and the like. A server refers to a device that provides computing services over a network, such as: the server system comprises an x86 server and a non-x 86 server, wherein the non-x 86 server comprises: mainframe, minicomputer, and UNIX server.
Application scenarios to which the automatic drawing method is applicable are described below, where the application scenarios include, but are not limited to: industrial production, architectural drawings, road traffic drawings and other engineering fields. In the application scenes in the engineering fields, the automatic drawing method can be used for simulating the unmanned operation of CAD software of a computer, acquiring an instruction information sequence for drawing, executing a corresponding instruction action in the instruction information sequence and finally realizing the automatic flow drawing of a CAD image, so that the situation that errors sometimes occur in the conversion process of an image file (such as a jpg or pdf format file) is avoided, for example, the mutual position relation among lines in the image file is analyzed, when the CAD application program draws according to the mutual position relation, the errors occur in the drawing of the CAD application program due to the fact that the information such as the line length, the scale and the like cannot be obtained, and the accuracy and the like of obtaining the CAD image corresponding to the instruction information sequence are effectively improved.
Please refer to fig. 1, which is a schematic flow chart diagram of an automatic drawing method provided in the embodiment of the present application; the automatic drawing method mainly includes the steps of converting instruction information into CAD instructions of CAD (computer aided design) software, and enabling a CAD application program (namely CAD software) to sequentially execute the CAD instructions to finish the drawing process of a CAD image, wherein the implementation mode of the automatic drawing method can include the following steps:
step S110: a sequence of instruction information for drawing is obtained.
Instruction Information Sequence (Instruction Information Sequence) refers to an ordered set of Instruction Information for drawing, such as: if a straight line is drawn in the CAD, the "L" command can be used, then the straight line is moved to the coordinates of the starting point (for example, the coordinates of the origin 0, 0), and then the drawing is performed after inputting the information such as the angle and the length, and the set of instruction information required for the drawing can be understood as the above-mentioned instruction information sequence. The above-mentioned command information sequence may be composed of artificially written command information, or may be composed of command information automatically generated by a machine learning model, or may be composed of a combination of part of the written command information and part of the command information automatically generated by the machine learning model.
Step S120: and converting each instruction information in the instruction information sequence into a CAD instruction.
Please refer to fig. 2, which is a schematic diagram illustrating a processing procedure of an instruction information sequence according to an embodiment of the present application; and converting the instruction information corresponding to the program instruction, the coordinate parameter, the input parameter and the preset instruction into a CAD instruction, and sending the CAD instruction to a CAD application program for execution so that the CAD application program executes the CAD instruction to draw a CAD image. It is understood that each instruction information in the instruction information sequence may be converted into a CAD instruction by an automated executive program (e.g., RPA robot) compiled or interpreted by a preset programming language; among others, programming languages that may be used are, for example: C. c + +, java, BASIC, javaScript, LISP, shell, perl, ruby, python, and PHP, among others.
Step S130: and sequentially executing the CAD instructions through the CAD application program to obtain a CAD image.
A CAD Application Program (CAD Application Program) refers to an Application Program for executing CAD instructions, and the CAD Application Program may be a two-dimensional CAD Program or a three-dimensional CAD Program, and the CAD Application Program may specifically adopt AutoCAD software. The CAD application program is characterized by a complete window capable of being executed by using the CAD instructions, so that the CAD application program directly calls the program instructions in the CAD application program when executing the CAD instructions through the window. It is understood that the window herein may refer to a window corresponding to a Graphical User Interface (GUI), and may also refer to a window corresponding to a Command-Line Interface (CLI).
The embodiment of step S130 described above is, for example: reading the CAD instruction by an automatic executive program compiled or interpreted by using a preset programming language, inputting the CAD instruction into a CAD application program, and sequentially executing the CAD instruction by the CAD application program to obtain a CAD image. It is understood that the above-mentioned automated executing program may be executed by being deployed on an electronic device installed with a CAD application, or by being deployed on another device in communication with the electronic device, or may be a program that can remotely send commands to the CAD application for execution. That is, the electronic device may or may not have a CAD application installed thereon, and when the CAD application is not installed on the electronic device, the electronic device may send the CAD instructions to the device having the CAD application installed thereon for execution.
In the implementation process, each instruction information in the instruction information sequence is converted into a CAD instruction of the CAD, and the CAD instruction is sequentially executed through the CAD application program to obtain the CAD image corresponding to the instruction information sequence, so that the situation that errors sometimes occur in the conversion process of image files (such as jpg or pdf format files) is avoided, and the accuracy of obtaining the CAD image corresponding to the instruction information sequence is effectively improved.
As an alternative implementation of the step S110, acquiring a command information sequence for drawing includes:
step S111: voice instruction data for drawing is acquired.
The obtaining method of the voice instruction data in step S111 includes: the first acquisition mode is that terminal equipment such as a recorder or a gramophone is used for recording or transmitting voice for drawing sent by a drawing person, and voice instruction data are acquired; then the terminal equipment sends voice instruction data to the electronic equipment, then the electronic equipment receives the voice instruction data sent by the terminal equipment, and the electronic equipment can store the voice instruction data into a file system, a database or mobile storage equipment; the second obtaining manner is to obtain voice instruction data of voice synthesis, specifically, for example: acquiring an instruction text from a file system, a database or mobile storage equipment, and then performing voice synthesis on the instruction text by using a voice synthesis technology to acquire voice instruction data; the third obtaining mode is to use a browser and other software to obtain the voice command data on the internet, or use other application programs to access the internet to obtain the voice command data.
Step S112: and carrying out voice recognition on the voice instruction data to obtain an instruction information sequence.
The embodiment of step S112 described above is, for example: and performing voice recognition on voice command data by adopting a Hidden Markov Model (HMM) algorithm, a knowledge graph-based algorithm, an Artificial Neural Network (ANN) algorithm or a voice enhancement self-adaptive algorithm to obtain a command information sequence. The storage format of the instruction information sequence may also include but is not limited to: txt format, script Object Notation (JSON) format, eXtensible Markup Language (XML) format, or the like. The instruction information sequence may be recorded with complete drawing instruction information, and thus the instruction information in the instruction information sequence includes but is not limited to: program instructions (e.g., instructions required for execution of a CAD application), coordinate parameters (e.g., key node coordinates for drawing), input parameters (e.g., keyboard input parameters or mouse input parameters), and preset instructions (e.g., custom special instructions), and the like.
As a first optional implementation manner of the step S120, the instruction information may include: program instructions; the process by which the instruction information can be converted into CAD instructions according to the program instructions may include:
step S121: and converting the program instruction into a first CAD instruction, wherein the first CAD instruction is used for executing instruction operation corresponding to the program instruction in the CAD application program.
The embodiment of step S121 described above is, for example: assume that the above-described instruction information sequence includes: program instructions: l, keyboard information: enter, start point coordinate parameter: 0, keyboard information: enter, mouse angle: 15, keyboard information: 15, keyboard information: enter, preset instruction: ctrl + S. The program instructions in the sequence of instruction information may be converted to first CAD instructions (i.e., L starts drawing a straight line) from which the CAD application may start performing a straight line drawing operation.
As a second optional implementation manner of the step S120, the instruction information may include: coordinate parameters; the process by which the instruction information can be converted into CAD instructions based on the coordinate parameters can further include:
step S122: and converting the coordinate parameters into second CAD instructions, wherein the second CAD instructions are used for moving the cursor to the coordinate points corresponding to the coordinate parameters in the CAD application program.
The embodiment of the step S122 is, for example: assume that the above-described instruction information sequence includes: program instructions: l, keyboard information: enter, start point coordinate parameter: 0, keyboard information: enter, mouse angle: 15, keyboard information: 15, keyboard information: enter, preset instruction: ctrl + S. The coordinate parameter of the starting point in the command information sequence can be converted into a second CAD command, and the CAD application can move the cursor to the coordinate point corresponding to the coordinate parameter of the starting point (for example, 0 coordinates of the starting point) according to the second CAD command.
In the implementation process, the coordinate parameter is converted into the second CAD instruction, and the instruction information sequence includes the accurate coordinate parameter, so that the converted CAD instruction draws a more accurate CAD image, thereby reducing the probability of errors occurring in the conversion process of an image file (such as a jpg or pdf format file), and effectively improving the accuracy of obtaining a CAD image corresponding to the instruction information sequence.
As a third optional implementation manner of the step S120, the instruction information may include: inputting parameters; the process by which the instruction information can be converted into CAD instructions based on the input parameters may further include:
step S123: and converting the input parameters into third CAD instructions, and simulating the input operation corresponding to the input parameters by the third CAD instructions in the CAD application program.
The embodiment of step S123 described above is, for example: assume that the above-mentioned instruction information sequence includes: program instructions: l, keyboard information: enter, start point coordinate parameter: 0, keyboard information: enter, mouse angle: 15, keyboard information: 15, keyboard information: enter, preset instruction: ctrl + S. Keyboard information (e.g., enter) in the instruction information sequence may be converted into a third CAD instruction, and the CAD application may perform a press input operation of the Enter key according to the third CAD instruction. Alternatively, the mouse angle (e.g., 15 degrees) in the command information sequence may be converted into a third CAD command, and the CAD application may simulate an input operation of adjusting the mouse angle to a preset angle (e.g., 15 degrees) according to the third CAD command.
As an optional implementation manner of the step S123, the input parameters may include: inputting parameters by a keyboard; the process of converting the instruction information into CAD instructions according to the keyboard input parameters may further include:
step S123a: and simulating keyboard input operation in the CAD application program according to the keyboard input parameters.
The embodiment of the step S123a is, for example: assume that the above-mentioned instruction information sequence includes: program instructions: l, keyboard information: enter, start point coordinate parameter: 0, keyboard information: enter, mouse angle: 15, keyboard information: 15, keyboard information: enter, preset instruction: ctrl + S. Keyboard information (e.g., enter) in the instruction information sequence can be converted into a third CAD instruction, and the CAD application can execute a pressing input operation of an Enter key according to the third CAD instruction. Keyboard information (e.g., 15) in the instruction information sequence may also be converted into third CAD instructions, and the CAD application may simulate an input operation for inputting a preset number (e.g., 15) using a keyboard according to the third CAD instructions. In the implementation process of the scheme, more complex keyboard operations (such as opening a CAD file, storing a specified file path and the like) can be completed by simulating the keyboard input operation according to the keyboard input parameters, so that the full-flow auxiliary drawing personnel can complete standardized drawing flow work and the like, and the automation performance of drawing is improved.
As an optional implementation manner of the step S123, the input parameters may include: inputting parameters by a mouse; the process of converting the command information into CAD commands according to the mouse input parameters may further include:
step S123b: and simulating mouse input operation in the CAD application program according to the mouse input parameters.
The embodiment of the step S123b is as follows: assume that the above-described instruction information sequence includes: program instructions: l, keyboard information: enter, start point coordinate parameter: 0, keyboard information: enter, mouse angle: 15, keyboard information: 15, keyboard information: enter, preset instruction: ctrl + S. The mouse angle (e.g., 15 degrees) in the command information sequence may be converted into a third CAD command, and the CAD application may simulate an input operation of adjusting the mouse angle to a preset angle (e.g., 15 degrees) according to the third CAD command. In the implementation process, more complicated mouse operations (such as opening a CAD file, storing a path to a specified file and the like) can be completed by simulating the mouse input operation according to the mouse input parameters, so that the full-flow auxiliary drawing personnel can complete standardized drawing flow work and the like, and the automation performance of drawing is improved.
As a fourth optional implementation of the step S120, the instruction information may include: presetting an instruction; the process of converting the instruction information into CAD instructions according to the preset instructions may further include:
step S124: and converting the preset instruction into a fourth CAD instruction, wherein the fourth CAD instruction is used for executing any two or more of instruction operation corresponding to the program instruction, operation of coordinate points corresponding to the coordinate parameters, keyboard input operation and mouse input operation.
The embodiment of step S124 described above is, for example: assume that the above-mentioned instruction information sequence includes: program instructions: l, keyboard information: enter, start point coordinate parameter: 0, keyboard information: enter, mouse angle: 15, keyboard information: 15, keyboard information: enter, preset instruction: ctrl + S and close the file. Preset instructions in the instruction information sequence (e.g., ctrl + S and close file) may be converted into fourth CAD instructions, so that the CAD application may perform a combination of saving files and closing files, etc., according to the preset instructions. Another example is: preset instructions (such as Ctrl + Z and close files) in the instruction information sequence may also be converted into fourth CAD instructions, so that the CAD application can perform a combination of rollback operation, file closing, and the like, according to the preset instructions.
Optionally, when a problem is encountered in the process of drawing according to the CAD instruction, or when drawing needs to be improved in the process of drawing according to the CAD instruction, any instruction information in the instruction information sequence may be modified to obtain a modified instruction information sequence, each instruction information in the modified instruction information sequence is converted into a CAD instruction of the computer aided design software, and finally, the CAD instruction is sequentially executed through the CAD application program to obtain a CAD image with a better effect. Due to the fact that problems are encountered in the drawing process or the drawing needs to be improved, the instruction information can be modified to achieve better drawing effect, and therefore plasticity and robustness of the automatic drawing method are improved. Compared with an automatic drawing scheme realized through Artificial Intelligence (AI) and Image Recognition (Image Recognition), the scheme provided by the automatic drawing method can save more computing resources, so that the speed and the efficiency of automatic drawing are improved.
Please refer to fig. 3, which is a schematic structural diagram of an automatic drawing device provided in an embodiment of the present application; the embodiment of the present application provides an automatic drawing device 200, including:
the instruction information obtaining module 210 is configured to obtain an instruction information sequence for drawing.
And the instruction information conversion module 220 is used for converting each instruction information in the instruction information sequence into a CAD instruction.
And a CAD image obtaining module 230, configured to sequentially execute the CAD instructions through the CAD application to obtain a CAD image.
Optionally, in an embodiment of the present application, the instruction information includes: program instructions; the instruction information conversion module comprises:
and the first instruction conversion submodule is used for converting the program instruction into a first CAD instruction, and the first CAD instruction is used for executing instruction operation corresponding to the program instruction in the CAD application program.
Optionally, in an embodiment of the present application, the instruction information includes: coordinate parameters; an instruction information conversion module comprising:
and the second instruction conversion submodule is used for converting the coordinate parameters into second CAD instructions, and the second CAD instructions are used for moving the cursor to the operation of coordinate points corresponding to the coordinate parameters in the CAD application program.
Optionally, in an embodiment of the present application, the instruction information includes: inputting parameters; the instruction information conversion module comprises:
and the third instruction conversion sub-module is used for converting the input parameters into third CAD instructions, and the third CAD instructions simulate the input operation corresponding to the input parameters in the CAD application program.
Optionally, in an embodiment of the present application, the input parameters include: inputting parameters by a keyboard; a third instruction conversion submodule comprising:
and the keyboard output operation unit is used for simulating keyboard input operation in the CAD application program according to the keyboard input parameters.
Optionally, in an embodiment of the present application, the input parameters include: inputting parameters by a mouse; a third instruction conversion submodule comprising:
and the mouse output operation unit is used for simulating mouse input operation in the CAD application program according to the mouse input parameters.
Optionally, in an embodiment of the present application, the instruction information includes: presetting an instruction; an instruction information conversion module comprising:
and the fourth instruction conversion submodule is used for converting the preset instruction into a fourth CAD instruction, and the fourth CAD instruction is used for executing any two or more of instruction operation corresponding to the program instruction, operation of coordinate points corresponding to the coordinate parameters, keyboard input operation and mouse input operation.
Optionally, in an embodiment of the present application, the instruction information obtaining module includes:
and the voice data acquisition submodule is used for acquiring voice instruction data for drawing.
And the instruction information identification submodule is used for carrying out voice identification on the voice instruction data to obtain an instruction information sequence.
It should be understood that the apparatus corresponds to the above-mentioned embodiment of the automatic drawing method, and can perform the steps related to the above-mentioned embodiment of the method, and the specific functions of the apparatus can be referred to the above description, and the detailed description is appropriately omitted herein to avoid redundancy. The device includes at least one software function that can be stored in memory in the form of software or firmware (firmware) or solidified in the Operating System (OS) of the device.
Please refer to fig. 4, which illustrates a schematic structural diagram of an electronic device provided in an embodiment of the present application. An electronic device 300 provided in an embodiment of the present application includes: a processor 310 and a memory 320, the memory 320 storing machine-readable instructions executable by the processor 310, the machine-readable instructions, when executed by the processor 310, performing the method as described above.
Embodiments of the present application further provide a computer-readable storage medium 330, where the computer-readable storage medium 330 stores a computer program, and the computer program is executed by the processor 310 to perform the above method.
The computer-readable storage medium 330 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
It should be noted that, in this specification, each embodiment is described in a progressive manner, and each embodiment focuses on differences from other embodiments, and portions that are the same as and similar to each other in each embodiment may be referred to. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
In addition, functional modules of the embodiments in the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part. Furthermore, in the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the embodiments of the present application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
In this document, relational terms such as first and second, and the like may be 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.
The above description is only an alternative embodiment of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the embodiments of the present application, and all the modifications and substitutions should be covered by the scope of the embodiments of the present application.

Claims (10)

1. An automated drawing method, comprising:
acquiring an instruction information sequence for drawing;
converting each instruction information in the instruction information sequence into a CAD instruction;
and sequentially executing the CAD instructions through a CAD application program to obtain a CAD image.
2. The method of claim 1, wherein the instruction information comprises: program instructions; the converting each instruction information in the instruction information sequence into CAD instructions comprises the following steps:
and converting the program instruction into a first CAD instruction, wherein the first CAD instruction is used for executing instruction operation corresponding to the program instruction in the CAD application program.
3. The method of claim 1, wherein the instruction information comprises: coordinate parameters; the step of converting each instruction information in the instruction information sequence into a CAD instruction comprises the following steps:
and converting the coordinate parameter into a second CAD instruction, wherein the second CAD instruction is used for moving a cursor to a coordinate point corresponding to the coordinate parameter in the CAD application program.
4. The method of claim 1, wherein the instruction information comprises: inputting parameters; the converting each instruction information in the instruction information sequence into CAD instructions comprises the following steps:
and converting the input parameters into third CAD instructions, wherein the third CAD instructions simulate the input operation corresponding to the input parameters in the CAD application program.
5. The method of claim 4, wherein the input parameters comprise: inputting parameters by a keyboard; the simulating the input operation corresponding to the input parameter in the CAD application program comprises:
and simulating keyboard input operation in the CAD application program according to the keyboard input parameters.
6. The method of claim 4, wherein the input parameters comprise: inputting parameters by a mouse; the simulating the input operation corresponding to the input parameter in the CAD application program comprises:
and simulating mouse input operation in the CAD application program according to the mouse input parameters.
7. The method of claim 1, wherein the instruction information comprises: presetting an instruction; the step of converting each instruction information in the instruction information sequence into a CAD instruction comprises the following steps:
and converting the preset instruction into a fourth CAD instruction, wherein the fourth CAD instruction is used for executing any two or more of instruction operation corresponding to the program instruction, operation of coordinate points corresponding to the coordinate parameters, keyboard input operation and mouse input operation.
8. The method according to any one of claims 1-7, wherein the obtaining of the sequence of instruction information for drawing comprises:
acquiring voice instruction data for drawing;
and carrying out voice recognition on the voice instruction data to obtain the instruction information sequence.
9. An electronic device, comprising: a processor and a memory, the memory storing machine-readable instructions executable by the processor, the machine-readable instructions, when executed by the processor, performing the method of any of claims 1 to 8.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, performs the method of any one of claims 1 to 8.
CN202211176427.8A 2022-09-26 2022-09-26 Automatic drawing method, electronic equipment and storage medium Pending CN115455510A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211176427.8A CN115455510A (en) 2022-09-26 2022-09-26 Automatic drawing method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211176427.8A CN115455510A (en) 2022-09-26 2022-09-26 Automatic drawing method, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115455510A true CN115455510A (en) 2022-12-09

Family

ID=84306285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211176427.8A Pending CN115455510A (en) 2022-09-26 2022-09-26 Automatic drawing method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115455510A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117831532A (en) * 2024-03-05 2024-04-05 大方智造(天津)科技有限公司 CAX system interaction method based on AI voice command

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180129188A1 (en) * 2014-09-15 2018-05-10 Desprez, Llc Natural language user interface for computer-aided design systems
JP2021033839A (en) * 2019-08-28 2021-03-01 株式会社トーアエンジニアリング CAD control support system
CN113641328A (en) * 2021-07-16 2021-11-12 深圳市华粤世通软件科技有限公司 Computer control method, device and equipment based on voice recognition and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180129188A1 (en) * 2014-09-15 2018-05-10 Desprez, Llc Natural language user interface for computer-aided design systems
JP2021033839A (en) * 2019-08-28 2021-03-01 株式会社トーアエンジニアリング CAD control support system
CN113641328A (en) * 2021-07-16 2021-11-12 深圳市华粤世通软件科技有限公司 Computer control method, device and equipment based on voice recognition and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117831532A (en) * 2024-03-05 2024-04-05 大方智造(天津)科技有限公司 CAX system interaction method based on AI voice command

Similar Documents

Publication Publication Date Title
US11699295B1 (en) Machine learning for computing enabled systems and/or devices
EP3692438B1 (en) Automatic generation of a graphic user interface (gui) based on a gui screen image
CN112149399B (en) Table information extraction method, device, equipment and medium based on RPA and AI
CN108319456B (en) Development method of programming-free deep learning application
KR20150143473A (en) Signal capture controls in recalculation user interface
KR102322885B1 (en) Robotic process automation system for recommending improvement process of automated work flow
CN106886586B (en) Internet map application development platform based on open source project
KR102307471B1 (en) Robotic process automation system
CN113391871A (en) RPA element intelligent fusion picking method and system
CN114691148B (en) Model reasoning acceleration method, device, electronic equipment and storage medium
US20200265353A1 (en) Intelligent workflow advisor for part design, simulation and manufacture
CN117057318A (en) Domain model generation method, device, equipment and storage medium
CN115455510A (en) Automatic drawing method, electronic equipment and storage medium
US20190018660A1 (en) Converting whiteboard images to personalized wireframes
CN115546465A (en) Method, medium and electronic device for positioning element position on interface
US9142184B1 (en) Speed function module and numerical minimization module for an active contour model
US11861335B1 (en) Learn to extract from syntax tree
CN116306672A (en) Data processing method and device
CN111597224B (en) Method and device for generating structured information, electronic equipment and storage medium
CN114781029A (en) Method, system and storage medium for converting three-dimensional information model into two-dimensional graph
CN113867724A (en) Method and system for automatically generating GUI (graphical user interface) code, server and medium
CN117455416B (en) Data analysis method and system applied to building project management
US12141554B2 (en) Intelligent and predictive modules for software development and coding using artificial intelligence and machine learning
US20240281218A1 (en) Intelligent and predictive modules for software development and coding using artificial intelligence and machine learning
CN115495807B (en) Automatic drawing method 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20221209