CN113434935B - Method, apparatus, computer device and readable storage medium for marking temporary size - Google Patents
Method, apparatus, computer device and readable storage medium for marking temporary size Download PDFInfo
- Publication number
- CN113434935B CN113434935B CN202110721541.3A CN202110721541A CN113434935B CN 113434935 B CN113434935 B CN 113434935B CN 202110721541 A CN202110721541 A CN 202110721541A CN 113434935 B CN113434935 B CN 113434935B
- Authority
- CN
- China
- Prior art keywords
- temporary
- target object
- type
- size
- marking
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000004513 sizing Methods 0.000 claims abstract description 11
- 238000004590 computer program Methods 0.000 claims description 8
- 238000012986 modification Methods 0.000 claims description 8
- 230000004048 modification Effects 0.000 claims description 8
- 238000012216 screening Methods 0.000 claims description 8
- 238000002372 labelling Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000011960 computer-aided design Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/13—Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Geometry (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Civil Engineering (AREA)
- Structural Engineering (AREA)
- Computational Mathematics (AREA)
- Architecture (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a method for marking temporary dimensions, which comprises the following steps: receiving a creation instruction, and determining a target object with a temporary size to be marked according to the creation instruction; acquiring a type reference set associated with the target object, wherein the type reference set comprises an object type capable of being subjected to temporary sizing with the target object; determining a reference object for temporary size marking with the target object from a drawing according to the priority of the object type in the type reference set; and marking the temporary size between the target object and the reference object in the drawing. The invention also discloses a temporary size marking device, a computer device and a computer readable storage medium.
Description
Technical Field
The present invention relates to the field of computer aided design technology, and in particular, to a method, an apparatus, a computer device, and a computer readable storage medium for labeling temporary dimensions.
Background
In the building field, various business components such as walls, beams, doors, plates, windows and the like are involved, in the process of constructing a three-dimensional model of the building field, a designer needs to repeatedly move the positions of the components, in order to help the designer better define position information between the components, the prior art provides a method for marking temporary sizes of the components, the method can automatically display the distance between the components, but the prior method is excessively dead, and each component can only be uniquely fixed to mark the temporary sizes between the two components by taking one component as a reference.
Aiming at the technical problem that the labeling process of the temporary size is too single and dead plate in the prior art, no effective solution is provided at present.
Disclosure of Invention
The invention aims to provide a method, a device, computer equipment and a computer readable storage medium for marking temporary sizes, which are used for solving the technical problem that the marking process of the temporary sizes is too single and dead plates in the prior art.
One aspect of the present invention provides a method of marking temporary dimensions, the method comprising: receiving a creation instruction, and determining a target object with a temporary size to be marked according to the creation instruction; acquiring a type reference set associated with the target object, wherein the type reference set comprises an object type capable of being subjected to temporary sizing with the target object; determining a reference object for temporary size marking with the target object from a drawing according to the priority of the object type in the type reference set; and marking the temporary size between the target object and the reference object in the drawing.
Optionally, the determining, according to the priority of the object type in the type reference set, a reference object for temporary sizing with the target object from a drawing includes: determining the object type which exists in the drawing and has the highest priority in the type reference set; acquiring all objects belonging to the determined object type from the drawing to form an object set to be screened; and screening an object closest to the target object from the object set to be screened as the reference object.
Optionally, the determining the object type with the highest priority in the type reference set and existing in the drawing includes: acquiring an object type with the highest priority in the type reference set, and judging whether the object type exists in the drawing, wherein if so, all objects belonging to the object type in the drawing are acquired to form an object set to be screened; if not, the object type with the highest priority is obtained from the object types which are not judged in the type reference set, and whether the object type exists in the drawing is continuously judged until the object type which exists in the drawing and has the highest priority in the type reference set is determined.
Optionally, the marking the temporary size between the target object and the reference object in the drawing includes: determining a temporary starting point of the target object according to the creation instruction; determining a reference point on the reference object according to the temporary starting point of the target object; calculating the size length of the temporary starting point of the target object from the reference point; and marking the size length of the temporary starting point of the target object from the reference point in the drawing.
Optionally, the marking the temporary size between the target object and the reference object in the drawing further includes: receiving an instruction for representing completion of creation of the target object, and determining the size and the length of the target object; and marking the size and the length of the target object in the drawing.
Optionally, after marking the temporary size between the target object and the reference object in the drawing, the method further includes: receiving a modification instruction for modifying the temporary size, and determining the modified temporary size according to the modification instruction; when the modified temporary size is the size length of the temporary starting point of the target object from the reference point, adjusting the size length of the temporary starting point of the target object from the reference point to be the modified temporary size; and when the modified temporary size is the size length of the target object, adjusting the size length of the target object to the modified temporary size.
Optionally, after marking the temporary size between the target object and the reference object in the drawing, the method further includes: receiving a moving instruction for moving the reference point, determining an object to which the reference point moves according to the moving instruction, and obtaining a new reference object; and marking temporary sizes between the target object and the new reference object in the drawing.
Another aspect of the present invention provides an apparatus for temporary sizing, the apparatus comprising: the first determining module is used for receiving a creating instruction and determining a target object with a temporary size to be marked according to the creating instruction; the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring a type reference set associated with the target object, and the type reference set contains an object type capable of being subjected to temporary size marking with the target object; the second determining module is used for determining a reference object for temporarily dimensioning with the target object from the drawing according to the priority of the object type in the type reference set; and the marking module is used for marking the temporary size between the target object and the reference object in the drawing.
Yet another aspect of the present invention provides a computer apparatus comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of dimensioning temporary dimensions according to any of the embodiments above when the computer program is executed.
A further aspect of the invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of dimensioning temporary dimensions according to any of the embodiments described above.
According to the method for marking the temporary size, a type reference set is associated with each type of object in advance, each object type in the type reference set can be subjected to temporary size marking with the object associated with the set, the priority is set for each object type in the type reference set, the reference object used for carrying out temporary size marking with the target object can be determined from a drawing through the priority, then the temporary size between the target object and the reference object is marked in the drawing, and the method is implemented by configuring a plurality of object types capable of carrying out temporary size marking with each object in advance and screening out specific reference objects from the drawing according to the priority of the object types, so that the technical problem that the marking process of the temporary size in the prior art is too single and dead is solved, and the flexibility in the marking process is improved.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a flow chart of a method for marking temporary dimensions according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a set of determined type references provided by a first embodiment of the present invention;
FIG. 3 is a block diagram of a temporary sizing device according to a second embodiment of the present invention;
fig. 4 shows a block diagram of a computer device adapted to implement the method of labeling temporary dimensions provided by the third embodiment of the 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. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Example 1
Fig. 1 shows a flowchart of a temporary size marking method according to an embodiment of the present invention, and as shown in fig. 1, the temporary size marking method may include steps S1 to S4, where:
step S1, receiving a creation instruction, and determining a target object with a temporary size to be marked according to the creation instruction.
The object to be created in the drawing is the target object to be marked with the temporary size, for example, the user wants to newly add a window in the drawing, and the window is the target object to be marked with the temporary size when the user clicks the window icon in the member storage list through the mouse to generate the creation instruction.
Step S2, a type reference set associated with the target object is obtained, wherein the type reference set comprises an object type capable of being subjected to temporary size marking with the target object.
According to the actual business requirements in the three-dimensional design field (the building engineering design field), the object types in the three-dimensional model system are induced and carded in advance to form object types which can be used as temporary dimension marking references, a plurality of type reference sets are formed, and each type reference set supports customization to meet more different business requirements. Specifically, a reference policy is associated with each object type in advance, the reference policy includes the object type and a type reference set associated with the object type, wherein the type reference set includes a plurality of object types, each object type in the type reference set can be temporarily marked with the object type associated with the set, after determining the target object, the implementation can further determine the type to which the target object belongs, and determine the type reference set associated with the type to which the target object belongs.
As shown in fig. 2, each object type on the left is associated with a middle reference policy, wherein the object type in the first box on the left is associated with policy 1, the object type in the second box on the left is associated with policy 2, and the third box on the left is associated with policy 3; each object type in the first left box may be associated with a set of type references represented by the first right box by policy 1, each object type in the second left box may be associated with a set of type references represented by the second right box by policy 2, each object type in the third left box may be associated with a set of type references represented by the third right box by policy 3, e.g., the target object is a wall, the object type to which it belongs is a wall type, and the set of type references associated with the wall type may be determined by policy 1 to be the first right box.
And step S3, determining a reference object for temporary size marking with the target object from the drawing according to the priority of the object type in the type reference set.
And when the object under the object type with the highest priority does not exist in the drawing, automatically taking the object under the object type with the next priority, which is closest to the target object, as the reference object, and so on until the object under the object type with the highest priority in the type reference set exists in the drawing is determined. Specifically, step S3 includes steps S31 to S33, wherein:
step S31, determining the object type with highest priority in the type reference set and existing in the drawing;
step S32, acquiring all objects belonging to the determined object type from the drawing to form an object set to be screened;
and step S33, screening out an object closest to the target object from the object set to be screened as the reference object.
Wherein, step S31 may include:
acquiring an object type with the highest priority in the type reference set, and judging whether the object type exists in the drawing, wherein if so, all objects belonging to the object type in the drawing are acquired to form an object set to be screened;
if not, the object type with the highest priority is obtained from the object types which are not judged in the type reference set, and whether the object type exists in the drawing is continuously judged until the object type which exists in the drawing and has the highest priority in the type reference set is determined.
For example, as shown in FIG. 2, for the wall type in the first box on the left, its associated type reference set is represented as: the priority of the locating member type is greater than the priority of the wall type; for the type of locating member in the first box on the left, its associated type reference set is expressed as: the priority of the wall type is greater than the priority of the locating member type. If the target object is a wall, judging whether the type of the positioning member exists in the drawing, if so, acquiring all the positioning members in the drawing, and then screening the positioning member closest to the wall from the acquired positioning members to be used as a reference object; if not, judging whether the wall type exists in the drawing, if so, acquiring all the walls in the drawing, and then screening the wall closest to the target object (wall) from the acquired walls as a reference object.
Optionally, the type reference set may be modified according to the user's requirement, for example, a new object type is added in the type reference set and given corresponding priority, and the policy associated with the object type may be changed, for example, the reference policy associated with the wall type is adjusted from policy 1 to policy 2. In addition, the user may manually adjust the type reference set of which priority the target object is currently referencing, for example, the wall defaults to preferentially referencing the locating member type, at which time the user may manually adjust so that the wall preferentially references the wall type in the drawing even if there is a locating member type in the drawing.
And S4, marking the temporary size between the target object and the reference object in the drawing.
Specifically, the temporary size includes a size length of the target object from the reference object, and a size length of the target object itself.
In determining the size length of the target object from the reference object, step S4 may include steps S41 to S44, wherein:
step S41, determining a temporary starting point of the target object according to a creation instruction;
step S42, determining a reference point on the reference object according to the temporary starting point of the target object;
step S43, calculating the size length of the temporary starting point of the target object from the reference point;
and S44, marking the size length of the temporary starting point of the target object from the reference point in the drawing.
The drawing corresponds to a coordinate system, and one implementation method for determining the reference point comprises the following steps: and determining the azimuth relation between the target object and the reference object, determining a coordinate axis parallel to the azimuth relation from a drawing coordinate system, determining a straight line which is parallel to the coordinate axis and contains the temporary starting point, determining an intersection point of the straight line and the reference object, and determining the intersection point close to one side of the target object as a reference point.
After determining the length of the temporary starting point of the target object from the reference point, the temporary starting point of the target object and the reference point of the reference object can be taken as two endpoints, and the temporary size between the target object and the reference object is marked between the two endpoints, wherein the specific numerical value of the temporary size is the size length of the temporary starting point from the reference point.
In determining the size length of the target object itself, step S4 may include step S41 'and step S42', wherein:
step S41', receiving an instruction for representing completion of creation of the target object, and determining the size and the length of the target object;
and step S42', marking the size and the length of the target object in the drawing.
Specifically, after the target object is created in the drawing, the size and length of the target object can be calculated, for example: determining a temporary end point of the target object according to the instruction representing the completion of the creation of the target object, and then calculating the size length between the temporary start point and the temporary end point of the target object, namely the size length of the target object. Further, the temporary starting point and the temporary ending point of the target object are taken as two end points, and the temporary size of the target object is marked between the two end points, wherein the temporary size is the length of the target object.
Optionally, the temporary size marked out is a shortcut for modifying object attribute parameters, for example, if an object in the drawing has vector attributes, the size length of the target object from the reference object or the size length of the target object can be adjusted by modifying the temporary size, and by setting vector attributes for each object, a designer can construct the drawing more conveniently, and meanwhile, the defect that the operation process is complicated and errors are easy to occur in the manual adjustment of the temporary size in the prior art is avoided. Specifically, after step S4, the method further includes:
receiving a modification instruction for modifying the temporary size, and determining the modified temporary size according to the modification instruction;
when the modified temporary size is the size length of the temporary starting point of the target object from the reference point, adjusting the size length of the temporary starting point of the target object from the reference point to be the modified temporary size;
and when the modified temporary size is the size length of the target object, adjusting the size length of the target object to the modified temporary size.
Optionally, when the user wants to switch the reference object, the reference point may be moved, for example, dragged to another object meeting the requirement, and the reference object is updated at this time, and the temporary size between the new reference object and the target object needs to be recalculated, and the specific calculation method is similar to step S4 and will not be repeated here. As before, after step S4, the method further comprises:
receiving a moving instruction for moving the reference point, determining an object to which the reference point moves according to the moving instruction, and obtaining a new reference object;
and marking temporary sizes between the target object and the new reference object in the drawing.
Optionally, the object where the adjusted reference point is located is remembered, and the temporary size between the target object and the new reference object is still displayed when the target object is reselected next time, for example, after the temporary size between the target object and the new reference object is marked in the drawing, the method further includes: and receiving a selection instruction, and displaying the temporary size between the target object and the new reference object.
However, when the new reference object cannot be referred to for some reason, if deleted, the temporary size of the target object may be restored to the temporary size marked last time, and the reference point is restored to the reference object determined last time, for example, after the temporary size between the target object and the new reference object is marked in the drawing, the method further includes: when the new reference object is detected to be unable to be referred, determining the last reference object of the target object, restoring the reference point to the last reference object, deleting the temporary size between the target object and the new reference object, and restoring the temporary size between the target object and the last reference object.
According to the method for marking the temporary size, a type reference set is associated with each type of object in advance, each object type in the type reference set can be subjected to temporary size marking with the object associated with the set, the priority is set for each object type in the type reference set, the reference object used for carrying out temporary size marking with the target object can be determined from a drawing through the priority, then the temporary size between the target object and the reference object is marked in the drawing, and the method is implemented by configuring a plurality of object types capable of carrying out temporary size marking with each object in advance and screening out specific reference objects from the drawing according to the priority of the object types, so that the technical problem that the marking process of the temporary size in the prior art is too single and dead is solved, and the flexibility in the marking process is improved.
Example two
The second embodiment of the present invention further provides a temporary size marking device, which corresponds to the temporary size marking method provided in the first embodiment, and corresponding technical features and technical effects are not described in detail in this embodiment, and reference is made to the first embodiment for relevant points. Specifically, fig. 3 shows a block diagram of an apparatus for labeling temporary dimensions according to a second embodiment of the present invention. As shown in fig. 3, the temporary size marking apparatus 300 may include a first determining module 301, an obtaining module 302, a second determining module 303, and a marking module 304, where:
a first determining module 301, configured to receive a creation instruction, and determine a target object with a temporary size to be marked according to the creation instruction;
an obtaining module 302, configured to obtain a type reference set associated with the target object, where the type reference set includes an object type that can be temporarily resized with the target object;
a second determining module 303, configured to determine, according to the priority of the object type in the type reference set, a reference object that performs temporary sizing with the target object from a drawing;
and the labeling module 304 is configured to label the temporary size between the target object and the reference object in the drawing.
Optionally, the second determining module is further configured to: determining the object type which exists in the drawing and has the highest priority in the type reference set; acquiring all objects belonging to the determined object type from the drawing to form an object set to be screened; and screening an object closest to the target object from the object set to be screened as the reference object.
Optionally, the second determining module, when determining the object type that exists in the drawing and has the highest priority in the type reference set, is further configured to: acquiring an object type with the highest priority in the type reference set, and judging whether the object type exists in the drawing, wherein if so, all objects belonging to the object type in the drawing are acquired to form an object set to be screened; if not, the object type with the highest priority is obtained from the object types which are not judged in the type reference set, and whether the object type exists in the drawing is continuously judged until the object type which exists in the drawing and has the highest priority in the type reference set is determined.
Optionally, the labeling module is further configured to: determining a temporary starting point of the target object according to the creation instruction; determining a reference point on the reference object according to the temporary starting point of the target object; calculating the length of the temporary starting point of the target object from the reference point; and marking the temporary size between the target object and the reference object in the drawing according to the length.
Optionally, the labeling module is further configured to: receiving an instruction for representing completion of creation of the target object, and determining the length of the target object; and marking the temporary size of the target object according to the length.
Optionally, the apparatus further comprises: the third determining module is used for receiving a modification instruction for modifying the temporary size after the temporary size between the target object and the reference object is marked in the drawing, and determining the modified temporary size according to the modification instruction; a first adjustment module, configured to adjust a length of a temporary starting point of the target object from the reference point to a modified temporary size when the modified temporary size is the temporary size between the target object and the reference object; and the first adjusting module is used for adjusting the length of the target object to be the modified temporary size when the modified temporary size is the temporary size of the target object.
Optionally, the apparatus further comprises: a fourth determining module, configured to receive a movement instruction for moving the reference point after the temporary size between the target object and the reference object is marked in the drawing, determine an object to which the reference point moves according to the movement instruction, and obtain a new reference object; and the processing module is used for marking the temporary size between the target object and the new reference object in the drawing.
Example III
Fig. 4 shows a block diagram of a computer device adapted to implement the method of labeling temporary dimensions provided by the third embodiment of the invention. In this embodiment, the computer device 400 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack-mounted server, a blade server, a tower server, or a rack-mounted server (including a stand-alone server or a server cluster formed by a plurality of servers) for executing a program, etc. As shown in fig. 4, the computer device 400 of the present embodiment includes at least, but is not limited to: a memory 401, a processor 402, and a network interface 403 which may be communicatively connected to each other through a system bus. It should be noted that FIG. 4 only shows computer device 400 having components 401-403, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead.
In this embodiment, the memory 403 includes at least one type of computer-readable storage medium, which includes flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 401 may be an internal storage unit of the computer device 400, such as a hard disk or a memory of the computer device 400. In other embodiments, the memory 401 may also be an external storage device of the computer device 400, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the computer device 400. Of course, memory 401 may also include both internal storage elements of computer device 400 and external storage devices. In this embodiment, the memory 401 is generally used to store an operating system and various types of application software installed on the computer device 400, for example, program codes of a temporary size marking method, which includes: receiving a creation instruction, and determining a target object with a temporary size to be marked according to the creation instruction; acquiring a type reference set associated with the target object, wherein the type reference set comprises an object type capable of being subjected to temporary sizing with the target object; determining a reference object with temporary size marking with the target object from a drawing according to the priority of the object type in the type reference set; and marking the temporary size between the target object and the reference object in the drawing, and determining the type of the target well seat according to the number of the target pipelines and the included angle between the target pipelines.
The processor 402 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 402 is generally used to control the overall operation of the computer device 400. Such as performing control and processing related to data interaction or communication with the computer device 400. In this embodiment, the processor 402 is configured to execute a program code for a method of marking a temporary size stored in the memory 401.
In this embodiment, the method for marking temporary dimensions stored in the memory 401 may also be divided into one or more program modules and executed by one or more processors (the processor 402 in this embodiment) to complete the present invention.
The network interface 403 may include a wireless network interface or a wired network interface, the network interface 403 typically being used to establish a communication link between the computer device 400 and other computer devices. For example, the network interface 403 is used to connect the computer device 400 to an external terminal through a network, establish a data transmission channel and a communication link between the computer device 400 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a global system for mobile communications (Global System of Mobile communication, abbreviated as GSM), wideband code division multiple access (Wideband Code Division Multiple Access, abbreviated as WCDMA), a 4G network, a 5G network, bluetooth (Bluetooth), wi-Fi, etc.
Example IV
The present embodiment also provides a computer readable storage medium including a flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application store, etc., having stored thereon a computer program which, when executed by a processor, implements the steps of a method of labeling temporary dimensions, the method of labeling temporary dimensions comprising: receiving a creation instruction, and determining a target object with a temporary size to be marked according to the creation instruction; acquiring a type reference set associated with the target object, wherein the type reference set comprises an object type capable of being subjected to temporary sizing with the target object; determining a reference object with temporary size marking with the target object from a drawing according to the priority of the object type in the type reference set; and marking the temporary size between the target object and the reference object in the drawing.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps in them may be fabricated into a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
It should be noted that, the embodiment numbers of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (8)
1. A method of marking temporary dimensions, the method comprising:
receiving a creation instruction, and determining a target object with a temporary size to be marked according to the creation instruction;
acquiring a type reference set associated with the target object, wherein the type reference set comprises an object type capable of being subjected to temporary sizing with the target object;
determining a reference object for temporary size marking with the target object from a drawing according to the priority of the object type in the type reference set;
marking a temporary size between the target object and the reference object in the drawing; the temporary size comprises the size length of the target object from the reference object and the size length of the target object;
the determining, according to the priority of the object type in the type reference set, a reference object for temporary sizing with the target object from a drawing includes:
determining the object type which exists in the drawing and has the highest priority in the type reference set;
acquiring all objects belonging to the determined object type from the drawing to form an object set to be screened;
screening an object closest to the target object from the object set to be screened as the reference object;
wherein the determining the object type with the highest priority in the type reference set and existing in the drawing comprises the following steps:
acquiring an object type with the highest priority in the type reference set, and judging whether the object type exists in the drawing, wherein if so, all objects belonging to the object type in the drawing are acquired to form an object set to be screened;
if not, the object type with the highest priority is obtained from the object types which are not judged in the type reference set, and whether the object type exists in the drawing is continuously judged until the object type which exists in the drawing and has the highest priority in the type reference set is determined.
2. The method of claim 1, wherein the marking temporary dimensions between the target object and the reference object in the drawing comprises:
determining a temporary starting point of the target object according to the creation instruction;
determining a reference point on the reference object according to the temporary starting point of the target object;
calculating the size length of the temporary starting point of the target object from the reference point;
and marking the size length of the temporary starting point of the target object from the reference point in the drawing.
3. The method of claim 2, wherein the marking temporary dimensions between the target object and the reference object in the drawing further comprises:
receiving an instruction for representing completion of creation of the target object, and determining the size and the length of the target object;
and marking the size and the length of the target object in the drawing.
4. A method according to claim 3, wherein after marking the temporary size between the target object and the reference object in the drawing, the method further comprises:
receiving a modification instruction for modifying the temporary size, and determining the modified temporary size according to the modification instruction;
when the modified temporary size is the size length of the temporary starting point of the target object from the reference point, adjusting the size length of the temporary starting point of the target object from the reference point to be the modified temporary size;
and when the modified temporary size is the size length of the target object, adjusting the size length of the target object to the modified temporary size.
5. The method of claim 2, wherein after marking the temporary size between the target object and the reference object in the drawing, the method further comprises:
receiving a moving instruction for moving the reference point, determining an object to which the reference point moves according to the moving instruction, and obtaining a new reference object;
and marking temporary sizes between the target object and the new reference object in the drawing.
6. A temporary sizing device for implementing the method of any one of claims 1 to 5, said device comprising:
the first determining module is used for receiving a creating instruction and determining a target object with a temporary size to be marked according to the creating instruction;
the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring a type reference set associated with the target object, and the type reference set contains an object type capable of being subjected to temporary size marking with the target object;
the second determining module is used for determining a reference object for temporarily dimensioning with the target object from the drawing according to the priority of the object type in the type reference set;
and the marking module is used for marking the temporary size between the target object and the reference object in the drawing.
7. A computer device, the computer device 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 method of any of claims 1 to 5 when executing the computer program.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110721541.3A CN113434935B (en) | 2021-06-28 | 2021-06-28 | Method, apparatus, computer device and readable storage medium for marking temporary size |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110721541.3A CN113434935B (en) | 2021-06-28 | 2021-06-28 | Method, apparatus, computer device and readable storage medium for marking temporary size |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113434935A CN113434935A (en) | 2021-09-24 |
CN113434935B true CN113434935B (en) | 2024-04-09 |
Family
ID=77755051
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110721541.3A Active CN113434935B (en) | 2021-06-28 | 2021-06-28 | Method, apparatus, computer device and readable storage medium for marking temporary size |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113434935B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115062037B (en) * | 2022-06-29 | 2025-04-04 | 广联达科技股份有限公司 | A method, device and electronic equipment for collaborative architectural design |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0798720A (en) * | 1993-06-03 | 1995-04-11 | Omron Corp | Automatic generating method for dimension line and device therefor |
JPH07334549A (en) * | 1994-06-11 | 1995-12-22 | Rohm Co Ltd | Method and device for automatically entering size in cad system |
JP2003016115A (en) * | 2001-06-29 | 2003-01-17 | Tokyo Electron Ltd | System for supporting design |
CN101763454A (en) * | 2010-01-21 | 2010-06-30 | 金龙联合汽车工业(苏州)有限公司 | Method for full-parameter quick three-dimensional modeling and generation of title block |
CN105404714A (en) * | 2015-10-28 | 2016-03-16 | 北京海颐威工程技术有限公司 | Method and apparatus for in-place modification of member position in modeling software |
CN108427782A (en) * | 2017-08-12 | 2018-08-21 | 中民筑友科技投资有限公司 | A kind of three-dimensional building model treatment method and device based on BIM |
CN112364414A (en) * | 2020-10-26 | 2021-02-12 | 中国能源建设集团安徽电力建设第一工程有限公司 | BIM technology-based three-dimensional construction site arrangement method |
-
2021
- 2021-06-28 CN CN202110721541.3A patent/CN113434935B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0798720A (en) * | 1993-06-03 | 1995-04-11 | Omron Corp | Automatic generating method for dimension line and device therefor |
JPH07334549A (en) * | 1994-06-11 | 1995-12-22 | Rohm Co Ltd | Method and device for automatically entering size in cad system |
JP2003016115A (en) * | 2001-06-29 | 2003-01-17 | Tokyo Electron Ltd | System for supporting design |
CN101763454A (en) * | 2010-01-21 | 2010-06-30 | 金龙联合汽车工业(苏州)有限公司 | Method for full-parameter quick three-dimensional modeling and generation of title block |
CN105404714A (en) * | 2015-10-28 | 2016-03-16 | 北京海颐威工程技术有限公司 | Method and apparatus for in-place modification of member position in modeling software |
CN108427782A (en) * | 2017-08-12 | 2018-08-21 | 中民筑友科技投资有限公司 | A kind of three-dimensional building model treatment method and device based on BIM |
CN112364414A (en) * | 2020-10-26 | 2021-02-12 | 中国能源建设集团安徽电力建设第一工程有限公司 | BIM technology-based three-dimensional construction site arrangement method |
Also Published As
Publication number | Publication date |
---|---|
CN113434935A (en) | 2021-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10732611B2 (en) | System and method for generating machining control data of numerical control machine tool | |
CN109446570B (en) | Business process display method, device, computer equipment and storage medium | |
CN107992275B (en) | Document printing method and device, computer equipment and storage medium | |
US20220414066A1 (en) | Data management system, management method, and storage medium | |
CN112214561A (en) | Map data processing method, device, computer equipment and storage medium | |
CN114565703B (en) | Method, device and equipment for adjusting centralized labeling and readable storage medium | |
CN112947986A (en) | Multi-version code sign-in control method and device, client and storage medium | |
AU2022368364B2 (en) | Control method, device, equipment and storage medium for interactive reproduction of target object | |
CN114581639B (en) | A method for generating beam reinforcement information in BIM model based on beam plan construction drawing | |
CN113448862A (en) | Software version testing method and device and computer equipment | |
CN113434935B (en) | Method, apparatus, computer device and readable storage medium for marking temporary size | |
CN111913777A (en) | Information processing method, information processing device, electronic equipment and storage medium | |
CN111221517A (en) | Model creating method and device, computer equipment and readable storage medium | |
CN113345048A (en) | Geographic information image editing method and device and computer equipment | |
CN115952586A (en) | Method, device and equipment for moving civil air defense door frame wall and readable storage medium | |
CN113642642B (en) | Control identification method and device | |
CN113744396B (en) | Method, device, equipment and storage medium for establishing model based on three-dimensional map | |
CN108829574A (en) | Test data laying method, testing service device and computer readable storage medium | |
CN114154208B (en) | Method, device, computer equipment and storage medium for moving element across drawing | |
CN114996789B (en) | Constrained-edge non-shadow zone component construction method, device, apparatus and storage medium | |
CN114936410B (en) | Method, device, equipment and medium for modifying beam section structure type in three-dimensional model | |
CN113688456B (en) | Method, device and readable storage medium for inserting pile numbers in road section | |
CN115062388B (en) | Method, apparatus and computer readable storage medium for determining component orientation | |
CN113419805A (en) | User interface layout method and device, computer equipment and storage medium | |
CN113192189B (en) | Method, device and equipment for correcting connection relation and readable storage medium |
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 |