JP3147055B2 - Graphic retrieval method, graphic retrieval apparatus, and recording medium - Google Patents

Graphic retrieval method, graphic retrieval apparatus, and recording medium

Info

Publication number
JP3147055B2
JP3147055B2 JP30065797A JP30065797A JP3147055B2 JP 3147055 B2 JP3147055 B2 JP 3147055B2 JP 30065797 A JP30065797 A JP 30065797A JP 30065797 A JP30065797 A JP 30065797A JP 3147055 B2 JP3147055 B2 JP 3147055B2
Authority
JP
Japan
Prior art keywords
graphic
storage unit
graphic element
search
stored
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
JP30065797A
Other languages
Japanese (ja)
Other versions
JPH11134513A (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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP30065797A priority Critical patent/JP3147055B2/en
Publication of JPH11134513A publication Critical patent/JPH11134513A/en
Application granted granted Critical
Publication of JP3147055B2 publication Critical patent/JP3147055B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、CAD/CAMな
どの装置で使用される図形の検索方法、図形検索装置及
び記録媒体に関し、特に検索図形の図形要素に方向性が
ある場合であっても、あるいは各図形要素の配置に誤差
がある場合であっても図形を検索することができるよう
にした図形の検索方法、図形検索装置及び記録媒体に関
するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graphic search method, a graphic search apparatus, and a recording medium used in a CAD / CAM apparatus or the like. Also, the present invention relates to a graphic search method, a graphic search device, and a recording medium that allow a user to search for a graphic even when there is an error in the arrangement of each graphic element.

【0002】[0002]

【従来の技術】ディスプレイ画面上に任意の図形や文字
などの表示要素を配置して画像を作成する画像作成装置
が様々な分野において利用されている。例えば、プリン
ト配線作成データなどの図形データを作成する機能を備
えたCAD/CAMやそれに類する装置では、様々な図
形が画面上に配置される。各図形は直線や円などの図形
要素から構成され、図形要素は線幅、長さ、半径、傾
き、さらに色などの属性をもっている。
2. Description of the Related Art Image forming apparatuses for forming an image by arranging display elements such as arbitrary figures and characters on a display screen are used in various fields. For example, in a CAD / CAM or similar device having a function of creating graphic data such as print wiring creation data, various graphics are arranged on a screen. Each figure is composed of graphic elements such as straight lines and circles, and the graphic elements have attributes such as line width, length, radius, inclination, and color.

【0003】具体的に図11を参照しながら説明する。
図形301から図形304がディスプレイ装置や印刷装
置などの出力装置に表示されているとする。図形301
と図形302は図形要素311,312,313から構
成され、図形303は図形要素312,313,314
から構成され、図形304は図形要素312,313,
315から構成されている。ここで例えば、図形要素3
11は、線幅0.2mm、長さ2mm、傾き0、左から右向
き、黒色の属性をもつ直線であるとする。図形要素31
2は、半径0.2mmの黒色の属性をもつ円であるとする。
図形要素313は、半径0.4mmの黒色の属性をもつ円で
あるとする。図形要素314は、線幅0.2mm、長さ2m
m、傾き0、右から左向き、黒色の属性をもつ直線であ
るとする。図形要素315は、線幅0.2mm、長さ2.1mm、
傾き0、左から右向き、黒色の属性をもつ直線であると
する。
A specific description will be given with reference to FIG.
Assume that graphics 301 to 304 are displayed on an output device such as a display device or a printing device. Figure 301
And the graphic 302 are composed of graphic elements 311, 312 and 313, and the graphic 303 is graphic elements 312, 313 and 314.
The graphic 304 is composed of graphic elements 312, 313,
315. Here, for example, graphic element 3
Reference numeral 11 denotes a straight line having a line width of 0.2 mm, a length of 2 mm, a slope of 0, a leftward direction, and a black attribute. Graphic element 31
2 is assumed to be a circle having a black attribute with a radius of 0.2 mm.
It is assumed that the graphic element 313 is a circle having a black attribute with a radius of 0.4 mm. The graphic element 314 has a line width of 0.2 mm and a length of 2 m
It is assumed that the straight line has an attribute of m, a slope of 0, a rightward to leftward direction, and a black attribute. The graphic element 315 has a line width of 0.2 mm, a length of 2.1 mm,
It is assumed that the straight line has a slope of 0, a leftward direction to the right, and a black attribute.

【0004】ここで、図形要素312を配置誤差の基準
として、図形301と一致する図形を検索する場合につ
いて説明する。配置誤差の基準とは、図形の一致を確認
する際に、各図形要素の配置が一致していることを確認
するための基準座標のことである。図形要素312を配
置誤差の基準とする場合は、図形要素312の円中心を
配置誤差の基準とする。この基準点から各直線である図
形要素311の始点と終点までの配置と、円である図形
要素313の中心点までの配置が調べられる。
Here, a description will be given of a case in which a graphic matching the graphic 301 is searched using the graphic element 312 as a reference of the arrangement error. The arrangement error reference is a reference coordinate for confirming that the arrangement of each graphic element coincides when confirming the coincidence of the figures. When the graphic element 312 is used as a reference for the placement error, the center of the circle of the graphic element 312 is used as the reference for the placement error. The arrangement from the reference point to the start point and end point of the graphic element 311 as a straight line and the arrangement from the reference point to the center point of the graphic element 313 as a circle are examined.

【0005】すると図形302はその図形要素311,
312,313が、図形301の全ての図形要素31
1,312,313と一致するため、図形301と一致
する図形として検索される。しかし、図形303は図形
301と同一図形として検索されない。これは図形30
3の図形要素314の向きが図形301の図形要素31
1の向きと異なるからである。また図形304も図形3
01と同一図形として検索されない。これは図形304
の図形要素315の長さが図形301の図形要素311
の長さと異なること、さらに図形304の図形要素31
2を基準とした図形要素315の配置と図形301の図
形要素312を基準とした図形要素311の配置が異な
ることの2点の理由からである。
[0005] Then, the graphic 302 is transformed into its graphic elements 311, 31.
312 and 313 are all graphic elements 31 of the graphic 301
Since they match 1, 312, and 313, they are searched as figures matching the figure 301. However, the graphic 303 is not retrieved as the same graphic as the graphic 301. This is figure 30
The orientation of the graphic element 314 of FIG.
This is because it is different from the direction of 1. In addition, FIG.
It is not retrieved as the same figure as 01. This is figure 304
The graphic element 311 of the graphic 301 has the length of the graphic element 315
, And the graphic element 31 of the graphic 304
2 is different from the arrangement of the graphic element 315 based on the graphic element 312 of the graphic 301.

【0006】要するに、図形303及び図形304が図
形301と一致する図形として検索されないのは、図形
の各属性である図形要素を比較し、全ての属性と配置が
一致した図形のみを、一致する図形としているためであ
る。ここでいう配置が一致した図形とは、直線があるこ
と及び直線の始点と終点とが配置誤差の基準点から指定
された誤差範囲内にあることの二つの条件を満たしてい
ることである。したがって、図形304の図形要素31
5の長さが図形301の図形要素311の長さと異なる
ことは、配置が異なるということになる。
[0008] In short, the reason why the graphic 303 and the graphic 304 are not searched as the graphic matching the graphic 301 is that the graphic elements which are the respective attributes of the graphic are compared, and only the graphic whose arrangement is consistent with all the attributes is determined. It is because it is. The figure whose arrangement is coincident here means that the two conditions are satisfied that a straight line exists and that the start point and the end point of the straight line are within an error range specified from a reference point of the arrangement error. Therefore, the graphic element 31 of the graphic 304
The fact that the length of 5 is different from the length of the graphic element 311 of the graphic 301 means that the arrangement is different.

【0007】つぎに、検索した図形を置き換える場合に
ついて説明する。図形の置き換えは図形によって一意に
決まる基準点同士を重畳させることによって行われる。
例えば、円の場合は、基準点が円の中心点であるから、
円の中心点同士を重畳させるようにして置き換えられ
る。直線の場合は、基準点が心線であるから、心線を重
畳させるようにようにして置き換えられる。矩形の場合
は、基準点が中心点であるから、円と同様に中心点同士
を重畳させることにより置き換えられる。
Next, the case of replacing the retrieved figure will be described. The replacement of a figure is performed by superimposing reference points uniquely determined by the figure.
For example, in the case of a circle, the reference point is the center point of the circle,
The center points of the circles are replaced so as to overlap each other. In the case of a straight line, since the reference point is a core line, it is replaced so that the core line is superimposed. In the case of a rectangle, since the reference point is the center point, it is replaced by overlapping the center points like a circle.

【0008】具体的に図12を参照しながら説明する。
図形401は基準点63の図形要素411から構成さ
れ、図形402は基準点63の図形要素412から構成
されているとする。そして図形401を図形402に置
き換えると、図形401は基準点63の図形要素412
から構成される図形403になる。
A specific description will be given with reference to FIG.
It is assumed that the graphic 401 is composed of the graphic element 411 of the reference point 63, and the graphic 402 is composed of the graphic element 412 of the reference point 63. Then, when the graphic 401 is replaced with the graphic 402, the graphic 401 becomes the graphic element 412 of the reference point 63.
The figure 403 is composed of

【0009】また、図13に示す図形404は基準点6
3の図形要素413から構成され、図形405は基準点
63の図形要素414から構成されているとする。そし
て図形404を図形405に置き換えると、図形404
は基準点63の図形要素414から構成される図形40
6になる。
FIG. 404 shown in FIG.
3, and the figure 405 is composed of the figure element 414 of the reference point 63. When the graphic 404 is replaced with the graphic 405, the graphic 404
Is the graphic 40 composed of the graphic element 414 of the reference point 63
It becomes 6.

【0010】なお、図形の検索や並び替えを自動的に行
えるようにしたCAD/CAM装置が特開平2−267
674号公報に開示され、同じ属性をもった表示要素を
容易に認識することのできる画像作成装置が特開平6−
176123号公報に開示されている。
Japanese Patent Laid-Open No. 2-267 discloses a CAD / CAM apparatus capable of automatically searching and rearranging figures.
Japanese Unexamined Patent Publication No. Hei 6 (1994) -674 discloses an image forming apparatus which can easily recognize display elements having the same attribute.
No. 176123.

【0011】[0011]

【発明が解決しようとする課題】従来の図形の検索方法
では、データに重きを置いた検索のため、直線や円弧な
どのように始点と終点をもつ方向性をもつ図形について
は、図形要素の始点から終点への方向が異なっていて
も、傾きが同一の図形であれば、一致する図形とされて
しまう。しかし、外観上に重きを置き、図形要素の始点
から終点への方向が異なっていても同一の図形として検
索したい場合がある。また、従来の図形の検索方法は、
配置の誤差がない図形を一致するものとしており、配置
の誤差を含む図形の一致については考慮されていない。
しかし、図形要素の配置に誤差をもつ図形の検索をした
い場合がある。
In the conventional method for retrieving a graphic, since a search is performed with emphasis on data, for a graphic having a direction having a start point and an end point, such as a straight line or an arc, a graphic element is searched. Even if the directions from the start point to the end point are different, if the figures have the same inclination, they will be regarded as matching figures. However, there is a case where it is desired to place a weight on the appearance and to search for the same figure even if the directions from the start point to the end point of the graphic element are different. Also, the conventional method of searching for shapes is
It is assumed that figures having no placement error match, and that matching of figures containing placement errors is not considered.
However, there are cases where it is desired to search for a graphic having an error in the arrangement of graphic elements.

【0012】本発明は上記課題を解決するためになされ
たものであり、検索図形の図形要素に方向性がある場合
であっても、あるいは各図形要素の配置に誤差がある場
合であっても図形を検索することができるようにした図
形の検索方法、図形検索装置及び記録媒体を提供するこ
とを目的とする。
The present invention has been made to solve the above-mentioned problem, and is applicable to a case where a graphic element of a search graphic has directionality or a case where there is an error in the arrangement of each graphic element. It is an object of the present invention to provide a graphic search method, a graphic search device, and a recording medium that allow a graphic to be searched.

【0013】[0013]

【課題を解決するための手段】本発明の図形の検索方法
は、(1)入力装置によって指定された検索元図形と配
置誤差とを記憶部に記憶する工程と、(2)記憶された
検索元図形を図形要素ごとに分解し、検索順序を決める
工程と、(3)前記図形要素と同じ種類の図形要素を、
前記記憶部に記憶されている全配置図形から前記検索順
序に従って検索する工程と、(4)図形要素が許容され
る図形配置の誤差内にあるかどうかを比較手段によって
比較する工程と、(5)検索元図形の全図形要素にそれ
ぞれ一致する図形要素があるかをどうかを前記比較手段
によって比較する工程と、(6)一致した図形の占有領
域の中心に、一致を示す印となる図形を追加して出力装
置に出力する工程と、を有し、(1)から(6)の順序
で行うことを特徴とするものである。
According to the present invention, there is provided a method for retrieving a graphic, comprising: (1) a step of storing a retrieval source graphic designated by an input device and an arrangement error in a storage unit; and (2) a stored retrieval. Decomposing the original graphic for each graphic element and determining a search order; and (3) a graphic element of the same type as the graphic element
(5) a step of performing a search from all the arrangement figures stored in the storage unit in accordance with the search order, and (4) a step of comparing whether or not the figure element is within an allowable figure arrangement error by a comparison unit; And (6) comparing by the comparing means whether or not there is a graphic element corresponding to all the graphic elements of the search source graphic; and (6) placing a graphic indicating a match at the center of the occupied area of the matched graphic. And outputting to an output device, and performing the steps in the order of (1) to (6).

【0014】前記本発明の検索方法によれば、検索元図
形の図形要素ごとに、図形要素と同じ種類の図形が検索
され、検索元図形の全図形要素にそれぞれ一致する図形
要素があるかどうかが比較されるため、方向性をもつ図
形であっても、データ上の始点から終点への方向が逆で
あっても同一の図形とされる。また図形要素が共用され
る図形配置の誤差内にあるかどうかが比較されるため、
図形要素の配置に誤差をもつ図形の検索をすることがで
きる。
According to the search method of the present invention, for each graphic element of the search source graphic, a graphic of the same type as the graphic element is searched, and whether or not there is a graphic element that matches each of the graphic elements of the search source graphic. Are compared, the figure is the same even if the figure has directionality, even if the direction from the start point to the end point on the data is reversed. Also, since it is compared whether the graphic element is within the error of the shared graphic arrangement,
It is possible to search for a graphic having an error in the arrangement of graphic elements.

【0015】本発明の詳細な図形の検索方法は、(1)
入力装置によって指定された検索元図形と配置誤差とを
記憶部に記憶する工程と、(2)記憶された検索元図形
の図形要素を、全配置図形の中で同じ図形の種類の少な
い順位に並べ替える工程と、(3)並べ替えの先頭にな
った図形要素をキー図形要素とし、そのキー図形要素と
同じ種類の図形要素を、前記記憶部に記憶されている全
配置図形から検索する工程と、(4)検索された図形要
素をキー図形要素と一致するかどうかを比較手段によっ
て比較する工程と、(5)一致した図形要素の配置をも
とに検索対象図形が配置されるべき占有領域を算出する
工程と、(6)占有領域内に含まれる図形要素を記憶部
に記憶されている全配置図形から探索し、取得する工程
と、(7)取得した図形要素を検索元図形の図形要素と
各属性ごとに比較し、さらにキー図形要素を基準にした
図形要素の配置と図形要素を基準にした図形要素の配置
との誤差と、前記記憶部に記憶されている配置誤差とを
比較手段によって比較する工程と、(8)前記工程で、
誤差範囲内であれば、取得図形要素を一致図形要素とし
て記憶部に記憶する工程と、(9)検索図形の図形要素
の全てが一致するかどうかを判定する工程と、(10)
前記(9)の工程で、検索図形の図形要素の全てが一致
すれば、前記記憶部に記憶している一致図形要素を一致
図形とし、一致図形の占有領域の中心に一致を示す印と
なる形状を追加し、記憶部に記憶する工程と、(11)
検索元図形の並べ替え順序に図形要素がある場合は、全
ての取得図形要素が比較されているかどうかを判定する
工程と、(12)前記(3)の工程で、同じ種類の図形
要素が検索されなければ、記憶部に一致図形が記憶され
ているかどうかを判定する工程と、(13)記憶部に一
致図形が一時記憶されていれば、その一致図形を出力装
置に強調表示する工程と、を有し、(1)から(13)
の順序で行うことを特徴とするものである。
The detailed figure retrieval method of the present invention is as follows: (1)
(2) storing the search source graphic and the placement error specified by the input device in the storage unit; Rearranging step and (3) searching for a graphic element of the same type as the key graphic element from all the arrangement graphics stored in the storage unit, using the graphic element at the head of the rearrangement as a key graphic element (4) comparing the retrieved graphic element with the key graphic element by the comparing means, and (5) occupation where the retrieval target graphic should be arranged based on the arrangement of the coincident graphic element. A step of calculating an area; (6) a step of searching for and obtaining a graphic element included in the occupied area from all arrangement figures stored in the storage unit; and (7) a step of searching for the obtained graphic element of the search source graphic. Comparing each figure element and each attribute Comparing the error between the arrangement of the graphic element based on the key graphic element and the arrangement of the graphic element based on the graphic element with the arrangement error stored in the storage unit by comparing means; 8) In the above step,
If it is within the error range, a step of storing the acquired graphic element as a matching graphic element in the storage unit; (9) a step of determining whether all graphic elements of the search graphic match each other; (10)
In the step (9), if all of the graphic elements of the search graphic match, the matching graphic element stored in the storage unit is determined to be a matching graphic, and a mark indicating the match is located at the center of the occupied area of the matching graphic. Adding a shape and storing the shape in the storage unit; (11)
If there is a graphic element in the sort order of the search source graphic, it is determined whether or not all acquired graphic elements have been compared, and (12) the same type of graphic element is searched in the step (3). If not, a step of determining whether or not the matching graphic is stored in the storage unit; and (13) a step of highlighting the matching graphic on the output device if the matching graphic is temporarily stored in the storage unit; (1) to (13)
In this order.

【0016】前記本発明の詳細な図形の検索方法によれ
ば、(4)工程において、検索された図形要素をキー図
形要素と一致するかどうかが比較され、一致しなけれ
ば、(3)工程に戻り、キー図形要素と同じ種類の図形
要素の有無が判定される。また(7)工程において、取
得した図形要素を検索元図形の図形要素と各属性ごとに
比較し、図形要素の配置が誤差外であれば、検索したい
図形ではないため、(11)工程へ移行する。さらに
(9)工程において、検索図形の図形要素の全てが一致
しないときも、検索したい図形ではないため、(11)
工程へ移行する。
According to the detailed graphic search method of the present invention, in the step (4), it is compared whether or not the searched graphic element matches the key graphic element. If not, the step (3) is performed. Then, it is determined whether there is a graphic element of the same type as the key graphic element. In the step (7), the obtained graphic element is compared with the graphic element of the search source graphic for each attribute. If the arrangement of the graphic element is out of error, the figure is not the graphic to be searched, and the process proceeds to the step (11). I do. Further, in the step (9), even when all the graphic elements of the search graphic do not match, it is not the graphic to be searched.
Move to process.

【0017】本発明の図形検索装置は、プログラム制御
により動作し、第1比較手段と第2比較手段とを備えた
データ処理装置を有する図形検索装置であって、前記第
1比較手段は、使用者によって出力装置で確認され、入
力装置から指示された検索元図形と、配置誤差の値が与
えられ、検索元図形記憶部から図形要素を取出し、図形
種類が一致する図形を全配置図形記憶部に記憶された図
形から検索し、図形種類が一致した図形要素の属性を検
索元図形の図形要素と比較し、配置誤差記憶部に記憶さ
れた配置誤差の値を参照し、検索された図形が配置誤差
の範囲内であるか否かの判定を行うものであり、前記第
2比較手段は、全ての検索元図形要素に一致する図形要
素を検索できた場合に、一致図形要素記憶部に記憶され
た一致図形要素を読み出し、一致を示す印となる図形を
追加配置し、一致図形として一致図形記憶部に記憶する
とともに、一致図形記憶部に記憶された一致図形を読み
出し、一致図形を出力装置に強調表示するものであるこ
とを特徴とするものである。
A graphic search device according to the present invention is a graphic search device which operates under program control and has a data processing device provided with a first comparing means and a second comparing means. The figure is checked by the user on the output device, given the search source figure specified by the input device, and the value of the placement error, the figure element is taken out from the search source figure storage unit, and the figure whose figure type matches the entire layout figure storage unit Is searched from the figure stored in the table, the attribute of the figure element whose figure type is matched is compared with the figure element of the search source figure, and by referring to the value of the placement error stored in the placement error storage unit, the searched figure is The second comparing means determines whether or not the figure element is within the range of the arrangement error. If the figure element matching all the search source figure elements can be searched, the second comparing means stores the figure element in the matched figure element storage unit. Matched shape element In addition, a figure serving as a mark indicating a match is additionally arranged and stored in the matched figure storage unit as a matched figure, and the matched figure stored in the matched figure storage unit is read out, and the matched figure is highlighted on the output device. It is characterized by being.

【0018】本発明の記録媒体は、(1)入力装置によ
って指定された検索元図形と配置誤差とを記憶部に記憶
する処理と、(2)記憶された検索元図形を図形要素ご
とに分解し、検索順序を決める処理と、(3)前記図形
要素と同じ種類の図形要素を、前記記憶部に記憶されて
いる全配置図形から前記検索順序に従って検索する処理
と、(4)図形要素が許容される図形配置の誤差内にあ
るかどうかを比較手段によって比較する処理と、(5)
検索元図形の全図形要素にそれぞれ一致する図形要素が
あるかをどうかを前記比較手段によって比較する処理
と、(6)一致した図形の占有領域の中心に、一致を示
す印となる図形を追加して出力装置に出力する処理と、
をコンピュータに実行させるためのプログラムを記録し
たことを特徴とするものである。
According to the recording medium of the present invention, there are provided: (1) a process of storing a search source graphic specified by an input device and an arrangement error in a storage unit; and (2) decomposition of the stored search source graphic for each graphic element. And (3) searching for graphic elements of the same type as the graphic elements from all the arrangement graphics stored in the storage unit in accordance with the search order. (5) comparing by a comparing means whether or not the error is within an allowable figure arrangement error;
A process for comparing whether there is a graphic element corresponding to each of the graphic elements of the search source graphic by the comparing means, and (6) adding a graphic serving as a mark indicating a match to the center of the occupied area of the matched graphic Output to the output device, and
In which a program for causing a computer to execute the program is recorded.

【0019】[0019]

【発明の実施の形態】以下、本発明の実施の形態を図1
から図10を参照しながら説明する。本発明を実施する
ための装置は、図1に示すように、キーボードやマウス
などの入力装置1と、プログラム制御により動作するデ
ータ処理装置2と、情報を記憶する記憶装置3と、ディ
スプレイ装置や印刷装置などの出力装置4を含むもので
ある。記憶装置3は、全配置図形記憶部21、配置誤差
記憶部22、検査元図形記憶部23、一致図形要素記憶
部24、一致図形記憶部25さらに置換図形記憶部26
を備えている。
FIG. 1 is a block diagram showing an embodiment of the present invention.
This will be described with reference to FIG. As shown in FIG. 1, an apparatus for implementing the present invention includes an input device 1 such as a keyboard and a mouse, a data processing device 2 that operates under program control, a storage device 3 for storing information, a display device, It includes an output device 4 such as a printing device. The storage device 3 includes an all-placed figure storage unit 21, a placement error storage unit 22, an inspection source figure storage unit 23, a matched figure element storage unit 24, a matched figure storage unit 25, and a replacement figure storage unit 26.
It has.

【0020】全配置図形記憶部21には、配置されてい
る直線、円、曲線などの図形の全てが予め記憶されてい
る。配置誤差記憶部22は、使用者が入力装置1から入
力した図形配置の誤差の値を記憶するものである。検査
元図形記憶部23は、使用者が出力装置4で確認し、入
力装置1で指示した図形を図形要素別に記憶するもので
ある。一致図形要素記憶部24には、検査元の図形要素
と一致した図形要素が記憶される。一致図形記憶部25
には、検索元図形と一致した図形が記憶される。置換図
形記憶部26には、基準点から任意のオフセットを施し
てある置き換え図形が予め記憶されている。
The all-placed figure storage unit 21 stores in advance all of the arranged figures such as straight lines, circles, and curves. The arrangement error storage unit 22 stores an error value of the graphic arrangement input by the user from the input device 1. The inspection source graphic storage unit 23 stores the graphic confirmed by the user on the output device 4 and specified by the input device 1 for each graphic element. The coincident graphic element storage unit 24 stores graphic elements that match the graphic element of the inspection source. Matching figure storage unit 25
Stores a graphic that matches the search source graphic. The replacement graphic storage unit 26 stores in advance a replacement graphic having an arbitrary offset from the reference point.

【0021】データ処理装置2は、図形を検索する場合
に動作する第1比較手段11及び第2比較手段12と、
図形を置換する場合に動作する置換手段13を備えてい
る。第1比較手段11には、使用者が出力装置4で確認
し、入力装置1から指示した検索元図形と、配置誤差の
値が与えられる。第1比較手段11は、検索元図形を図
形要素別に検索元図形記憶部23に記憶させ、また配置
誤差の値を配置誤差記憶部22に記憶させる。第1比較
手段11はさらに検索元図形記憶部23から図形要素を
取出し、図形種類が一致する図形を全配置図形記憶部2
1に記憶された図形から検索する。第1比較手段11は
つぎに図形種類が一致した図形要素の属性を検索元図形
の図形要素と比較し、配置誤差記憶部22に記憶した配
置誤差の値を参照し、検索された図形が配置誤差範囲内
であるか否かの判定を行う。図形要素が一致する場合
は、一致した図形要素が一致図形要素記憶部24に記憶
される。
The data processing device 2 includes a first comparing means 11 and a second comparing means 12 which operate when searching for a graphic,
A replacement means 13 is provided which operates when replacing a figure. The first comparison means 11 is provided with the search source graphic confirmed by the user on the output device 4 and instructed from the input device 1 and the value of the arrangement error. The first comparing means 11 causes the search source graphic storage unit 23 to store the search source graphic for each graphic element, and stores the arrangement error value in the arrangement error storage unit 22. The first comparing means 11 further retrieves a graphic element from the retrieval source graphic storage unit 23, and stores a graphic having the same graphic type as the entire arrangement graphic storage unit 2.
The search is performed from the figure stored in No. 1. Next, the first comparing means 11 compares the attribute of the graphic element whose graphic type matches with the graphic element of the search source graphic, refers to the value of the layout error stored in the layout error storage unit 22, and determines whether the searched graphic is a layout error. It is determined whether the value is within the range. If the graphic elements match, the matched graphic elements are stored in the matched graphic element storage unit 24.

【0022】第2比較手段12は、全ての検索元図形要
素に一致する図形要素を検索できた場合、一致図形要素
記憶部24に記憶された一致図形要素を読み出し、一致
を示す印となる図形を追加配置し、一致図形として一致
図形記憶部25に記憶するとともに、一致図形記憶部2
5に記憶された一致図形を読み出し、その一致図形を出
力装置4に強調表示するようにするものである。
The second comparing means 12 reads out the matching graphic element stored in the matching graphic element storage section 24 when a graphic element matching all of the search source graphic elements can be searched, and reads the graphic as a mark indicating a match. Are additionally arranged and stored in the matched figure storage unit 25 as a matched figure, and the matched figure storage unit 2
5 is read out, and the matching graphic is highlighted on the output device 4.

【0023】置換手段13は、使用者が出力装置4で確
認し、入力装置1から指示した基準点から任意にオフセ
ットしてある置換元図形を置換図形記憶部26に記憶す
るものである。さらに置換手段13は、一致図形記憶部
25に記憶してある一致した図形と一致を示す印となる
図形とを、置換図形記憶部26に記憶してある置換図形
の基準点とを重畳させ、置き換え配置する。
The replacement means 13 stores in the replacement graphic storage unit 26 a replacement source graphic which is confirmed by the user on the output device 4 and arbitrarily offset from the reference point designated by the input device 1. Further, the replacement unit 13 superimposes the matched figure stored in the matched figure storage unit 25 and the figure indicating the match with the reference point of the replacement figure stored in the replacement figure storage unit 26, Replace and place.

【0024】画像作成装置は以上のように構成し、つぎ
に図形の検索方法について、図2、図3及び図5から図
7を参照しながら説明する。
The image forming apparatus is configured as described above. Next, a method of retrieving a figure will be described with reference to FIGS. 2, 3, and 5 to 7.

【0025】まず、使用者が出力装置4で確認し、入力
装置1から指示した検索元図形301と配置誤差とが、
データ処理装置2の第1比較手段11に与えられる(ス
テップS1)。検索元図形301は図5に示すように図
形要素311,312,313からなるものとする。
First, the user confirms on the output device 4, and the search source graphic 301 and the arrangement error specified by the input device 1 are:
It is provided to the first comparing means 11 of the data processing device 2 (step S1). It is assumed that the search source graphic 301 is composed of graphic elements 311, 312 and 313 as shown in FIG.

【0026】例えば、図形要素311は、線幅が0.2m
m、長さが2mm、傾きが0、左から右向き、黒色の属性
をもつ直線とする。図形要素312は、半径が0.2mmの
黒色の属性をもつ円とする。図形要素313は、半径が
0.4mmで黒色の属性をもつ円とする。また、全配置図形
の中には、図形要素311が102個存在し、図形要素3
12が5個存在し、図形要素313が72個存在している
ものとする。
For example, the graphic element 311 has a line width of 0.2 m.
m, length 2 mm, slope 0, left to right, black line. The graphic element 312 is a circle having a black attribute with a radius of 0.2 mm. The graphic element 313 has a radius
The circle is 0.4mm and has a black attribute. In addition, 102 graphic elements 311 exist in all the layout graphics.
It is assumed that there are five 12 and 72 graphic elements 313.

【0027】このような検索元図形301と配置誤差が
与えられた第1比較手段11は、配置誤差を配置誤差記
憶部22に記憶させ、検索元図形301の図形要素31
2を全配置図形の中で同じ図形種類の少ない順に並べ替
える(ステップS2)。検索元図形301の各図形要素
312はこの並べ替え順序に従い、他の図形要素と比較
される。この並べ替えにより、並べ替えの先頭になった
図形要素をキー図形要素312とする。
The first comparing means 11 to which the search source graphic 301 and the layout error are given stores the layout error in the layout error storage unit 22, and stores the graphic element 31 of the search source graphic 301.
2 are rearranged in ascending order of the same figure type among all the arrangement figures (step S2). Each graphic element 312 of the search source graphic 301 is compared with other graphic elements according to the rearrangement order. As a result of this rearrangement, the graphic element that has become the head of the rearrangement is defined as a key graphic element 312.

【0028】キー図形要素312は全配置図形記憶部2
1に記憶されているキー図形要素312と同じ種類の図
形要素312Aが記憶されているかどうかが検索される
(ステップS3)。図形要素312Aが検索された場合
は、キー図形要素312が一致するかどうかが比較され
る(ステップS4)。ステップS4でキー図形要素31
2が一致しなければ、再度ステップS3に戻る。
The key figure element 312 is the whole arrangement figure storage unit 2
It is searched whether a graphic element 312A of the same type as the key graphic element 312 stored in No. 1 is stored (step S3). If the graphic element 312A has been searched, it is compared whether the key graphic element 312 matches (step S4). In step S4, the key graphic element 31
If 2 does not match, the process returns to step S3.

【0029】ステップS4で図形要素312Aがキー図
形要素312と一致すれば、一致した図形要素312A
の配置を元に、検索対象図形が配置されるべき占有領域
が算出される(ステップS5)。図形要素の占有してい
る領域のうち、個々の図形要素の領域の最大の領域を求
め、これを図5に示すように検索元図形301の占有領
域61とし、キー図形要素312を基準とした占有領域
61の配置が求められる。ここでは図5に示すように、
図形要素312の中心点を基準として、占有領域61は
Xプラス方向に0.7mm、Xマイナス方向に1.8mm、Yプラ
ス方向に0.4mm、Yマイナス方向に0.4mmに配置される矩
形領域となる。
If the graphic element 312A matches the key graphic element 312 in step S4, the matched graphic element 312A
Based on the arrangement, the occupied area in which the search target graphic is to be arranged is calculated (step S5). Among the areas occupied by the graphic elements, the largest area of the individual graphic element areas is obtained, and this is set as the occupied area 61 of the search source graphic 301 as shown in FIG. The arrangement of the occupation area 61 is required. Here, as shown in FIG.
With reference to the center point of the graphic element 312, the occupied area 61 is a rectangular area arranged at 0.7 mm in the X plus direction, 1.8 mm in the X minus direction, 0.4 mm in the Y plus direction, and 0.4 mm in the Y minus direction.

【0030】その後、図形要素312Aを基準とし、占
有領域61A内に含まれる図形要素311A,313A
を全配置図形記憶部21から探索し、取得する(ステッ
プS6)。そして図6に示すように、キー図形要素31
2と同じ種類の図形要素を検索した結果、同一種類の図
形を二つ検索できたときは、図形要素312A,312
Bは、キー図形要素312と同一図形である。図形要素
312Aを基準とした占有領域61Aに含まれる図形要
素を全配置図形記憶部21から探索し、取得すると、図
形要素311A,313Aから構成される図形601が
得られる。図形要素312Bの場合、図形要素312B
を基準とした占有領域61Bから図形要素611,61
2から構成される図形602が得られる。
Thereafter, based on the graphic element 312A, the graphic elements 311A and 313A included in the occupied area 61A.
Is searched and acquired from the entire arrangement figure storage unit 21 (step S6). Then, as shown in FIG.
As a result of searching for graphic elements of the same type as the two, if two graphics of the same type can be searched, the graphic elements 312A and 312
B is the same graphic as the key graphic element 312. When a graphic element included in the occupied area 61A based on the graphic element 312A is searched from the all-placed graphic storage unit 21 and acquired, a graphic 601 including the graphic elements 311A and 313A is obtained. In the case of the graphic element 312B, the graphic element 312B
From the occupied area 61B based on the
2 is obtained.

【0031】そして、取得した図形要素313Aを検索
元図形301の図形要素313と各属性ごとに比較し、
さらにキー図形要素312を基準にした図形要素313
の配置と図形要素312Aを基準にした図形要素313
Aの配置との配置誤差と、配置誤差記憶部22に記憶さ
れている配置誤差とを比較する(ステップS7)。キー
図形要素312を基準とした検査元図形要素313の配
置と図形要素312Aを基準とした取得図形313Aの
配置との配置誤差が、配置誤差記憶部22に記憶されて
いる配置誤差より小さければ誤差範囲内とし、大きけれ
ば誤差範囲外とする。誤差範囲外であれば、取得した図
形要素は検索対象外であるため、次の取得した図形要素
の比較を行う(ステップS11)。誤差範囲内であれ
ば、取得図形要素313Aを一致図形要素として一致図
形要素記憶部24に記憶される(ステップS8)。
Then, the obtained graphic element 313A is compared with the graphic element 313 of the search source graphic 301 for each attribute.
Further, a graphic element 313 based on the key graphic element 312
And the graphic element 313 based on the graphic element 312A
The arrangement error with respect to the arrangement of A is compared with the arrangement error stored in the arrangement error storage unit 22 (step S7). If the arrangement error between the arrangement of the inspection source graphic element 313 based on the key graphic element 312 and the arrangement of the acquired graphic 313A based on the graphic element 312A is smaller than the arrangement error stored in the arrangement error storage unit 22, an error may occur. Within the range, if it is larger, it is outside the error range. If it is out of the error range, the acquired graphic element is out of the search target, and the next acquired graphic element is compared (step S11). If it is within the error range, the acquired graphic element 313A is stored in the coincident graphic element storage unit 24 as a coincident graphic element (step S8).

【0032】このようにして、検索図形の図形要素の全
てが一致するかどうか判定される(ステップS9)。ス
テップS9において、検索図形の図形要素の全てが一致
すれば、検査元図形301の並べ替え順序のつぎの図形
要素311が、つぎの一致比較の検査元図形の図形要素
とされる。
In this way, it is determined whether or not all of the graphic elements of the search graphic match (step S9). In step S9, if all the graphic elements of the search graphic match, the next graphic element 311 in the sorting order of the inspection source graphic 301 is set as the graphic element of the next inspection comparison original comparison.

【0033】検査元図形301の並べ替え順序のつぎの
図形要素がない場合は、検査元図形301と取得図形6
01が一致したとし、一致図形要素記憶部22に記憶し
てある一致図形要素を一致図形とし、さらに一致図形の
占有領域の中心に一致を示す印となる形状を追加し、一
致図形記憶部23に記憶する(ステップS10)。
If there is no graphic element next to the sort order of the inspection source graphic 301, the inspection source graphic 301 and the acquired graphic 6
01 is matched, the matching graphic element stored in the matching graphic element storage unit 22 is set as a matching graphic, and a shape serving as a mark indicating a match is added to the center of the occupied area of the matching graphic element. (Step S10).

【0034】検索元図形301の並べ替え順序につぎの
図形要素がある場合は、全ての取得図形要素が比較され
ているかどうかが判定される(ステップS11)。ステ
ップS9において、検索図形の図形要素の全てが一致し
ないときもステップS11へ移行する。全ての取得図形
要素の比較がされれば終了し、ステップS3へ戻り、終
了していなければステップS6へ戻り、終了するまで、
取得図形要素と検索元図形の比較を行う。
If there is a next graphic element in the rearrangement order of the search source graphic 301, it is determined whether or not all the obtained graphic elements have been compared (step S11). If it is determined in step S9 that all of the graphic elements of the search graphic do not match, the process proceeds to step S11. If all acquired graphic elements have been compared, the process ends, and the process returns to step S3. If not completed, the process returns to step S6.
The obtained graphic element is compared with the search source graphic.

【0035】ここで図7に示すように、キー図形要素3
12と、キー図形要素312と同じ図形種類の図形要素
312Aとの中心を重畳させるように検索元図形要素3
11,312,313と、取得図形要素311A,31
2A,313Aとを配置した場合について説明する。
Here, as shown in FIG.
12 so that the center of the graphic element 312A of the same graphic type as the key graphic element 312 is superimposed.
11, 312, 313 and acquired graphic elements 311A, 31
The case where 2A and 313A are arranged will be described.

【0036】配置誤差記憶部22に記憶されている許容
値である配置誤差をT1とし、キー図形要素312を基
準とした図形要素311の開始点の相対座標と図形要素
312Aを基準とした取得図形要素311Aの開始点の
相対座標との距離をD1とする。同様に、キー図形要素
312を基準とした図形要素311の終了点の相対座標
と図形要素312Aを基準とした取得図形要素311A
の終了点の相対座標との距離をD2とする。キー図形要
素312を基準とした図形要素311の開始点の相対座
標と図形要素312Aを基準とした取得図形要素311
Aの終了点の相対座標との距離をD3とする。キー図形
要素312を基準とした図形要素311の終了点の相対
座標と図形要素312Aを基準とした取得図形要素31
1Aの開始点の相対座標との距離をD4とする。
The placement error, which is an allowable value stored in the placement error storage unit 22, is T1, the relative coordinates of the starting point of the graphic element 311 with respect to the key graphic element 312, and the obtained graphic with reference to the graphic element 312A. The distance between the start point of the element 311A and the relative coordinates is D1. Similarly, the relative coordinates of the end point of the graphic element 311 based on the key graphic element 312 and the obtained graphic element 311A based on the graphic element 312A
Is D2. Relative coordinates of the starting point of graphic element 311 with reference to key graphic element 312 and acquired graphic element 311 with reference to graphic element 312A
The distance between the end point of A and the relative coordinates is D3. The relative coordinates of the end point of the graphic element 311 based on the key graphic element 312 and the obtained graphic element 31 based on the graphic element 312A
The distance from the relative coordinates of the start point of 1A is D4.

【0037】本発明では、まずT1とD1,D2,D
3,D4の比較を行う。T1>D1でかつT1>D2で
あれば、D1とD2は許容値内であるから、一致図形要
素となる。さらに方向性を考慮して、T1>D3でかつ
T1>D4であれば、D3とD4は許容値内であるか
ら、一致図形要素となる。
In the present invention, first, T1 and D1, D2, D
3 and D4 are compared. If T1> D1 and T1> D2, since D1 and D2 are within the allowable value, they are coincident graphic elements. Furthermore, if T1> D3 and T1> D4 in consideration of the directionality, D3 and D4 are within the allowable value, so that they are coincident graphic elements.

【0038】つぎにステップS3において、全配置図形
記憶部21に記憶してあるキー図形要素312と同一種
類の図形要素がなく、全てに対して比較が終了した場
合、図3に示すように一致図形記憶部23に一致図形が
一時記憶されているかどうかが判定される(ステップS
12)。一致図形が一致図形記憶部23に一時記憶され
ていなければ終了する。ステップS12において、一致
図形が一致図形記憶部23に一時記憶されていれば、一
致図形を読み出し、一致図形を出力装置4に強調表示す
る(ステップS13)。
Next, in step S3, when there is no graphic element of the same type as the key graphic element 312 stored in the all-arranged graphic storage unit 21, and all the comparisons have been completed, a match is made as shown in FIG. It is determined whether the matching figure is temporarily stored in the figure storage unit 23 (step S).
12). If the coincident graphic is not temporarily stored in the coincident graphic storage unit 23, the process ends. In step S12, if the matching graphic is temporarily stored in the matching graphic storage unit 23, the matching graphic is read out, and the matching graphic is highlighted on the output device 4 (step S13).

【0039】つぎに、図形の置換方法について図4及び
図8を参照しながら説明する。図形の置換の場合は、図
4に示すように使用者が出力装置4で確認し、入力装置
1から指示した図8に示すような置換元図形802及び
オフセットがデータ処理装置2の置換手段13に与えら
れる(ステップS14)。置換手段13は置換元図形8
02とオフセットを置換図形記憶部26に記憶させる。
そして、置換手段13は一致図形を示す印となる図形6
5を一致図形記憶部25から検索する(ステップS1
5)。そして、置換手段13は一致を示す印となる図形
65と、置換元図形802の置換基準点64とを重畳さ
せ、一致を示す印となる図形65と一致図形801を置
換元図形802に置き換える(ステップS16)。図8
において図形803が置換後の図形であり、図形803
内の点線の図形は、置換された図形801の配置を示
す。一致図形を示す印となる図形65がなくなった場合
は、置換を終了する。
Next, a method of replacing a figure will be described with reference to FIGS. In the case of graphic replacement, the user confirms on the output device 4 as shown in FIG. 4, and the replacement source graphic 802 and the offset as shown in FIG. (Step S14). The replacement means 13 replaces the replacement source figure 8
02 and the offset are stored in the replacement graphic storage unit 26.
Then, the replacing means 13 outputs the graphic 6 as a mark indicating the coincident graphic.
5 is retrieved from the matching figure storage unit 25 (step S1).
5). Then, the replacing unit 13 superimposes the graphic 65 serving as a mark indicating a match and the replacement reference point 64 of the replacement source graphic 802, and replaces the graphic 65 serving as a match and the matching graphic 801 with the replacement source graphic 802 ( Step S16). FIG.
In the figure, the figure 803 is the figure after the replacement, and the figure 803
The dotted figure in the figure indicates the arrangement of the replaced figure 801. When there is no more graphic 65 as a mark indicating the matching graphic, the replacement is terminated.

【0040】次に、図形の置換方法を、プリント配線板
の銅箔パターンに用いた場合について図9を参照しなが
ら説明する。開始点から終了点への方向が異なる直線が
複数、混在する図形要素からなる図形901の銅箔パタ
ーン(パッド)部分に対して、本発明の検索置換を行う
と、図形902に置き換えることができる。これによ
り、図形要素が減少し、銅箔パターンを表わすデータの
容量を削減することができる。すなわち、図形901で
は開始点・終了点の組みが9組必要であった図形(矢印
を参照)が、本発明によって図形902に置き換えられ
ると、8組で表示することができるようになり(点線で
囲った直線と円弧)、1組分のデータの容量を削減する
ことができる。
Next, a case where the figure replacement method is applied to a copper foil pattern of a printed wiring board will be described with reference to FIG. When the search and replacement of the present invention is performed on the copper foil pattern (pad) portion of the graphic 901 including graphic elements in which a plurality of straight lines having different directions from the start point to the end point are mixed, the graphic 902 can be replaced. . As a result, the number of graphic elements is reduced, and the capacity of data representing the copper foil pattern can be reduced. That is, a figure (refer to an arrow) that required nine sets of start and end points in the figure 901 can be displayed in eight sets when replaced by the figure 902 according to the present invention (dotted line). (A straight line and an arc surrounded by a circle) can reduce the data capacity of one set.

【0041】次に、図形の置換方法を、プリント配線板
の銅箔パターンの電気検査に使用する検査プローブを植
立するための穴あけデータ作成に用いた場合を、図10
を参照しながら説明する。電気検査に用いられる検査プ
ローブの接触する場所にソルダーレジストがあると、検
査することができないため、ソルダーレジストの印刷ず
れや検査プローブの植立ずれを考慮し、ソルダーレジス
トの端から最も離れた位置に検査プローブが植立され
る。
Next, FIG. 10 shows a case where the figure replacement method is used for creating drilling data for implanting an inspection probe used for electrical inspection of a copper foil pattern of a printed wiring board.
This will be described with reference to FIG. If there is solder resist in the place where the inspection probe used for electrical inspection is in contact, the inspection cannot be performed.Therefore, considering the printing deviation of the solder resist and the imposition of the inspection probe, consider the position farthest from the edge of the solder resist. A test probe is implanted at

【0042】検査プローブを植立するための穴あけデー
タの位置は、検査プローブを接触状態で摺り動かすこと
による位置のバラツキ、植立穴の穴あけ位置精度、ソル
ダーレジスト合わせ精度など検査対象となる銅箔パター
ンの位置精度を考慮する必要がある。これらのバラツキ
のうち、ソルダーレジストは銅箔パターンを基準として
位置合わせするため、銅箔パターンの位置精度に左右さ
れる。検査プローブの接触状態での摺り動かしによるバ
ラツキは、植立穴の穴あけ精度に左右されるため、穴あ
け位置は銅箔パターンの中心にすべきであり、この穴あ
けデータを作成する際に本発明の一致図形の占有領域の
中心位置を使った置換を利用することができる。
The position of the drilling data for implanting the inspection probe is based on the copper foil to be inspected, such as the variation in the position caused by sliding the inspection probe in a contact state, the accuracy of the drilling position of the implantation hole, and the accuracy of the solder resist alignment. It is necessary to consider the positional accuracy of the pattern. Among these variations, the position of the solder resist is adjusted based on the copper foil pattern, so that the position of the solder resist depends on the positional accuracy of the copper foil pattern. Since the variation due to the sliding movement in the contact state of the inspection probe depends on the drilling accuracy of the planting hole, the drilling position should be located at the center of the copper foil pattern. The replacement using the center position of the occupied area of the matching graphic can be used.

【0043】またプリント配線板のデータ作成方法によ
っては、図形101に示すように、ソルダーレジスト1
12が検査対象となる銅箔パターン111と一部重複し
ている場合、置換基準点64から任意のオフセットをも
った図形要素113を置換元図形102として、本発明
による検査置換を実施することにより、置換基準点64
を図形65に一致させ、図形103に示すように銅箔パ
ターン111の一致を示す印となる図形65からオフセ
ットをかけた位置に図形要素113を置き換えることが
できる。これにより、ソルダーレジスト112の影響を
抑えた検査プローブを植立することができる。すなわ
ち、プリント配線基板の製造ではソルダーレジストをプ
リント配線板に印刷するが、この印刷ずれの影響を受け
にくくすることができる。したがって、オフセットを施
した穴あけデータを容易に作成することができる。
Depending on the method of preparing data for the printed wiring board, as shown in FIG.
In the case where 12 partially overlaps the copper foil pattern 111 to be inspected, the graphic element 113 having an arbitrary offset from the replacement reference point 64 is used as the replacement source graphic 102 to perform the inspection replacement according to the present invention. , Replacement reference point 64
To the figure 65, and as shown in the figure 103, the figure element 113 can be replaced at a position offset from the figure 65 which is a mark indicating the match of the copper foil pattern 111. Thereby, an inspection probe in which the influence of the solder resist 112 is suppressed can be implanted. That is, in the manufacture of a printed wiring board, a solder resist is printed on a printed wiring board, but it is possible to reduce the influence of the printing deviation. Therefore, it is possible to easily create the offset drilling data.

【0044】本発明の他の形態は、図1に示すように、
上記説明された図形の検索処理をコンピュータに実行さ
せるためのプログラム(図形処理プログラム)を記録し
た記録媒体50を有する。この記録媒体50は、磁気デ
ィスク、CD−ROM、半導体メモリその他の記録媒体
であってもよい。
In another embodiment of the present invention, as shown in FIG.
The recording medium 50 stores a program (graphic processing program) for causing a computer to execute the graphic search processing described above. The recording medium 50 may be a magnetic disk, a CD-ROM, a semiconductor memory, or another recording medium.

【0045】図形処理プログラムは、記録媒体50から
データ処理装置2に読み込まれ、データ処理装置2は、
その図形処理プログラムに従い処理を実行する。
The graphic processing program is read from the recording medium 50 into the data processing device 2, and the data processing device 2
The processing is executed according to the graphic processing program.

【0046】本発明は、上記実施の形態に限定されるこ
とはなく、特許請求の範囲に記載された技術的事項の範
囲内において、種々の変更が可能である。
The present invention is not limited to the above embodiment, and various changes can be made within the technical scope described in the claims.

【0047】[0047]

【発明の効果】本発明によれば、方向性をもつ図形であ
っても同一の図形とされ、図形要素の配置に誤差をもつ
図形の検索をすることもできるため、図形データの容量
を減らすことができる。したがって本発明の検索方法
は、従来よりも多くの図形データを記憶することがで
き、あるいは少ない図形データにより操作性を向上させ
ることができる。
According to the present invention, a graphic having directivity is regarded as the same graphic, and a graphic having an error in the arrangement of graphic elements can be searched. Therefore, the capacity of graphic data can be reduced. be able to. Therefore, the search method of the present invention can store more graphic data than before or can improve operability with less graphic data.

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

【図1】本発明を実施するための装置の構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing a configuration of an apparatus for implementing the present invention.

【図2】本発明により図形を検索する流れの要部を示す
フローチャート図である。
FIG. 2 is a flowchart showing a main part of a flow of searching for a graphic according to the present invention.

【図3】本発明により図形を検索する流れの一部を示す
フローチャート図である。
FIG. 3 is a flowchart showing a part of a flow of searching for a graphic according to the present invention.

【図4】図形を置換する流れを示すフローチャート図で
ある。
FIG. 4 is a flowchart illustrating a flow of replacing a figure.

【図5】検査元図形の一例を示す図である。FIG. 5 is a diagram illustrating an example of an inspection source graphic.

【図6】キー図形要素と同一の図形種類の図形要素をも
つ図形の一例を示す図である。
FIG. 6 is a diagram showing an example of a graphic having a graphic element of the same graphic type as a key graphic element.

【図7】キー図形の中心点と取得図形の中心点とを重畳
させた状態を示す図である。
FIG. 7 is a diagram showing a state in which a center point of a key figure and a center point of an obtained figure are superimposed.

【図8】オフセットを含む図形の置換例を示す図であ
る。
FIG. 8 is a diagram illustrating a replacement example of a graphic including an offset.

【図9】プリント配線板の銅箔パターンに用いた場合の
図である。
FIG. 9 is a diagram when used for a copper foil pattern of a printed wiring board.

【図10】プリント配線板の銅箔パターンの電気検査に
用いた場合の図である。
FIG. 10 is a diagram when used for an electrical inspection of a copper foil pattern of a printed wiring board.

【図11】複数の図形要素からなる図形の一般的な画面
表示例を示す図である。
FIG. 11 is a diagram showing a typical screen display example of a graphic composed of a plurality of graphic elements.

【図12】従来の技術による置換の例を示す図である。FIG. 12 is a diagram showing an example of replacement according to a conventional technique.

【図13】従来の技術による検索元図形を示す図であ
る。
FIG. 13 is a diagram showing a search source graphic according to a conventional technique.

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

1:入力装置 2:データ処理装置 3:記憶装置 4:出力装置 11:第1比較手段 12:第2比較手段 13:置換手段 21:全配置図形記憶部 22:配置誤差記憶部 23:検索元図形記憶部 24:一致図形要素記憶部 25:一致図形記憶部 26:置換図形記憶部 50:記録媒体 61:占有領域 63:基準点 64:置換基準点 65:一致を示す印となる図形 101〜103:図形 111〜113:図形要素 301〜304:図形 311〜315:図形要素 401〜406:図形 411〜414:図形要素 601,602:図形 611,612:図形要素 801〜803:図形 901,902:図形 1: input device 2: data processing device 3: storage device 4: output device 11: first comparing means 12: second comparing means 13: replacing means 21: all arrangement graphic storage section 22: arrangement error storage section 23: search source Figure storage unit 24: Matching figure element storage unit 25: Matching figure storage unit 26: Replacement figure storage unit 50: Recording medium 61: Occupied area 63: Reference point 64: Replacement reference point 65: Figure as a mark indicating a match 101 to 101 103: graphics 111 to 113: graphics elements 301 to 304: graphics 311 to 315: graphics elements 401 to 406: graphics 411 to 414: graphics elements 601 and 602: graphics 611 and 612: graphics elements 801 to 803: graphics 901 and 902 : Shape

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 17/50 G06F 17/30 G06T 11/80 ──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 17/50 G06F 17/30 G06T 11/80

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】(1)入力装置によって指定された検索元
図形と配置誤差とを記憶部に記憶する工程と、 (2)記憶された検索元図形を図形要素ごとに分解し、
検索順序を決める工程と、 (3)前記図形要素と同じ種類の図形要素を、前記記憶
部に記憶されている全配置図形から前記検索順序に従っ
て検索する工程と、 (4)図形要素が許容される図形配置の誤差内にあるか
どうかを比較手段によって比較する工程と、 (5)検索元図形の全図形要素にそれぞれ一致する図形
要素があるかをどうかを前記比較手段によって比較する
工程と、 (6)一致した図形の占有領域の中心に、一致を示す印
となる図形を追加して出力装置に出力する工程と、 を有し、(1)から(6)の順序で行うことを特徴とす
る図形の検索方法。
(1) a step of storing a search source graphic and an arrangement error designated by an input device in a storage unit; (2) decomposing the stored search source graphic for each graphic element;
Determining a search order; (3) searching for a graphic element of the same type as the graphic element from all the arrangement graphics stored in the storage unit in accordance with the search order; and (4) allowing the graphic element to be accepted. (5) comparing with the comparing means whether or not there is a graphic element that matches each of all the graphic elements of the search source graphic; (6) a step of adding a figure serving as a mark indicating a match to the center of the occupied area of the matched figure and outputting the figure to the output device, wherein the steps are performed in the order of (1) to (6). Search method of figure to be.
【請求項2】(1)入力装置によって指定された検索元
図形と配置誤差とを記憶部に記憶する工程と、 (2)記憶された検索元図形の図形要素を、全配置図形
の中で同じ図形の種類の少ない順位に並べ替える工程
と、 (3)並べ替えの先頭になった図形要素をキー図形要素
とし、そのキー図形要素と同じ種類の図形要素を、前記
記憶部に記憶されている全配置図形から検索する工程
と、 (4)検索された図形要素をキー図形要素と一致するか
どうかを比較手段によって比較する工程と、 (5)一致した図形要素の配置をもとに検索対象図形が
配置されるべき占有領域を算出する工程と、 (6)占有領域内に含まれる図形要素を記憶部に記憶さ
れている全配置図形から探索し、取得する工程と、 (7)取得した図形要素を検索元図形の図形要素と各属
性ごとに比較し、さらにキー図形要素を基準にした図形
要素の配置と図形要素を基準にした図形要素の配置との
誤差と、前記記憶部に記憶されている配置誤差とを比較
手段によって比較する工程と、 (8)前記工程で、誤差範囲内であれば、取得図形要素
を一致図形要素として記憶部に記憶する工程と、 (9)検索図形の図形要素の全てが一致するかどうかを
判定する工程と、 (10)前記(9)の工程で、検索図形の図形要素の全
てが一致すれば、前記記憶部に記憶している一致図形要
素を一致図形とし、一致図形の占有領域の中心に一致を
示す印となる形状を追加し、記憶部に記憶する工程と、 (11)検索元図形の並べ替え順序に図形要素がある場
合は、全ての取得図形要素が比較されているかどうかを
判定する工程と、 (12)前記(3)の工程で、同じ種類の図形要素が検
索されなければ、記憶部に一致図形が記憶されているか
どうかを判定する工程と、 (13)記憶部に一致図形が一時記憶されていれば、そ
の一致図形を出力装置に強調表示する工程と、 を有し、(1)から(13)の順序で行うことを特徴と
する図形の検索方法。
And (2) storing a search source graphic specified by an input device and an arrangement error in a storage unit; and (2) storing a stored graphic element of the search original graphic in all of the layout graphics. Rearranging the graphic elements in the order of lesser number of the same graphic type; and (3) setting the graphic element at the head of the rearrangement as a key graphic element, and storing the graphic element of the same type as the key graphic element in the storage unit. (4) comparing the retrieved graphic elements with the key graphic elements by comparing means, and (5) searching based on the arrangement of the matched graphic elements. (6) a step of calculating an occupied area in which the target graphic is to be arranged; (6) a step of searching for and acquiring a graphic element included in the occupied area from all the arrangement figures stored in the storage unit; Searched shape element Element and each attribute, and further, compares the error between the arrangement of the graphic element based on the key graphic element and the arrangement of the graphic element based on the graphic element, and the arrangement error stored in the storage unit. And (8) storing the acquired graphic element in the storage unit as a coincident graphic element if the error graphic is within the error range in the above step; and (9) matching all graphic elements of the retrieval graphic. (10) In the step (9), if all of the graphic elements of the search graphic match, the matching graphic element stored in the storage unit is determined to be a matching graphic, Adding a shape indicating a match to the center of the occupied area and storing the shape in the storage unit; and (11) if there are graphic elements in the sorting order of the search source graphic, all the obtained graphic elements are compared. Determining whether or not (12) In the step (3), if the same type of graphic element is not found, a step of determining whether or not a matching graphic is stored in the storage unit; and (13) Temporarily storing the matching graphic in the storage unit. And a step of highlighting the matching graphic on the output device if the processing is performed, and performing the processing in the order of (1) to (13).
【請求項3】プログラム制御により動作し、第1比較手
段と第2比較手段とを備えたデータ処理装置を有する図
形検索装置であって、 前記第1比較手段は、使用者によって出力装置で確認さ
れ、入力装置から指示された検索元図形と、配置誤差の
値が与えられ、検索元図形記憶部から図形要素を取出
し、図形種類が一致する図形を全配置図形記憶部に記憶
された図形から検索し、図形種類が一致した図形要素の
属性を検索元図形の図形要素と比較し、配置誤差記憶部
に記憶された配置誤差の値を参照し、検索された図形が
配置誤差の範囲内であるか否かの判定を行うものであ
り、 前記第2比較手段は、全ての検索元図形要素に一致する
図形要素を検索できた場合に、一致図形要素記憶部に記
憶された一致図形要素を読み出し、一致を示す印となる
図形を追加配置し、一致図形として一致図形記憶部に記
憶するとともに、一致図形記憶部に記憶された一致図形
を読み出し、一致図形を出力装置に強調表示するもので
あることを特徴とする図形検索装置。
3. A graphic search device which operates under program control and has a data processing device provided with a first comparison means and a second comparison means, wherein the first comparison means is confirmed by a user on an output device. Then, given the search source graphic designated by the input device and the value of the layout error, the graphic element is taken out from the search source graphic storage unit, and the graphic having the same graphic type is extracted from the graphic stored in the entire layout graphic storage unit. Searches, compares the attribute of the graphic element with the matching graphic type with the graphic element of the search source graphic, refers to the value of the layout error stored in the layout error storage unit, and searches the figure within the range of the layout error. The second comparing means determines whether or not there is a graphic element that matches all the search source graphic elements and, when a graphic element that matches all of the search source graphic elements can be retrieved, compares the coincident graphic element stored in the coincident graphic element storage unit. Read, match sign Is additionally arranged and stored as a matching figure in a matching figure storage unit, and the matching figure stored in the matching figure storage unit is read out, and the matching figure is highlighted on an output device. Search device.
【請求項4】(1)入力装置によって指定された検索元
図形と配置誤差とを記憶部に記憶する処理と、 (2)記憶された検索元図形を図形要素ごとに分解し、
検索順序を決める処理と、 (3)前記図形要素と同じ種類の図形要素を、前記記憶
部に記憶されている全配置図形から前記検索順序に従っ
て検索する処理と、 (4)図形要素が許容される図形配置の誤差内にあるか
どうかを比較手段によって比較する処理と、 (5)検索元図形の全図形要素にそれぞれ一致する図形
要素があるかをどうかを前記比較手段によって比較する
処理と、 (6)一致した図形の占有領域の中心に、一致を示す印
となる図形を追加して出力装置に出力する処理と、 をコンピュータに実行させるためのプログラムを記録し
た記録媒体。
And (4) processing for storing a search source graphic designated by an input device and an arrangement error in a storage unit; and (2) decomposing the stored search source graphic for each graphic element.
A process of determining a search order; (3) a process of searching for a graphic element of the same type as the graphic element from all arrangement graphics stored in the storage unit in accordance with the search order; and (4) a graphic element is allowed. (5) comparing by the comparing means whether or not there is a graphic element that matches each of all the graphic elements of the search source graphic; (6) A recording medium storing a program for causing a computer to execute a process of adding a graphic serving as a mark indicating a match to the center of the occupied area of the matched graphic and outputting the result to an output device.
JP30065797A 1997-10-31 1997-10-31 Graphic retrieval method, graphic retrieval apparatus, and recording medium Expired - Fee Related JP3147055B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30065797A JP3147055B2 (en) 1997-10-31 1997-10-31 Graphic retrieval method, graphic retrieval apparatus, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30065797A JP3147055B2 (en) 1997-10-31 1997-10-31 Graphic retrieval method, graphic retrieval apparatus, and recording medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2000336960A Division JP2001160083A (en) 2000-11-06 2000-11-06 Graphic replacement method, graphic replacement device and recording medium

Publications (2)

Publication Number Publication Date
JPH11134513A JPH11134513A (en) 1999-05-21
JP3147055B2 true JP3147055B2 (en) 2001-03-19

Family

ID=17887507

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30065797A Expired - Fee Related JP3147055B2 (en) 1997-10-31 1997-10-31 Graphic retrieval method, graphic retrieval apparatus, and recording medium

Country Status (1)

Country Link
JP (1) JP3147055B2 (en)

Also Published As

Publication number Publication date
JPH11134513A (en) 1999-05-21

Similar Documents

Publication Publication Date Title
US4829446A (en) Method and apparatus for recording and rearranging representations of objects in a model of a group of objects located using a co-ordinate system
US5493639A (en) Drawing processing with flexible accomodation of character strings
US5517607A (en) Graphic processing apparatus utilizing a CAD system
JP3147055B2 (en) Graphic retrieval method, graphic retrieval apparatus, and recording medium
JP2001160083A (en) Graphic replacement method, graphic replacement device and recording medium
JPH10228496A (en) Layout information generator and layout information generating method
JP2000207438A (en) Printed wiring board design supporting device
JPH0731671B2 (en) Formula input editing method
JPH09231254A (en) Equipment design support system
JP2001028032A (en) Image information processor and mark sheet
JPH08161359A (en) Method for automatically editing dimension lines
JP2870824B2 (en) Printed circuit board design system
JP2792260B2 (en) Cell matrix recognition device
JP2917843B2 (en) Contour data creation method
JP2910664B2 (en) Wiring pattern check method
EP0213670A2 (en) Computer aided design system
JP2773232B2 (en) CAD equipment
JP3324831B2 (en) CAD equipment
JP2580772B2 (en) Printed wiring board circuit design rule verification device
JPH11353350A (en) Substrate drawing preparing device
JP3248800B2 (en) Circuit diagram creation device and circuit diagram creation method
JP3386209B2 (en) Device for rearranging objects displayed on a display screen
JP2557368B2 (en) Wiring board design support method
Spitalny et al. On-line operation of CADIC (computer aided design of integrated circuits)
JPH02217967A (en) Parts arrangement system for printed wiring board design system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080112

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090112

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees