CN115423992B - Engineering drawing space arrangement method, controller and storage medium - Google Patents

Engineering drawing space arrangement method, controller and storage medium Download PDF

Info

Publication number
CN115423992B
CN115423992B CN202211008419.2A CN202211008419A CN115423992B CN 115423992 B CN115423992 B CN 115423992B CN 202211008419 A CN202211008419 A CN 202211008419A CN 115423992 B CN115423992 B CN 115423992B
Authority
CN
China
Prior art keywords
engineering
view
size
information
distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211008419.2A
Other languages
Chinese (zh)
Other versions
CN115423992A (en
Inventor
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Haikui Information Technology Co ltd
Original Assignee
Huizhou Haikui 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 Huizhou Haikui Information Technology Co ltd filed Critical Huizhou Haikui Information Technology Co ltd
Priority to CN202211008419.2A priority Critical patent/CN115423992B/en
Publication of CN115423992A publication Critical patent/CN115423992A/en
Application granted granted Critical
Publication of CN115423992B publication Critical patent/CN115423992B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Landscapes

  • Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Numerical Control (AREA)

Abstract

The embodiment of the invention provides an engineering drawing space arrangement method, a controller and a storage medium, wherein the method comprises the following steps: acquiring first size information of a project view content part; acquiring second size information of the outer frame of the view area; obtaining at least one distance value according to the first size information and the second size information, wherein the distance value represents the distance value of the engineering view content part from the view region outer frame; and adjusting the dimension marking information of the engineering view according to at least one distance value. In the technical scheme of the embodiment, according to the distance value between the engineering view and the view area outer frame, the dimension marking information of the engineering view is adjusted, so that the relation between the engineering view and the view area outer frame meets the setting requirement, namely, the engineering view is neatly placed in the view area outer frame of the printing drawing, the output drawing can meet the needs of users, and the user experience perception is improved.

Description

Engineering drawing space arrangement method, controller and storage medium
Technical Field
The embodiment of the invention relates to the field of automation, in particular to an engineering drawing space arrangement method, a controller and a storage medium.
Background
The mechanical engineering drawing is the basis for product design and manufacture and comprises a series of design and engineering intentions such as two-dimensional expression, dimension, annotation, material and processing details of the shape of the designed part. Along with the application and popularization of enterprise labeling, the quality requirements of most enterprises on engineering drawings are higher and higher. However, in the face of numerous and regular updates of labeling and normative items, such as complicated dimension labeling and tolerance labeling, errors are easy to occur when a designer manually labels, in addition, different designers have respective design and labeling methods due to different levels and experiences, the design experience and drawing capability of the designer have a critical influence on the accuracy and the aesthetic property of engineering drawing labeling, and the normative property of dimension labeling also affects the process of processing and manufacturing and the quality of products.
For the quality problem of the manual marking, the engineering drawing marking system is mainly used for solving the quality problem at present, the engineering drawing marking system can simplify manual operation on marking drawings obtained in the marking process, but the engineering drawing is in an irregular shape, the irregular condition is easy to appear after the engineering drawing is placed on a printing drawing, or the size of the drawing can be changed after the engineering drawing is marked, so that the unreasonable problem also exists when the engineering drawing is arranged on the printing drawing, the output drawing cannot meet the user requirement, and the user experience is poor.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
The embodiment of the invention mainly aims to provide an engineering drawing space arrangement method, a controller and a storage medium, which can enable engineering drawings to be placed in an outer frame of a drawing area of a printing drawing in a neat mode, enable the output drawing to meet the needs of users and improve user experience perception.
In a first aspect, an embodiment of the present invention provides a method for spatial arrangement of engineering drawings, where the method includes:
acquiring first size information of an engineering view;
acquiring second size information of a view area outer frame corresponding to the engineering view;
obtaining at least one distance value according to the first size information and the second size information, wherein the distance value represents the distance between the engineering view and the view area outer frame;
and adjusting the dimension marking information of the engineering view according to at least one distance value.
In an embodiment, the method further comprises:
acquiring first position information of the engineering view;
acquiring second position information of a view area outer frame corresponding to the engineering view;
Obtaining at least one distance value according to the first size information, the first position information, the second position information and the second size information, wherein the distance value represents the distance value of the engineering view from the view area outer frame;
and adjusting the first position information and the dimension marking information of the engineering view according to at least one distance value.
In one embodiment, the engineering view is a view of completed engineering dimensioning.
In an embodiment, the adjusting the first position information and/or the dimensioning information of the engineering view according to at least two distance values includes:
and under the condition that at least two distance values are unequal and the minimum distance value in the at least two distance values is larger than a distance threshold value, adjusting the first position information of the engineering view so that the at least two distance values are the same.
In an embodiment, the adjusting the first position information and/or the dimensioning information of the engineering view according to the distance minimum value includes:
when the distance minimum value is smaller than or equal to a distance threshold value and the distance value on the side opposite to the distance minimum value is smaller than or equal to the distance threshold value, adjusting the layer number of the dimension marking information according to at least two distance values so that at least two distance values are larger than the distance threshold value;
And adjusting the first position information of the engineering view according to the current distance value so as to enable at least two distance values to be the same.
In an embodiment, the adjusting the first position information and/or the dimensioning information of the engineering view according to at least two distance values includes:
obtaining an area difference value according to at least two distance values, the first size information and the second size information;
determining the quantity and the labeling type of the dimension labeling information according to the area difference value;
and adjusting the dimension marking information according to the quantity of the dimension marking information and the marking type.
In an embodiment, the method further comprises:
performing dimension marking interference detection processing on the view with the finished engineering dimension marking to obtain a detection result;
and adjusting the dimension marking of the engineering view with the dimension marking interference problem according to the detection result.
In an embodiment, the adjusting the dimensioning of the engineering view with the problem of interference of the dimensioning according to the detection result includes at least one of the following:
when the detection result is that the coordinate size interference problem exists, determining the current position of the coordinate size with interference in the engineering view with the coordinate size interference in the engineering view, moving the coordinate size with interference from the current position to the outside of the engineering view, and creating a size corner for the coordinate size with interference;
When the detection result is that the linear dimension interference problem exists, determining the current position of the linear dimension with interference in the engineering view with the linear dimension interference in the engineering view, moving the linear dimension with interference from the current position to the outside of the engineering view, and adjusting the linear dimension with interference to the direction of a vertical dimension line and/or the direction of a parallel dimension line;
when the detection result shows that the annotation size interference problem exists, acquiring the current position of the annotation size with the annotation size interference problem, carrying out translation adjustment on the annotation size with the annotation size interference problem in a plurality of preset directions to obtain a plurality of translated position information, obtaining a plurality of distance values according to the plurality of translated position information and the current position of the annotation size, and moving the annotation size with the annotation size interference problem to the position of the translated position information corresponding to the minimum distance value;
and under the condition that the detection result is that the appearance size interference problem exists, placing the appearance size with the appearance size interference problem outside the engineering view, and centering the appearance size.
In an embodiment, after the resizing process is performed on the engineering view having the resize interference problem according to the detection result, the method further includes:
acquiring third position information and third size information of the engineering view, which are obtained after the size marking of the engineering view is adjusted;
obtaining at least two distance values according to the third position information, the third size information, the second position information and the second size information, wherein the distance values represent the distance values of the engineering view from the view area outer frame;
and adjusting the third position information of the engineering view according to at least two distance values.
In a second aspect, an embodiment of the present invention provides an engineering drawing space arrangement apparatus, including:
the first acquisition module is used for acquiring first position information and first size information of the engineering view;
the second acquisition module is used for acquiring second position information and second size information of the view area outer frame corresponding to the engineering view;
the computing module is used for obtaining a plurality of distance values according to the first position information, the first size information, the second position information and the second size information, and the distance values represent the distance values of the engineering view from the view area outer frame;
And the processing module is used for adjusting the first position information and/or the dimension marking information of the engineering view according to at least one distance value.
In a third aspect, an embodiment of the present invention provides a controller, including: the system comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the engineering drawing space arrangement method according to the first aspect when executing the computer program.
In a fourth aspect, a computer readable storage medium stores computer executable instructions for performing the engineering drawing space arrangement method of the first aspect.
The embodiment of the invention comprises the following steps: acquiring first size information of an engineering view; acquiring second size information of a view area outer frame corresponding to the engineering view; obtaining at least one distance value according to the first size information and the second size information, wherein the distance value represents the distance between the engineering view and the outer frame of the view area; and adjusting the dimension marking information of the engineering view according to at least one distance value. In the technical scheme of the embodiment, according to the distance value between the engineering view and the view area outer frame, the dimension marking information of the engineering view is adjusted, so that the relation between the engineering view and the view area outer frame meets the setting requirement, namely, the engineering view is neatly placed in the view area outer frame of the printing drawing, the output drawing can meet the needs of users, and the user experience perception is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
FIG. 1 is a system architecture platform for performing an engineering drawing space arrangement method according to one embodiment of the present invention;
FIG. 2 is a flow chart of an engineering drawing space arrangement method provided by an embodiment of the invention;
FIG. 3 is a schematic view of an engineering drawing space arrangement according to an embodiment of the invention
FIG. 4 is a flow chart of an engineering drawing space arrangement method according to another embodiment of the present invention;
FIG. 5 is a flow chart of an engineering drawing space arrangement method according to another embodiment of the present invention;
FIG. 6 is a flow chart of an engineering drawing space arrangement method provided by another embodiment of the invention;
fig. 7 is a schematic diagram of an engineering drawing space arrangement device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
It should be noted that although functional block division is performed in a device diagram and a logic sequence is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the block division in the device, or in the flowchart. The terms first, second and the like in the description, in the claims and in the above-described figures, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The mechanical engineering drawing is the basis for product design and manufacture and comprises a series of design and engineering intentions such as two-dimensional expression, dimension, annotation, material and processing details of the shape of the designed part. Along with the application and popularization of enterprise labeling, the quality requirements of most enterprises on engineering drawings are higher and higher. However, in the face of numerous and regular updates of labeling and normative items, such as complicated dimension labeling and tolerance labeling, errors are easy to occur when a designer manually labels, in addition, different designers have respective design and labeling methods due to different levels and experiences, the design experience and drawing capability of the designer have a critical influence on the accuracy and the aesthetic property of engineering drawing labeling, and the normative property of dimension labeling also affects the process of processing and manufacturing and the quality of products.
For the quality problem of the manual marking, the engineering drawing marking system is mainly used for solving the quality problem at present, the engineering drawing marking system can simplify manual operation on marking drawings obtained in the marking process, but the engineering drawing is in an irregular shape, the irregular condition is easy to appear after the engineering drawing is placed on a printing drawing, or the size of the drawing can be changed after the engineering drawing is marked, so that the unreasonable problem also exists when the engineering drawing is arranged on the printing drawing, the output drawing cannot meet the user requirement, and the user experience is poor.
In order to solve the above-mentioned problems, the embodiment of the present invention provides an engineering drawing space arrangement method, a controller and a storage medium, where the engineering drawing space arrangement method includes the following steps: acquiring first size information of a project view content part; acquiring second size information of the outer frame of the view area; obtaining at least one distance value according to the first size information and the second size information, wherein the distance value represents the distance value of the engineering view content part from the view region outer frame; and adjusting the dimension marking information of the engineering view according to at least one distance value. In the technical scheme of the embodiment, the dimension marking information of the engineering view is adjusted according to at least one distance value between the engineering view and the view area outer frame, so that the relation between the engineering view and the view area outer frame meets the setting requirement, namely the engineering view is neatly placed in the view area outer frame of the printing drawing, the output drawing can meet the needs of users, and the user experience perception is improved.
Embodiments of the present application will be further described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic diagram of a system architecture platform 100 for performing an engineering drawing space arrangement method according to an embodiment of the present application.
In the example of fig. 1, the system architecture platform 100 is provided with a processor 110 and a memory 120, wherein the processor 110 and the memory 120 may be connected by a bus or otherwise, in fig. 1 by way of example.
Memory 120, as a non-transitory computer-readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer-executable programs. In addition, memory 120 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some implementations, the memory 120 optionally includes memory remotely located with respect to the processor 110, which may be connected to the system architecture platform via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Those skilled in the art will appreciate that the system architecture platform shown in fig. 1 is not limiting of the embodiments of the application, and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
Based on the system architecture platform, various embodiments of the engineering drawing space arrangement method of the application are presented below.
Referring to fig. 2, fig. 2 is a flowchart of an engineering drawing space arrangement method according to an embodiment of the present application, and a control method according to an embodiment of the present application may include, but is not limited to, step S100, step S200, step S300, and step S400.
Step S100, first size information of engineering views is acquired.
Specifically, the first size information of the engineering view set on the printing drawing sheet may be determined by an X-axis on the printing drawing sheet and a coordinate point in which a Y-axis is set perpendicular to the X-axis.
It should be noted that, the first size information of the engineering view refers to size information of an circumscribed rectangle of the engineering view, or may be size information of an circumscribed rectangle of a view with the engineering size marked, or size information of an circumscribed hexagon of the engineering view, which is not specifically limited in this embodiment.
Step S200, obtaining second size information of the view area outer frame corresponding to the engineering view.
Specifically, the view area outer frame is generally rectangular, but may be other polygons, which is not specifically limited in this embodiment. The second size information is the size information of the outer frame of the view area. It is understood that the second position information and the second size information of the outer frame of the view area on the printing sheet can be determined by the X-axis on the printing sheet and the coordinate point of the Y-axis set perpendicular to the X-axis.
It should be noted that the size and position of the outer frame of the view area may be fixed or not fixed, and the size and position of the outer frame of the view area may be adjusted according to practical situations, which is not specifically limited in this embodiment.
Step S300, at least one distance value is obtained according to the first size information and the second size information, and the distance value represents the distance between the engineering view and the outer frame of the view area.
Specifically, the engineering view is placed in the outer frame of the view area, and then a plurality of distance values can be calculated according to the first dimension information and the second dimension information, for example: the first size information is size information of an external rectangle of the engineering view, the second size information is size information of an external frame of the view area, the size information at least comprises length information of length and width, then distance values between four sides of the external rectangle of the engineering view and four sides of the external frame of the view area can be obtained through calculation through the first size information and the second size information, then the position relation between the engineering view and the external frame of the view area and whether the view result presented on the printing view is neat or not can be obtained.
And step S400, adjusting the dimension marking information of the engineering view according to at least one distance value.
Specifically, as shown in fig. 3, after at least one distance value is calculated, a real position relationship between the engineering view 310 and the view area outer frame 320 can be obtained, and then the dimension marking information of the engineering view 310 can be adjusted according to the at least one distance value, so that the relationship between the engineering view 310 and the view area outer frame 320 meets the setting requirement, that is, the engineering view 310 is neatly placed in the view area outer frame 320 of the printing drawing 330, so that the output drawing can meet the needs of users, and the user experience perception is improved.
It should be noted that the engineering view may be a view without a dimension marking, or may be a view with a dimension marking of the engineering, which is not particularly limited in this embodiment.
In an embodiment, based on the obtained first size information of the engineering view and the second size information of the view area frame corresponding to the engineering view, obtaining the first position information of the engineering view and the second position information of the view area frame corresponding to the engineering view; obtaining a plurality of distance values according to the first size information, the first position information, the second position information and the second size information, wherein the distance values represent the distance between the engineering view and the outer frame of the view area; and adjusting the first position information and/or the dimension marking information of the engineering view according to the one or more distance values. In the technical scheme of the embodiment, according to at least one distance value between the engineering view and the view area outer frame, the first position information of the engineering view or the dimension marking information of the engineering view is adjusted, so that the relation between the engineering view and the view area outer frame meets the setting requirement, namely, the engineering view is placed in the view area outer frame of the printing drawing in a neat mode, the output drawing can meet the needs of users, and the user experience perception is improved.
It should be noted that, first position information of the engineering view on the printing drawing and first size information of the engineering view are obtained. It is understood that the first position information and the first size information of the engineering view provided on the printing sheet may be determined by an X-axis on the printing sheet and a coordinate point of a Y-axis provided perpendicular to the X-axis.
It should be noted that, the first position information of the engineering view may be a geometric center point of the engineering view, or may be a center of gravity point of the engineering view, which is not specifically limited in this embodiment.
It should be noted that, the second position information of the outer frame of the view area may be set as a geometric center point position thereof, or may also be set as one of vertex angle points, which is not specifically limited in this embodiment; the second size information is the size information of the outer frame of the view area. It is understood that the second position information and the second size information of the outer frame of the view area on the printing sheet can be determined by the X-axis on the printing sheet and the coordinate point of the Y-axis set perpendicular to the X-axis.
In an embodiment, the engineering view is a view with finished engineering dimension marking, and when at least one distance difference value exceeds a standard distance threshold range and a distance minimum value in at least two distance values is greater than the distance threshold value, the distance difference value is a difference value of every two distance values in at least two distance values, and the engineering view proves that the position of the engineering view placed in the corresponding view area outer frame is not neat, and an adjusting space exists in the view area outer frame, that is, the dimension marking information in the engineering view is not needed to be adjusted, only the first position information of the engineering view is needed to be adjusted, then the first position information of the engineering view can be adjusted according to a plurality of distance values, so that the distance difference value is in the standard distance threshold range, that is, the distance values are close to the same or the same, the engineering view is neatly placed in the view area outer frame of a printing drawing, the output drawing can meet the user experience perception, and the user experience perception is improved.
Note that, the distance difference may be within the standard distance threshold range, or may be all the distance differences within the standard distance threshold range, which is not particularly limited in this embodiment.
In an embodiment, when the distance minimum value is smaller than or equal to the distance threshold value and the distance value on the opposite side of the distance minimum value is smaller than or equal to the distance threshold value, it is indicated that the engineering view is very close to the view area outer frame, so that the size interference space of the subsequent engineering view is very small, the output engineering drawing is not attractive, if the degree of the engineering view is required to be improved, the degree of the first position information of the engineering view cannot meet the requirement, the layer number adjustment processing of the size marking information can be performed on the layer number of the size marking information according to a plurality of distance values, namely, the position occupied by the size marking information is reduced, so that the plurality of distance values are larger than the distance threshold value, after the adjustable space is released, the first position information of the engineering view can be adjusted according to the current distance value, so that the distance difference is within the standard distance threshold value range, and the engineering view is neatly placed in the view area outer frame of the printed drawing, so that the output drawing can meet the requirement of a user, and the user experience perception is improved.
In an embodiment, when the first size information of the engineering view is greater than the second size information and greater than the drawing size information, the drawing size may be modified at this time, and the drawing size information may be adjusted according to the first size information of the engineering view, so that the first size information of the engineering view is smaller than the drawing size information. For example: the preset drawing size information is A4 size, the first size information is greater than the A4 size, then the controller may adjust the drawing size information to A3 size, and if the first size information is less than the A2 size and greater than the A3 size, then the controller may adjust the drawing size information to A2 size.
Referring to fig. 4, fig. 4 is a flowchart of an engineering drawing space arrangement method according to an embodiment of the present invention, and a control method according to an embodiment of the present invention may include, but is not limited to, step S410, step S420, and step S440.
Step S410, obtaining an area difference value according to a plurality of distance values, the first size information and the second size information;
step S420, determining the quantity and the labeling type of the dimension labeling information according to the area difference value;
step S430, adjusting the dimension marking information according to the number and the marking type of the dimension marking information.
Specifically, in general, size marking information is determined according to a preset rule according to different engineering view conditions, the size marking information mainly comprises the number and types of size marking, the size marking information is set, but the size marking information in the engineering view on the same printing drawing can be adjusted according to actual conditions, the area difference value of a corresponding area distance value area can be obtained according to a plurality of distance values, first size information and second size information, how much remaining view area outer frame space in the view area outer frame can be used for adding the size marking information can be obtained through the calculated area difference value, and in general, the size of the view area outer frame which needs to be occupied by each marking type is known, the number and marking type of the size marking information can be calculated and determined according to the calculated number and marking type of the size marking information, and the size marking information of the engineering view can be adjusted.
In an embodiment, when the dimension marking is performed on the engineering view, firstly, determining a target dimension marking type to be marked, and if it is judged that the view area corresponding to the current engineering view cannot meet the target dimension type marking, performing paging processing on the dimension marking of the engineering view. For example: if the engineering view is not marked with the size, the target size marking type comprises four size marking types, and the calculated number of the size marking types which can be marked is two, then the size marking information is required to be adjusted to be two, then the non-marked engineering view is copied to another printing drawing, and the other two size marking types are marked to the non-marked engineering view on the other printing drawing. Also for example: if the engineering view is marked with four sizing types (a first sizing type, a second sizing type, a third sizing type and a fourth sizing type), and the calculated number of the sizing types which can be marked is two, the sizing information needs to be adjusted, the engineering view is placed in a view area outer frame of the first printing drawing, the third sizing type and the fourth sizing type are deleted, the engineering view is copied into the view area outer frame on the second printing drawing, and the first sizing type and the second sizing type are deleted.
Referring to fig. 5, fig. 5 is a flowchart of an engineering drawing space arrangement method according to an embodiment of the present invention, and a control method according to an embodiment of the present invention may include, but is not limited to, step S510 and step S520.
Step S510, performing dimension marking interference detection processing on the view with the finished engineering dimension marking to obtain a detection result;
step S520, adjusting the dimension marking of the engineering view with the dimension marking interference problem according to the detection result.
Specifically, after the dimension marking process is completed, the interference condition of dimension marking in the engineering view is detected to prevent the problem of marking interference of the output drawing, and then the dimension marking of the engineering view with the problem of dimension marking interference is adjusted according to the detection result to obtain the engineering view with reasonable layout, clear dimension marking and no interference.
It should be noted that, the dimension marking type of the engineering view includes coordinate dimensions; a linear dimension; annotating the size; external dimensions, etc. Of course, the dimensioning types are not limited to the four types listed above, but may also include other dimensioning types, which are not listed here. Each engineering view may be labeled according to the actual user requirement, one of them may be labeled, or a plurality of them may be labeled, which is not specifically limited in this embodiment.
In an embodiment, under the condition that a detection result is that a coordinate size interference problem exists, determining a current position of a coordinate size with interference in an engineering view with the coordinate size interference in the engineering view, moving the coordinate size with interference from the current position to the outside of the engineering view, and creating a size corner for the coordinate size with interference;
in an embodiment, if the detection result is that the linear dimension interference problem exists, determining a current position of the linear dimension with interference in the engineering view, in which the linear dimension with interference exists, in the engineering view, moving the linear dimension with interference from the current position to outside the engineering view, and adjusting the linear dimension with interference to a direction of a vertical dimension line and/or a direction of a parallel dimension line;
in an embodiment, when the detection result is that the annotation size interference problem exists, acquiring a current position of the annotation size with the annotation size interference problem, performing translational adjustment on the annotation size with the annotation size interference problem in a plurality of preset directions to obtain a plurality of translated position information, obtaining a plurality of distance values according to the plurality of translated position information and the current position of the annotation size, and moving the annotation size with the annotation size interference problem to a position of the translated position information corresponding to the minimum distance value;
In an embodiment, when the detection result indicates that the external dimension interference problem exists, the external dimension having the external dimension interference problem is placed outside the engineering view, and the external dimension is centrally arranged.
Referring to fig. 6, fig. 6 is a flowchart of an engineering drawing space arrangement method according to an embodiment of the present invention, and a control method according to an embodiment of the present invention may include, but is not limited to, step S610, step S620, and step S630.
Step S610, obtaining third position information and third size information of the view of which engineering size marking is completed.
Specifically, after the engineering view is marked with dimensions and the dimensions are marked with dimensions and are subjected to interference adjustment, the dimensions of the engineering view are changed, and then in order to ensure that the engineering view can be neatly arranged in the view area outer frame, the positional relationship of the engineering view relative to the view area outer frame needs to be adjusted secondarily, and then third position information and third dimension information of the view with the marked engineering dimensions need to be acquired again.
Step S620, obtaining at least two distance values according to the third position information, the third size information, the second position information and the second size information, wherein the distance values represent the distance between the engineering view and the outer frame of the view area.
Specifically, after the third position information and the third size information of the engineering view are acquired, the second position information and the second size information which have been acquired in the foregoing embodiments are combined to perform calculation processing, so as to obtain a plurality of distance values, where the distance values represent distances between the engineering view and the outer frame of the view area, and it can be known from the case of the plurality of distance values, whether the position relationship between the engineering view and the outer frame of the view area and the view result presented on the printed view are neat.
Step S630, adjusting the third position information of the engineering view according to at least two distance values.
Specifically, after a plurality of distance values are obtained through calculation, the real position relation between the engineering view and the view area outer frame can be obtained, and then the first position information and/or the dimension marking information of the engineering view can be adjusted according to the plurality of distance values, so that the relation between the engineering view and the view area outer frame meets the setting requirement, and under the normal condition, when the plurality of distance values are adjusted to be consistent, the engineering view can be placed in the view area outer frame of the printing drawing in a neat mode, the offset problem can not occur, the output drawing can meet the needs of users, and the user experience perception is improved.
In addition, referring to fig. 7, an embodiment of the present invention further provides an engineering drawing space arrangement apparatus 700, including:
a first obtaining module 710, configured to obtain first location information and first size information of an engineering view;
a second obtaining module 720, configured to obtain second position information and second size information of a view area frame corresponding to the engineering view;
the calculating module 730 is configured to obtain at least one distance value according to the first position information, the first size information, the second position information, and the second size information, where the distance value represents a distance between the engineering view and the outer frame of the view area;
the adjustment module 740 is configured to perform adjustment processing on the first position information and/or the dimension marking information of the engineering view according to the at least one distance value.
In an embodiment, the adjustment module 740 is further configured to obtain first location information of the engineering view; acquiring second position information of a view area outer frame corresponding to the engineering view; obtaining at least one distance value according to the first size information, the first position information, the second position information and the second size information; and adjusting the first position information and the dimension marking information of the engineering view according to at least one distance value.
In an embodiment, the adjustment module 740 is further configured to adjust the first position information of the engineering view such that the distance difference value is within the standard distance threshold range, and the distance difference value is a difference value between every two distance values of the at least two distance values when the at least one distance difference value exceeds the standard distance threshold range and the distance minimum value of the at least two distance values is greater than the distance threshold.
In an embodiment, the adjusting module 740 is further configured to adjust the number of layers of the dimension marking information according to at least two distance values so that at least two distance values are both greater than the distance threshold when the distance minimum value is less than or equal to the distance threshold and the distance value on the opposite side of the distance minimum value is less than or equal to the distance threshold; and adjusting the first position information of the engineering view according to the current distance value so that the distance difference value is within a standard distance threshold range.
In an embodiment, the adjusting module 740 is further configured to obtain an area difference value according to at least two distance values, the first size information and the second size information; determining the quantity and the labeling type of the size labeling information according to the area difference value; and adjusting the dimension marking information according to the quantity and the marking type of the dimension marking information.
In an embodiment, the system further comprises an interference detection module, wherein the interference detection module is used for carrying out dimension marking interference detection processing on the view with the finished engineering dimension marking to obtain a detection result; and adjusting the dimension marking of the engineering view with the dimension marking interference problem according to the detection result.
In an embodiment, the interference detection module is further configured to determine, when the detection result is that the coordinate size interference problem exists, a current position of a coordinate size with interference in the engineering view with the coordinate size interference in the engineering view, move the coordinate size with interference from the current position to outside of the engineering view, and create a size corner for the coordinate size with interference;
in an embodiment, the interference detection module is further configured to determine, when the detection result is that there is a problem of linear dimension interference, a current position of a linear dimension having interference in the engineering view, move the linear dimension having interference from the current position to outside the engineering view, and adjust the linear dimension having interference to a direction of a vertical dimension line and/or a direction of a parallel dimension line;
In an embodiment, the interference detection module is further configured to obtain a current position of an annotation size with an annotation size interference problem when the detection result indicates that the annotation size interference problem exists, perform translational adjustment on the annotation size with the annotation size interference problem in a plurality of preset directions to obtain a plurality of translated position information, obtain a plurality of distance values according to the plurality of translated position information and the current position of the annotation size, and move the annotation size with the annotation size interference problem to a position of the translated position information corresponding to the minimum distance value;
in an embodiment, the interference detection module is further configured to, when the detection result indicates that the external dimension interference problem exists, place the external dimension having the external dimension interference problem outside the engineering view, and center the external dimension.
It should be noted that, the embodiments of the engineering drawing space arrangement device are consistent with the technical means used in the embodiments of the engineering drawing space arrangement method, the technical problems solved and the technical effects achieved, and detailed description thereof will not be given here.
In addition, one embodiment of the present application provides a controller including: memory, a processor, and a computer program stored on the memory and executable on the processor. The processor and the memory may be connected by a bus or other means. It should be noted that, the controller in this embodiment may be correspondingly configured to include the memory and the processor in the embodiment shown in fig. 1, and may form a part of the system architecture platform in the embodiment shown in fig. 1, where the two are the same inventive concept, so that the two have the same implementation principle and beneficial effects, which are not described in detail herein.
The non-transitory software program and instructions required to implement the engineering drawing space arrangement method on the controller side of the above-described embodiments are stored in the memory, and when executed by the processor, the engineering drawing space arrangement method of the above-described embodiments is performed, for example, the method steps S100 to S400 in fig. 2, the method steps S410 to S430 in fig. 4, the method steps S510 to S520 in fig. 5, and the method steps S610 to S630 in fig. 6 described above are performed.
Furthermore, an embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for performing the above-described engineering drawing space arrangement method on the terminal side, for example, performing the above-described method steps S100 to S400 in fig. 2, the method steps S410 to S430 in fig. 4, the method steps S510 to S520 in fig. 5, and the method steps S610 to S630 in fig. 6.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and may include any information delivery media. The computer-readable storage medium may be nonvolatile or volatile.
While the preferred embodiment of the present application has been described in detail, the present application is not limited to the above embodiments, and those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit and scope of the present application, and these equivalent modifications or substitutions are included in the scope of the present application as defined in the appended claims.

Claims (9)

1. An engineering drawing space arrangement method, comprising:
acquiring first size information of an engineering view, wherein the engineering view is a view marked by the completed engineering size;
acquiring second size information of a view area outer frame corresponding to the engineering view;
obtaining at least one distance value according to the first size information and the second size information, wherein the distance value represents the distance between the engineering view and the view area outer frame;
acquiring first position information of the engineering view;
acquiring second position information of a view area outer frame corresponding to the engineering view;
obtaining at least one distance value according to the first size information, the first position information, the second position information and the second size information;
and adjusting the first position information and the dimension marking information of the engineering view according to at least one distance value.
2. The engineering drawing space arrangement method according to claim 1, wherein the number of the distance values is at least two, and the adjusting the first position information and the dimension marking information of the engineering view according to at least one of the distance values includes:
and under the condition that at least one distance difference value exceeds a standard distance threshold range and the distance minimum value in at least two distance values is larger than the distance threshold value, adjusting the first position information of the engineering view so that the distance difference value is in the standard distance threshold range, wherein the distance difference value is the difference value of each two distance values in the at least two distance values.
3. The engineering drawing space arrangement method according to claim 2, wherein the adjusting the first position information and the dimension marking information of the engineering view according to the distance minimum value includes:
when the distance minimum value is smaller than or equal to a distance threshold value and the distance value on the side opposite to the distance minimum value is smaller than or equal to the distance threshold value, adjusting the layer number of the dimension marking information according to at least two distance values so that at least two distance values are larger than the distance threshold value;
And adjusting the first position information of the engineering view according to the current distance value so that the distance difference value is within a standard distance threshold range.
4. The engineering drawing space arrangement method according to claim 1, wherein the adjusting the first position information and the dimensioning information of the engineering view according to at least one distance value includes:
obtaining an area difference value according to at least two distance values, the first size information and the second size information;
determining the quantity and the labeling type of the dimension labeling information according to the area difference value;
and adjusting the dimension marking information according to the quantity of the dimension marking information and the marking type.
5. The engineering drawing space arrangement method according to claim 1, wherein the engineering drawing space arrangement method further comprises:
performing dimension marking interference detection processing on the view with the finished engineering dimension marking to obtain a detection result;
and adjusting the dimension marking of the engineering view with the dimension marking interference problem according to the detection result.
6. The engineering drawing space arrangement method according to claim 5, wherein the adjusting the dimension marking of the engineering drawing with the dimension marking interference problem according to the detection result includes at least one of the following:
When the detection result is that the coordinate size interference problem exists, determining the current position of the coordinate size with interference in the engineering view with the coordinate size interference in the engineering view, moving the coordinate size with interference from the current position to the outside of the engineering view, and creating a size corner for the coordinate size with interference;
when the detection result is that the linear dimension interference problem exists, determining the current position of the linear dimension with interference in the engineering view with the linear dimension interference in the engineering view, moving the linear dimension with interference from the current position to the outside of the engineering view, and adjusting the linear dimension with interference to the direction of a vertical dimension line and/or the direction of a parallel dimension line;
when the detection result shows that the annotation size interference problem exists, acquiring the current position of the annotation size with the annotation size interference problem, carrying out translation adjustment on the annotation size with the annotation size interference problem in a plurality of preset directions to obtain a plurality of translated position information, obtaining a plurality of distance values according to the plurality of translated position information and the current position of the annotation size, and moving the annotation size with the annotation size interference problem to the position of the translated position information corresponding to the minimum distance value;
And under the condition that the detection result is that the appearance size interference problem exists, placing the appearance size with the appearance size interference problem outside the engineering view, and centering the appearance size.
7. The engineering drawing space arrangement method according to claim 5, wherein after the adjusting the dimension marking of the engineering view having the dimension marking interference problem according to the detection result, the method further comprises:
acquiring third position information and third size information of the engineering view, which are obtained after the size marking of the engineering view is adjusted;
obtaining at least two distance values according to the third position information, the third size information, the second position information and the second size information, wherein the distance values represent the distance values of the engineering view from the view area outer frame;
and adjusting the third position information of the engineering view according to at least two distance values.
8. A controller, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the engineering drawing space arrangement method according to any one of claims 1 to 7 when executing the computer program.
9. A computer-readable storage medium storing computer-executable instructions for performing the engineering drawing space arrangement method of any one of claims 1 to 7.
CN202211008419.2A 2022-08-22 2022-08-22 Engineering drawing space arrangement method, controller and storage medium Active CN115423992B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211008419.2A CN115423992B (en) 2022-08-22 2022-08-22 Engineering drawing space arrangement method, controller and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211008419.2A CN115423992B (en) 2022-08-22 2022-08-22 Engineering drawing space arrangement method, controller and storage medium

Publications (2)

Publication Number Publication Date
CN115423992A CN115423992A (en) 2022-12-02
CN115423992B true CN115423992B (en) 2023-11-14

Family

ID=84198191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211008419.2A Active CN115423992B (en) 2022-08-22 2022-08-22 Engineering drawing space arrangement method, controller and storage medium

Country Status (1)

Country Link
CN (1) CN115423992B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01201718A (en) * 1988-02-05 1989-08-14 Dainippon Screen Mfg Co Ltd Automatic drawing device and drawing data processing method
JPH05120360A (en) * 1991-10-25 1993-05-18 Nec Corp Method for preparing dimension line in drawing device
JP2006269699A (en) * 2005-03-24 2006-10-05 Matsushita Electric Ind Co Ltd Semiconductor device and manufacturing method thereof
CN106021718A (en) * 2016-05-19 2016-10-12 重庆阿泰可科技股份有限公司 Drawing method and device used for engineering drawing in CATIA (Computer-graphics Aided Three-dimensional Interactive Application)
CN110428479A (en) * 2019-07-26 2019-11-08 桂林电子科技大学 A kind of Solid works two-dimensional engineering graphic size marking error correction self-adapting regulation method
CN110796664A (en) * 2019-10-14 2020-02-14 北京字节跳动网络技术有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111832449A (en) * 2020-06-30 2020-10-27 万翼科技有限公司 Engineering drawing display method and related device
CN113901615A (en) * 2021-10-27 2022-01-07 上海设序科技有限公司 Automatic marking method and device for two-dimensional drawing and electronic equipment
CN114065700A (en) * 2021-10-31 2022-02-18 广东利元亨智能装备股份有限公司 Drawing detection item extraction method, controller and storage medium
CN114373188A (en) * 2021-12-06 2022-04-19 北京数码大方科技股份有限公司 Drawing identification method and device, electronic equipment and storage medium
CN114494509A (en) * 2021-12-27 2022-05-13 北京吉威空间信息股份有限公司 Label drawing method, device and equipment for online drawing and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01201718A (en) * 1988-02-05 1989-08-14 Dainippon Screen Mfg Co Ltd Automatic drawing device and drawing data processing method
JPH05120360A (en) * 1991-10-25 1993-05-18 Nec Corp Method for preparing dimension line in drawing device
JP2006269699A (en) * 2005-03-24 2006-10-05 Matsushita Electric Ind Co Ltd Semiconductor device and manufacturing method thereof
CN106021718A (en) * 2016-05-19 2016-10-12 重庆阿泰可科技股份有限公司 Drawing method and device used for engineering drawing in CATIA (Computer-graphics Aided Three-dimensional Interactive Application)
CN110428479A (en) * 2019-07-26 2019-11-08 桂林电子科技大学 A kind of Solid works two-dimensional engineering graphic size marking error correction self-adapting regulation method
CN110796664A (en) * 2019-10-14 2020-02-14 北京字节跳动网络技术有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111832449A (en) * 2020-06-30 2020-10-27 万翼科技有限公司 Engineering drawing display method and related device
CN113901615A (en) * 2021-10-27 2022-01-07 上海设序科技有限公司 Automatic marking method and device for two-dimensional drawing and electronic equipment
CN114065700A (en) * 2021-10-31 2022-02-18 广东利元亨智能装备股份有限公司 Drawing detection item extraction method, controller and storage medium
CN114373188A (en) * 2021-12-06 2022-04-19 北京数码大方科技股份有限公司 Drawing identification method and device, electronic equipment and storage medium
CN114494509A (en) * 2021-12-27 2022-05-13 北京吉威空间信息股份有限公司 Label drawing method, device and equipment for online drawing and storage medium

Also Published As

Publication number Publication date
CN115423992A (en) 2022-12-02

Similar Documents

Publication Publication Date Title
US7434159B1 (en) Automatically layout of document objects using an approximate convex function model
US9773072B2 (en) Systems and methods for developing adaptive layouts for electronic content
US10277859B2 (en) Devices, systems, and methods for generating multi-modal images of a synthetic scene
US10061303B2 (en) Three-dimensional printing support models
US20130061132A1 (en) System and method for web page segmentation using adaptive threshold computation
KR102591542B1 (en) Table processing methods, devices, smart interactive tablets and storage media
CN113901615A (en) Automatic marking method and device for two-dimensional drawing and electronic equipment
WO2015035319A1 (en) Method and apparatus of controlling page element
CN107977342B (en) Document comparison method and device
CN107423366B (en) Carousel graph switching method and device
CN114626134B (en) BIM-based pipeline comprehensive optimization method and device, electronic equipment and storage medium
CN115423992B (en) Engineering drawing space arrangement method, controller and storage medium
US11048864B2 (en) Digital annotation and digital content linking techniques
CN106020815A (en) Expansion method and system of Android platform animation display area
CN115437582B (en) Engineering drawing view area distribution method, controller and storage medium
CN111489283A (en) Picture format conversion method and device and computer storage medium
CN107256004B (en) Product processing method and device
CN115423991B (en) Engineering drawing layout method, controller and storage medium
US20130100137A1 (en) Computing device, storage medium and method for analyzing 2d graphic files of measurement products
CN114723803A (en) Dynamic scene change degree evaluation method and device and storage medium
EP3929871A1 (en) Picture processing method, picture set processing method, computer device, and storage medium
CN106610974B (en) Webpage photo wall generation method and device
CN105956239A (en) Automatic alignment method and system of components in circuit design
CN116392810A (en) Text display method and device, electronic equipment and readable storage medium
CN116580137A (en) Rendering method of engineering drawing and electronic equipment

Legal Events

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