CN115659710A - Information importing method and device for CAD platform, storage medium and electronic device - Google Patents

Information importing method and device for CAD platform, storage medium and electronic device Download PDF

Info

Publication number
CN115659710A
CN115659710A CN202211694440.2A CN202211694440A CN115659710A CN 115659710 A CN115659710 A CN 115659710A CN 202211694440 A CN202211694440 A CN 202211694440A CN 115659710 A CN115659710 A CN 115659710A
Authority
CN
China
Prior art keywords
information
import
target
standard
format
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
CN202211694440.2A
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.)
Beijing Explorer Software Co ltd
Original Assignee
Beijing Explorer Software 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 Beijing Explorer Software Co ltd filed Critical Beijing Explorer Software Co ltd
Priority to CN202211694440.2A priority Critical patent/CN115659710A/en
Publication of CN115659710A publication Critical patent/CN115659710A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The application discloses an information importing method and device of a CAD platform, a storage medium and an electronic device. The method comprises the steps of responding to an information import request, and obtaining target information to be imported into a CAD platform, wherein the information import request is used for requesting to import the target information into a drawing frame of the CAD platform; under the condition that the style of the target information is a non-character style, processing the target information according to standard format information of a picture frame to obtain first import information, and importing the first import information into the picture frame, wherein the standard format information is a standard format corresponding to information allowed to be imported in the picture frame; and under the condition that the style of the target information is a character style, processing information in the target information, which is positioned in a standard range of the picture frame, according to standard format information to obtain second import information, and importing the second import information into the picture frame. The method and the device solve the technical problem that the information importing efficiency of the CAD platform is low.

Description

Information importing method and device for CAD platform, storage medium and electronic device
Technical Field
The present disclosure relates to the field of computers, and in particular, to an information importing method and apparatus for a CAD platform, a storage medium, and an electronic apparatus.
Background
In a CAD (computer aided design) scene, under the condition of engineering professional description and a bill of materials, information is easier to edit and modify by using conventional office software, so that edited documents generated in other office software need to be imported into a CAD platform, and the conventional method for importing information into the CAD platform usually needs to manually copy or cut information of a single-page file and paste the information into a CAD, so that the problem of low information importing efficiency exists.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides an information importing method and device of a CAD platform, a storage medium and an electronic device, so as to at least solve the technical problem of low checking efficiency of primitive information.
According to an aspect of an embodiment of the present application, there is provided an information importing method for a CAD platform, including: an information importing method of a CAD platform is characterized by comprising the following steps:
responding to an information import request, and acquiring target information to be imported into a CAD platform, wherein the information import request is used for requesting to import the target information into a drawing frame of the CAD platform;
when the style of the target information is a non-character style, processing the target information according to standard format information of the picture frame to obtain first import information, and importing the first import information into the picture frame, wherein the standard format information is a standard format corresponding to information which is allowed to be imported in the picture frame;
and if the style of the target information is a character style, processing information in the target information, which is positioned in a standard range of the frame, according to the standard format information to obtain second import information, and importing the second import information into the frame, wherein the standard range is a standard range corresponding to information which is allowed to be imported into the frame.
According to another aspect of the embodiments of the present application, there is also provided an information importing apparatus of a CAD platform, including:
the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for responding to an information import request and acquiring target information to be imported into a CAD platform, and the information import request is used for requesting to import the target information into a drawing frame of the CAD platform;
a first processing unit, configured to, when the style of the target information is a non-text style, process the target information according to standard format information of the frame to obtain first import information, and import the first import information into the frame, where the standard format information is a standard format corresponding to information that is allowed to be imported into the frame;
and a second processing unit, configured to, when the style of the target information is a text style, process information in the target information that is within a standard range of the frame according to the standard format information to obtain second import information, and import the second import information into the frame, where the standard range is a standard range corresponding to information that is allowed to be imported into the frame.
As an optional solution, the second processing unit includes:
the first processing module is used for processing first information in the standard range of the picture frame in the target information according to the standard format information to obtain first target import information;
a second processing module, configured to process a second information of the target information, which is outside a standard range of the frame, into a third information, where the third information is within the standard range of the frame;
the third processing module is used for processing the third information according to the standard format information to obtain second target import information;
and a first import module, configured to import the first target import information and the second target import information into the frame.
As an optional solution, the second processing module includes:
a first executing module, configured to execute the following steps until all information in the second information is processed as the third information:
determining at least one piece of second information from the second information, and forming a current information set by the at least one piece of second information, wherein the occupation amount corresponding to the information in the current information set is less than or equal to an upper limit threshold corresponding to the standard range;
determining the information in the current information set as the third information;
and if residual information which is not processed into the third information exists in the second information, determining at least one piece of residual information from the residual information, and forming the current information set by the at least one piece of residual information.
As an optional solution, the apparatus further includes:
a first determining submodule, configured to determine second information of a preset paragraph from the second information, and form the current information set from the second information of the preset paragraph, where a number of paragraphs of the preset paragraph is less than or equal to an upper limit number of paragraphs corresponding to the standard range;
and the second determining submodule is used for determining second information of a preset page from the second information and forming the current information set by the second information of the preset page, wherein the number of pages of the preset page is less than or equal to the upper limit number of pages corresponding to the standard range.
As an optional solution, the first processing unit includes:
and the first adjusting module is used for adjusting the display parameters of the target information into the display parameters corresponding to the standard format information.
As an optional solution, the first adjusting module includes:
a first adjusting sub-module, configured to adjust a display scale of the target information to a display scale corresponding to the standard format information when the style of the target information is a picture style;
and a second adjusting sub-module, configured to adjust a display size of the target information to a display size corresponding to the standard format information when the style of the target information is a table style.
As an optional solution, the first processing unit includes:
a fourth processing module, configured to, when the information import request indicates that the target information is processed into a first text format and the first text format is a text format allowed by the CAD platform, process the target information according to the first text format and standard format information of the frame, so as to obtain first import information in the first text format;
and a fifth processing module, configured to, when the information import request does not indicate that the target information is processed into the first text format, process the target information according to a second text format and standard format information of the frame to obtain first import information of the second text format, where the second text format is a default text format of the CAD platform.
According to yet another aspect of embodiments herein, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the information import method of the CAD platform as above.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the information importing method of the CAD platform through the computer program.
In the embodiment of the application, target information to be imported into a CAD platform is obtained in response to an information import request, wherein the information import request is used for requesting to import the target information into a drawing frame of the CAD platform; when the style of the target information is a non-character style, processing the target information according to standard format information of the picture frame to obtain first import information, and importing the first import information into the picture frame, wherein the standard format information is a standard format corresponding to information which is allowed to be imported in the picture frame; when the style of the target information is a character style, processing information in the standard range of the frame in the target information according to the standard format information to obtain second import information, and importing the second import information into the frame, wherein the standard range is a standard range corresponding to information which is allowed to be imported in the frame, and after the target information is obtained, processing the target information of a non-character style into first import information of the standard format information and processing the target information of a character style into second import information of the standard format information in the standard range, so that the purpose of importing the target information into the frame of the CAD platform is achieved, the technical effect of improving the import efficiency of the target information is achieved, and the technical problem that the information import efficiency of the CAD platform is low is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic diagram of an application environment of an alternative information importing method for a CAD platform according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating a flow of an alternative information importing method for a CAD platform according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an alternative information importing method of a CAD platform according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an alternative information importing method for a CAD platform according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an alternative information importing method for a CAD platform according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an alternative information importing method for a CAD platform according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an alternative information importing method for a CAD platform according to an embodiment of the present application;
FIG. 8 is a schematic diagram of an alternative information importing apparatus of a CAD platform according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an alternative electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, 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 partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiments of the present application, an information importing method of a CAD platform is provided, and optionally, as an optional implementation, the information importing method of the CAD platform may be applied to, but is not limited to, an environment as shown in fig. 1. The system may include, but is not limited to, a user device 102 and a server 112, the user device 102 may include, but is not limited to, a display 104, a processor 106 and a memory 108, and the server 112 includes a database 114 and a processing engine 116.
The specific process comprises the following steps:
step S102, the user equipment 102 acquires target information to be imported into a CAD platform;
steps S104-S106, sending the target information to the server 112 through the network 110;
in steps S108-S110, the server 112 identifies the style of the target information as a text style or a non-text style through the processing engine, and processes the target information into the first import information and the second import information
Steps S112-S114, sending the first import information and the second import information to the user equipment 102 through the network 110;
in step S116, the user equipment 102 imports the first import information and the second import information into frames through the processor 106, displays the frames after importing the information on the display 104, and stores the frames after importing the information in the memory 108.
In addition to the example shown in fig. 1, the above steps may be performed by the client or the server independently, or by cooperation of the client and the server, such as the user equipment 102 performing the above steps of S108, so as to relieve the processing pressure of the server 112. The user equipment 102 includes, but is not limited to, a handheld device (e.g., a mobile phone), a notebook computer, a desktop computer, a vehicle-mounted device, and the like, and the application does not limit the specific implementation manner of the user equipment 102.
Optionally, as an optional implementation manner, as shown in fig. 2, the information importing method of the CAD platform includes:
s202, responding to an information import request, and acquiring target information to be imported into the CAD platform, wherein the information import request is used for requesting to import the target information into a drawing frame of the CAD platform;
s204, under the condition that the style of the target information is a non-character style, processing the target information according to standard format information of a picture frame to obtain first import information, and importing the first import information into the picture frame, wherein the standard format information is a standard format corresponding to information allowed to be imported in the picture frame;
s206, under the condition that the style of the target information is a character style, processing information in the target information, which is positioned in a standard range of a picture frame, according to standard format information to obtain second import information, and importing the second import information into the picture frame, wherein the standard range is a standard range corresponding to information which is allowed to be imported into the picture frame.
Optionally, in this embodiment, the information importing method of the CAD platform may be applied to a software platform for engineering drawing, when an engineer needs to complete contents such as an engineering professional description, a material list, a fire green building description, and the like, the method may be more conveniently edited and modified by using common office software such as word, excel, and the like, but in the prior art, information is copied or cut from an existing file and copied in the CAD, so that typesetting is not beautiful enough, only the first page of information can be imported, batch import cannot be completed, and when a proportion problem occurs, only manual adjustment by the engineer is performed, so that the importing efficiency is low.
Optionally, in this embodiment, by selecting a drawing frame of a standard size to be drawn in advance, processing the document according to a text style and a non-text style, and processing the information in the standard format in the standard range into the import information, the beneficial effect of cutting the length of the insertion object according to the size of the drawing frame automatically and inserting multiple pages of information at one time can be achieved.
Optionally, in this embodiment, in step S202, it may be understood, but not limited to, that an information import instruction is detected, information such as a document or drawing to be imported into the CAD platform is obtained, and it may be, but not limited to, obtaining a file name, a file page number, a file attribute, and the like of the file to be imported, target information to be imported into the CAD platform may be, but not limited to, a common office document that is convenient to edit, such as WORD, EXCEl, and the like, and a frame of the CAD platform may be, but not limited to, understood as an area for displaying information on the CAD platform, and size specification of the display area may be determined by size information, such as, but not limited to, length and width of a preset frame.
Optionally, in this embodiment, in step S204, it may be understood, but not limited to, after importing the file, identifying whether the file content is a picture and a table, identifying and processing the picture and the table as first import information, which may, but is not limited to, processing a size of the picture, a scaling ratio, a size of the table, and a column attribute and a row attribute of the table, inserting the picture into the CAD using an OLE interface function, and processing a size and a scaling size of the OLE, the non-text style may, but is not limited to, include a non-text style such as a table and a picture, the standard format of the frame may, but is not limited to, include a shape of the frame, an offset of the frame, a line shape, a line width, a proportion of the frame, and the like, and the first import information is information conforming to the standard frame.
Alternatively, in this embodiment, step S206 may be, but not limited to, after the file is imported, identify the file, identify the content of the text style, acquire information such as paragraphs and attributes corresponding to the text style, and further process information in a standard range into the second import information, where the standard range may include, but is not limited to, the number of paragraphs that are allowed to be inserted in the frame, the number of lines that are allowed to be inserted in the frame, the maximum height value, and the like.
Optionally, in this embodiment, but not limited to, format recognition may be performed on information to be imported in advance, the picture is recognized, the table classifies the picture, the table and the text, and different processing is performed according to different styles, for example, paragraph information of the text, format information of the text, row attribute and column attribute of the table, size and scaling of the picture, and the like are acquired.
In addition, when information is imported, the information to be imported is classified into a text style, a table style and a picture style, and is processed according to a standard format and a standard range, so that the comprehensiveness of the information import is improved.
For further example, as shown in fig. 3, when a word document is detected to be imported into CAD software, target information 302 to be imported into a CAD platform is obtained, a picture style 304, a form style 306, and a text style 308 in the document are identified, drawing frame information is configured in advance, as shown in fig. 4, a user selects a file and a standard format in an interactive window 402, selects an insertion mode 404 to insert according to a piece of content or according to a page of content, selects a drawing frame standard 406, selects a file path 408, fills in a name 410, and fills in a title text height 412. And processing the target information of the character style into second import information according to the standard range under the condition that the target information is recognized as the character style, processing the target information of the non-character style into first import information according to the standard format under the condition that the target information is recognized as the non-character style, and finally importing the first import information and the second import information into the CAD platform.
In the embodiment of the application, the target information to be imported into the CAD platform is obtained in response to an information import request, wherein the information import request is used for requesting to import the target information into a drawing frame of the CAD platform; under the condition that the style of the target information is a non-character style, processing the target information according to standard format information of a picture frame to obtain first import information, and importing the first import information into the picture frame, wherein the standard format information is a standard format corresponding to information allowed to be imported in the picture frame; when the style of the target information is a character style, processing information in the target information, which is positioned in a standard range of a frame, according to standard format information to obtain second import information, and importing the second import information into the frame, wherein the standard range is a standard range corresponding to information which is allowed to be imported into the frame, processing the target information of a non-character style into first import information of the standard format information after obtaining the target information, and processing the target information of the character style into second import information of the standard format information in the standard range, so that the purpose of importing the target information into the frame of the CAD platform is achieved, the technical effect of improving the import efficiency of the target information is achieved, and the technical problem that the information import efficiency of the CAD platform is low is solved.
As an alternative, processing information, which is located in a standard range of the frame, in the target information according to standard format information to obtain second import information, and importing the second import information into the frame, includes:
processing first information in the standard range of the picture frame in the target information according to standard format information to obtain first target import information;
processing second information which is out of the standard range of the picture frame in the target information into third information, wherein the third information is in the standard range of the picture frame;
processing the third information according to the standard format information to obtain second target import information;
importing the first target import information and the second target import information into the drawing frame.
Optionally, in this embodiment, it may be understood, but not limited to, that standard range information is acquired in advance, information in the standard range is processed into first target import information according to a standard format, second information outside the standard range is processed into information in the range, and when the range of the second information satisfies the information in the range, that is, the second information is processed into third information and then processed into second target import information according to the standard format information.
It should be noted that the efficiency of information processing can be improved by processing the second information outside the standard range into the third information within the standard range and then processing the third information according to the standard format.
According to the embodiment provided by the application, first information in the target information, which is located in a standard range of a picture frame, is processed according to standard format information to obtain first target import information; processing second information, which is positioned outside a standard range of the picture frame, in the target information into third information, wherein the third information is positioned in the standard range of the picture frame; processing the third information according to the standard format information to obtain second target import information; the first target import information and the second target import information are imported into the picture frame, so that the aim of importing the target information beyond the standard range into the picture frame according to the standard range is fulfilled, and the technical effect of improving the information processing efficiency is achieved.
As an alternative, processing the second information out of the standard range of the frame in the target information into third information includes:
executing the following steps until all the second information is processed into third information:
determining at least one piece of second information from the second information, and forming a current information set by the at least one piece of second information, wherein the occupation amount corresponding to the information in the current information set is less than or equal to an upper limit threshold corresponding to the standard range;
determining the information in the current information set as third information;
and under the condition that residual information which is not processed into third information exists in the second information, determining at least one piece of residual information from the residual information, and forming a current information set by the at least one piece of residual information.
Alternatively, in the present embodiment, it can be understood, but not limited to: when the target information to be imported is second information, namely the range of the target information is larger than a standard range, at least one piece of sub-second information is determined from the second information, the sub-second information forms a current information set of which the occupancy is smaller than or equal to an upper threshold of the standard range, further, the information in the current information set is determined as third information because the information in the current information set is smaller than or equal to an upper threshold of the standard range, and under the condition that residual information which is not processed as the third information exists in the second information, at least one piece of residual information is determined from the residual information and then forms the current information set.
It should be noted that, by performing a loop operation on the information to be imported, which is larger than the standard range, the target information in the standard range in the second information is determined as the third information, and then the residual information in the second information, which is processed to be other than the third information, is obtained, and the residual information is further processed to be the third information according to the information in the standard range through the loop operation. Through the circulation operation, the information out of the standard range is automatically imported, the beneficial effect that the information is automatically imported into the picture frame when a plurality of pages of documents are inserted can be realized, and the information import efficiency is improved.
For further example, optionally, as shown in fig. 5, if the information to be imported is second information 502, for example, the standard range is 3 pieces of content, a current information set is formed from the second information 502 according to the standard range, information in the current information set is determined as third information 504, at least one piece of residual information is determined from residual information 506 that is not processed as the third information, and the current information set is formed from the at least one piece of residual information.
By the embodiment provided by the application, the following steps are executed until all the information in the second information is processed into the third information: determining at least one piece of second information from the second information, and forming a current information set by the at least one piece of second information, wherein the occupation amount corresponding to the information in the current information set is less than or equal to an upper limit threshold corresponding to the standard range; determining the information in the current information set as third information; under the condition that residual information which is not processed into third information exists in the second information, at least one piece of residual information is determined from the residual information, and the current information set is formed by the at least one piece of residual information, so that the aim of automatically importing information processing circulation outside a standard range into a drawing frame of the CAD platform is fulfilled, and the technical effect of improving the comprehensiveness of information importing is achieved.
As an optional scheme, at least one second message is determined from the second messages, and the current information set is composed of the at least one second message, and includes at least one of:
determining second information of preset paragraphs from the second information, and forming a current information set by the second information of the preset paragraphs, wherein the number of the preset paragraphs is less than or equal to the upper limit number of paragraphs corresponding to the standard range;
and determining second information of the preset pages from the second information, and forming a current information set by the second information of the preset pages, wherein the number of the preset pages is less than or equal to the upper limit number of the pages corresponding to the standard range.
Optionally, in this embodiment, the method may be, but is not limited to, divided into two import manners, that is, importing by page and importing by paragraph, when importing by paragraph, it is necessary to obtain the maximum number of paragraphs allowed by a standard range, determine second information of a preset paragraph from the second information, and form the second information in the second paragraph into a current information set; when importing according to pages, the number of pages allowed by the frame needs to be acquired, and then the current information set of the preset page is determined from the second information.
The method has the advantages that batch import can be realized and the efficiency of information import can be improved by dividing the information into two import modes, namely, the import according to paragraphs and the import according to pages.
According to the embodiment provided by the application, the second information of the preset paragraphs is determined from the second information, and the second information of the preset paragraphs forms the current information set, wherein the number of the preset paragraphs is less than or equal to the upper limit number of paragraphs corresponding to the standard range; and determining second information of the preset pages from the second information, and forming a current information set by the second information of the preset pages, wherein the number of pages of the preset pages is less than or equal to the upper limit number of pages corresponding to the standard range, so that the aim of automatic batch import is fulfilled, and the technical effect of improving the information import is achieved.
As an alternative, processing the target information according to the standard format information of the frame to obtain the first import information includes:
and adjusting the display parameters of the target information to the display parameters corresponding to the standard format information.
Optionally, in the present embodiment, the display parameters may be understood to include, but are not limited to, display size, display zoom scale, display rank parameters, and the like.
Through the embodiment provided by the application, the display parameters of the target information are adjusted to the display parameters corresponding to the standard format information, so that the purpose of flexibly adjusting the display parameters according to the picture frame is achieved, and the technical effect of improving the flexibility of information import is achieved.
As an optional scheme, adjusting the display parameter of the target information to the display parameter corresponding to the standard format information includes:
under the condition that the style of the target information is a picture style, adjusting the display scale of the target information to be the display scale corresponding to the standard format information;
and when the style of the target information is a table style, adjusting the display size of the target information to the display size corresponding to the standard format information.
Optionally, in this embodiment, it may be, but is not limited to, when the target information is understood as a picture pattern, scaling the picture according to the size information of the frame; and when the target information is a table style, the size of the table is adjusted according to the standard format.
Optionally, in this embodiment, but not limited to, when the information to be imported is a table style, the row attribute information and the column attribute information are acquired, when the display size of the table style is larger than the display size corresponding to the standard format information, the row attribute information and the column attribute information are acquired, after the target information in the standard range is imported into the target frame, the remaining table information that is not imported is acquired and is continuously processed to be imported information in the frame size range into the target frame, and the row attribute information and the column attribute information are pasted into the remaining table information, so that the purpose of cutting the table information with an excessively large size is achieved, and the flexibility of information import is improved.
It should be noted that, by extracting the row attribute and the column attribute of the table and dividing and pasting the table, the purpose of intelligently clipping the table information is achieved, and the flexibility of information import is improved.
For further example, as shown in fig. 6, the table information 602 is target information to be imported, and since the size of the frame 604 in the CAD platform is smaller than the size of the table information 602, the row attribute 606 and the column attribute 608 of the table information are extracted, the table information 602 is cut into two parts, the two parts are respectively placed in different frames, and the row attribute 606 and the column attribute 608 are pasted in the frames, so that flexible import of information is realized.
According to the embodiment provided by the application, under the condition that the style of the target information is the picture style, the display scale of the target information is adjusted to be the display scale corresponding to the standard format information; under the condition that the style of the target information is a table style, the display size of the target information is adjusted to be the display size corresponding to the standard format information, so that the purpose of intelligently adjusting the sizes and proportions of the pictures and the tables is achieved, and the technical effect of improving the flexibility of information import is achieved.
As an alternative, the processing the target information according to the standard format information of the frame to obtain the first import information includes:
under the condition that the information import request indicates that the target information is processed into a first character format and the first character format is a character format allowed by a CAD platform, processing the target information according to the first character format and standard format information of a picture frame to obtain first import information of the first character format;
and under the condition that the information import request does not indicate that the target information is processed into the first character format, processing the target information according to the second character format and the standard format information of the picture frame to obtain the first import information of the second character format, wherein the second character format is the default character format of the CAD platform.
According to the embodiment provided by the application, under the condition that the information import request indicates that the target information is processed into the first character format and the first character format is the character format allowed by the CAD platform, the target information is processed according to the first character format and the standard format information of the picture frame to obtain the first import information of the first character format; under the condition that the information import request does not indicate that the target information is processed into the first character format, the target information is processed according to the second character format and the standard format information of the picture frame to obtain the first import information of the second character format, wherein the second character format is the default character format of the CAD platform, the purpose of processing the target information into the import information is further achieved, and therefore the technical effect of improving the information import efficiency is achieved.
For convenience of understanding, the information importing method of the CAD platform is applied to a specific CAD scene, as an alternative, for example, as shown in fig. 7, specific steps are as follows:
step S702, reading all contents in the WORD file;
step S704, first, a primary format processing is performed;
step S706, selecting a segment of text to be inserted into a drawing frame with a size of A0/A1 in the CAD, inserting n rows of contents into the drawing frame, and determining the maximum height h allowed for each row, which specifically includes:
judging whether the currently selected paragraph is a picture, a table or a character, if the currently selected paragraph is the picture or the table, processing the format, then inserting the current paragraph into the CAD by using an OLE interface function, and processing the size and the proportion of the OLE;
if the selected paragraph has no picture or table, judging whether the range of the selected paragraph is larger than a designated value V, if so, using an OLE interface function to insert characters in the designated value range into the CAD and processing the size and the proportion of an OLE object, if the selected paragraph is smaller than the designated value V, directly taking N segments of contents, copying and pasting the N segments of contents into the CAD, wherein the range of a certain segment of contents is larger than the designated value V again, using the OLE interface function to insert the characters in the designated value range into the CAD and processing the size and the proportion of the OLE;
when the height of the OLE object inserted into the CAD exceeds the maximum height value h allowed by each row in the frame, the next row is switched to, and after n rows are inserted, the next frame is called.
Step S708, selecting a page of text to be inserted into a frame with a size of A0/A1 in the CAD, inserting n rows of contents into the frame, and determining the maximum height h allowed for each row, specifically including: acquiring the content of the current page, processing the format, inserting the characters into the CAD by using an OLE interface function, and performing the operation in a recycling mode until the height of the OLE object inserted into the CAD exceeds the maximum height value h allowed by each row in the picture frame, namely turning to the next row, and generating the next picture frame after inserting n rows.
Through the embodiment provided by the application, the missing of the display content caused by overlong space can be avoided. The large-segment characters can be imported into the CAD as OLE objects more quickly, and because the OLE objects can be opened by WORD in the CAD for editing, the convenience of adjusting the format is improved.
It is understood that in the specific implementation of the present application, related data such as user information, when the above embodiments of the present application are applied to specific products or technologies, user permission or consent needs to be obtained, and the collection, use and processing of related data need to comply with related laws and regulations and standards of related countries and regions.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
According to another aspect of the embodiments of the present application, there is also provided an information importing apparatus of a CAD platform for implementing the information importing method of the CAD platform. As shown in fig. 8, the apparatus includes:
a first obtaining unit 802, configured to obtain target information to be imported into a CAD platform in response to an information import request, where the information import request is used to request to import the target information into a drawing frame of the CAD platform;
a first processing unit 804, configured to, when the style of the target information is a non-text style, process the target information according to standard format information of a frame to obtain first import information, and import the first import information into the frame, where the standard format information is a standard format corresponding to information that is allowed to be imported in the frame;
and a second processing unit 806, configured to, if the style of the target information is a text style, process information, located in a standard range of the frame, in the target information according to the standard format information to obtain second import information, and import the second import information into the frame, where the standard range is a standard range corresponding to information that is allowed to be imported into the frame.
For a specific embodiment, reference may be made to an example shown in the information importing apparatus of the CAD platform, which is not described herein again in this example.
As an alternative, the second processing unit 806 includes:
the first processing module is used for processing first information which is positioned in a standard range of a picture frame in the target information according to standard format information to obtain first target import information;
the second processing module is used for processing second information which is positioned outside the standard range of the picture frame in the target information into third information, wherein the third information is positioned in the standard range of the picture frame;
the third processing module is used for processing the third information according to the standard format information to obtain second target import information;
the first import module is used for importing the first target import information and the second target import information into the picture frame.
For a specific embodiment, reference may be made to an example shown in the information importing apparatus of the CAD platform, and details in this example are not described herein again.
As an optional solution, the second processing module includes:
a first execution module, configured to execute the following steps until all information in the second information is processed as third information:
determining at least one piece of second information from the second information, and forming a current information set by the at least one piece of second information, wherein the occupation amount corresponding to the information in the current information set is less than or equal to an upper limit threshold corresponding to the standard range;
determining the information in the current information set as third information;
and under the condition that residual information which is not processed into third information exists in the second information, determining at least one piece of residual information from the residual information, and forming a current information set by the at least one piece of residual information.
For a specific embodiment, reference may be made to an example shown in the information importing apparatus of the CAD platform, which is not described herein again in this example.
As an optional scheme, the apparatus further comprises:
the first determining submodule is used for determining second information of a preset paragraph from the second information and forming a current information set by the second information of the preset paragraph, wherein the number of the preset paragraph is less than or equal to the upper limit paragraph number corresponding to the standard range;
and the second determining submodule is used for determining second information of the preset page from the second information and forming a current information set by the second information of the preset page, wherein the number of the preset page is less than or equal to the upper limit number of the page corresponding to the standard range.
For a specific embodiment, reference may be made to an example shown in the information importing apparatus of the CAD platform, which is not described herein again in this example.
As an optional solution, the first processing unit 804 includes:
and the first adjusting module is used for adjusting the display parameters of the target information into the display parameters corresponding to the standard format information.
For a specific embodiment, reference may be made to an example shown in the information importing apparatus of the CAD platform, which is not described herein again in this example.
As an optional scheme, the apparatus further comprises:
the first adjusting submodule is used for adjusting the display scale of the target information to the display scale corresponding to the standard format information under the condition that the style of the target information is the picture style;
and the second adjusting submodule is used for adjusting the display size of the target information to the display size corresponding to the standard format information under the condition that the style of the target information is the table style.
For a specific embodiment, reference may be made to an example shown in the information importing apparatus of the CAD platform, which is not described herein again in this example.
As an optional solution, the first processing unit 804 includes:
the fourth processing module is used for processing the target information according to the first character format and the standard format information of the picture frame under the condition that the information import request indicates that the target information is processed into the first character format and the first character format is the character format allowed by the CAD platform, so as to obtain first import information of the first character format;
and the fifth processing module is used for processing the target information according to the second character format and the standard format information of the picture frame under the condition that the information import request does not indicate that the target information is processed into the first character format, so as to obtain the first import information of the second character format, wherein the second character format is the default character format of the CAD platform.
For a specific embodiment, reference may be made to an example shown in the information importing apparatus of the CAD platform, which is not described herein again in this example.
According to another aspect of the embodiments of the present application, there is further provided an electronic device for implementing the information importing method of the CAD platform, as shown in fig. 9, the electronic device includes a memory 902 and a processor 904, the memory 902 stores a computer program, and the processor 904 is configured to execute the steps in any of the method embodiments by the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
according to an aspect of an embodiment of the present application, there is provided an information importing method for a CAD platform, including:
s1, responding to an information import request, and acquiring target information to be imported into a CAD platform, wherein the information import request is used for requesting to import the target information into a picture frame of the CAD platform;
s2, under the condition that the style of the target information is a non-character style, processing the target information according to standard format information of a picture frame to obtain first import information, and importing the first import information into the picture frame, wherein the standard format information is a standard format corresponding to information allowed to be imported in the picture frame;
and S3, under the condition that the style of the target information is a character style, processing information, which is positioned in a standard range of the picture frame, in the target information according to standard format information to obtain second import information, and importing the second import information into the picture frame, wherein the standard range is a standard range corresponding to information, which is allowed to be imported, in the picture frame.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 9 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 9 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 9, or have a different configuration than shown in FIG. 9.
The memory 902 may be configured to store software programs and modules, such as program instructions/modules corresponding to the information importing method and apparatus of the CAD platform in the embodiment of the present application, and the processor 904 executes various functional applications and data processing by running the software programs and modules stored in the memory 902, that is, implements the information importing method of the CAD platform. The memory 902 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 902 may further include memory located remotely from the processor 904, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 902 may be specifically, but not limited to, used for storing information such as first import information, second import information, and the like. As an example, as shown in fig. 9, the memory 902 may include, but is not limited to, a first obtaining unit 802, a first processing unit 804, and a second processing unit 806 in the information importing apparatus of the CAD platform. In addition, other module units in the information importing apparatus of the CAD platform may also be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmitting device 906 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmitting device 906 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 906 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 908 for displaying the first import information, the second import information, and other information; and a connection bus 910 for connecting the respective module parts in the above-described electronic apparatus.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication. The nodes may form a Peer-To-Peer (P2P) network, and any type of computing device, such as a server, a terminal, and other electronic devices, may become a node in the blockchain system by joining the Peer-To-Peer network.
According to an aspect of the present application, there is provided a computer program product comprising a computer program/instructions containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section, and/or installed from a removable medium. When executed by the central processing unit, the computer program performs various functions provided by the embodiments of the present application.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It should be noted that the computer system of the electronic device is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments.
The computer system includes a Central Processing Unit (CPU) that can perform various appropriate actions and processes according to a program stored in a Read-Only Memory (ROM) or a program loaded from a storage section into a Random Access Memory (RAM). In the random access memory, various programs and data necessary for system operation are also stored. The central processor, the read-only memory and the random access memory are connected with each other through a bus. An Input/Output interface (i.e., I/O interface) is also connected to the bus.
The following components are connected to the input/output interface: an input section including a keyboard, a mouse, and the like; an output section including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section including a hard disk and the like; and a communication section including a network interface card such as a local area network card, a modem, or the like. The communication section performs communication processing via a network such as the internet. The driver is also connected to the input/output interface as needed. A removable medium such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive as necessary, so that a computer program read out therefrom is mounted into the storage section as necessary.
In particular, the processes described in the various method flowcharts may be implemented as computer software programs, according to embodiments of the present application. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section, and/or installed from a removable medium. The computer program, when executed by the central processor, performs various functions defined in the system of the present application.
According to an aspect of the present application, there is provided a computer-readable storage medium from which a processor of a computer device reads computer instructions, the processor executing the computer instructions to cause the computer device to perform the method provided in the above-mentioned various alternative implementations.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, responding to an information import request, and acquiring target information to be imported into a CAD platform, wherein the information import request is used for requesting to import the target information into a picture frame of the CAD platform;
s2, under the condition that the style of the target information is a non-character style, processing the target information according to standard format information of a picture frame to obtain first import information, and importing the first import information into the picture frame, wherein the standard format information is a standard format corresponding to information allowed to be imported in the picture frame;
and S3, under the condition that the style of the target information is a character style, processing information, which is positioned in a standard range of the picture frame, in the target information according to standard format information to obtain second import information, and importing the second import information into the picture frame, wherein the standard range is a standard range corresponding to information, which is allowed to be imported, in the picture frame.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, read-Only memories (ROMs), random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the method of the embodiments of the present application.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is only a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. An information importing method of a CAD platform is characterized by comprising the following steps:
responding to an information import request, and acquiring target information to be imported into a CAD platform, wherein the information import request is used for requesting to import the target information into a drawing frame of the CAD platform;
processing the target information according to standard format information of the picture frame to obtain first import information under the condition that the style of the target information is a non-character style, and importing the first import information into the picture frame, wherein the standard format information is a standard format corresponding to information which is allowed to be imported in the picture frame;
and under the condition that the style of the target information is a character style, processing information, which is positioned in a standard range of the picture frame, in the target information according to the standard format information to obtain second import information, and importing the second import information into the picture frame, wherein the standard range is a standard range corresponding to information, which is allowed to be imported, in the picture frame.
2. The method according to claim 1, wherein said processing information in the target information within a standard range of the frame according to the standard format information to obtain second import information, and importing the second import information into the frame comprises:
processing first information in the target information, which is positioned in a standard range of the picture frame, according to the standard format information to obtain first target import information;
processing second information, which is out of a standard range of the picture frame, in the target information into third information, wherein the third information is in the standard range of the picture frame;
processing the third information according to the standard format information to obtain second target import information;
and importing the first target import information and the second target import information into the drawing frame.
3. The method according to claim 2, wherein said processing the second information out of the standard range of the frame in the target information into a third information comprises:
executing the following steps until all the second information is processed into the third information:
determining at least one piece of second information from the second information, and forming a current information set by the at least one piece of second information, wherein the occupation amount corresponding to the information in the current information set is less than or equal to the upper limit threshold corresponding to the standard range;
determining information in the current information set as the third information;
and under the condition that residual information which is not processed into the third information exists in the second information, determining at least one piece of residual information from the residual information, and forming the current information set by the at least one piece of residual information.
4. The method of claim 3, wherein determining at least one second message from the second messages and forming a current set of messages from the at least one second message comprises at least one of:
determining second information of preset paragraphs from the second information, and forming the current information set by the second information of the preset paragraphs, wherein the number of paragraphs of the preset paragraphs is less than or equal to the upper limit number of paragraphs corresponding to the standard range;
and determining second information of a preset page from the second information, and forming the current information set by the second information of the preset page, wherein the number of pages of the preset page is less than or equal to the upper limit number of pages corresponding to the standard range.
5. The method of claim 1, wherein said processing said object information according to the standard format information of said frame to obtain a first import information comprises:
and adjusting the display parameters of the target information to the display parameters corresponding to the standard format information.
6. The method according to claim 5, wherein the adjusting the display parameter of the target information to the display parameter corresponding to the standard format information comprises:
under the condition that the style of the target information is a picture style, adjusting the display scale of the target information to be the display scale corresponding to the standard format information;
and when the style of the target information is a table style, adjusting the display size of the target information to the display size corresponding to the standard format information.
7. The method according to any one of claims 1 to 6, wherein said processing said target information according to said frame standard format information to obtain a first import information comprises:
processing the target information according to the first text format and standard format information of the drawing frame under the condition that the information import request indicates that the target information is processed into the first text format and the first text format is a text format allowed by the CAD platform, so as to obtain first import information of the first text format;
and under the condition that the information import request does not indicate that the target information is processed into the first character format, processing the target information according to a second character format and the standard format information of the picture frame to obtain the first import information of the second character format, wherein the second character format is the default character format of the CAD platform.
8. An information importing apparatus for a CAD platform, comprising:
the device comprises a first obtaining unit, a second obtaining unit and a third obtaining unit, wherein the first obtaining unit is used for responding to an information import request and obtaining target information to be imported into a CAD platform, and the information import request is used for requesting to import the target information into a drawing frame of the CAD platform;
the first processing unit is used for processing the target information according to standard format information of the picture frame to obtain first import information under the condition that the style of the target information is a non-character style, and importing the first import information into the picture frame, wherein the standard format information is a standard format corresponding to information which is allowed to be imported in the picture frame;
and the second processing unit is used for processing information, which is positioned in a standard range of the picture frame, in the target information according to the standard format information to obtain second import information under the condition that the style of the target information is a character style, and importing the second import information into the picture frame, wherein the standard range is a standard range corresponding to information, which is allowed to be imported, in the picture frame.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202211694440.2A 2022-12-28 2022-12-28 Information importing method and device for CAD platform, storage medium and electronic device Pending CN115659710A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211694440.2A CN115659710A (en) 2022-12-28 2022-12-28 Information importing method and device for CAD platform, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211694440.2A CN115659710A (en) 2022-12-28 2022-12-28 Information importing method and device for CAD platform, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN115659710A true CN115659710A (en) 2023-01-31

Family

ID=85023113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211694440.2A Pending CN115659710A (en) 2022-12-28 2022-12-28 Information importing method and device for CAD platform, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115659710A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120162688A1 (en) * 2009-09-09 2012-06-28 Tatsuro Ikeda Access control system, apparatus, and program
CN105930483A (en) * 2016-04-29 2016-09-07 北京数码大方科技股份有限公司 Object format generation method, apparatus and system
CN114610681A (en) * 2022-03-16 2022-06-10 阿里巴巴(中国)有限公司 Information input method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120162688A1 (en) * 2009-09-09 2012-06-28 Tatsuro Ikeda Access control system, apparatus, and program
CN105930483A (en) * 2016-04-29 2016-09-07 北京数码大方科技股份有限公司 Object format generation method, apparatus and system
CN114610681A (en) * 2022-03-16 2022-06-10 阿里巴巴(中国)有限公司 Information input method and device

Similar Documents

Publication Publication Date Title
CN109614424B (en) Page layout generation method, device, computing equipment and medium
CN111666123A (en) Page theme control method and system and computer equipment
CN108304562B (en) Question searching method and device and intelligent terminal
CN114296662A (en) Page-based form document paging printing method, device and application thereof
CN111399831A (en) Page display method and device, storage medium and electronic device
CN111414727A (en) Method and device for editing header and footer of PDF (Portable document Format) document and electronic equipment
CN112055244A (en) Image acquisition method and device, server and electronic equipment
CN115526160A (en) Rich text processing method, device and equipment and storage medium
CN105550179A (en) Webpage collection method and browser plug-in
CN111767488A (en) Article display method, electronic device and storage medium
CN110708423A (en) Message content display method and device and storage medium
CN110705234A (en) Self-adaptive typesetting and paging method and device for system form
CN111339733A (en) Batch picture rapid manufacturing method, system, terminal equipment and storage medium for commercial operation
CN107608733B (en) Picture display method and device and terminal equipment
CN115065945B (en) Short message link generation method and device, electronic equipment and storage medium
CN112035774A (en) Network page generation method and device, computer equipment and readable storage medium
CN115659710A (en) Information importing method and device for CAD platform, storage medium and electronic device
CN105389308A (en) Display processing method and device for web pages
CN111688605B (en) Character batch graph cutting method applied to automobile instrument and related equipment
CN111444452B (en) Webpage conversion method and device and storage medium
CN112950167A (en) Design service matching method, device, equipment and storage medium
CN112486378B (en) Graph generation method, device, terminal and storage medium
CN111914226A (en) Background picture generation method and device
CN112035656A (en) Method, device, computer equipment and medium for quickly previewing document
JP4144203B2 (en) Information presentation apparatus 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20230131