CN107480380B - A kind of engineering drawing generation method based on template - Google Patents

A kind of engineering drawing generation method based on template Download PDF

Info

Publication number
CN107480380B
CN107480380B CN201710707216.5A CN201710707216A CN107480380B CN 107480380 B CN107480380 B CN 107480380B CN 201710707216 A CN201710707216 A CN 201710707216A CN 107480380 B CN107480380 B CN 107480380B
Authority
CN
China
Prior art keywords
cad
file
data
model
frame
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.)
Expired - Fee Related
Application number
CN201710707216.5A
Other languages
Chinese (zh)
Other versions
CN107480380A (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.)
Guangdong University of Technology
Original Assignee
Guangdong University of Technology
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 Guangdong University of Technology filed Critical Guangdong University of Technology
Priority to CN201710707216.5A priority Critical patent/CN107480380B/en
Publication of CN107480380A publication Critical patent/CN107480380A/en
Application granted granted Critical
Publication of CN107480380B publication Critical patent/CN107480380B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Factory Administration (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A kind of engineering drawing generation method based on template;Include the construction 2 of 1) CAD diagram paper matrix plate) whole entities are modeled on rhinoceros software,Frame choosing is carried out to whole entities that modeling is completed again and is classified,Then the representative model of each Type model is selected automatically and is arranged,And the representative model picked up after arrangement is input in system the 3) opening 4 of cad file) in step 2) transfer file will be converted into rhinoceros software modeling and the file arranged,And its file path is input in system,System inserts it into the 5) insertion 6 of picture frame built-in block in the model space of the newly-built cad file of step 3)) insertion 7 of drawing frame data) CAD diagram paper matrix plate insertion 8) subordinate list data insertion by step (4 1) center choosing whole entities when acquired each major class workpiece parameter data,It is inputted with the data mode of tree,Data form corresponding with this drawing is generated below drawing.Worker's working strength is reduced, breaks the constraint degree of production time.

Description

A kind of engineering drawing generation method based on template
Technical field
The present invention relates to the method fields of parameter model, particularly a kind of engineering drawing generation method based on template.
Background technology
In manufacturing industry, engineering drawing is that worker carries out the necessary making link of work piece production, the matter of engineering drawing generation Amount and speed often determine the efficiency and benefit of production.Traditional engineering drawing generation is mainly manually first in CAD software The model space carries out three-dimensional modeling to production workpiece and marks, and is then switched to CAD arrangement spaces construction picture frame and constructs viewport, Viewport is made to hint obliquely at corresponding model space model, finally arrangement space engineering drawing is printed.It is but manually soft using CAD Part builds model and is labeled in and is present with heavy workload when being produced, and is present with the engineering drawing accumulated cannot be weighed It is multiple to utilize, it is less efficient, and workload redundancy can be caused.
The content of the invention
In view of the foregoing drawbacks, it is an object of the invention to propose a kind of engineering drawing generation method based on template.
For this purpose, the present invention uses following technical scheme:
A kind of engineering drawing generation method based on template;Comprise the following steps:
1) construction of CAD diagram paper matrix plate
By CAD layout softwares, sketched out with basic patterning unit order and represent the graphics of single type and to three Dimension figure is labeled, then is saved in the form of cad file as CAD diagram paper matrix plate in disk;
Or the previous used CAD diagram paper file of project of selection, and by these drawing files in the form of CAD diagram paper matrix plate It is saved in disk;
2) whole entities are modeled on rhinoceros software, then frame choosing is carried out to whole entities that modeling is completed and is divided Then class selects the representative model of each Type model and arranges automatically, and the representative model picked up after arrangement is input to In system;
3) opening of cad file
An empty cad file and opening is created using CAD software, to carry out CAD templates, list data and picture frame number According to write-in;
4) in step 2) transfer file will be converted into rhinoceros software modeling and the file arranged, and by its file path It is input in system, system is inserted it into the model space of the newly-built cad file of step 3), is as follows:
The cad file that saves File As that (4-1) will be completed with rhinoceros software modeling and mark and arrangement;
The path for the file that (4-2) generates step (4-1) is input in system;
Each representative model in (4-3) pickup step 2) seeks minimum bounding box, and solves the central point of minimum package box, The target point pointed by viewport is built in using central point as the cad file created in step 2);
5) insertion of picture frame built-in block, is as follows:
(5-1) classifies to whole entities and is extracted every one kind with the whole entity of grasshopper plug-in units frame choosing Type name;
The default interval that the initial position and each picture frame that (5-2) gives tacit consent to when picture frame built-in block being set to be inserted into are sequentially inserted into, The type name of the whole entities selected according to institute's frame in step (5-1) is compared with the title of the drawing file of step 1), such as The title for the drawing file that the type name for the entity that institute's frame selects is generated from step 1) is all different in fruit step (5-1), then in step 3) the empty picture frame of corresponding number is inserted into the arrangement space of the cad files created, is otherwise stayed between the size of corresponding picture frame position Gap;
6) insertion of drawing frame data
The attribute data of acquired each major class during by the whole entity of step (5-1) center choosing, with the data of tree Form inputs, and is input to the correspondence position for the picture frame being inserted into step 4);
7) insertion of CAD diagram paper matrix plate
The filename of already present CAD diagram paper matrix plate is defined as real to a kind of geometry of the engineering drawing in requisition for production The type name of body, system are sieved according to the filename of the CAD diagram paper matrix plate inputted compared with per a kind of attribute type name Choosing, the interstitial site insertion CAD diagram paper matrix plate then selectively reserved in step (5-2) i.e. construction complete drawing;
8) insertion of subordinate list data
The workpiece parameter data of acquired each major class during by the whole entity of step (5-1) center choosing, with tree's Data mode inputs, and data form corresponding with this drawing is generated below drawing.
Preferably, the attribute data of each major class refers to same type of attribute data in step 6), in contrast Each group, refer to that same model includes the model of multiple striking resemblances.
Beneficial effects of the present invention:A kind of CAD engineering drawing generation methods based on template of the present invention can solve manually Operate the inconvenience that brings, moreover it is possible to using the accumulation of previous project engineering drawing so that effectively improve production efficiency.It is touched using software The method control high-volume part model of hair automatically generates batch drawing, and the template drawing that will build up on or create is inserted into, The precision and availability of produced drawing are effectively raised, realizes serialization and automation.It utilizes computer generation batch ENGINEERING CAD drawing, and parameterize output, effectively save human resources are easy to operate, using reliable, reduce worker's working strength, Break the constraint of production time, effectively improve speed of production.
Description of the drawings
Fig. 1 is the flow chart of one embodiment of the present of invention.
Specific embodiment
Technical solution to further illustrate the present invention below with reference to the accompanying drawings and specific embodiments.
As shown in Figure 1, a kind of engineering drawing generation method based on template;Comprise the following steps:
1) construction of drawing management
By CAD layout softwares, sketched out with basic patterning unit order and represent the graphics of single type and to three Dimension figure is labeled, single type here, such as triangle, rectangle, one arc-shaped edges rectangle of band etc., then with cad file Form is saved in disk as CAD diagram paper matrix plate in case calling;
Or the previous used drawing file of project of selection, and these drawing files are protected in the form of CAD diagram paper matrix plate It is stored in disk;One drawing file represents the engineering drawing needed for a kind of type of workpiece, generally with the required work using template Part type name definition template filename, can be when generating the engineering drawing of entire project, and match-type name is inserted into arrangement space;
2) whole entities are modeled on rhinoceros software, then frame choosing is carried out to whole entities that modeling is completed and is divided Then class selects the representative model of each Type model and arranges automatically, and the representative model picked up after arrangement is input to In system;Because a part of drawing uses CAD structure of transvers plate (i.e. step 1), and a part of then select generation by the model of each class Table solid carries out the file that map construction obtains having modeled respectively in rhinoceros software, and needs at this time these are soft with rhinoceros The file that part has modeled is converted into transfer file and is called in the cad file for being inserted into step 2);
3) opening of cad file
An empty cad file and opening is created using CAD software, to carry out CAD templates, list data and picture frame number According to write-in;
4) in step 2) transfer file will be converted into rhinoceros software modeling and the file arranged, and by its file path It is input in system, system is inserted it into the model space of the newly-built cad file of step 3), is as follows:
(4-1) will be spare with the cad file that saves File As of rhinoceros software modeling and the completion that marks and arrange, this is Template, the system using the method for the present invention are exactly by having the form of this model I data message just in the insertion of these templates An engineering drawing can be completed, meaning is, there may be hundreds of even more workpiece, institutes in some one types of project With production what is desired is that the data of form, and be not this figure, user can oneself structure, and these template drawings exist Later project, which runs into mutually similar model, to be used;
The path for the file that (4-2) generates step (4-1) is input in system;
Each representative model in (4-3) pickup step 2) seeks minimum bounding box, and solves the central point of minimum package box, The target point pointed by viewport is built in using central point as the cad file created in step 2);
5) insertion of picture frame built-in block, is as follows:
(5-1) classifies to whole entities and is extracted every one kind with the whole entity of grasshopper plug-in units frame choosing Type name;
The default interval that the initial position and each picture frame that (5-2) gives tacit consent to when picture frame built-in block being set to be inserted into are sequentially inserted into, The type name of the whole entities selected according to institute's frame in step (5-1) is compared with the title of the drawing file of step 1), such as The title for the drawing file that the type name for the entity that institute's frame selects is generated from step 1) is all different in fruit step (5-1), then in step 3) the empty picture frame of corresponding number is inserted into the arrangement space of the cad files created, is otherwise stayed between the size of corresponding picture frame position Gap;
6) insertion of drawing frame data
(major class refers to same type to acquired each major class, and group refers to during by the whole entity of step (5-1) center choosing Same model has multiple striking resemblances, represents the quantity of each model) attribute data, it is defeated with the data mode of tree Enter, and be inserted into the correspondence position for being mapped to the picture frame being inserted into step 4);
7) insertion of CAD diagram paper matrix plate
Model in some drawings is higher to some details due to having, i.e., model mark or tolerance etc. are all relatively more multiple It is miscellaneous, specific criteria model can not be constructed well with software, thereby increases and it is possible to this class template was used in previous project, Both it can directly use, so as to remove unnecessary workload from, be as follows:
The filename of already present CAD diagram paper matrix plate is defined as real to a kind of geometry of the engineering drawing in requisition for production The type name of body, system are sieved according to the filename of the CAD diagram paper matrix plate inputted compared with per a kind of attribute type name Choosing, the interstitial site insertion CAD diagram paper matrix plate then selectively reserved in step (5-2) i.e. construction complete drawing;
8) insertion of subordinate list data
The workpiece parameter data of acquired each major class during by the whole entity of step (5-1) center choosing, with tree's Data mode inputs, and data form corresponding with this drawing is generated below drawing.
A kind of CAD engineering drawing generation methods based on template of the present invention, can solve the inconvenience that manual operation is brought, also The engineering drawing of previous project accumulation can be utilized and then effectively improve production efficiency.High-volume is controlled using the method for software triggering Part model automatically generates batch drawing, and the template drawing that will build up on or create is inserted into, and is effectively raised and is produced The precision and availability of drawing realize serialization and automation.It generates batch ENGINEERING CAD drawing, and parameter using computer Change output, effectively save human resources are easy to operate, using reliable, reduce worker's working strength, broken the pact of production time Beam effectively improves speed of production.
The technical principle of the present invention is described above in association with specific embodiment.These descriptions are intended merely to explain the present invention's Principle, and limiting the scope of the invention cannot be construed in any way.Based on explanation herein, the technology of this field Personnel would not require any inventive effort the other specific embodiments that can associate the present invention, these modes are fallen within Within protection scope of the present invention.

Claims (2)

1. a kind of engineering drawing generation method based on template, it is characterised in that:Comprise the following steps:
1) construction of CAD diagram paper matrix plate
By CAD layout softwares, sketched out with basic patterning unit order and represent the graphics of single type and to graphics It is labeled, then is saved in the form of cad file as CAD diagram paper matrix plate in disk;
Or the previous used CAD diagram paper file of project of selection, and these drawing files are preserved in the form of CAD diagram paper matrix plate To in disk;
2) whole entities are modeled on rhinoceros software, then frame choosing is carried out to whole entities that modeling is completed and is classified, so It selects the representative model of each Type model automatically afterwards and arranges, and the representative model picked up after arrangement is input to system In;
3) opening of cad file
An empty cad file and opening is created using CAD software, to carry out CAD templates, list data and drawing frame data Write-in;
4) transfer file will be converted into rhinoceros software modeling and the file arranged in step 2), and its file path is inputted Into system, system is inserted it into the model space of the newly-built cad file of step 3), is as follows:
The cad file that saves File As that (4-1) will be completed with rhinoceros software modeling and mark and arrangement;
The path for the file that (4-2) generates step (4-1) is input in system;
Each representative model in (4-3) pickup step 2) seeks minimum bounding box, and solves the central point of minimum package box, in Heart point is as the target point built in the cad file created in step 2) pointed by viewport;
5) insertion of picture frame built-in block, is as follows:
(5-1) classifies to whole entities and is extracted the type of every one kind with the whole entity of grasshopper plug-in units frame choosing Name;
The default interval that the initial position and each picture frame that (5-2) gives tacit consent to when picture frame built-in block being set to be inserted into are sequentially inserted into, according to The type name for whole entities that institute's frame selects is compared with the title of the drawing file of step 1) in step (5-1), if step Suddenly the title for the drawing file that the type name for the entity that institute's frame selects is generated from step 1) is all different in (5-1), then in step 3) institute The empty picture frame of corresponding number is inserted into the arrangement space of newly-built cad files, otherwise stays the corresponding big small―gap suture in picture frame position;
6) insertion of drawing frame data
The attribute data of acquired each major class during by the whole entity of step (5-1) center choosing, with the data mode of tree Input, and it is input to the correspondence position for the picture frame being inserted into step 4);
7) insertion of CAD diagram paper matrix plate
The filename of already present CAD diagram paper matrix plate is defined as to a kind of geometry entity of the engineering drawing in requisition for production Type name, system are screened according to the filename of the CAD diagram paper matrix plate inputted compared with per a kind of attribute type name, so The interstitial site insertion CAD diagram paper matrix plate selectively reserved afterwards in step (5-2) i.e. construction complete drawing;
8) insertion of subordinate list data
The workpiece parameter data of acquired each major class during by the whole entity of step (5-1) center choosing, with the data of tree Form inputs, and data form corresponding with this drawing is generated below drawing.
2. generation method according to claim 1, it is characterised in that:The attribute data of each major class refers in step 6) Same type of attribute data, each group in contrast, it is multiple the same to refer to that same model includes Model.
CN201710707216.5A 2017-08-17 2017-08-17 A kind of engineering drawing generation method based on template Expired - Fee Related CN107480380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710707216.5A CN107480380B (en) 2017-08-17 2017-08-17 A kind of engineering drawing generation method based on template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710707216.5A CN107480380B (en) 2017-08-17 2017-08-17 A kind of engineering drawing generation method based on template

Publications (2)

Publication Number Publication Date
CN107480380A CN107480380A (en) 2017-12-15
CN107480380B true CN107480380B (en) 2018-06-05

Family

ID=60600882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710707216.5A Expired - Fee Related CN107480380B (en) 2017-08-17 2017-08-17 A kind of engineering drawing generation method based on template

Country Status (1)

Country Link
CN (1) CN107480380B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108510563B (en) * 2018-03-12 2022-03-15 天津大学 Method for rapidly generating pattern by imitating decorative artistic style Art-Deco
CN109492251A (en) * 2018-09-30 2019-03-19 上海宝冶集团有限公司 The BIM parametric modeling method of sled sled racing track
CN109740202B (en) * 2018-12-17 2023-01-17 广州天越电子科技有限公司 Method for realizing digital generation of transmission planning drawing
CN110569626B (en) * 2019-10-28 2023-04-07 云南瀚哲科技有限公司 CAD house type graph batch plotting method based on data sheet
CN110851899A (en) * 2019-10-31 2020-02-28 上海宝冶集团有限公司 Application method of parametric modeling in special-shaped structural member design
CN116451324A (en) * 2023-04-17 2023-07-18 中国建筑装饰集团有限公司 Three-dimensional typesetting system suitable for basic structure block veneers and use method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033848B (en) * 2010-12-21 2012-11-14 东莞市高鑫机电科技服务有限公司 SOA-based three-dimensional design system integrating method and system
CN103034765B (en) * 2012-12-14 2015-08-05 天津大学 The dynamic whole process simulation method of goaf grouting based on numerical simulation

Also Published As

Publication number Publication date
CN107480380A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN107480380B (en) A kind of engineering drawing generation method based on template
CN106408170A (en) Electronic worksheet processing method, workflow engine and electronic worksheet system
CN106528514A (en) Report generation system and method
CN101303774B (en) Method for generating quadrangle finite element grid based on three-dimensional solid model
JP2013025631A (en) Conversion rule generation support device, method and program
CN104484419A (en) Test case document conversion system and test case document conversion method
US6885367B1 (en) Three-dimensional model management system
CN111079244A (en) Distributed simulation platform based on behavior tree
CN104573184A (en) Construction method and construction device for high speed train product meta-model
CN104267962A (en) Description-based interface UI control configuration method
CN103353866A (en) Three-dimensional model file format conversion method supporting XNA technology
CN105653255A (en) Method arranging report template to automatically generate report files in office frame
CN106709985A (en) Generation method and device for virtual three-dimensional sacrifice scene
CN101009001B (en) Method and system for implementing four-dimensional visualization of engineering model
CN115495069A (en) Model-driven coal industry software flow implementation method, device and equipment
CN114117645A (en) Ship overall performance prediction integrated application system
CN1752944A (en) Three dimension mode construction software automatic testing method based on script
CN102411498A (en) Method for realizing data model and graphical designer
CN104133680A (en) Fast building method of ERP form module
JP4902567B2 (en) Work procedure manual creation system and work procedure manual creation program
KR102584032B1 (en) Workflow-based semantic CAD data conversion method and device therefor
CN103164230B (en) Requirement modeling method based on new characteristic model and model transformation method
CN110321596A (en) A kind of rolling stock structure simulation method based on finite element analysis
CN105893668B (en) A kind of material metamorphosis functional decomposition methods semantic based on stream
JP2008146300A (en) Information processor, information processing method and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180605

Termination date: 20200817