CN102024077B - Engineering drawing processing method - Google Patents

Engineering drawing processing method Download PDF

Info

Publication number
CN102024077B
CN102024077B CN2010105604245A CN201010560424A CN102024077B CN 102024077 B CN102024077 B CN 102024077B CN 2010105604245 A CN2010105604245 A CN 2010105604245A CN 201010560424 A CN201010560424 A CN 201010560424A CN 102024077 B CN102024077 B CN 102024077B
Authority
CN
China
Prior art keywords
piece
coordinate
page number
point
print
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2010105604245A
Other languages
Chinese (zh)
Other versions
CN102024077A (en
Inventor
蒋伦岗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
JSTI Group Co Ltd
Original Assignee
Jiangsu Transportation Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Transportation Research Institute Co Ltd filed Critical Jiangsu Transportation Research Institute Co Ltd
Priority to CN2010105604245A priority Critical patent/CN102024077B/en
Publication of CN102024077A publication Critical patent/CN102024077A/en
Application granted granted Critical
Publication of CN102024077B publication Critical patent/CN102024077B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

A kind of engineering drawing disposal route
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, and engineering project all can adopt the picture frame that oneself defines to show designing unit and design item etc. with this because project is different; 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 and the skimble-scamble problem of page number, thereby makes the aftertreatment realization robotization of design to 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 page number, prints, revises the method for chart and page number and provide a kind of automatically through computing machine, and this method is simple and convenient, is easy to realize.
This method is in order to overcome picture frame different defects 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 through 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 these zones of identification in the cad file of each this reference of use, and accomplish current graphic file and import accordingly, accomplish 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) sets up CAD external reference picture frame, import the CAD pel that imposes a condition accordingly with reference to the figure number in the picture frame, page number and print point position respectively;
2) open pending CAD graphic file; Said external reference picture frame loading is existed with the piece form hereof,, find the external reference picture frame and load piece hereof through whether the pel that imposes a condition is arranged in the decision block; And each primitive information in the preservation piece; Find the piece reference with said correspondence at the model space, paper space again, and calculate the respective point position of 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 high, Save and Close after the completion input.
As further improvement of the present invention, comprise further in the said step 1) that the condition of said setting is a particular color; Said step 2) particular color according to corresponding CAD pel in judges whether that pending CAD graphic file contains the external reference picture frame and loads piece hereof.Said 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 piece and the cad file hereof.
This method is through 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, accomplish 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 accomplish.Finely tune print position if desired, need all pending files of adjustment, workload is very big, and the present invention only needs externally to adjust print position in the reference, and all pending files will obtain adjustment, 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 the pel color settings synoptic diagram of piece in the embodiment of the invention;
Fig. 4 is high, the wide synoptic diagram that is provided with of word of the word of figure number in the embodiment of the invention, page number literal;
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 engineering project document instance of accompanying drawing and concrete processing.
A kind of engineering drawing disposal route comprises the following steps:
Set up CAD external reference picture frame, import corresponding CAD pel respectively with reference to the figure number in the picture frame, page number and print point position, and the pel particular color is set.Fig. 3 is the setting of CAD pel in the external reference picture frame, and wherein A point place imports straight line, and it is No. 90 looks that color is set; The right endpoint of straight line is a point under the left side 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 settings is 93,94,92, and wherein on behalf of page number, No. 92 looks, 93, No. 94 looks represent figure number.
To insert respectively in the pending cad file as shown in Figure 1 with reference to picture frame.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 concrete realization flow is 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 with respect to the piece coordinate and print the input left side coordinate of point, upper right point, chart and page number insertion point down, and chart and page number zone.
2.2 the traversal model space, paper space are sought the piece reference that satisfies condition:
In the model space, paper space, judged whether the piece reference, 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, page number insertion point:
Print the following some X coordinate=piece in a left side with reference to insertion point X coordinate+with reference to the relative piece coordinate points of enlargement factor * print point X;
Print the following some Y coordinate=piece in a left side 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 on every drawing, to carry out successively by figure number, page number and modification order, and in the printing in later stage the convenient printing drawing.
3.Input figure number, page number:
Because there are different requirement 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, like 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 high, input is accomplished back preservation file and is closed.
On the implementation of program, the VBA application program of AutoCAD is a high level language, and computing function combines with the drawing function of AutoCAD; Use the VBA program statement to control the operation to the AutoCAD figure, program can well be used VBA development of AutoCAD application program, and CAD VBA is embedded in the CAD program; Can quote fast and search pel in the CAD graphic file; But CAD VBA not as good as VB, generates the dll file so write master routine through VB in the application of control, in VB, create a living document DLL; The interface function that in VBA, calling DLL then provides is accomplished 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, for the technician, can carry out various adjustment and variation, 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:
Step 1) is set up CAD external reference picture frame, imports the CAD pel that imposes a condition accordingly respectively with reference to the figure number in the picture frame, page number and print point position;
Step 2.1) opens pending CAD graphic file; Said external reference picture frame loading is existed with the piece form hereof; Through whether the pel that imposes a condition is arranged in the decision block; Find the external reference picture frame and load piece hereof, and preserve each primitive information in the piece, find the piece reference with said correspondence at the model space, paper space again;
Step 2.2) the traversal model space, paper space are sought the piece reference that satisfies condition:
In the model space, paper space, judged whether the piece reference, 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;
Step 2.3) position of calculating print point, chart, page number insertion point:
Print the following some X coordinate=piece in a left side with reference to insertion point X coordinate+with reference to the relative piece coordinate points of enlargement factor * print point X;
Print the following some Y coordinate=piece in a left side 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, sort from small to large according to coordinate, the purpose of ordering is on every drawing, to carry out successively by figure number, page number and modification order, and in the printing in later stage the convenient printing drawing;
Step 3) is according to customer requirements and step 2.3) calculate gained respective point position, 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 high, Save and Close after the completion input.
2. engineering drawing disposal route according to claim 1 is characterized in that, further comprises in the said step 1), and the condition of said setting is a particular color; Said step 2.1) further comprises in, judge whether that according to the particular color of corresponding CAD pel pending CAD graphic file contains the external reference picture frame and loads piece hereof.
3. engineering drawing disposal route according to claim 2 is characterized in that, said step 2.1) specifically comprise the following steps:
Traversal is sought the piece that satisfies condition: judge whether the piece in the pending file has the pel that contains No. 90 looks, No. 91 look 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 and page number insertion point with respect to the piece coordinate, and chart and page number zone;
4. engineering drawing disposal route according to claim 2 is characterized in that, said particular color is chosen as look 90,91,92,93 or No. 94.
CN2010105604245A 2010-11-26 2010-11-26 Engineering drawing processing method Active CN102024077B (en)

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 CN102024077A (en) 2011-04-20
CN102024077B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102360395B (en) * 2011-09-29 2014-03-26 沈阳远大铝业工程有限公司 Method for batch drawing unfolded drawing of trapezoid decorating plate in batch for curtain wall
CN113761612A (en) * 2018-07-16 2021-12-07 苏州浩辰软件股份有限公司 Method and system for checking reference change of CAD drawing under editable environment, computer readable storage medium and computer terminal
CN109190157B (en) * 2018-07-26 2023-05-23 中国核电工程有限公司 Refreshing method for object position information of Autodesk AutoCAD P & ID
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

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN102024077A (en) 2011-04-20

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
CN104035772A (en) Static analysis based source code multi-versionfunction call relation difference identification method
CN101630335A (en) Method for comparing similarity and difference between drawings
US8156431B2 (en) Eliminating inconsistencies between objects and page attributes in an electronic document
CN109033523B (en) Assembly process procedure generation system and method based on three-dimensional CAD model
CN103605845A (en) Machine tool fixture library management system based on assembling knowledge description
CN109828806A (en) A kind of optimization method based on the customized diversified control combing of UI
CN113553635A (en) Method and device for configuring graph base primitive, electronic equipment and storage medium
US7461340B1 (en) Integrated decorative panels
US7079908B2 (en) Horizontally-structured modeling for analysis
CN101118479A (en) File editing system and editing method
CN107229687B (en) Dft file is converted to the system and method for DWG file by a kind of batch
CN102779036B (en) For the Software tool of automatic technology
CN104516971A (en) Method for combining background pictures in CSS style file
CN114154095A (en) Page picture generation method, device, equipment and storage medium
CN112307725A (en) Method for adding table information on two-dimensional drawing interface
JP4288972B2 (en) Layout system, layout support system, layout support program, and layout support method
CN103645899B (en) Method for integrating design data in CAD (computer aided design) into ERP (enterprise resource planning) system
CN105373519A (en) Technical symbol editing device and method
CN111291444A (en) Modeling method, device and equipment for airplane assembly and storage medium
CN104700297A (en) Method and device for dynamically controlling network invoices
CN108416090A (en) A kind of quick design system and method for injection mould cooling water channel
CN115375789B (en) Method and system for generating dynamic texture based on scalable vector graphics

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