Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of building for capableing of self-optimizing model accuracy and set
Count the accuracy method of adjustment of scantling, device in software.
The accuracy method of adjustment of scantling in a kind of architectural design software, which comprises
Obtain the size of component in architectural design software;
The size there are it is broken several when, floor operation is carried out to the size of the component, obtains component adjusted
Size.
The size for obtaining component in architectural design software in one of the embodiments, comprising: obtain architectural design
The origin coordinates and terminal point coordinate of component in software;The size of the component is calculated according to the origin coordinates and terminal point coordinate.
In the size of the component, there are when decimal place, determine that the size of the component is deposited in one of the embodiments,
It is in broken number.
It includes: to the size that the size to the component, which carries out floor operation, in one of the embodiments,
The subsequent number of decimal point rounds up, the size of the component after being adjusted;Or to the decimal point of the size behind
Number be zeroed, the size of the component after being adjusted.
In one of the embodiments, when the size of the component cannot be divided exactly by minimum modules, the component is determined
Size there are broken numbers to be.
The size progress floor operation to the component includes: in one of the embodiments,
The size of the component is calculated divided by the remainder after minimum modules, and the remainder is obtained divided by minimum modules
Quotient;
When the quotient is greater than or equal to preset value, by the size of the component subtract the difference of the remainder with it is described
Minimum modules and value, the size as component adjusted;
When the quotient is less than preset value, then the size of the component is subtracted into the remainder, the structure after being adjusted
The size of part.
The preset value is 0.4,0.5 or 0.6 in one of the embodiments,.
The accuracy of scantling adjusts device in a kind of architectural design software, and described device includes:
Dimension acquisition module, for obtaining the size of component in architectural design software;
Floor module, for the size there are it is broken several when, floor operation is carried out to the size of the component, is adjusted
The size of component after whole.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
Device performs the steps of when executing the computer program
Obtain the size of component in architectural design software;
The size there are it is broken several when, floor operation is carried out to the size of the component, obtains component adjusted
Size.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
It is performed the steps of when row
Obtain the size of component in architectural design software;
The size there are it is broken several when, floor operation is carried out to the size of the component, obtains component adjusted
Size.
The accuracy method of adjustment of scantling, device in above-mentioned architectural design software, by architectural design software
The size of component carries out broken number judgement, and to having there are the size of the component of broken number progress floor operation, can reversely set
When being modeled, guarantee the accuracy of model built in meter according to base map.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
In one embodiment, as shown in Figure 1, providing a kind of accuracy adjustment of scantling in architectural design software
Method, comprising the following steps:
S110 obtains the size of component in architectural design software.
Wherein, the architectural design software can be assembled architecture design software.User is when using architectural design software
The pre-rendered base map of meeting, is modeled by base map, and component is the minimum unit for forming base map;Or base map is just to have drawn
, obtain the size of component in the base map just drawn.Size includes length value, width value or thickness in the embodiment of the present application
Value.
S120, the size there are it is broken several when, floor operation is carried out to the size of the component, obtains structure adjusted
The size of part.
Wherein, in the drawing process of building base map, due to operational issue, it will lead to the reality of component in architectural design software
There is the case where error in border length, such as the length ideal value of edge member is 500mm, but is drawn on the actual (tube) length on drawing
Degree is 500.1mm, or the physical length being drawn on drawing is 501mm, 502mm such case, then may determine that component
There are broken numbers for size.
Wherein, floor operation is carried out to the size of the component, is to guarantee to build essence of base map when for modeling
Exactness can make the physical length of component the situation of broken number occur, thus shadow if base map is there are error and if Direct Modeling
Ring the plant produced in later period.
The size for obtaining component in architectural design software in one of the embodiments, comprising: obtain architectural design
The origin coordinates and terminal point coordinate of component in software;The size of the component is calculated according to the origin coordinates and terminal point coordinate.
Wherein, the start-stop point of the component has corresponding coordinate value.
The size for obtaining component in architectural design software in one of the embodiments, comprising: obtained from memory
Take the size of component in architectural design software.Wherein, the size of the component can be stored in advance in memory.
In above-mentioned architectural design software in the accuracy method of adjustment of scantling, by component in architectural design software
Size carry out it is broken number judgement, and to have there are the size of the component of broken number carry out floor operation, can guarantee reversely setting
According to base map come when being modeled in meter, the accuracy of model built.
In the size of the component, there are when decimal place, determine that the size of the component is deposited in one of the embodiments,
In broken number.
It includes: to the size that the size to the component, which carries out floor operation, in one of the embodiments,
The subsequent number of decimal point rounds up, the size of the component after being adjusted;Or to the decimal point of the size behind
Number be zeroed, the size of the component after being adjusted.
For example, the size of component is 1000.1mm or 999.9mm, then can be adjusted according to the method to round up
The size of component afterwards is 1000mm.In another example the size of component is 1000.1mm or 1000.2mm, pass through the method for zero
The size of component after being adjusted is 1000mm.
In one of the embodiments, when the size of the component cannot be divided exactly by minimum modules, the component is determined
Size there are broken numbers.
In one of the embodiments, as shown in Fig. 2, the size progress floor operation to the component includes:
S210 calculates the size of the component divided by the remainder after minimum modules, and by the remainder divided by minimum modules,
Obtain quotient.
The size of the component is subtracted the difference of the remainder when the quotient is greater than or equal to preset value by S220
With the minimum modules and value, size as component adjusted.
The size of the component is then subtracted the remainder, after being adjusted when the quotient is less than preset value by S230
Component size.
Wherein, the preset value is 0.4,0.5 or 0.6, specifically takes 0.5.
For example, the size of component is 1001mm or 1002mm, the minimum modules of building are 50mm, then calculate separately to obtain remaining
Number is for 1 or 2,1 or 2 divided by 50 both less than 0.5, and therefore, the size of the component subtracts the remainder equal to 1000, adjusted
The size of component is 1000mm;In another example the size of component is 1048mm or 1049mm, the minimum modules of building are 50mm, then
It calculates separately to obtain remainder to be 48 or 49,48 or 49 divided by 50 both greater than 0.5, therefore, the size of the component subtracts described remaining
Along with minimum modules are equal to 1050 after number, the size of component adjusted is 1050mm.Mm indicates unit in embodiment: milli
Rice.
It should be understood that although each step in the flow chart of Fig. 1-2 is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 1-2
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively
It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately
It executes.
In one embodiment, as shown in figure 3, providing a kind of accuracy adjustment of scantling in architectural design software
Device, comprising: dimension acquisition module 310 and floor module 320, in which:
Dimension acquisition module 310, for obtaining the size of component in architectural design software.
Wherein, the architectural design software can be assembled architecture design software.User is when using architectural design software
The pre-rendered base map of meeting, is modeled by base map, and component is the minimum unit for forming base map;Or base map is just to have drawn
, obtain the size of the component in the architectural design software just drawn.
Floor module 320, for the size there are it is broken several when, floor operation is carried out to the size of the component, is obtained
Obtain the size of component adjusted.
Wherein, in the drawing process of building base map, due to operational issue, it will lead to the reality of component in architectural design software
There is the case where error in border length, such as the length ideal value of edge member is 500mm, but is drawn on the actual (tube) length on drawing
Degree is 500.1mm, or the physical length being drawn on drawing is 501mm, 502mm such case, then may determine that component
There are broken numbers for size.
Wherein, floor operation is carried out to the size of the component, is to guarantee to build essence of base map when for modeling
Exactness can make the physical length of component the situation of broken number occur, thus shadow if base map is there are error and if Direct Modeling
Ring the plant produced in later period.
In one of the embodiments, as shown in figure 4, the dimension acquisition module 310 includes: coordinate acquiring unit 311,
For obtaining the origin coordinates and terminal point coordinate of component in architectural design software;Dimension calculating unit 312, for being risen according to described
Beginning coordinate and terminal point coordinate calculate the size of the component.
Dimension acquisition module 310 includes in one of the embodiments, from obtaining structure in architectural design software in memory
The size of part.Wherein, the size of the component can be stored in advance in memory.
In the size of the component, there are when decimal place, determine that the size of the component is deposited in one of the embodiments,
In broken number.
It includes: that number subsequent to the decimal point of the size carries out that the size to the component, which carries out floor operation,
It rounds up, the size of the component after being adjusted;Or be zeroed to the subsequent number of the decimal point of the size, it is adjusted
The size of component after whole.
When the size of the component cannot be divided exactly by minimum modules where in one of the embodiments, the structure is determined
There are broken numbers for the size of part.
As shown in figure 5, the floor module 330 includes: quotient computing unit 331, for calculating the size of the component
Quotient is obtained divided by minimum modules divided by the remainder after minimum modules, and by the remainder;Adjustment unit 332, for described
Quotient be greater than or equal to preset value when, by the size of the component subtract the remainder difference and the minimum modules and
Value when the quotient is less than preset value, then subtracts the size of the component described remaining as the size of component adjusted
Number, the size of the component after being adjusted.
Wherein, the preset value is 0.4,0.5 or 0.6, specifically takes 0.5.
It is above right that specific restriction about the accuracy adjustment device of scantling in architectural design software may refer to
The restriction of the accuracy method of adjustment of scantling in architectural design software, details are not described herein.Above-mentioned architectural design software
Modules in the accuracy adjustment device of middle scantling can come real fully or partially through software, hardware and combinations thereof
It is existing.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with software shape
Formula is stored in the memory in computer equipment, executes the corresponding operation of the above modules in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction
Composition can be as shown in Figure 6.The computer equipment include by system bus connect processor, memory, network interface and
Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment
Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data
Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The database of machine equipment is used for the start-stop coordinate data of means of storage.The network interface of the computer equipment is used for and external end
End passes through network connection communication.To realize scantling in a kind of architectural design software when the computer program is executed by processor
Accuracy method of adjustment.
It will be understood by those skilled in the art that structure shown in Fig. 6, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory
Computer program, the processor perform the steps of when executing computer program
Obtain the size of component in architectural design software;
The size there are it is broken several when, floor operation is carried out to the size of the component, obtains component adjusted
Size.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of when being executed by processor
Obtain the size of component in architectural design software;
The size there are it is broken several when, floor operation is carried out to the size of the component, obtains component adjusted
Size.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.