CN110148197B - Adaptive adjustment method for dimension marking of two-dimensional engineering drawing - Google Patents

Adaptive adjustment method for dimension marking of two-dimensional engineering drawing Download PDF

Info

Publication number
CN110148197B
CN110148197B CN201910434840.1A CN201910434840A CN110148197B CN 110148197 B CN110148197 B CN 110148197B CN 201910434840 A CN201910434840 A CN 201910434840A CN 110148197 B CN110148197 B CN 110148197B
Authority
CN
China
Prior art keywords
size
adjusted
view
engineering drawing
value
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
CN201910434840.1A
Other languages
Chinese (zh)
Other versions
CN110148197A (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.)
GUILIN FUDA CO Ltd
Guilin University of Electronic Technology
Original Assignee
GUILIN FUDA CO Ltd
Guilin University of Electronic 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 GUILIN FUDA CO Ltd, Guilin University of Electronic Technology filed Critical GUILIN FUDA CO Ltd
Priority to CN201910434840.1A priority Critical patent/CN110148197B/en
Publication of CN110148197A publication Critical patent/CN110148197A/en
Application granted granted Critical
Publication of CN110148197B publication Critical patent/CN110148197B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a size label self-adaptive adjusting method in a two-dimensional engineering drawing, which comprises the following steps: 1) Determining the size label needing to be adjusted; 2) Determining the size of the dimension-adjusting marking distance; 3) And (5) marking the size to be adjusted in position. The method effectively solves the problem of size marking position interference in the two-dimensional engineering drawing which is quickly generated after the variant design, can effectively help the two-dimensional engineering drawing to be quickly and automatically generated, replaces designers to manually adjust the size marking position, shortens the product design period, improves the product design efficiency, and is beneficial to the standardization of the drawing. The method has universality, and the two-dimensional engineering drawing parameterization automatic rapid design based on the engineering drawing template can be used for automatically adjusting the size marking position in the drawing.

Description

Adaptive adjustment method for dimension marking of two-dimensional engineering drawing
Technical Field
The invention relates to the field of two-dimensional engineering drawings, in particular to a size marking self-adaptive adjusting method in a two-dimensional engineering drawing.
Background
In recent years, in the field of mechanical design, although three-dimensional model design is increasingly widely used, two-dimensional engineering drawings are still important bases for final output and production and processing of enterprise product design, and labeling information such as surface roughness, form and position tolerance, matching and size tolerance and the like which can be expressed by the two-dimensional engineering drawings is difficult to express and label by three-dimensional models.
At present, due to technical reasons, when enterprises design products, a mode of coexistence of three-dimensional modeling and a two-dimensional engineering drawing is often adopted. How to quickly obtain a second engineering drawing meeting production requirements according to a three-dimensional model becomes a key technical bottleneck restricting the design efficiency and the design quality of a two-dimensional engineering drawing of an enterprise. Aiming at the situation, a parameterized method is designed for the serial classification of products, so that the standardization degree and the accuracy of drawings can be ensured, the problems of repeated labor, large workload, long time consumption, low efficiency and the like can be effectively solved, and the automatic and rapid drawing of the products of the same series can be realized.
The method realizes the parameterized automatic design of the same series of products, and comprises the following contents: and (3) carrying out parameterization automatic modification on the three-dimensional model and automatically generating a two-dimensional drawing. On the basis of an engineering drawing template, a two-dimensional engineering drawing rapid automatic generation method comprises the following contents: and automatically modifying the three-dimensional model, adaptively adjusting each view in the engineering drawing, and adaptively adjusting the dimension marking of the engineering drawing.
The characteristics of the dimension variation in the Solid works engineering drawing according to the characteristics of the three-dimensional drawing are as follows: marking the size of the deformation characteristic, wherein the numerical value of the deformation characteristic is automatically changed, and the position coordinate is unchanged; marking the size influenced by the deformation characteristics, wherein the position coordinates of the size are changed, and the numerical value is not changed; the dimensioning, which is not affected by the change in the characteristic, remains unchanged.
At present, the problems encountered by dimension marking in a two-dimensional engineering drawing during rapid and automatic generation of the drawing are mainly divided into two situations: (1) As shown in fig. 1 and 2, the outer diameter of the separating pull ring of the FD430 clutch is increased from 136mm to 150mm from fig. 1 to 2, and the other parts are kept unchanged, so that the local characteristic dimension mark and the outline line are interfered; (2) As shown in figures 1, 3, the breakaway tab profile dimensions are unchanged from figure 1 to figure 3, the tab notch increases from 13.5mm to 35mm, and the others remain unchanged, with the modified dimension lines interfering with the other dimension lines unaffected by the feature change. Therefore, in the part outline modification, if the modification size exceeds the reserved length of the template dimension line, dimension marking which is not influenced by feature change interferes with the outline line of the part; in the local feature deformation of the part, the deformation size exceeds the reserved length of the dimension line of the template, and the deformation size marking also interferes with other dimension lines.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a size marking self-adaptive adjusting method in a two-dimensional engineering drawing, which solves the problem of disorder of size marking positions in the automatic generation of the two-dimensional engineering drawing, readjusts the size marking positions which interfere with each other in the two-dimensional engineering drawing and realizes the self-adaptive adjustment of the size marking of the engineering drawing after the product is automatically deformed.
The technical scheme for realizing the purpose of the invention is as follows:
a size marking self-adaptive adjusting method in a two-dimensional engineering drawing comprises the following steps:
1) Determining the size label needing to be adjusted;
2) Determining the size of the dimension-adjusting marking distance;
3) And (5) marking the size to be adjusted in position.
In step 1), the determining of the size label to be adjusted includes the following steps:
1-1) defining an array View (), and obtaining a View View () in the engineering drawing by using a Get View function;
1-2) defining a variable Count, and obtaining the number of 'Display size objects' in the current view by using Get Display Dimension Count ();
1-3) judging whether the value of the Count is equal to the number of size objects in the adjusted view through a judging function, and determining the view to be selected; if the number of the size objects in the Count value and the adjusted view is not equal, the current view is proved not to be the selected view, and then the next view is judged until all the views are judged;
1-4) traversing the dimension labels of all views in the engineering drawing, and determining the dimension label quantity of all views;
1-5) defining a variable Number, setting an initial Number value to be 1, judging whether the Number value is equal to the serial Number of the size label needing to be adjusted by using a cyclic function Number = Number +1, and determining the size label needing to be adjusted; if the Number value is equal to the serial Number of the size-adjusting label, the current size is proved to be the selected size, and the next step is carried out; if the Number value is not equal to the serial Number of the size label needing to be adjusted, the current size is not the selected size, the judgment is finished, and the next size judgment is carried out.
In step 2), the step of determining the size of the labeled distance of the adjusted size is to define a variable Number2 to obtain an input adjusted size value of the modified size, define a constant Number3 as a default size value, and bring in a change function of the position coordinate to obtain a value of the distance to be adjusted.
In step 3), the step of adjusting the position of the size label to be adjusted includes the following steps:
3-1) acquiring the position coordinate of the current size by using a Getposition function under Annotation;
3-2) adjusting the position coordinates of the sizes by utilizing a Solid works quadratic development function SetPosition2 function.
In step 3-1), the change function of the position coordinate and the length dimension marking position coordinate is as follows: setPosition2 (position (0) + (Number 2-Number 3)/1000, position (1) + (Number 2-Number 3)/1000, position (2));
the modification function of the diameter dimension marking position coordinates is as follows: setPosition2 (position (0) + (Number 2-Number 3)/2000, position (1) + (Number 2-Number 3)/2000, position (2));
wherein Number2: input resizing, number3: default size, position (0): x-coordinate, position (1): y-coordinate, position (2): the Z coordinate.
According to the self-adaptive adjusting method for the size marking in the two-dimensional engineering drawing, the problem of size marking position interference in the two-dimensional engineering drawing which is generated quickly after the modified design is effectively solved, the two-dimensional engineering drawing can be generated quickly and automatically effectively, the size marking position is adjusted manually by a designer, the product design period is shortened, the product design efficiency is improved, and the drawing standardization is facilitated. The method has universality, and the method can be used for automatically adjusting the size marking position in the map in the two-dimensional engineering map parameterization automatic rapid design based on the engineering map template.
Drawings
FIG. 1 is a front view of an FD430 clutch release tab;
FIG. 2 is a dimensional marking interference view after separation of a modified tab profile;
FIG. 3 is a dimensional labeling interferogram after modification of a portion of the breakaway tab feature;
FIG. 4 is a flow chart of the present invention;
FIG. 5 is an explanatory diagram of each view in the two-dimensional engineering drawing of the embodiment;
FIG. 6 is an explanatory view of the number of display sizes of each view in the two-dimensional engineering drawing of the embodiment;
FIG. 7 is an explanatory diagram showing the dimension numbers in the embodiment view.
Detailed Description
The invention is further illustrated but not limited by the following figures and examples.
Example (b):
as shown in fig. 4, a method for adaptively adjusting a size label in a two-dimensional engineering drawing includes the following steps:
1) Determining the size label needing to be adjusted, comprising the following steps:
1-1) defining an array View (), and obtaining a View View () in the engineering drawing by using a Get View function;
in the two-dimensional engineering drawing shown in fig. 5, view 1, view 2 and view 3 are obtained, the number of views in the engineering drawing is determined by the complexity of the parts and is not limited to the number of views in the drawing, and the procedure is as follows:
Dim Views( ) As Object
Views = sheet.Get Views
For Each Vi In Views
Display Dimension = Vi.Get Display Dimensions( )
1-2) defining a variable Count, and obtaining the number of 'Display size objects' in the current view by using Get Display Dimension Count ();
as shown in fig. 6, in the two-dimensional engineering drawing, the number of display size objects in the view is obtained, there are 7 display sizes in the view 1, 4 display size objects in the view 2, and 3 display size objects in the view 3, and the number of display size objects in a single view in the engineering drawing is determined by the complexity of the part and is not limited to the number in the view, and the procedure is as follows:
Dim Count As Long
Count = Vi.Get Display Dimension Count( )
1-3) judging whether the value of Count is equal to the number of size objects in the adjusted view through a judging function, and determining the view to be selected; if the value of the Count is not equal to the number of the size objects in the adjusted view, the current view is proved not to be the selected view, and then the next view is judged until all the views are judged;
the view to be selected is determined according to the number of objects of different display sizes in the respective views as in fig. 6.
The procedure is as follows: if Count = 7 Then// view 1 shows a size of 7, i.e. view 1 is selected;
For Each Di In Display Dimension
if Count = 4 Then// select view 2
For Each Di In Display Dimension
If Count = 3 Then// select view 3
For Each Di In Display Dimension
1-4) traversing the size labels of all views in the engineering drawing, and determining the size label quantity of all views;
1-5) defining a variable Number, setting an initial Number value of the Number as 1, judging whether the Number value is equal to the serial Number of the size label needing to be adjusted or not by using a cyclic function Number = Number +1, and determining the size label needing to be adjusted; if the Number value is equal to the serial Number of the size-adjusting label, the current size is proved to be the selected size, and the next step is carried out; if the Number value is not equal to the serial Number of the size label needing to be adjusted, the current size is not the selected size, the judgment is finished, and the next size judgment is carried out.
As shown in FIG. 7, there are 7 display size objects in the view, and 1-7 represent the serial number of the size labels, by which the size object to be adjusted is determined.
2) Determining the size of the distance of the size-adjusting label: defining a variable Number2 to obtain a variable size input adjustment size value, defining a constant Number3 as a default size value, and substituting a change function of a position coordinate to obtain a distance value to be adjusted;
3) The method for adjusting the position of the size label to be adjusted comprises the following steps:
3-1) acquiring the position coordinate of the current size by using a Getposition function under Annotation;
3-2) adjusting the size and position coordinates by utilizing a Solid works quadratic development function SetPosition2 function, wherein the program is as follows:
the procedure is as follows: dim Number As Long
Dim position As Object
Interpretation = di.get interpretation// acquisition size coordinate position
position = Annotation.Getposition()
Number = 1
Number ++
If Number = 1 Then// select size Number 1
Annotation.SetPosition2(position(0) + (Number2 - Number3) / 1000, position(1) + (Number2 - Number3) / 1000, position(2))
// adjusting/registering the position coordinate of the size position of number 1
···
ElseIf Number = 7 ten selects a size No. 7
Annotation.SetPosition2(position(0) + (Number2 - Number3) / 1000, position(1) + (Number2 - Number3) / 1000, position(2))
// adjusting/registering the position coordinates of the size position of the serial number 7
End If
In step 3-1), the change function of the position coordinate and the length dimension marking position coordinate is as follows: setPosition2 (position (0) + (Number 2-Number 3)/1000, position (1) + (Number 2-Number 3)/1000, position (2));
the modification function of the diameter dimension marking position coordinates is as follows: setPosition2 (position (0) + (Number 2-Number 3)/2000, position (1) + (Number 2-Number 3)/2000, position (2));
wherein Number2: input resizing, number3: default size, position (0): x-coordinate, position (1): y-coordinate, position (2): the Z coordinate.
The above examples are only for clearly explaining the detailed steps of the present invention, and do not limit the generality of the present invention, the present method is a general method, and the position can be adaptively adjusted by the method based on the dimension marking of the Solid works engineering drawing template.
The program is written by using Visual Basic language, and is only used for expressing a use method in more detail, the API function of the Solid works is universal, other languages can be called, and all the invention is not limited to the Visual Basic language.

Claims (1)

1. A size marking self-adaptive adjusting method in a two-dimensional engineering drawing is characterized by comprising the following steps:
1) Determining the size label needing to be adjusted;
2) Determining the size of the dimension-adjusting marking distance;
3) Adjusting the position of the size mark to be adjusted;
in step 1), the determining of the size label to be adjusted includes the following steps:
1-1) defining an array View (), and obtaining a View View () in the engineering drawing by using a Get View function;
1-2) defining a variable Count, and obtaining the number of 'Display size objects' in the current view by using Get Display Dimension Count ();
1-3) judging whether the value of Count is equal to the number of size objects in the adjusted view through a judging function, and determining the view to be selected; if the number of the size objects in the Count value and the adjusted view is not equal, the current view is proved not to be the selected view, and then the next view is judged until all the views are judged;
1-4) traversing the size labels of all views in the engineering drawing, and determining the size label quantity of all views;
1-5) defining a variable Number, setting an initial Number value to be 1, judging whether the Number value is equal to the serial Number of the size label needing to be adjusted by using a cyclic function Number = Number +1, and determining the size label needing to be adjusted; if the Number value is equal to the serial Number of the size label needing to be adjusted, the current size is proved to be the selected size, and the next step is carried out; if the Number value is not equal to the serial Number of the size label needing to be adjusted, the current size is not the selected size, the judgment is finished, and the next size judgment is carried out;
in step 2), the size of the labeled distance of the determined adjusted size is defined as that a variable Number2 obtains a variable size input adjusted size value, a constant Number3 is defined as a default size value, and a change function of a position coordinate is taken in to obtain a value of the distance to be adjusted;
in step 3), the adjusting of the position of the size label to be adjusted includes the following steps:
3-1) acquiring the position coordinate of the current size by using a Getposition function under Annotation;
3-2) adjusting the position coordinates of the sizes by utilizing a Solid works secondary development function SetPosition2 function;
in the step 3-1), the change function of the position coordinate and the length dimension marking position coordinate is as follows: setPosition2 (position (0) + (Number 2-Number 3)/1000, position (1) + (Number 2-Number 3)/1000, position (2));
the change function of the diameter dimension marking position coordinate is as follows: setPosition2 (position (0) + (Number 2-Number 3)/2000, position (1) + (Number 2-Number 3)/2000, position (2));
wherein Number2: input resizing, number3: default size, position (0): x-coordinate, position (1): y-coordinate, position (2): the Z coordinate.
CN201910434840.1A 2019-05-23 2019-05-23 Adaptive adjustment method for dimension marking of two-dimensional engineering drawing Expired - Fee Related CN110148197B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910434840.1A CN110148197B (en) 2019-05-23 2019-05-23 Adaptive adjustment method for dimension marking of two-dimensional engineering drawing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910434840.1A CN110148197B (en) 2019-05-23 2019-05-23 Adaptive adjustment method for dimension marking of two-dimensional engineering drawing

Publications (2)

Publication Number Publication Date
CN110148197A CN110148197A (en) 2019-08-20
CN110148197B true CN110148197B (en) 2022-10-04

Family

ID=67592922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910434840.1A Expired - Fee Related CN110148197B (en) 2019-05-23 2019-05-23 Adaptive adjustment method for dimension marking of two-dimensional engineering drawing

Country Status (1)

Country Link
CN (1) CN110148197B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112419481B (en) * 2020-11-19 2022-08-30 桂林电子科技大学 Batch modification and self-adaptive adjustment method for surface roughness of engineering drawing

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718629A (en) * 2016-01-08 2016-06-29 桂林电子科技大学 Variant design method of meeting engineering constraint conditions
CN106023051A (en) * 2016-05-06 2016-10-12 武汉理工大学 DNA image encryption method based on cloud model and hyperchaotic system and system based on cloud model and hyperchaotic system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003096669A2 (en) * 2002-05-10 2003-11-20 Reisman Richard R Method and apparatus for browsing using multiple coordinated device
JP2009297475A (en) * 2008-06-12 2009-12-24 Hitoshi Shimotomai Square-based 'go' game
CN102568038B (en) * 2011-12-28 2014-04-16 西北工业大学 Method for translating dimensions on two-dimensional engineering drawing to three-dimensional CAD (computer aided design) model
CN103279628B (en) * 2013-06-19 2015-09-16 福建龙净环保股份有限公司 A kind of method for making of parametrization engineering drawing
CN105956285B (en) * 2016-05-06 2019-02-01 桂林电子科技大学 A kind of Linear Mark method of adjustment towards Variant Design
CN105975696B (en) * 2016-05-09 2019-07-19 西北工业大学 Rule-based three-dimensional process dimension layout method
CN106249290B (en) * 2016-08-25 2019-06-04 中国石油集团东方地球物理勘探有限责任公司 A method of shallow velocity structure model is established using multi-stage data fusion
CN106503403A (en) * 2016-11-29 2017-03-15 上海卫星工程研究所 A kind of satellite cellular sandwich plate three-dimensional labeling method
CN107526089B (en) * 2017-08-25 2019-07-12 清华大学 A kind of non-view radar signal passive location method altogether based on time delay second order difference
CN108121862B (en) * 2017-12-13 2021-04-27 武汉益模科技股份有限公司 Automatic engineering drawing labeling method based on three-dimensional geometric features

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718629A (en) * 2016-01-08 2016-06-29 桂林电子科技大学 Variant design method of meeting engineering constraint conditions
CN106023051A (en) * 2016-05-06 2016-10-12 武汉理工大学 DNA image encryption method based on cloud model and hyperchaotic system and system based on cloud model and hyperchaotic system

Also Published As

Publication number Publication date
CN110148197A (en) 2019-08-20

Similar Documents

Publication Publication Date Title
CN109816049B (en) Assembly monitoring method and device based on deep learning and readable storage medium
CN110428479B (en) Method for adaptively adjusting dimension marking error correction of two-dimensional engineering drawing of Solid works
US5991703A (en) Method of synthesizing measurement data of free-form surface
CA2288177C (en) Method of determining shape error of free-form surface
US20030105538A1 (en) System for rapid manufacturing of replacement aerospace parts
CN110148197B (en) Adaptive adjustment method for dimension marking of two-dimensional engineering drawing
CN109145471B (en) Virtual assembly system and method based on CAD and measured data co-fusion model
US20090193866A1 (en) Minimizing circumferential transition lines during container shaping operations
CN105718653A (en) Automatic checking method of annotated information completeness for MBD (Model Based Definition) process model
CN105528485A (en) Method for automatic contour extraction and path generation of bitmap
CN104298994A (en) Pointer-type meter reading identification method and device
CN105551077A (en) Sheet metal processing three-dimensional technological model construction method and device
CN113096147A (en) MATLAB-based automatic laser marking shadow generation method
CN103279628A (en) Method for manufacturing parameterized engineering drawings
CN103631996A (en) Product structure and process parallel design method based on model maturity
CN105718612A (en) Simplified representation method for aircraft fasteners
CN105627950A (en) Optical scanning aviation tool edge line detection method
EP3978260A3 (en) Method and system for maufacturing container product
CN112906215A (en) Pipe tool path generation method based on SolidWorks secondary development
Moghaddam et al. Development of a new method to automatic nesting and piloting system design for progressive die
CN107315392B (en) Special-shaped workpiece discharging optimization algorithm of automatic feeder of punch press and tolerance algorithm thereof
CN112489199B (en) MBD-based numerical control machining process model creating and labeling method
CN110298408B (en) Real-time identification method for hub wheel type of production and processing unit based on intelligent weighing
CN111768347B (en) Method for judging whether part tool is suitable for changing analog quantity into digital quantity
CN109271665B (en) Method and device for automatically determining marking parameters

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

Granted publication date: 20221004