Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a revit-based CAD graph plotting method, which comprises the steps of downloading a lightweight model of a corresponding water treatment engineering monomer building by using a preset automatic graph plotting plug-in a revit software end, adjusting parameters of the monomer building in a window provided by the preset automatic graph plotting plug-in according to preset design requirements, generating the size and/or the shape of the monomer building according with the preset design requirements by using the lightweight model, uploading information of the lightweight model corresponding to the adjusted monomer building to a related server, downloading a refined model automatically generated by the server according to the uploaded information to a local client, storing the refined model as an independent file, turning and converting the refined model into a reconstructed model by using the preset automatic graph plotting plug-in, wherein the reconstructed model comprises a plane view and a section view corresponding to the water treatment engineering monomer building, dividing the plane view and the section view corresponding to the monomer building by using the revit software end, converting the divided plane view and section view into a preset depth area design meeting a graph plotting condition, and finally exporting the CAD graph plotting view corresponding to the drawing by using the preset automatic graph plotting plug-in; therefore, according to the method for CAD graph plotting based on revit, aiming at the conditions that the link models are not closely connected and the graph plotting adjustment difficulty is high in the graph plotting mode of the native revit link model, the reconstructed model is generated on the server according to the refined model and is used for splicing, and the reconstructed model is automatically re-established to the current model-based revit software use mode through the preset automatic graph plotting plug-in, so that the problems that the process of manually establishing the model to adjust the view range is complex and the efficiency is low are solved, the time required for establishing the adjustment model is effectively saved, the reusability of the model is enhanced, and the use efficiency of the model is improved.
The invention provides a CAD graph drawing method based on revit, which is characterized by comprising the following steps:
s1, downloading a lightweight model of a corresponding water treatment engineering single building by using a preset automatic plotting plug-in a revit software end;
s2, adjusting parameters of the single building in a window provided by the preset automatic drawing plug-in unit according to preset design requirements, and generating the size and/or the shape of the single building according with the preset design requirements by using the lightweight model;
s3, uploading the adjusted information of the lightweight model corresponding to the single building to a relevant server, and downloading a refined model automatically generated by the server according to the uploaded information to a local client, so that the refined model is stored as an independent file;
s4, converting the refined model into a reconstruction model by using the preset automatic plotting plug-in, wherein the reconstruction model comprises a plane view and a section view corresponding to the water treatment engineering single building;
step S5, dividing view areas of the plane view and the section view corresponding to the single building by using a revit software end, and converting the divided view area design into a view meeting a preset view depth condition;
s6, exporting a CAD drawing corresponding to the view by using the preset automatic drawing plug-in;
further, in the step S1, downloading, by using a preset automatic drawing plug-in, the lightweight model of the corresponding water treatment engineering single building in the revit software end specifically includes:
downloading a lightweight model of a corresponding water treatment engineering single building by using a preset automatic drawing plug-in a revit software end, so that the lightweight model is a family which is constructed in advance according to the structural form of each single building of the water treatment engineering, and a parameter binding relation associated with a preset design calculation book is built in the family, so that the overall dimension of the lightweight model can be adjusted by adjusting corresponding parameter values;
further, in step S2, generating the size and/or shape of the single building meeting the preset design requirement by using the lightweight model specifically includes:
generating the size and/or shape of the single building according with the plane and the section view of a preset design expression habit by using the lightweight model;
further, in the step S2, generating the size and/or shape of the monolithic building according to the plane and the cross-sectional view of the preset design expression habit by using the lightweight model specifically includes:
firstly defining the initial position coordinates of a section in a refined model, and setting the coordinates of a cutting plane and a far cutting plane of the section according to a preset projection rule on a visual object required by the section;
further, in the step S1, a parameter binding relationship associated with a preset design calculation book is built in the family, so that adjusting the overall size of the lightweight model by adjusting corresponding parameter values specifically includes:
driving a member and equipment in the lightweight model to change positions, angles and sizes according to the calculation parameters of the preset design calculation book, and calculating and driving coordinates of a sectioning plane and a far-cutting plane of a preset view according to the projection requirements of the preset view on the member and the equipment;
when the view which does not meet the preset projection rule exists in the views, processing the corresponding view by using a preset rule filter so as to enable the view to meet the corresponding preset projection rule and preset drawing requirements;
further, in step S5, dividing view areas of the plane view and the cross-sectional view corresponding to the single building by using a revit software terminal specifically includes
When a plurality of different lightweight models are simultaneously mapped, determining the view range of each lightweight model by using the self plane view function of a revit software end, and calculating the coordinate system conversion of the view range in the current general map model by using the coordinate system conversion relation between each monomer building and the current general map model so as to obtain the adjustment value of the view range in the plane area;
further, in the step S5, after obtaining an adjustment value of the view range in the planar area, the adjustment value is presented in the corresponding planar view in a text prompt manner, so as to adjust the planar view range of the single model to a preset planar view range;
further, in the step S6, the exporting, by using the preset automatic drawing plug-in, the CAD drawing corresponding to the view specifically includes:
and finally, exporting the process drawing, the structure drawing and the building drawing corresponding to the view into the corresponding CAD drawing according to different layer division standards by using the preset automatic drawing plug-in.
Compared with the prior art, the revit-based CAD graph plotting method provided by the invention has the advantages that the lightweight model of the corresponding water treatment engineering single building is downloaded in a revit software end by using the preset automatic graph plotting plug-in, the parameters of the single building are adjusted in the window provided by the preset automatic graph plotting plug-in according to the preset design requirements, the size and/or the shape of the single building meeting the preset design requirements are generated by using the lightweight model, the adjusted information of the lightweight model corresponding to the single building is uploaded to a related server, the refined model automatically generated by the server according to the uploaded information is downloaded to a local client, the refined model is stored as an independent file, the refined model is converted into a reconstruction model by using the preset automatic graph plotting plug-in, the reconstruction model comprises a plane view and a section view corresponding to the water treatment engineering single building, the plane view and the section view corresponding to the single building are subjected to view area division by using the revit software end, the divided plane view area design is converted into the graph plotting meeting the preset depth condition, and finally the CAD graph plotting plug-in corresponding to the preset automatic graph plotting plug-in and the drawing is exported; therefore, according to the method for CAD graph plotting based on revit, aiming at the conditions that the link models are not closely connected and the graph plotting adjustment difficulty is high in the graph plotting mode of the native revit link model, the reconstructed model is generated on the server according to the refined model and is used for splicing, and the reconstructed model is automatically re-established to the current model-based revit software use mode through the preset automatic graph plotting plug-in, so that the problems that the process of manually establishing the model to adjust the view range is complex and the efficiency is low are solved, the time required for establishing the adjustment model is effectively saved, the reusability of the model is enhanced, and the use efficiency of the model is improved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
Referring to fig. 1, a schematic structural diagram of a method for CAD drawing based on revit according to the present invention is shown. The CAD graph drawing method based on revit comprises the following steps:
s1, downloading a lightweight model of a corresponding water treatment engineering single building by using a preset automatic plotting plug-in a revit software end;
s2, adjusting parameters of the single building in a window provided by the preset automatic drawing plug-in unit according to preset design requirements, and generating the size and/or the shape of the single building according with the preset design requirements by using the lightweight model;
s3, uploading the adjusted information of the lightweight model corresponding to the single building to a relevant server, and downloading a refined model automatically generated by the server according to the uploaded information to a local client, so that the refined model is stored as an independent file;
s4, converting the refined model into a reconstruction model by using the preset automatic plotting plug-in, wherein the reconstruction model comprises a plane view and a section view corresponding to the water treatment engineering single building;
step S5, dividing view areas of the plane view and the section view corresponding to the single building by using a revit software end, and converting the divided view area design into a view meeting a preset view depth condition;
and S6, exporting the CAD drawing corresponding to the view by using the preset automatic drawing plug-in.
The beneficial effects of the above technical scheme are: aiming at the conditions of loose connection among link models and high difficulty in map adjustment in a map mode of a native revit link model, the CAD map making method based on the revit generates a reconstruction model on a server according to a refined model, utilizes the reconstruction model for re-assembly, and automatically re-creates a current model-based revit software use mode through a preset automatic map making plug-in, thereby overcoming the problems of complexity and low efficiency in the process of manually creating a model to adjust the view range, effectively saving the time required by creating an adjustment model, enhancing the reusability of the model and improving the use efficiency of the model.
Preferably, in step S1, downloading, by using a preset automatic drawing plug-in at the revit software end, the lightweight model of the corresponding water treatment engineering single building specifically includes:
and downloading a light weight model of the corresponding water treatment engineering single building by using a preset automatic drawing plug-in a revit software end, so that the light weight model is a family which is constructed in advance according to the structural form of each single building of the water treatment engineering, and the family is internally provided with a parameter binding relation associated with a preset design calculation book, so that the appearance size of the light weight model can be adjusted by adjusting corresponding parameter values.
The beneficial effects of the above technical scheme are: the lightweight model of the single building is downloaded by utilizing the preset automatic drawing plug-in, targeted integrated processing can be carried out on the single building of the water treatment project, and a parameter binding relation between the single building and the preset design calculation book is established, so that the appearance size of the lightweight model can be adjusted by adjusting the parameter value of the calculation book, the lightweight model does not need to be disassembled, and the convenience for adjusting the lightweight model can be improved.
Preferably, in the step S2, generating the size and/or shape of the single building meeting the preset design requirement by using the lightweight model specifically includes:
and generating the size and/or shape of the single building according to the plane and the section view of the preset design expression habit by using the lightweight model.
The beneficial effects of the above technical scheme are: the size and/or form of the single building which accords with the plane and the section view of the preset design expression habit are/is generated by using the lightweight model, and the lightweight model can be ensured to be matched with the design expression habit of designers.
Preferably, in the step S2, generating the size and/or shape of the single building according to the plane and the cross-sectional view of the preset design expression habit by using the lightweight model specifically includes:
the method comprises the steps of firstly defining initial position coordinates of a section in a refined model, and setting the coordinates of a cutting plane and a far cutting plane of the section according to a preset projection rule on a visual object required by the section.
The beneficial effects of the above technical scheme are: corresponding initial position coordinates and coordinates of a cutting plane and a far cutting plane of a set section are defined in the refined model, so that the accuracy and the reliability of coordinate setting of the refined model can be improved conveniently.
Preferably, in step S1, the family is built with a parameter binding relationship associated with a preset design calculation book, so that adjusting the external dimensions of the lightweight model by adjusting the corresponding parameter values specifically includes:
driving a member and equipment in the lightweight model to change positions, angles and sizes according to the calculation parameters of the preset design calculation book, and meanwhile, calculating and driving coordinates of a cutting plane and a far cutting plane of a preset view according to the projection requirements of the preset view on the member and the equipment;
and when the view which does not meet the preset projection rule exists in the views, the corresponding view is processed by using a preset rule filter, so that the view meets the corresponding preset projection rule and preset map requirements.
The beneficial effects of the above technical scheme are: through the method, the projection accuracy and the plotting accuracy of the lightweight model can be improved.
Preferably, in step S5, dividing the view area of the plane view and the cross-sectional view corresponding to the single building by using the revit software terminal specifically includes
When a plurality of different lightweight models are plotted at the same time, the view range of each lightweight model is determined by using the plane view function of the revit software terminal, and the coordinate system conversion relation between each single building and the current general diagram model is used for calculating the coordinate system conversion of the view range in the current general diagram model, so that the adjustment value of the view range in the plane area is obtained.
The beneficial effects of the above technical scheme are: by utilizing the plane view function of the revit software terminal, the corresponding coordinate system transformation can be rapidly and accurately determined, so that the view range adjustment accuracy in the plane area is improved.
Preferably, in step S5, after obtaining the adjustment value of the view range in the plane area, the adjustment value is presented in the corresponding plane view in the form of text prompt, so as to adjust the plane view range of the single model to the preset plane view range.
The beneficial effects of the above technical scheme are: by presenting the adjustment value in the form of text prompt in the corresponding plane view, the graphical intuitiveness of the plane view can be improved.
Preferably, in step S6, the exporting, by using the preset automatic drawing plug-in, the CAD drawing corresponding to the view specifically includes:
and finally, exporting the process drawing, the structure drawing and the building drawing to form the corresponding CAD drawing according to different layer division standards.
The beneficial effects of the above technical scheme are: and finally, the process drawing, the structure drawing and the building drawing are exported to be the corresponding CAD drawing according to different layer division standards, so that the information integrity of the exported CAD drawing can be ensured to the maximum extent.
As can be seen from the content of the above embodiment, in the revit-based CAD drawing method, a preset automatic drawing plug-in is used in a revit software end to download a lightweight model of a corresponding water treatment engineering single building, parameters of the single building are adjusted in a window provided by the preset automatic drawing plug-in according to preset design requirements, and the lightweight model is used to generate the size and/or shape of the single building meeting the preset design requirements, information of the lightweight model corresponding to the adjusted single building is uploaded to a relevant server, and a refined model automatically generated by the server according to the uploaded information is downloaded to a local client, so that the refined model is stored as an independent file, the refined model is converted into a reconstructed model by using the preset automatic drawing plug-in, the reconstructed model includes a plane view and a cross-sectional view corresponding to the single building of the water treatment engineering, the revit software end is used to perform view area division on the plane view and the cross-sectional view corresponding to the single building, so that a view area design meeting a preset depth condition is converted into a drawing area, and finally the CAD drawing corresponding to export the drawing view by using the preset automatic drawing plug-in; therefore, according to the method for CAD graph plotting based on revit, aiming at the conditions that the link models are not closely connected and the graph plotting adjustment difficulty is high in the graph plotting mode of the native revit link model, the reconstructed model is generated on the server according to the refined model and is used for splicing, and the reconstructed model is automatically re-established to the current model-based revit software use mode through the preset automatic graph plotting plug-in, so that the problems that the process of manually establishing the model to adjust the view range is complex and the efficiency is low are solved, the time required for establishing the adjustment model is effectively saved, the reusability of the model is enhanced, and the use efficiency of the model is improved.