CN102024077A - Engineering drawing processing method - Google Patents
Engineering drawing processing method Download PDFInfo
- Publication number
- CN102024077A CN102024077A CN 201010560424 CN201010560424A CN102024077A CN 102024077 A CN102024077 A CN 102024077A CN 201010560424 CN201010560424 CN 201010560424 CN 201010560424 A CN201010560424 A CN 201010560424A CN 102024077 A CN102024077 A CN 102024077A
- Authority
- CN
- China
- Prior art keywords
- piece
- coordinate
- point
- page number
- 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.)
- Granted
Links
Images
Landscapes
- Processing Or Creating Images (AREA)
Abstract
The invention relates to an engineering drawing processing method comprising the following steps of: establishing a computer-aided design (CAD) external reference drawing frame, and respectively inputting a corresponding CAD pel with setting conditions at the drawing number position, the page number position and the printing point position in the reference drawing frame; opening a CAD graphic file to be processed; through judging whether the pels with the setting conditions exist in a block or not, finding the block loaded to a file by the external reference drawing frame, and storing pel information in the block; then finding block reference corresponding to the block in a model space and a drawing space; working out the corresponding point positions of the drawing number, the page number and the printing point; carrying out position sorting on the drawing space and the model space; according to the user requirement and a calculating point obtained in the step (2), printing a drawing or modifying the drawing number and the page number; when a user selects a drawing number and page number selecting function, firstly, creating the CAD font styles of the drawing number character and the page number character; deleting the unnecessary characters; then inputting the drawing number character and the page number character; appointing the drawing number font, the page number font and the character height; and storing and closing after the input is ended.
Description
Technical field
The present invention relates to the graphics process field, be specifically related to the method for engineering drawing being handled with VB, AutoCAD VBA.
Background technology
Nowadays in the engineering field, CAD has been the most used design software of each designing unit undoubtedly, project is finally preserved with the form of electronic edition, engineering project is because the project difference, the capital adopts the picture frame that oneself defines to show designing unit and design item etc. with this, carry out layout with figure number and page number between all drawings, the final printing published.Figure number and page number by the decision of project situation, are finally published by the manual amendment in figure number and the position of page number in picture frame at present.When the drawing number more for a long time, it is quite big to revise figure number and page number workload concerning the designer, revise quite loaded down with trivial detailsly, the method for therefore being badly in need of a practicality solves revises chart number and the skimble-scamble problem of page number, thereby makes design realize robotization to the aftertreatment of drawing.
Summary of the invention
The technical matters that the present invention mainly solves is to be the simplified design personnel to printing and the manual amendments of chart number page number, prints, revises the method for chart number and page number and provide a kind of automatically by computing machine, and this method is simple and convenient, is easy to realize.
This method is in order to overcome the different defective of picture frame between projects, the present invention be provided with one unified with reference to picture frame, be provided with reference to behind the picture frame, the designer only need come the requirement of the current picture frame of change project by changing with reference to picture frame.Externally figure number, page number and the print point place with reference to picture frame imports corresponding CAD pel respectively, the particular color of pel is set, program is used these zones of identification in the cad file of this reference at each, and finishes current graphic file and import accordingly, finishes tasks such as revising printing at last.
Realize that technical scheme of the present invention is: a kind of engineering drawing disposal route comprises the following steps:
1) set up CAD external reference picture frame, the figure number in the reference picture frame, page number and print point position are imported the CAD pel that imposes a condition accordingly respectively;
2) open pending CAD graphic file, described external reference picture frame loading is existed with the piece form hereof, by whether the pel that imposes a condition is arranged in the decision block, find external reference picture frame loading piece hereof, and each primitive information in the preservation piece, find piece reference with described correspondence at the model space, paper space again, and the respective point position of calculating figure number, page number, print point, and carry out paper space, the ordering of model space position;
3) according to customer requirements and step 2) the gained calculation level, print drawing, or revise figure number, page number, when the user selects to revise figure number, page number function, create the CAD font style of figure number, page number literal earlier, delete unnecessary literal, import figure number and page number literal again, specify figure number, page number font and word height, Save and Close after finishing input.
As a further improvement on the present invention, comprise further in the described step 1) that the condition of described setting is a particular color; Described step 2) particular color according to corresponding CAD pel in judges whether that pending CAD graphic file contains external reference picture frame loading piece hereof.Described particular color is chosen as look 90,91,92,93 or No. 94, and these colors are used less in drawing, significantly reduces the external reference picture frame and loads duplicating of other piece in hereof piece and the cad file.
This method is by the piece in the identification figure, and the pel in the piece need meet specific requirement, as the object that application program need be handled, the figure number in the graphic file, page number position, print position are handled accordingly, finish tasks such as revising printing with this.
Beneficial effect of the present invention
Print routine is imported the piece or the special pel of special title usually in handling the file picture frame at present, judges the print point position.The position that this method is printed is very fixing, if with the piece of special title as identifying object, in case contain the piece of this title in the current processing graphics, import the printing block of this condition and can't finish.Finely tune print position if desired, need to adjust all pending files, workload is very big, and the present invention only needs externally to adjust print position in the reference, and all pending files will obtain adjusting, and the fast workload of speed is little.Aspect modification figure number page number, present existing program is embedded in the program figure number, page number, do not have opening, in addition between each designing unit and each project there is clear and definite requirement font, word height and position, existing program can't satisfy the requirement of each designing unit's project, and tool of the present invention and user carry out interactively input, and adaptability is strong.
Description of drawings
Fig. 1 is a cad file pending in the embodiment of the invention;
Fig. 2 is cad file tabulation pending in the embodiment of the invention;
Fig. 3 is that the pel color of piece in the embodiment of the invention is provided with synoptic diagram;
Fig. 4 is figure number in the embodiment of the invention, the word height of page number literal, the wide synoptic diagram that is provided with of word;
Fig. 5 is that the font style of figure number in the embodiment of the invention, page number literal is provided with synoptic diagram;
Fig. 6 is an embodiment of the invention major part process flow diagram.
Embodiment
Carry out the explanation that program function is realized below in conjunction with accompanying drawing and engineering project document instance of concrete processing.
A kind of engineering drawing disposal route comprises the following steps:
Set up CAD external reference picture frame, the figure number in the reference picture frame, page number and print point position are imported corresponding CAD pel respectively, and the pel particular color is set.Fig. 3 is the setting of CAD pel in the external reference picture frame, wherein A point place imports straight line, it is No. 90 looks that color is set, the right endpoint of straight line is the lower-left point of print point, B point place input straight line, and it is No. 91 looks that color is set, the left end point of straight line is the upper right point of print point, C, D, E point are imported closed multistage line respectively, and color is set to 93,94,92, and wherein on behalf of page number, No. 92 looks, 93, No. 94 looks represent figure number.
With reference to picture frame, insert respectively in the pending cad file as shown in Figure 1.Sequence number is that the file of 1-9 is the cad file that needs to revise figure number, page number among Fig. 1, and wherein file name is the external reference picture frame for the file of " authorization ", and other file will be unified with reference to this file.
Be presented in the process of searching among the CAD and revising below, this process is the core of whole procedure, and its specific implementation flow process as shown in Figure 6.
1. open the cad file that needs modification, as shown in Figure 2.
2. identification figure number, page number, print point position: " authorization " is carried in the cad file, exists with the form of piece.Traversal is sought the piece that satisfies condition in the CAD graphic file, and primitive information in the record block, travels through the piece reference of the model space, this piece of paper space searching use again, and the position ordering is carried out in the respective point position of figure number, page number, print point in the computing block reference.
2.1 traversal is sought the piece that satisfies condition:
Judging whether piece in the pending file has contains the pel that color is satisfied in No. 90, No. 91 straight lines simultaneously, satisfy the pel that color requires if having, preserve the title of piece, and preserve the coordinate of printing input lower-left point, upper right point, chart number and page number insertion point with respect to the piece coordinate, and chart number and page number zone.
2.2 the traversal model space, paper space are sought the piece reference that satisfies condition:
Judged whether the piece reference in the model space, paper space, the title of if block reference is identical with the piece title of having preserved, and its piece is preserved with reference to insertion point and enlargement factor;
2.3 calculate the position of print point, chart number, page number insertion point:
Print lower-left point X coordinate=piece with reference to insertion point X coordinate+with reference to the relative piece coordinate points of enlargement factor * print point X;
Print lower-left point Y coordinate=piece with reference to insertion point Y coordinate+with reference to the relative piece coordinate points of enlargement factor * print point Y;
Print upper right some X coordinate=piece with reference to insertion point X coordinate+with reference to the relative piece coordinate points of enlargement factor * print point X;
Print upper right some Y coordinate=piece with reference to insertion point Y coordinate+with reference to the relative piece coordinate points of enlargement factor * print point Y;
Figure number point X coordinate=piece is with reference to insertion point X coordinate+put relative piece coordinate points X with reference to enlargement factor * figure number;
Figure number point Y coordinate=piece is with reference to insertion point Y coordinate+put relative piece coordinate points Y with reference to enlargement factor * figure number;
Page number point X coordinate=piece is with reference to insertion point X coordinate+put relative piece coordinate points X with reference to enlargement factor * page number;
Page number point Y coordinate=piece is with reference to insertion point Y coordinate+put relative piece coordinate points Y with reference to enlargement factor * page number;
With calculating good point, arrange from small to large according to coordinate, the purpose of ordering is to carry out successively by figure number, page number and modification order on every drawing, and in the printing in later stage the convenient printing drawing.
3.Input figure number, page number:
Because there are different requirements in figure number, each designing institute of page number to font, word height, thus need to create the font style of figure number, page number literal before the input font, as Fig. 4, shown in Figure 5.The variation of the figure number considered, page number is arranged in addition, and figure number page number zone so the literal in figure number, page number zone needs deletion earlier, is imported figure number, page number literal before by other literal input respectively again, specify the corresponding font of literal, word height, input is finished back preservation file and is closed.
On the implementation of program, the VBA application program of AutoCAD is a high level language, computing function combines with the drawing function of AutoCAD, the operation to the AutoCAD figure controlled in use VBA program statement, program can well be used VBA development of AutoCAD application program, CAD VBA is embedded in the CAD program, can quote fast and search pel in the CAD graphic file, but CAD VBA is too late VB in the application of control, generate the dll file so write master routine by VB, create a living document DLL in VB, the interface function that calling DLL then in VBA provides is finished the function of design in advance, realizes the encapsulation of DLL function.
The present invention satisfies the needs of prior art, and does illustrative purposes above reaching, though described embodiments of the invention here, can carry out various adjustment and variation for the technician, and reach the realization of greater functionality type.
Claims (4)
1. an engineering drawing disposal route is characterized in that, this method comprises the following steps:
Set up CAD external reference picture frame, the figure number in the reference picture frame, page number and print point position are imported the CAD pel that imposes a condition accordingly respectively;
Open pending CAD graphic file, described external reference picture frame loading is existed with the piece form hereof, by whether the pel that imposes a condition is arranged in the decision block, find external reference picture frame loading piece hereof, and each primitive information in the preservation piece, find piece reference with described correspondence at the model space, paper space again, and the respective point position of calculating figure number, page number, print point, and carry out paper space, the ordering of model space position;
According to customer requirements and step 2) the gained calculation level, print drawing, or revise figure number, page number, when the user selects to revise figure number, page number function, create the CAD font style of figure number, page number literal earlier, delete unnecessary literal, import figure number and page number literal again, specify figure number, page number font and word height, Save and Close after finishing input.
2. engineering drawing disposal route according to claim 1 is characterized in that, further comprises in the described step 1), and the condition of described setting is a particular color; Described step 2) particular color according to corresponding CAD pel in judges whether that pending CAD graphic file contains external reference picture frame loading piece hereof.
3. engineering drawing disposal route according to claim 2 is characterized in that, described step 2) specifically comprise the following steps:
2.1) travel through and seek the piece that satisfies condition:
Judging whether piece in the pending file has contains the pel that color is satisfied in No. 90, No. 91 straight lines simultaneously, satisfy the pel that color requires if having, preserve the title of piece, and preserve the coordinate of printing input lower-left point, upper right point, chart number and page number insertion point with respect to the piece coordinate, and chart number and page number zone;
2.2) the traversal model space, paper space seek the piece reference that satisfies condition:
Judged whether the piece reference in the model space, paper space, the title of if block reference is identical with the piece title of having preserved, and its piece is preserved with reference to insertion point and enlargement factor;
2.3) calculate the position of print point, chart number, page number insertion point:
Print lower-left point X coordinate=piece with reference to insertion point X coordinate+with reference to the relative piece coordinate points of enlargement factor * print point X;
Print lower-left point Y coordinate=piece with reference to insertion point Y coordinate+with reference to the relative piece coordinate points of enlargement factor * print point Y;
Print upper right some X coordinate=piece with reference to insertion point X coordinate+with reference to the relative piece coordinate points of enlargement factor * print point X;
Print upper right some Y coordinate=piece with reference to insertion point Y coordinate+with reference to the relative piece coordinate points of enlargement factor * print point Y;
Figure number point X coordinate=piece is with reference to insertion point X coordinate+put relative piece coordinate points X with reference to enlargement factor * figure number;
Figure number point Y coordinate=piece is with reference to insertion point Y coordinate+put relative piece coordinate points Y with reference to enlargement factor * figure number;
Page number point X coordinate=piece is with reference to insertion point X coordinate+put relative piece coordinate points X with reference to enlargement factor * page number;
Page number point Y coordinate=piece is with reference to insertion point Y coordinate+put relative piece coordinate points Y with reference to enlargement factor * page number;
With calculating good point, arrange from small to large according to coordinate, the purpose of ordering is to carry out successively by figure number, page number and modification order on every drawing, and in the printing in later stage the convenient printing drawing.
4. engineering drawing disposal route according to claim 2 is characterized in that, described particular color is chosen as look 90,91,92,93 or No. 94.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105604245A CN102024077B (en) | 2010-11-26 | 2010-11-26 | Engineering drawing processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105604245A CN102024077B (en) | 2010-11-26 | 2010-11-26 | Engineering drawing processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102024077A true CN102024077A (en) | 2011-04-20 |
CN102024077B CN102024077B (en) | 2012-11-07 |
Family
ID=43865369
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010105604245A Active CN102024077B (en) | 2010-11-26 | 2010-11-26 | Engineering drawing processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102024077B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102360395A (en) * | 2011-09-29 | 2012-02-22 | 沈阳远大铝业工程有限公司 | Method for batch drawing unfolded drawing of trapezoid decorating plate in batch for curtain wall |
CN109190157A (en) * | 2018-07-26 | 2019-01-11 | 中国核电工程有限公司 | A kind of method for refreshing of the object location information for Autodesk AutoCAD P&ID |
CN110008366A (en) * | 2018-11-06 | 2019-07-12 | 北京居然设计家网络科技有限公司 | A kind of construction drawing method for previewing and its system |
CN110119256A (en) * | 2019-04-26 | 2019-08-13 | 无锡蓝信自动化工程有限公司 | A method of rapid batch is printed as Analysis of Nested Design drawing in electronic control |
CN110232258A (en) * | 2018-07-16 | 2019-09-13 | 苏州浩辰软件股份有限公司 | CAD diagram paper checks method, system, computer readable storage medium and the terminal of reference variation under editable environment |
CN110471890A (en) * | 2019-07-02 | 2019-11-19 | 中国石油工程建设有限公司北京设计分公司 | Engineering drawing batch processing method, engineering drawing batch processing system and computer media |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1510637A (en) * | 2002-12-25 | 2004-07-07 | 深圳市中兴通讯股份有限公司 | General method for printing and drawing graphics document, dynamic link-base |
CN101561830A (en) * | 2008-04-18 | 2009-10-21 | 北京数码大方科技有限公司 | Dimension marking method for CAD and device thereof |
CN101661516A (en) * | 2008-08-29 | 2010-03-03 | 北京数码大方科技有限公司 | Method for processing part sequence number and list of CAD |
CN101673410A (en) * | 2008-09-12 | 2010-03-17 | 中国科学院计算技术研究所 | Vector building drawing based method for reconstructing three-dimensional model |
-
2010
- 2010-11-26 CN CN2010105604245A patent/CN102024077B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1510637A (en) * | 2002-12-25 | 2004-07-07 | 深圳市中兴通讯股份有限公司 | General method for printing and drawing graphics document, dynamic link-base |
CN101561830A (en) * | 2008-04-18 | 2009-10-21 | 北京数码大方科技有限公司 | Dimension marking method for CAD and device thereof |
CN101661516A (en) * | 2008-08-29 | 2010-03-03 | 北京数码大方科技有限公司 | Method for processing part sequence number and list of CAD |
CN101673410A (en) * | 2008-09-12 | 2010-03-17 | 中国科学院计算技术研究所 | Vector building drawing based method for reconstructing three-dimensional model |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102360395A (en) * | 2011-09-29 | 2012-02-22 | 沈阳远大铝业工程有限公司 | Method for batch drawing unfolded drawing of trapezoid decorating plate in batch for curtain wall |
CN102360395B (en) * | 2011-09-29 | 2014-03-26 | 沈阳远大铝业工程有限公司 | Method for batch drawing unfolded drawing of trapezoid decorating plate in batch for curtain wall |
CN110232258A (en) * | 2018-07-16 | 2019-09-13 | 苏州浩辰软件股份有限公司 | CAD diagram paper checks method, system, computer readable storage medium and the terminal of reference variation under editable environment |
CN110232258B (en) * | 2018-07-16 | 2021-10-15 | 苏州浩辰软件股份有限公司 | Method and system for checking reference change of CAD drawing under editable environment, computer readable storage medium and computer terminal |
CN109190157A (en) * | 2018-07-26 | 2019-01-11 | 中国核电工程有限公司 | A kind of method for refreshing of the object location information for Autodesk AutoCAD P&ID |
CN109190157B (en) * | 2018-07-26 | 2023-05-23 | 中国核电工程有限公司 | Refreshing method for object position information of Autodesk AutoCAD P & ID |
CN110008366A (en) * | 2018-11-06 | 2019-07-12 | 北京居然设计家网络科技有限公司 | A kind of construction drawing method for previewing and its system |
CN110008366B (en) * | 2018-11-06 | 2021-05-14 | 躺平设计家(北京)科技有限公司 | Construction drawing previewing method and system |
CN110119256A (en) * | 2019-04-26 | 2019-08-13 | 无锡蓝信自动化工程有限公司 | A method of rapid batch is printed as Analysis of Nested Design drawing in electronic control |
CN110471890A (en) * | 2019-07-02 | 2019-11-19 | 中国石油工程建设有限公司北京设计分公司 | Engineering drawing batch processing method, engineering drawing batch processing system and computer media |
Also Published As
Publication number | Publication date |
---|---|
CN102024077B (en) | 2012-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102024077B (en) | Engineering drawing processing method | |
US6304790B1 (en) | System design/evaluation CAD system and program storage medium | |
CN112181416A (en) | Method and device for directly generating UI (user interface) codes from visual draft | |
CN110543303B (en) | Visual service platform | |
CN107229790B (en) | Bridge structure information model system for generating three-dimensional and two-dimensional graphs and using method | |
CN101630335A (en) | Method for comparing similarity and difference between drawings | |
CN110096270A (en) | A kind of design drawing method for splitting and system based on .NET plug-in unit | |
CN105404683A (en) | Format file processing method and apparatus | |
Feng et al. | A hybrid and automated approach to adapt geometry model for CAD/CAE integration | |
CN114816381A (en) | Construction engineering MBD three-dimensional labeling method, electronic equipment and storage medium | |
CN112581476B (en) | Drawing segmentation method used in building design and electronic equipment | |
CN109828806A (en) | A kind of optimization method based on the customized diversified control combing of UI | |
US7079908B2 (en) | Horizontally-structured modeling for analysis | |
US7461340B1 (en) | Integrated decorative panels | |
KR101905300B1 (en) | Apparatus and method for generating fonts by METAFONT using outline fonts | |
CN112307725B (en) | Method for adding table information on two-dimensional drawing interface | |
CN107229687B (en) | Dft file is converted to the system and method for DWG file by a kind of batch | |
US20020154149A1 (en) | System, method and computer program product for associative region generation and modification | |
CN114154095A (en) | Page picture generation method, device, equipment and storage medium | |
CN113297764A (en) | Finite element parametric model modeling method, system and storage medium | |
CN103645899B (en) | Method for integrating design data in CAD (computer aided design) into ERP (enterprise resource planning) system | |
JP4288972B2 (en) | Layout system, layout support system, layout support program, and layout support method | |
CN105373519A (en) | Technical symbol editing device and method | |
US10108627B1 (en) | Multi-user CAx with user defined functions | |
CN108416090A (en) | A kind of quick design system and method for injection mould cooling water channel |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 211112 No. 223 Simon Street, Jiangsu, Nanjing Patentee after: JSTI GROUP Co.,Ltd. Address before: 211112 No. 223 Simon Street, Jiangsu, Nanjing Patentee before: JIANGSU TRANSPORTATION RESEARCH INSTITUTE Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |