[go: up one dir, main page]

JPH07296023A - Dimension drawing method in CAD system - Google Patents

Dimension drawing method in CAD system

Info

Publication number
JPH07296023A
JPH07296023A JP6092224A JP9222494A JPH07296023A JP H07296023 A JPH07296023 A JP H07296023A JP 6092224 A JP6092224 A JP 6092224A JP 9222494 A JP9222494 A JP 9222494A JP H07296023 A JPH07296023 A JP H07296023A
Authority
JP
Japan
Prior art keywords
dimension
data
line
design rule
input
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.)
Pending
Application number
JP6092224A
Other languages
Japanese (ja)
Inventor
Mitsuaki Horidome
光昭 堀留
Katsushi Machii
克司 町井
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP6092224A priority Critical patent/JPH07296023A/en
Publication of JPH07296023A publication Critical patent/JPH07296023A/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】 【目的】 寸法作画時に、操作者が寸法の設計ルールを
意識せずに、入力装置からの入力に応じて、逐次この設
計ルールに基づいた最適な寸法線と寸法値の表示位置を
自動的に決定して寸法作画候補を画面に表示し、それに
基づき寸法の作画操作ができるようにする。 【構成】 現在のカーソル位置から、寸法形状生成部1
12で仮想的な寸法の形状が生成され、寸法の作画位置
の決定に影響を与える図形や寸法データ等が、図面デー
タ103よりデータ検索・登録部117を用いて検索さ
れる。また、設計ルールデータも検索される。その後、
設計ルールデータに基づき、寸法線作画位置決定部11
3において寸法線の作画位置、寸法値表示位置決定部1
14で寸法値の表示位置が求められ、寸法候補表示部1
15で入出力制御部111を用いて表示装置102に表
示される。
(57) [Summary] [Purpose] During dimension drawing, the operator does not have to be aware of the dimension design rule and, in response to input from the input device, successively selects the optimum dimension line and dimension value based on this design rule. The display position is automatically determined, dimension drawing candidates are displayed on the screen, and dimension drawing operations can be performed based on the display candidates. [Configuration] From the current cursor position, the dimension and shape generation unit 1
A virtual dimension shape is generated at 12, and a figure, dimension data, and the like that influence the determination of the dimension drawing position are searched from the drawing data 103 using the data search / registration unit 117. The design rule data is also searched. afterwards,
Dimension line drawing position determination unit 11 based on the design rule data
3, the drawing position of the dimension line and the dimension value display position determination unit 1
The display position of the dimension value is obtained at 14, and the dimension candidate display unit 1
At 15, the image is displayed on the display device 102 using the input / output control unit 111.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、CADシステムにおけ
る寸法作画方法に係り、特に、寸法を作画するときにマ
ウス等の入力装置からの入力に応じて、逐次、最適な寸
法線や寸法値の作画候補を画面に表示するようにし、そ
れに基づき寸法の作画操作ができるようにしたCADシ
ステムにおける寸法作画方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a dimension drawing method in a CAD system, and in particular, it produces an optimum dimension line and dimension value sequentially according to an input from an input device such as a mouse when dimensioning. The present invention relates to a dimension drawing method in a CAD system in which a drawing candidate is displayed on a screen and a dimension drawing operation can be performed based on the displayed drawing candidate.

【0002】[0002]

【従来の技術】従来、CADシステムにおいて、寸法を
作画する方式として、寸法線の位置を入力する時に、
グリッドや電子定規等の座標補正機能を用いて、グリッ
ドの格子点の間隔あるいは電子定規の目盛間隔で、寸法
が整列する(グリッドの点や定規の目盛位置に合わせ
る)ようにして寸法を作画する方式、寸法線の位置を
入力する時に、既に作画している他の寸法線等を指示し
て位置合わせする位置を指定するか、あるいは、位置合
わせする位置を座標値で直接指定して寸法を整列しなが
ら寸法を作画する方式、並びに、ラフな位置に寸法を
作画し、その後寸法を整列コマンドで位置合わせする位
置等を指定して寸法を作画する方式が知られている。
2. Description of the Related Art Conventionally, in a CAD system, as a method of drawing a dimension, when inputting a position of a dimension line,
Use the coordinate correction function of the grid or electronic ruler, etc., and draw the dimension so that the dimensions are aligned at the grid grid point intervals or the electronic ruler scale intervals (match the grid points or the ruler scale position). When inputting the method and the position of the dimension line, specify the position to align by designating other dimension lines that have already been drawn, or directly specify the position to align with the coordinate value There are known a method of drawing a dimension while aligning, and a method of drawing a dimension at a rough position and then designing a dimension by specifying a position for aligning the dimension with an alignment command.

【0003】寸法値表示位置については、予め寸法作画
前に、寸法値表示位置を指定して(例えば、寸法値表示
位置の候補がいくつかある場合に、その1つを指定し
て)作画する方式や、寸法作画後、寸法値表示位置を変
更する方式が知られている。
Regarding the dimension value display position, the dimension value display position is designated in advance before dimension drawing (for example, when there are several candidates for the dimension value display position, one of them is designated) and the image is drawn. A method and a method of changing the dimension value display position after dimension drawing are known.

【0004】寸法の作画は、ある設計ルールに基づき整
列して作画するのが一般的であるが、従来の方式では、
寸法線位置等の入力時に、ある設計ルールに基づき整列
作画される点や、寸法線や寸法値等を確認しながら作画
する点について考慮されていなかった。
[0004] It is general to draw the dimensions by aligning them according to a certain design rule, but in the conventional method,
At the time of inputting the dimension line position, etc., consideration was not given to the points of line drawing based on a certain design rule, and the point of drawing while confirming the dimension line and the dimension value.

【0005】また、特開昭62ー187975号公報
(文献1)にの記載されているように、寸法を作画する
図形を領域指示等で指示し、ある設計ルールに基づき整
列して寸法を一括して作画する自動寸法作画方式が知ら
れている。
Further, as described in Japanese Patent Application Laid-Open No. 62-187975 (Reference 1), a figure for drawing a dimension is designated by a region designation, etc., and the dimensions are collectively arranged according to a certain design rule. There is known an automatic dimension drawing method for performing the drawing.

【0006】[0006]

【発明が解決しようとする課題】上記従来技術の、グ
リッドや電子定規等の座標補正機能を用いて寸法を作画
する方式は、一定間隔の位置合わせしかできないだけで
なく、斜めに引き出す寸法線を作画する場合に斜めに引
き出す寸法の角度に合わせたグリッドや電子定規を定義
しなければならない等、作画する寸法線によって位置合
わせの適切な設計ルールを自動的に判断する点が考慮さ
れておらず、このため、操作者が寸法作画設計ルールを
意識しながらグリッドや電子定規定義または変更し寸法
の作画をしなければならなく、操作性が悪いという問題
があった。また、グリッドや電子定規の表示により、表
示データが多くなるという問題があった。
The above-mentioned conventional method of drawing a dimension by using the coordinate correction function of a grid, an electronic ruler or the like can not only perform the positioning at a constant interval but also draw the dimension line obliquely. When drawing, it is necessary to define a grid or electronic ruler that matches the angle of the dimension that is pulled out diagonally, and the point that automatically determines the appropriate design rule for alignment based on the dimension line to be drawn is not considered. For this reason, the operator has to draw the dimensions by defining or changing the grid or the electronic ruler while being aware of the dimension drawing design rule, which causes a problem of poor operability. Further, there is a problem that the display data increases due to the display of the grid and the electronic ruler.

【0007】上記従来技術の、寸法線の位置を入力す
る時に、既に作画している他の寸法線等を指示し位置合
わせする位置を指定する寸法の作画方式は、操作者が寸
法作画設計ルールを意識しながらマウス等のポインティ
ングデバイスで、位置合わせする位置にカーソルを持っ
ていき指示しなければならないので、ポインティングデ
バイスの動きが多いというだけでなく、寸法線の位置を
入力する時に、同時に寸法値表示位置を指定する点が考
慮されておらず、寸法の作画後、寸法値表示位置を変更
する等の操作が発生する場合があり、操作性が悪いとい
う問題があった。
In the above-mentioned prior art, when the position of the dimension line is input, the dimension drawing method of designating the position to be aligned by designating another dimension line which has already been drawn is based on the dimension drawing design rule. It is necessary to move the cursor to the position to be aligned with a pointing device such as a mouse while pointing, so that not only does the pointing device move a lot, but also when you enter the position of the dimension line, The point of designating the value display position is not taken into consideration, and an operation such as changing the dimensional value display position may occur after drawing a dimension, resulting in poor operability.

【0008】上記従来技術のラフな位置に寸法を作画
後、寸法を整列する方式も、多くの操作が必要で操作性
が悪いという問題があった。
The method of aligning the dimensions after drawing the dimensions at the rough position in the above-mentioned prior art also has a problem that many operations are required and the operability is poor.

【0009】また、上記文献1に示される従来技術の、
寸法を一括して作画する自動寸法作画方式は、不要な寸
法も作画される場合があり、自動寸法作画後、不要な寸
法を削除する等の修正が必要になる問題があった。
Further, in the prior art disclosed in the above-mentioned document 1,
In the automatic dimension drawing method in which the dimensions are collectively drawn, unnecessary dimensions may be drawn in some cases, and there is a problem that it is necessary to correct the unnecessary dimensions after the automatic dimension creation.

【0010】従って、本発明の目的は、上記従来技術の
問題点を解決し、寸法作画時に、操作者が設計ルールを
なにも意識することなく、入力装置からの入力及び既存
の図形・寸法データ等に応じて設計ルールを満たすよう
に最適な寸法線の作画位置及び寸法値の表示位置を自動
的に決定することができ、また、自動寸法作画後、不要
な寸法を削除する等の修正の必要のないCADシステム
における寸法作画方法を提供することにある。
Therefore, an object of the present invention is to solve the above-mentioned problems of the prior art, and at the time of dimension drawing, the operator does not have to pay attention to the design rule and inputs from the input device and the existing figures / dimensions. The optimum dimension line drawing position and dimension value display position can be automatically determined according to the data etc. so as to satisfy the design rule, and corrections such as deleting unnecessary dimensions after automatic dimension drawing It is to provide a dimension drawing method in a CAD system that does not require

【0011】[0011]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、図形を作画する手段と、作画した図形に
寸法線及び寸法値を作画する手段とを有するCADシス
テムにおける寸法方法において、既に作画している他の
寸法線及びマウス等の入力装置からの入力に応じて最適
な寸法線の作画位置をある設計ルールに基づき自動的に
決定する手段と、寸法作画時に、入力装置からの入力に
応じて、逐次、最適な寸法線の作画候補を画面に表示
し、それに基づき寸法の作画操作を行なう手段とを備え
たものである。
In order to achieve the above object, the present invention provides a sizing method in a CAD system having means for drawing a figure and means for drawing a dimension line and a dimension value on the drawn figure. A means for automatically determining the optimum dimension line drawing position based on certain design rules in response to other dimension lines that have already been drawn and input from an input device such as a mouse. According to the input, a means for sequentially displaying the drawing candidates of the optimum dimension line on the screen and performing the drawing operation of the dimension based on the display candidates are provided.

【0012】また、作画しようとする寸法線及びマウス
等の入力装置からの入力に応じて最適な寸法値の表示位
置をある設計ルールに基づき自動的に決定する手段と、
寸法作画時に、入力装置からの入力に応じて、逐次、最
適な寸法値の作画候補を画面に表示し、それに基づき寸
法の作画操作を行なう手段とを備えたものである。
Further, means for automatically determining the display position of the optimum dimension value based on a certain design rule in accordance with the dimension line to be drawn and input from an input device such as a mouse,
During dimension drawing, a means for sequentially displaying the drawing candidates of the optimum dimension value on the screen in accordance with the input from the input device and performing the drawing operation of the dimension based on the display candidate is provided.

【0013】[0013]

【作用】上記構成に基づく作用を説明する。The operation based on the above configuration will be described.

【0014】図面に作画する寸法は、ある一定の基準
(設計ルール)に従って整列して作画するのが一般的で
ある。本発明によれば、寸法作画操作時に、予め定義し
ている設計ルール情報を基に、既に作画している(既存
の)他の寸法線や作画しようとする寸法線等の情報、並
びに、マウス等の入力装置からの入力に応じて、最適な
寸法線や寸法値の作画候補を逐次計算し、画面上にその
作画候補を表示する。
The dimensions to be drawn on the drawing are generally aligned and drawn according to a certain standard (design rule). According to the present invention, at the time of the dimension drawing operation, based on the design rule information defined in advance, information of other (existing) other dimension lines that have already been drawn or the dimension line to be drawn, and the mouse. According to the input from the input device such as, the drawing candidates of the optimum dimension line and the dimension value are sequentially calculated, and the drawing candidates are displayed on the screen.

【0015】寸法作画操作時に、設計ルールに基づいて
(ある一定の基準に従って)整列した最適な寸法を、画
面上でその寸法の作画候補表示を確認しながら作画する
ことができる。これによって、寸法を迅速且つ、簡単に
作画することができる。また、寸法作画後に、移動や削
除等の修正操作を極力少なくすることができ寸法作画の
操作性を向上させることができる。
During the size drawing operation, the optimum size aligned according to the design rule (according to a certain standard) can be drawn while confirming the drawing candidate display of the size on the screen. This allows the dimensions to be drawn quickly and easily. Further, after size drawing, correction operations such as movement and deletion can be minimized, and operability of size drawing can be improved.

【0016】[0016]

【実施例】以下に、本発明の実施例を図面により説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

【0017】図1は、本発明の1実施例によるCADシ
ステムの寸法作画処理部の構成例である。同図におい
て、101は、キーボードやポインティングデバイス等
の入力装置、102は、図形や寸法を表示する表示装置
である。103は、図形や寸法等の図面データで、メモ
リ、あるいは、磁気ディスク装置に格納されている。ま
た、104は、寸法を作画するときの設計ルールデータ
で、寸法線や寸法値表示位置を決定する際に判断基準と
なるデータである。この設計ルールデータは、例えば、
「図形から寸法を引き出す場合は、寸法線の位置を引き
出す図形から間隔を何ミリ以上にし、基本的には、間隔
を何ミリとする。」「寸法から寸法を引き出す場合は、
寸法線と寸法線の間隔を何ミリとする。」「寸法線が水
平方向や垂直方向で整列するように位置を合わせる。」
「なるべく、寸法線と寸法線は、交差させない。」など
の情報である。なお、上記「寸法から寸法を引き出す場
合」とは、2つの寸法の表示と、両寸法の和の寸法を表
示する場合などである。また、様々な設計ルールの判断
の優先順位の情報ももつ。この設計ルールデータ104
は、メモリ、あるいは、磁気ディスク装置に格納する。
FIG. 1 shows an example of the configuration of a dimension drawing processing unit of a CAD system according to an embodiment of the present invention. In the figure, 101 is an input device such as a keyboard and pointing device, and 102 is a display device for displaying figures and dimensions. Reference numeral 103 is drawing data such as figures and dimensions, which is stored in a memory or a magnetic disk device. Further, reference numeral 104 denotes design rule data for drawing a dimension, which is data used as a criterion for determining the dimension line and the dimension value display position. This design rule data is, for example,
"When drawing a dimension from a figure, the distance from the figure that draws the position of the dimension line should be several millimeters or more, and basically the distance should be several millimeters.""When drawing a dimension from a dimension,
The distance between dimension lines is several millimeters. "Align the dimension lines so that they align horizontally or vertically."
The information is, for example, "dimension lines and dimension lines do not intersect as much as possible." In addition, the above-mentioned "in the case of drawing a dimension from a dimension" is a case of displaying two dimensions and a dimension of the sum of both dimensions. It also has information on the priority of judgments of various design rules. This design rule data 104
Are stored in a memory or a magnetic disk device.

【0018】寸法を引き出す処理部110は、入力装置
101からの入力データの受け取り手段と、表示装置1
02への表示手段と、図面データ103や設計ルールデ
ータ104を検索する手段を持つ。処理部110は、入
出力データを処理する入出力制御部111と、寸法の引
き出し位置等から寸法形状を計算する寸法形状生成部1
12と、図面データ103の中の図形や寸法データを検
索・登録するデータ検索・登録部117と、入力装置1
01からの入力に応じて、設計ルールデータ104の情
報を基に最適な寸法線位置を決定する寸法線作画位置決
定部113と、入力装置101からの入力に応じて、設
計ルールデータ104の情報を基に最適な寸法値表示位
置を決定する寸法値表示位置決定部114と、寸法線作
画位置決定部113や寸法値表示位置決定部114で求
めた寸法(寸法線及び寸法値)の表示例の候補を、逐
次、表示装置102に表示する寸法候補表示部115
と、入力装置101からの寸法作画の決定指示の入力に
より、決定した寸法を表示装置102に表示し、その寸
法データを図面データ103に登録する寸法作画部11
6とから構成される。
The processing unit 110 for extracting the dimensions is a means for receiving the input data from the input device 101 and the display device 1.
02, and means for searching the drawing data 103 and the design rule data 104. The processing unit 110 includes an input / output control unit 111 that processes input / output data, and a size / shape generation unit 1 that calculates a size / shape based on the size drawing position.
12, a data search / registration unit 117 for searching / registering figures and dimension data in the drawing data 103, and the input device 1.
01 based on the information of the design rule data 104 according to the input from 01, and the information of the design rule data 104 according to the input from the input device 101 A display example of the dimension value display position determination unit 114 that determines the optimum dimension value display position based on the above, and the dimension (dimension line and dimension value) obtained by the dimension line drawing position determination unit 113 or the dimension value display position determination unit 114 Candidate display unit 115 for sequentially displaying the candidates of
And a dimension drawing unit 11 that displays the determined dimension on the display device 102 by inputting a dimension drawing determination instruction from the input device 101 and registers the dimension data in the drawing data 103.
6 and 6.

【0019】特に、設計ルールデータ104の格納部
と、寸法線作画位置決定部113と、寸法値表示位置決
定部114とは、本発明の実施例に特有の構成である。
In particular, the storage unit for the design rule data 104, the dimension line drawing position determination unit 113, and the dimension value display position determination unit 114 have a configuration peculiar to the embodiment of the present invention.

【0020】図2と図3は、ポインティングデバイスの
動き、すなわち、カーソルの動きに応じて、最適な寸法
線の作画位置を求め、その候補を表示する例を説明する
説明図である。
2 and 3 are explanatory views for explaining an example in which the optimum drawing position of the dimension line is obtained according to the movement of the pointing device, that is, the movement of the cursor, and the candidate is displayed.

【0021】図2は、他の寸法の位置関係等に基づき、
最適な寸法線の作画位置を求め、その候補を表示する一
例である。寸法線は、一般に、同じ傾きを持つ他の寸法
線と、なるべく同じ方向の同じ位置になるように作画
し、寸法が整列するようにする。図2の20は、寸法を
引き出す図形(寸法作画対象図形)で、201から20
9は、図形20の構成要素である。22は、別の図形
(既作画済み図形)で、既に寸法23が引き出されてい
る。図形22は、図面データ格納部103から取り出す
ことができる。231から234は、寸法23の構成要
素で、231と232は寸法補助線、233は寸法線、
234は寸法値である。また、21は、ポインティング
デバイスの入力位置を表すカーソルである。
FIG. 2 is based on the positional relationship of other dimensions.
This is an example of obtaining the optimum drawing position of the dimension line and displaying the candidates. In general, the dimension line is drawn so that the dimension is aligned with other dimension lines having the same inclination in the same position in the same direction as possible. The numeral 20 in FIG. 2 is a figure for drawing out the dimension (the figure to be drawn for the dimension drawing).
Reference numeral 9 is a component of the graphic 20. Reference numeral 22 is another graphic (an already created graphic), the dimension 23 of which has already been extracted. The graphic 22 can be retrieved from the drawing data storage unit 103. 231 to 234 are components of the dimension 23, 231 and 232 are auxiliary dimension lines, 233 is a dimension line,
234 is a dimension value. Reference numeral 21 is a cursor indicating the input position of the pointing device.

【0022】今、同図(a)のように、例えば、205
と206の要素の交点と、201と208の要素の交点
から寸法を引き出す場合を考える。まず、同図(b)の
ように、カーソル21の位置をこれから寸法線を表示し
ようとする大凡の位置に持って行く。このカーソル位置
21を基準として、寸法形状生成部112で、仮想的な
寸法線24の両端の位置である241と242の点の位
置(座標)や寸法線24の傾きを求める。なお、寸法線
には、寸法補助線243,244も含めて考える。次
に、設計ルールデータ104の情報を基に、寸法線の作
画位置の決定に影響を与える図形や寸法データを検索す
るための上下にある幅をもった検索領域25を作成す
る。この検索領域25の中に存在するデータを、図面デ
ータ格納部103に格納されている既存の図面データ及
び寸法データから抽出(検索)する。次にこの抽出した
図面・寸法データ(領域25中に存在する図面・寸法デ
ータ)から、寸法線作画位置決定部113で、設計ルー
ルデータ104の情報を基に、寸法線の傾きが同じで寸
法線同士が交差しない寸法23を検索し、寸法線の作画
位置を決定する。また、同様にして、寸法値表示位置決
定部114で、設計ルールデータ104の情報を基に、
カーソル21の位置から寸法値の表示位置を決定する。
(なお、寸法値自体は、寸法形状生成部112により、
寸法の引き出し位置等から正確に求めておく)。次に、
同図(c)に示すように、決定された寸法線の作画位置
と寸法値の表示位置の情報に従い、寸法候補表示部11
5で、寸法の作画候補26を表示装置102に表示す
る。この時点で入力装置101から寸法作画の決定指示
の入力があると、同図(d)に示すように、寸法作画部
116で、決定した寸法27を表示装置102に表示
し、その寸法データを図面データ103に登録する。
Now, as shown in FIG.
Consider the case where the dimensions are drawn from the intersections of the elements 206 and 206 and the intersections of the elements 201 and 208. First, as shown in FIG. 6B, the position of the cursor 21 is brought to the approximate position where the dimension line is about to be displayed. Using the cursor position 21 as a reference, the dimension / shape generator 112 obtains the positions (coordinates) of the points 241 and 242, which are the positions at both ends of the virtual dimension line 24, and the inclination of the dimension line 24. It should be noted that the dimension lines include the dimension auxiliary lines 243 and 244. Next, based on the information of the design rule data 104, a search area 25 having an upper and lower width for searching for a figure or dimension data that influences the determination of the drawing position of the dimension line is created. The data existing in the search area 25 is extracted (searched) from the existing drawing data and dimension data stored in the drawing data storage unit 103. Next, from the extracted drawing / dimension data (drawing / dimension data existing in the area 25), in the dimension line drawing position determination unit 113, based on the information of the design rule data 104, the dimension lines have the same inclination and are dimensioned. The dimension 23 at which the lines do not intersect is searched, and the drawing position of the dimension line is determined. Similarly, in the dimension value display position determination unit 114, based on the information of the design rule data 104,
The display position of the dimension value is determined from the position of the cursor 21.
(Note that the dimension value itself is determined by the dimension / shape generating unit 112.
Accurately determine from the drawing position of the dimensions). next,
As shown in FIG. 7C, the dimension candidate display section 11 is displayed in accordance with the information of the determined drawing position of the dimension line and the display position of the dimension value.
In step 5, the size drawing candidate 26 is displayed on the display device 102. At this point, if a dimension drawing determination instruction is input from the input device 101, the dimension drawing unit 116 displays the determined dimension 27 on the display device 102 as shown in FIG. It is registered in the drawing data 103.

【0023】図3は、座標軸に対して傾きをもつ寸法を
作画する際に、他の寸法の位置関係等に基づき、最適な
寸法線の作画位置を求め、その候補を表示する一例であ
る。図3の30は、寸法を引き出す図形で、301から
308は、図形30の構成要素であり、既に寸法32が
引き出されている。また、31は、ポインティングデバ
イスの入力位置を表わすカーソルである。今、同図
(a)に示すように、例えば、301と308の要素の
交点と、307と308の要素の交点から寸法を引き出
す場合を考える。まず、同図(b)のように、カーソル
31の位置をこれから寸法線を表示しようとする大凡の
位置に持って行く。このカーソル位置31を基準に、寸
法形状生成部112で、仮想的な寸法線33の両端位置
である331と332の点の位置や寸法線の傾きを求め
る。なお、寸法線には、寸法補助線を含めて考える。次
に、図2の実施例と同様に、寸法線の作画位置の決定に
影響を与える図形や寸法データを検索するための検索領
域34を作成する。この検索領域34の中に存在するデ
ータを、図面データ格納部103に格納されている既存
の図面データ及び寸法データから抽出(検索)する。次
にこの抽出した図面・寸法データから、寸法線作画位置
決定部113で、設計ルールデータ104の情報を基
に、寸法線の傾きが同じで寸法線同士が交差しない寸法
32を検索し、寸法線の作画位置を決定する。また同様
にして、寸法値表示位置決定部114で、設計ルールデ
ータ104の情報を基に、カーソル31の位置から寸法
値の表示位置を決定する。(なお、寸法値自体は、寸法
形状生成部112により、寸法の引き出し位置等から正
確に求めておく)。次に、同図(c)に示すように、決
定された寸法線の作画位置と寸法値の表示位置の情報に
従い、寸法候補表示部115で、寸法の作画候補35を
表示装置102に表示する。この時点で入力装置101
から寸法作画の決定指示の入力があると、同図(d)に
示すように寸法作画部116で、決定した寸法36を表
示装置102に表示し、その寸法データを図面データ1
03に登録する。
FIG. 3 shows an example in which, when a dimension having an inclination with respect to the coordinate axis is drawn, an optimum drawing position of the dimension line is obtained based on the positional relationship of other dimensions and the candidates are displayed. Reference numeral 30 in FIG. 3 is a figure for drawing out the dimension, and reference numerals 301 to 308 are constituent elements of the figure 30, and the dimension 32 has already been drawn out. Reference numeral 31 is a cursor indicating the input position of the pointing device. Now, let us consider a case where dimensions are drawn from the intersections of the elements 301 and 308 and the intersections of the elements 307 and 308, as shown in FIG. First, as shown in FIG. 6B, the position of the cursor 31 is moved to the approximate position where the dimension line is about to be displayed. Using the cursor position 31 as a reference, the dimension / shape generator 112 obtains the positions of the points 331 and 332, which are the ends of the virtual dimension line 33, and the inclination of the dimension line. It should be noted that the dimension line includes the dimension auxiliary line. Next, as in the embodiment shown in FIG. 2, a search area 34 is created to search for a figure or dimension data that affects the determination of the drawing position of the dimension line. The data existing in the search area 34 is extracted (searched) from the existing drawing data and dimension data stored in the drawing data storage unit 103. Next, based on the information of the design rule data 104, the dimension line drawing position determination unit 113 searches the extracted drawing / dimension data for the dimension 32 in which the dimension lines have the same inclination and the dimension lines do not intersect each other. Determine the line drawing position. Similarly, the dimension value display position determination unit 114 determines the display position of the dimension value from the position of the cursor 31 based on the information of the design rule data 104. (It should be noted that the dimension value itself is accurately obtained by the dimension / shape generating unit 112 from the drawing position of the dimension, etc.). Next, as shown in FIG. 7C, the dimension candidate display unit 115 displays the dimension drawing candidate 35 on the display device 102 in accordance with the information about the determined drawing position of the dimension line and the display position of the dimension value. . At this point, the input device 101
When an instruction to determine the dimension drawing is input from, the dimension drawing unit 116 displays the decided dimension 36 on the display device 102 as shown in FIG.
Register in 03.

【0024】位置を合わせる寸法が存在しない場合は、
図形からの距離を一定の間隔にしたり、寸法から引き出
した寸法は必ず等間隔で作画される等の設計ルールも考
えられる。また、設計ルールに従うかどうかを容易に切
り換えられる機能を設けることも考えられる。
If there is no dimension to align,
Design rules are conceivable in which the distance from the figure is set at a constant interval, or the dimension drawn from the dimension is always drawn at equal intervals. In addition, it may be possible to provide a function for easily switching whether or not to comply with the design rule.

【0025】図2と図3は、新たに寸法を作画する場合
の例を示しているが、既に作画している寸法を移動する
場合等にも、同様に候補を表示することができる。
Although FIGS. 2 and 3 show an example of a case where a new dimension is drawn, the candidates can be displayed in the same manner when the already drawn dimension is moved.

【0026】図4は、JIS規格で規定されている寸法
値の表示位置を示したものである。40は、図形で、4
1と42は、図形から引き出された寸法の寸法補助線、
43は寸法線であり、440から449は、10通りあ
る寸法値の表示位置を示したものである。表示位置の選
択法として、カーソルの位置から自動的に決定する方法
の他に、キーボードの矢印キーやマウスのボタン等に切
り換え機能を付加する方法もある。また、補助線同士の
間隔が狭く、寸法値が表示できない場合は、440、4
41、448、及び449の中から選択される。
FIG. 4 shows the display positions of the dimensional values defined by the JIS standard. 40 is a figure and 4
1 and 42 are extension lines of the dimension drawn from the figure,
Reference numeral 43 is a dimension line, and reference numerals 440 to 449 show display positions of ten dimension values. As a method of selecting the display position, in addition to the method of automatically determining from the position of the cursor, there is also a method of adding a switching function to an arrow key of a keyboard or a button of a mouse. If the distance between the auxiliary lines is narrow and the dimension value cannot be displayed, 440, 4
41, 448, and 449.

【0027】図5の(a)は、上記図2と図3の実施例
に使用することのできる寸法テーブルを示す図、同図
(b)及び(c)は、この寸法テーブルにより表示され
る画面の一例を示す図である。
FIG. 5A is a diagram showing a size table that can be used in the embodiments of FIGS. 2 and 3, and FIGS. 5B and 5C are displayed by this size table. It is a figure which shows an example of a screen.

【0028】図2と図3の例のように、既に作画してい
る寸法の中から、作画する寸法と同じ傾きをもち、カー
ソルの位置に近い寸法データを検索するためには、図5
(a)のテーブル50に示すように、寸法線の傾きを検
索キーとするテーブルを作成して寸法データを管理する
方法がある。例えば、図5の(b)の図形51から引き
出されている寸法53のデータを登録する場合、寸法の
傾きは0度であるので、座標軸58の傾きを0度とした
ときの原点から寸法線までのY軸方向の距離を求めて、
これを寸法の識別情報と共にテーブルに登録する。この
場合、傾き0度、位置10、寸法53として登録する。
次に、寸法52を登録する場合、寸法の傾きは30度で
あるので、同図(c)に示すように、座標軸58の傾き
を30度としたときの原点から寸法線までのY軸方向の
距離を求めて、寸法の識別情報と共にテーブルに登録す
る。この場合、傾き30度、位置30、寸法52として
登録する。残りの54から57の寸法についても同様に
して登録すると、50に示すようなテーブルになる。こ
のテーブルを用いて、作画する寸法と同じ傾きをもち、
カーソルの位置に近い寸法データを検索するときは、登
録時と同じ手順で傾きとカーソル位置までのY軸方向の
距離を求めて検索すればよい。
As shown in the examples of FIGS. 2 and 3, in order to retrieve the dimension data having the same inclination as the dimension to be drawn and close to the cursor position from the dimensions already drawn, FIG.
As shown in the table 50 of (a), there is a method of managing a dimensional data by creating a table using the inclination of the dimensional line as a search key. For example, when registering the data of the dimension 53 drawn from the figure 51 of FIG. 5B, the inclination of the dimension is 0 degree, so the dimension line from the origin when the inclination of the coordinate axis 58 is 0 degree. The distance in the Y-axis direction to
This is registered in the table together with the size identification information. In this case, the inclination is 0 degrees, the position is 10, and the dimension 53 is registered.
Next, when the dimension 52 is registered, since the inclination of the dimension is 30 degrees, the Y axis direction from the origin to the dimension line when the inclination of the coordinate axis 58 is 30 degrees as shown in FIG. Is calculated and registered in the table together with the dimension identification information. In this case, the inclination is 30 degrees, the position 30 and the dimension 52 are registered. If the remaining 54 to 57 dimensions are similarly registered, a table as shown in 50 is obtained. With this table, it has the same inclination as the dimensions to be drawn,
When retrieving the dimension data close to the cursor position, the inclination and the distance in the Y-axis direction to the cursor position may be obtained and retrieved in the same procedure as the registration.

【0029】図6は、以上説明してきた実施例の処理フ
ローを示す図である。寸法の作画対象位置(寸法を測定
する位置)が入力(ステップ601)されると、現在の
カーソル位置を検知し(ステップ602)、その位置
に、作画される寸法の仮想的な形状を生成する(ステッ
プ603)。その形状をもとに、寸法の作画位置の決定
に影響を与える可能性のある既存の(既作画済みの)寸
法データまたは図形データを検索するための領域を生成
し(ステップ604)、検索する(ステップ605)。
検索領域内に既存のデータまたは図形データが存在する
かどうかを判定し(ステップ606)、もし、存在しな
い場合、現在のカーソル位置から寸法線の作画位置(ス
テップ607)と寸法値の表示位置(ステップ608)
を決定する。ステップ606で、既存の寸法データまた
は図形データが1以上存在する場合、設計ルールデータ
を検索し(ステップ609)、設計ルールに適合する図
面データや寸法データがあるかどうか判定する(ステッ
プ610)。この場合ステップ609及び610では、
登録してある全ての設計ルールの1つ1つを順に取り上
げて、各ルールに適合する既存の図面データまたは寸法
データが、ステップ606で検索されたデータ中に存在
するかどうかを判断するものである。このため、各設計
ルールと寸法データ及び図面データにそれぞれ識別番号
を付けた上、設計ルールとそれが使われている(それに
適合する)図面及び寸法データとを対応させる対応テー
ブルを設けておく必要がある。また、ステップ609及
び610で行なう設計ルールの検索・判断の順序に、予
め優先順位を付けておくことができる。
FIG. 6 is a diagram showing a processing flow of the embodiment described above. When the size drawing target position (position for measuring the size) is input (step 601), the current cursor position is detected (step 602), and a virtual shape of the size to be drawn is generated at that position. (Step 603). Based on the shape, an area for searching existing (already drawn) dimension data or graphic data that may affect the determination of the dimension drawing position is generated (step 604) and searched. (Step 605).
It is determined whether or not there is existing data or graphic data in the search area (step 606). If not, if not, the drawing position of the dimension line from the current cursor position (step 607) and the display position of the dimension value ( (Step 608)
To decide. In step 606, when there is one or more existing dimension data or graphic data, the design rule data is searched (step 609), and it is determined whether or not there is drawing data or dimension data conforming to the design rule (step 610). In this case, in steps 609 and 610,
Each of the registered design rules is taken up one by one, and it is judged whether or not the existing drawing data or dimension data conforming to each rule exists in the data searched in step 606. is there. For this reason, it is necessary to attach an identification number to each design rule, dimension data, and drawing data, and to provide a correspondence table that associates the design rule with the drawing and dimension data in which it is used (that is compatible with it). There is. Further, the order of search / judgment of the design rules performed in steps 609 and 610 can be prioritized in advance.

【0030】ステップ610で、適合する図面・寸法デ
ータが存在しない場合は現在のカーソル位置から寸法線
の作画位置と寸法値の表示位置を決定するが、ステップ
610で、適合する図面・寸法データが存在する場合、
その設計ルールに従い、寸法線の作画位置(ステップ6
11)と寸法値の表示位置(ステップ612)を自動的
に決定する。
In step 610, if there is no suitable drawing / dimension data, the drawing position of the dimension line and the display position of the dimension value are determined from the current cursor position. If there,
According to the design rule, the drawing position of the dimension line (Step 6
11) and the display position of the dimension value (step 612) are automatically determined.

【0031】このようにして決定された位置に寸法の候
補を表示する(ステップ613)。その後、寸法の作画
位置を確定するための入力を問い合わせ(ステップ61
4)、入力があるまで(ステップ615)、カーソル位
置の検知以降の処理を繰り返し、入力があったら、寸法
を作画してデータを登録する(ステップ616)。
The dimension candidates are displayed at the position thus determined (step 613). After that, inquire about the input for determining the dimension drawing position (step 61).
4) Until the input is made (step 615), the processes after the detection of the cursor position are repeated. When the input is made, the dimension is drawn and the data is registered (step 616).

【0032】[0032]

【発明の効果】以上説明したように、本発明によれば、
寸法作画操作時に、既に作画している他の(既存の)寸
法線や作画しようとする寸法線と、マウス等の入力装置
からの入力とに応じて、最適な寸法線の作画位置及び最
適な寸法値の表示位置を、ある設計ルールに基づき自動
的に決定するようにしたので、操作者は何も設計ルール
を意識せずに、この設計ルールに基づいて(ある一定の
基準に従って)整列した最適な寸法を、画面上でその寸
法の作画候補表示を確認しながら作画することができ
る。これによって、寸法を迅速且つ、簡単に作画するこ
とができる。また、寸法作画後に、移動や削除等の修正
操作を極力少なくすることができ寸法作画の操作性を向
上させることができるという効果が得られる。
As described above, according to the present invention,
At the time of dimension drawing operation, depending on the other (existing) dimension lines that have already been drawn or the dimension line to be drawn and the input from the input device such as the mouse, the optimum position and the optimum drawing position of the dimension line Since the display position of the dimension value is automatically determined based on a certain design rule, the operator does not have to be aware of the design rule and arranges based on this design rule (according to a certain standard). The optimum size can be drawn while confirming the drawing candidate display of the size on the screen. This allows the dimensions to be drawn quickly and easily. Further, after the dimension drawing, the correction operation such as movement or deletion can be minimized and the operability of the dimension drawing can be improved.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例によるCADシステムの寸法
作画処理部の構成例を示す図である。
FIG. 1 is a diagram showing a configuration example of a dimension drawing processing unit of a CAD system according to an embodiment of the present invention.

【図2】カーソルの動きに応じて寸法線の作画位置と寸
法値の表示位置の候補を表示する一実施例を示す図であ
る。
FIG. 2 is a diagram showing an example of displaying candidates for a drawing position of a dimension line and a display position of a dimension value according to the movement of a cursor.

【図3】作画する寸法が傾いている場合に、カーソルの
動きに応じて寸法線の作画位置と寸法値の表示位置の候
補を表示する一実施例を示す図である。
FIG. 3 is a diagram illustrating an example in which candidates for a drawing position of a dimension line and a display position of a dimension value are displayed according to the movement of a cursor when the dimension for drawing is tilted.

【図4】JIS規格に準拠した寸法値の表示位置を示す
図である。
FIG. 4 is a diagram showing display positions of dimensional values in accordance with JIS standards.

【図5】既に作画している寸法データを管理するテーブ
ルの一例とこのテーブルのデータ値に対応する画面の表
示例を示す図である。
FIG. 5 is a diagram showing an example of a table for managing dimension data that has already been drawn, and a display example of a screen corresponding to data values of this table.

【図6】本発明の一実施例による寸法作画の処理フロー
を示す図である。
FIG. 6 is a diagram showing a processing flow of dimension drawing according to an embodiment of the present invention.

【符号の説明】[Explanation of symbols]

20 図形 21 カーソル 22 図形 23 寸法 24 仮想的な寸法線の位置 25 データ検索領域 26 寸法の作画候補 27 作画した寸法 30 図形 31 カーソル 32 寸法 33 仮想的な寸法線の位置 34 データ検索領域 35 寸法の作画候補 36 作画した寸法 201,202,203,204,205,206,2
07,208 図形の構成要素 231,232 寸法補助線 233 寸法線 234 寸法値 241,242 仮想的な寸法線の端点 243,244 仮想的な寸法線の補助線 301,302,303,304,305,306,3
07,308 図形の構成要素 331,332 仮想的な寸法線の端点
20 Figure 21 Cursor 22 Figure 23 Dimension 24 Position of Virtual Dimension Line 25 Data Search Area 26 Candidate Drawing Dimension 27 Dimension Created 30 Figure 31 Cursor 32 Dimension 33 Position of Virtual Dimension Line 34 Data Search Area 35 Dimension Drawing candidate 36 Drawing size 201,202,203,204,205,206,2
07,208 Graphic component 231,232 Dimension auxiliary line 233 Dimension line 234 Dimension value 241,242 Virtual dimension line end point 243,244 Virtual dimension line auxiliary line 301,302,303,304,305, 306,3
07,308 Graphic components 331,332 End points of virtual dimension lines

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 図形を作画する手段と、作画した図形に
寸法線及び寸法値を作画する手段とを有するCADシス
テムにおいて、既に作画している他の寸法線及びマウス
等の入力装置からの入力に応じて最適な寸法線の作画位
置をある設計ルールに基づき自動的に決定する手段と、
寸法作画時に、入力装置からの入力に応じて、逐次、最
適な寸法線の作画候補を画面に表示し、それに基づき寸
法の作画操作を行なう手段とを備えたことを特徴とする
CADシステムにおける寸法作画方法。
1. A CAD system having means for drawing a figure and means for drawing a dimension line and a dimension value on the drawn figure, and another dimension line already drawn and input from an input device such as a mouse. A means for automatically determining the optimum drawing position of the dimension line based on a certain design rule,
A dimension in a CAD system characterized by further comprising means for sequentially displaying an optimal dimension line drawing candidate on a screen in response to an input from an input device at the time of dimension drawing and performing a dimension drawing operation based on the screen. How to draw.
【請求項2】 作画しようとする寸法線及びマウス等の
入力装置からの入力に応じて最適な寸法値の表示位置を
ある設計ルールに基づき自動的に決定する手段と、寸法
作画時に、入力装置からの入力に応じて、逐次、最適な
寸法値の表示位置の作画候補を画面に表示し、それに基
づき寸法の作画操作を行なう手段とを備えたことを特徴
とするCADシステムにおける寸法作画方法。
2. A means for automatically determining a display position of an optimum dimension value based on a design rule in accordance with a dimension line to be drawn and an input from an input device such as a mouse, and an input device at the time of dimension drawing. A dimension drawing method in a CAD system, comprising means for sequentially displaying a drawing candidate of a display position of an optimum dimension value on a screen in accordance with an input from, and performing a drawing operation of a dimension based on the drawing candidate.
JP6092224A 1994-04-28 1994-04-28 Dimension drawing method in CAD system Pending JPH07296023A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6092224A JPH07296023A (en) 1994-04-28 1994-04-28 Dimension drawing method in CAD system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6092224A JPH07296023A (en) 1994-04-28 1994-04-28 Dimension drawing method in CAD system

Publications (1)

Publication Number Publication Date
JPH07296023A true JPH07296023A (en) 1995-11-10

Family

ID=14048477

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6092224A Pending JPH07296023A (en) 1994-04-28 1994-04-28 Dimension drawing method in CAD system

Country Status (1)

Country Link
JP (1) JPH07296023A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010169584A (en) * 2009-01-23 2010-08-05 Keyence Corp Image measuring device and computer program
JP2012118829A (en) * 2010-12-02 2012-06-21 Babcock Hitachi Kk Drawing creation support system
JP2019128843A (en) * 2018-01-25 2019-08-01 三菱日立パワーシステムズ株式会社 Drawing support system, drawing support method, and drawing support program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010169584A (en) * 2009-01-23 2010-08-05 Keyence Corp Image measuring device and computer program
JP2012118829A (en) * 2010-12-02 2012-06-21 Babcock Hitachi Kk Drawing creation support system
JP2019128843A (en) * 2018-01-25 2019-08-01 三菱日立パワーシステムズ株式会社 Drawing support system, drawing support method, and drawing support program

Similar Documents

Publication Publication Date Title
JP5326859B2 (en) Image processing device
US5483626A (en) Method and apparatus for transforming graphics
JP2932193B2 (en) Graphic processing unit
JPH07296023A (en) Dimension drawing method in CAD system
JP3454906B2 (en) Navigation display method and apparatus
JP2656484B2 (en) Drawing management method and apparatus
JP3058630B2 (en) Graphic processing unit
US20020049757A1 (en) Apparatus for processing data of overlapped facilities by means of virtual facility record and method therefor
JP4386527B2 (en) Drawing support method and medium storing CAD program
JP3524143B2 (en) Graphic processing method and apparatus
JP3000749B2 (en) Character editing device
JP2593975B2 (en) Character string extraction method and character string extraction device in electronic typesetting device
JP2002099924A (en) Graphic image drawing apparatus
JP2977360B2 (en) Ruled line selection method
JP3053108B2 (en) Drawing management device
JP2928513B2 (en) Structure and search method of drawing data
JP3312233B2 (en) Drawing management device
JPH1069520A (en) Character recognition method and recording medium recording program
JPH0816805A (en) Graphic creation device
JP2002063545A (en) Method and device for supporting confirmation of map symbol recognition result, and recording medium
JP2536948B2 (en) Three-point specified circular arc detection method and device
JPH07105245A (en) Cad system
JP3591892B2 (en) Character string display method and character string display device
JPH10214273A (en) Offset dimension display device
JP2000155848A (en) Graphic processor, method therefor and program recording medium