JP3537956B2 - Drawing inspection method and drawing inspection device - Google Patents

Drawing inspection method and drawing inspection device

Info

Publication number
JP3537956B2
JP3537956B2 JP15844796A JP15844796A JP3537956B2 JP 3537956 B2 JP3537956 B2 JP 3537956B2 JP 15844796 A JP15844796 A JP 15844796A JP 15844796 A JP15844796 A JP 15844796A JP 3537956 B2 JP3537956 B2 JP 3537956B2
Authority
JP
Japan
Prior art keywords
data
graphic
constraint
dimension
node
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
JP15844796A
Other languages
Japanese (ja)
Other versions
JPH1011480A (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.)
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 JP15844796A priority Critical patent/JP3537956B2/en
Publication of JPH1011480A publication Critical patent/JPH1011480A/en
Application granted granted Critical
Publication of JP3537956B2 publication Critical patent/JP3537956B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、CADシステムで
作成した図面の検査装置に関し、特に寸法記入の過不足
を検出して検図工数の低減をはかる図面検査方式に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a drawing inspection system for a drawing created by a CAD system, and more particularly to a drawing inspection system for detecting an excess or deficiency in dimension entry and reducing the number of inspection steps.

【0002】[0002]

【従来の技術】設計者は製品を構成する部品の形状を書
き、寸法を記入した図面を作成して製造部門に渡す。寸
法の記入に重複があると、製造者はどの寸法を優先して
加工すればよいかわからない。もちろん、寸法の記入に
不足があるとその部分の位置や大きさがわからず、部品
を製造することができない。このため、設計者は作成し
た図面を目視により検査し、寸法記入の過不足をチエッ
クしている。しかし、目視検査は見落としを生じやす
く、時間もかかる。
2. Description of the Related Art A designer writes the shapes of parts constituting a product, creates a drawing in which dimensions are written, and transfers the drawing to a manufacturing department. If the dimensions are duplicated, the manufacturer does not know which dimension should be processed first. Of course, if there is a shortage in the dimensions, the position and size of the part cannot be known, and the part cannot be manufactured. For this reason, the designer visually inspects the created drawing and checks whether the dimension is written properly or not. However, visual inspection is easy to overlook and takes time.

【0003】この問題を解決するために、計算機による
寸法記入の不足を検査する装置が提案されている。例え
ば、特開平6−75620号公報(引用例1)には、図
面に書かれた平行または垂直な直線について、寸法記入
の不足を検出する方式が開示されている。
[0003] In order to solve this problem, there has been proposed an apparatus for inspecting a lack of dimension entry by a computer. For example, Japanese Unexamined Patent Publication No. Hei 6-75620 (Reference 1) discloses a method for detecting shortage of dimension entry for a parallel or vertical straight line written in the drawing.

【0004】一方、図形間の幾何的な拘束関係をもとに
形状を生成するCADシステムが知られている。このC
ADシステムにおて、特公平7−89382号公報(引
用例2)に記載のように、寸法も拘束関係の1つとして
扱われ、競合する幾何的な拘束関係を検出する方法が提
案れている。
On the other hand, there is known a CAD system for generating a shape based on a geometric constraint relationship between figures. This C
In the AD system, as described in Japanese Patent Publication No. 7-89382 (Cited Example 2), a dimension is treated as one of the constraint relationships, and a method of detecting a competing geometric constraint relationship has been proposed. I have.

【0005】[0005]

【発明が解決しようとする課題】上記従来技術における
引用例1の図面検査では、寸法の重複記入の検査はでき
ない。寸法の不足についても、斜め方向の直線や角度寸
法が記入されている部分の検査はできない。また、引用
例2の競合する幾何的な拘束条件を検出する方法では、
幾何的な拘束条件の不足、すなわち寸法記入に不足のあ
る場合は検出処理が中途で停止してしまい、重複する寸
法記入が正しく検出できない。
In the drawing inspection of the cited reference 1 in the above-mentioned prior art, it is not possible to inspect the overlapping entry of dimensions. Regarding the shortage of the dimensions, it is not possible to inspect a portion where a straight line in an oblique direction or an angular dimension is entered. In the method of detecting conflicting geometric constraints in Reference 2,
If the geometric constraint conditions are insufficient, that is, if there is insufficient dimension entry, the detection process stops halfway, and duplicate dimension entries cannot be correctly detected.

【0006】一般に、図面は複数の投影図や断面図を用
いて部品形状を表わし、寸法が規定する長さや位置が明
確になる投影図を選んで、そこに図面全体で重複や記入
不足がないように寸法を記入する。しかし、上記引用例
1,2の方法では、複数の投影図間での寸法の過不足に
ついての考慮がない。
In general, a drawing represents a part shape using a plurality of projections or cross-sections, and a projection in which the length and position defined by dimensions are clear is selected, and there is no duplication or lack of entry throughout the drawing. Dimensions as shown. However, in the methods of the cited examples 1 and 2, there is no consideration of excess or deficiency of dimensions between a plurality of projection views.

【0007】さらに、寸法記入の不足が検出された場
合、上記引用例1,2の方法では、図面のどの図形に寸
法記入漏れがあるのか不明のままである。
Further, when the shortage of dimension entry is detected, it is still unclear which figure in the drawing has a dimension entry omission in the methods of the cited examples 1 and 2.

【0008】本発明の第1の目的は、上記従来技術の問
題点に鑑み、CADシステムで作成された図面の寸法記
入の不足や重複を検出するとともに、その検出場所をユ
ーザに明示する図面検査方法及び装置を提供することに
ある。
A first object of the present invention is to provide a drawing inspection system which detects shortage or duplication of dimensions entered in a drawing created by a CAD system and clearly indicates a detection location to a user in view of the above-mentioned problems of the prior art. It is to provide a method and an apparatus.

【0009】本発明の第2の目的は、図面の寸法記入の
不足を検出するとともに、その不足の寸法を図面上に追
加する図面検査方法及び装置を提供することにある。
A second object of the present invention is to provide a drawing inspection method and apparatus for detecting a lack of dimension entry in a drawing and adding the missing dimension to the drawing.

【0010】本発明の第3の目的は、寸法記入に不足が
ある場合にも、寸法記入の重複を確実に検出できる図面
検査方法及び装置を提供することにある。
A third object of the present invention is to provide a drawing inspection method and apparatus capable of reliably detecting overlap of dimension entry even when there is a shortage in dimension entry.

【0011】本発明の第4の目的は、図面が複数の投影
図や断面図で構成されている場合に、図面全体における
寸法記入の不足および重複を検出できる図面検査方法及
び装置を提供することにある。
[0011] A fourth object of the present invention is to provide a drawing inspection method and apparatus capable of detecting shortage and duplication of dimension entry in the whole drawing when the drawing is composed of a plurality of projection views or cross-sectional views. It is in.

【0012】本発明のその余の目的は、以下の記載を通
じて明らかになる。
Further objects of the present invention will become clear through the following description.

【0013】[0013]

【課題を解決するための手段】上記第1の目的は、CA
DシステムによりCAD図形データとして生成された複
数の図形要素からなる図面の寸法の不足または過不足
検出する図面の検査において、前記複数の図形要素の中
で互いに相対的な位置関係を決定できる図形要素同士に
前記図形要素をグループ分けし、グループ毎に異なる表
示属性で表示させることにより達成される。前記図形要
素のグループ分けは、図形要素間を幾何学的に拘束する
拘束条件データを記憶し、この拘束条件データに基づい
て行なわれることを特徴とする
The first object is to provide a CA.
Data generated as CAD graphic data by the D system
In a drawing inspection for detecting a shortage or an excess or a shortage of dimensions of a drawing composed of a number of graphic elements ,
Graphic elements that can determine the relative positional relationship with each other
The graphic elements are grouped, and a different table is displayed for each group.
Achieved by displaying with the display attribute . The figure required
Elementary grouping constrains geometric elements geometrically
Stores the constraint data, and based on this constraint data
It is characterized by being performed .

【0014】上記居2の目的は、前記図面上の図形要素
毎の図形データと、図形要素間を幾何学的に拘束する拘
束条件データを記憶し、前記拘束条件データから、互い
の相対的な位置関係を決定できる図形要素同士に前記図
形データをグループ分けし、異なるグループの所定の図
形要素間に所定の寸法を追加して、寸法不足を解消する
ことにより達成される。
The purpose of the home 2 is to store graphic data for each graphic element in the drawing and constraint condition data for geometrically constraining the graphic elements, and to store the relative condition data based on the constraint condition data. This is achieved by grouping the graphic data into graphic elements whose positional relationship can be determined, adding predetermined dimensions between predetermined graphic elements of different groups, and eliminating shortage of dimensions.

【0015】前記所定の寸法は、異なるグループ間で寸
法の定義が可能な図形要素の組を検索して前記所定の図
形要素間を決定し、前記図形要素の組の図形データから
前記所定の寸法を算出して追加する。また、追加した前
記所定の寸法を、他の寸法と識別して表示し、ユーザの
確認を容易にする。あるいは、追加した前記所定の寸法
を寸法を定義した図形と同一の表示属性で表示して、見
易くする。
The predetermined dimensions are determined by searching for a set of graphic elements whose dimensions can be defined between different groups and determining the predetermined graphic elements, and determining the predetermined dimensions from the graphic data of the set of graphic elements. Is calculated and added. Further, the added predetermined dimension is displayed while being distinguished from other dimensions to facilitate user confirmation. Alternatively, the added predetermined dimension is displayed with the same display attribute as the figure defining the dimension to make it easier to see.

【0016】上記第1の目的及び第2の目的は、前記図
面上の図形要素毎の図形データと、図形要素間を幾何学
的に拘束する拘束条件データを記憶し、前記図形要素の
各々について順次、他の図形要素との間で従属関係が決
定できるか、前提部に前記拘束条件データを含む所定の
幾何推論を実行し、前記拘束条件データの不足によって
前記幾何推論が中断した場合に、不足している拘束条件
データを仮定し、全ての図形要素について前記幾何推論
が成立するまで繰返し実行することによって達成され
る。
The first and second objects are to store graphic data for each graphic element on the drawing and constraint condition data for geometrically constraining the graphic elements. Sequentially, the dependency relationship between other graphic elements can be determined, or a predetermined geometric inference including the constraint data is performed on the premise, and when the geometric inference is interrupted due to lack of the constraint data, This is achieved by assuming insufficient constraint condition data and repeatedly executing the above-mentioned geometric inference for all graphic elements until the above-mentioned geometric inference is established.

【0017】前記不足している拘束条件データは、前記
従属関係が決定できない図形要素と既に決定済みの図形
要素との間に決定済みの拘束条件データが存在すると
き、当該決定できない図形要素に最も近い決定済みの点
図形要素を求め、その両者間の距離から仮定することを
特徴とする。
[0017] When there is determined constraint condition data between a graphic element whose dependency cannot be determined and a graphic element that has already been determined, the missing constraint condition data is most likely to be assigned to the graphic element that cannot be determined. It is characterized in that a determined point graphic element which is close is determined and is assumed from the distance between the two.

【0018】上記第3の目的は、前記図面上の図形要素
毎の図形データと、図形要素間を幾何学的に拘束する寸
法データを含む拘束条件データを記憶し、前記図形要素
の各々について順次、他の図形要素との間で従属関係が
決定できるか、その前提部に前記拘束条件データを含む
所定の幾何推論を実行し、前記拘束条件データの不足に
よって前記幾何推論が中断した場合に、不足している拘
束条件データを仮定し、全ての図形要素について前記幾
何推論が成立するまで繰返し実行し、前記幾何推論の実
行に使用した前記寸法データにフラグを立て、フラグの
無い寸法データを重複記入として表示する、あるいは、
前記フラグの無い寸法の両端の図形要素を起点として前
記幾何推論の実行過程を逆に辿り、その過程における寸
法データを削除対象の候補として表示することにより達
成される。
The third object is to store graphic data for each graphic element on the drawing and constraint condition data including dimensional data for geometrically constraining the graphic elements, and sequentially store each of the graphic elements. In the case where a dependent relationship can be determined between other graphic elements or a predetermined geometric inference including the constraint data is performed on a premise thereof, and when the geometric inference is interrupted due to lack of the constraint data, Assuming the lacking constraint data, it is repeatedly executed until the geometric inference is established for all the graphic elements, a flag is set on the dimension data used for executing the geometric inference, and the dimension data without the flag is duplicated. Display as an entry, or
This is achieved by tracing back the execution process of the geometric inference starting from the graphic elements at both ends of the dimension without the flag, and displaying the dimension data in the process as candidates for deletion.

【0019】前記幾何推論が中断する度に、推論の成立
した図形要素の集合および/または仮定した拘束条件デ
ータにグループ番号を更新しながら付与し、前記グルー
プ番号毎に異なる表示属性で、前記図形要素または前記
仮定した拘束条件データを表示する。
Each time the geometric inference is interrupted, a group number is added to the set of graphic elements for which the inference has been established and / or the assumed constraint data while updating the group number. The element or the assumed constraint data is displayed.

【0020】上記第4の目的は、CADシステムで作成
された複数の投影図からなる図面の寸法記入の不足を検
出する図面の検査において、各投影図の図形要素毎の図
形データと、図形要素間を幾何学的に拘束する拘束条件
データと、各投影図の投影方法を特定する投影変換デー
タを記憶し、各投影図の拘束条件データを前記投影変換
データを用いて変換、統合し、統合した拘束条件データ
から、互いの相対的な一関係を決定できる図形要素同士
に前記図形データをグループ分けし、前記グループ単位
に異なる表示属性で各投影図上の図形要素を表示するこ
とにより達成される。
A fourth object of the present invention is to inspect a drawing composed of a plurality of projections created by a CAD system and to check for a lack of dimensioning of the drawing, the figure data for each graphic element of each projection, The constraint condition data for geometrically constraining the space between the projection maps and the projection transformation data for specifying the projection method of each projection diagram are stored, and the constraint condition data of each projection diagram is converted, integrated, and integrated using the projection transformation data. This is achieved by grouping the graphic data into graphic elements that can determine a relative relationship from each other from the restricted condition data, and displaying graphic elements on each projected view with different display attributes for each group. You.

【0021】なお、上記における前記拘束条件データ
は、図形データの大きさ、図形データ間の距離または角
度を明示的に拘束する寸法データと、図形要素間の直
交、接触、平行などの位置関係を拘束する非明示の拘束
条件データを含み、後者は所定の図形規則に従って抽出
される。
The constraint condition data described above includes dimension data for explicitly constraining the size of the graphic data, the distance or angle between the graphic data, and the positional relationship between the graphic elements such as orthogonal, contact, and parallel. The data includes unrestricted constraint data to be constrained, and the latter is extracted according to a predetermined graphic rule.

【0022】なお、第1の目的〜第4の目的に対応する
上記した本発明の各構成は、特許請求の範囲に記載のよ
うに適宜、組み合わされて、同時に複数の目的を達成で
きることは言うまでもない。
It is needless to say that the respective constitutions of the present invention corresponding to the first to fourth objects can be appropriately combined as described in the claims to achieve a plurality of objects at the same time. No.

【0023】本発明の構成において、図形グループ化手
段は、前記拘束条件から互いに相対的な位置を決定する
ことのできる図形同士をまとめてグループ分けする。互
いに相対的な位置を決定できる図形とは、幾つかの図形
の位置を決めれば、残りの図形の位置を決定できる図形
の集合である。
In the structure of the present invention, the figure grouping means groups together figures whose relative positions can be determined from the constraint conditions. The figures whose relative positions can be determined are a set of figures whose positions can be determined by determining the positions of some figures.

【0024】異なるグループに属する図形間では、相対
的な位置を決定できない。図面上に、このような図形を
記載することは製図規則で禁じられており、異なるグル
ープを解消するための寸法の追加が必要になる。
A relative position cannot be determined between figures belonging to different groups. Writing such figures on the drawing is prohibited by drafting rules, and it is necessary to add dimensions to eliminate different groups.

【0025】ここで、異なるグループA、Bに属する図
形をそれぞれa、bとする。図形aと図形bの間に両者
の位置関係を表す寸法を追加できれば、図形aとbの間
の相対的な位置が決定できる。グループAの図形a以外
の図形a’は、もとより図形aと相対的な位置が決定で
きるので、グループBの図形b以外の図形b’と図形a
の間の相対的な位置も決定できることになり、寸法記入
の不足を解消することができる。しかし、同じグループ
に属する図形の間に寸法を追加すると、寸法記入の不足
が解消されないだけでなく、すでに相対的な位置が決ま
っている図形間に重複した寸法を記入することになり、
製造過程での不都合を招く。
Here, figures belonging to different groups A and B are a and b, respectively. If a dimension representing the positional relationship between the figures a and b can be added, the relative position between the figures a and b can be determined. Since the position of the figure a ′ other than the figure a in the group A can be determined relative to the figure a, the figure b ′ other than the figure b in the group B and the figure a ′ can be determined.
Can be determined, and shortage of dimension entry can be eliminated. However, adding dimensions between shapes belonging to the same group will not only eliminate the shortage of dimensioning, but also duplicate dimensions between shapes whose relative positions are already determined,
This causes inconvenience in the manufacturing process.

【0026】そこで、グループ分けされた図形データを
グループごとに異なる表示属性で図形表示する。これに
よれば、画面上で図形グループの異同を一目で区別でき
るので、ユーザは重複記入を生じることなく不足の寸法
を追加することができる。
Therefore, the grouped figure data is displayed as a figure with different display attributes for each group. According to this, since the difference between the graphic groups can be distinguished at a glance on the screen, the user can add an insufficient dimension without causing duplicate entry.

【0027】また、異なるグループ間に属する図形間に
寸法を追加する前記寸法追加手段によって、重複記入に
ならずに寸法不足を解消できる寸法を自動的に追加でき
るので、ユーザの図面修正の工数を大幅に低減すること
ができる。
Further, the dimension adding means for adding dimensions between figures belonging to different groups can automatically add dimensions that can eliminate shortage of dimensions without duplicating entry. It can be greatly reduced.

【0028】さらに、前記寸法データと前記非明示的拘
束条件データから、前記図形データの位置に関する従属
関係データを作成する手段によって、相対的な位置関係
を決定できる図形グループを求めることができる。
Further, a figure group from which the relative positional relationship can be determined can be obtained from the dimension data and the implicit constraint data by means for creating dependency data on the position of the graphic data.

【0029】ところで、既にある寸法データや拘束条件
データから前記従属関係データの作成ができない場合
は、この図形に関する寸法データが不足している。そこ
で、拘束条件を追加すると、続けて従属関係データを作
成することができる。しかし、拘束条件を追加した図形
に従属する図形は、追加した拘束条件がなければ従属関
係を決定できないので、拘束条件を追加する前に従属関
係を決定した図形との相対的な位置を決めることができ
ない。
If the dependency data cannot be created from existing dimension data or constraint data, the dimension data for the figure is insufficient. Therefore, when the constraint condition is added, the dependent relationship data can be continuously created. However, for a figure that depends on a figure to which a constraint has been added, the dependency cannot be determined without the added constraint, so determine the relative position to the figure for which the dependency was determined before adding the constraint. Can not.

【0030】そこで、追加前の図形データと追加後に従
属関係データを作成した図形データとを区別してグルー
プ化し、グループごとに異なる表示属性で表示する。こ
のように拘束条件を追加することで、寸法記入に不足の
ある図面においても全ての従属関係を決定することがで
きる。なお、従属関係を決定するのに使われなかった寸
法は重複記入であり、使用の有無で重複記入の寸法を検
出することができる。
Therefore, the graphic data before the addition and the graphic data for which the dependency data has been created after the addition are classified and grouped, and displayed with different display attributes for each group. By adding the constraint conditions in this manner, all the dependencies can be determined even in a drawing having insufficient dimension entry. Note that the dimension not used for determining the subordination relationship is a duplicate entry, and the dimension of the duplicate entry can be detected based on whether or not it is used.

【0031】また、従属関係を決定するのに使われなか
った寸法を、その寸法が拘束する図形の従属関係の決定
に用いた寸法の代わりに用いても、それら図形の従属関
係を決定することができる。したがって、これらの寸法
の何れかを残して他を削除すれば寸法の重複記入を解消
すきる。なお、重複記入の関係にある複数の寸法を画面
上でデフォルト表示することにより、ユーザは最適な寸
法のみを選択して重複を解消することができる。
Further, even if a dimension not used to determine the dependency is used instead of the dimension used to determine the dependency of the figure constrained by the dimension, the dependency of the figure is determined. Can be. Therefore, if one of these dimensions is left and the other is deleted, duplicate entry of dimensions can be eliminated. In addition, by displaying a plurality of dimensions related to the overlapping entry on the screen by default, the user can select only the optimal dimension and eliminate the duplication.

【0032】さらに、複数の投影図からなる図面データ
の場合に、ある投影図の寸法データを別の投影図上に変
換する寸法変換手段により、ある投影図上の寸法データ
を別の投影図の上に投影することができる。これによ
り、1つ投影図だけのデータでは相対位置を決定できな
い場合にも、投影図間の相互の寸法データにより相対位
置を決定できる。
Further, in the case of drawing data composed of a plurality of projection views, dimension conversion means for converting dimension data of one projection view into another projection view converts dimension data on one projection view into another projection view. Can be projected on top. As a result, even when the relative position cannot be determined by data of only one projection view, the relative position can be determined by mutual dimension data between the projection views.

【0033】これにより、複数の投影図に寸法が記入さ
れている場合に、その投影関係の全体から寸法の不足箇
所をユーザに示すことができる。また、投影図間で重複
している寸法記入も、ある投影図に他の投影図の寸法デ
ータを投影変換して集めることにより検出することがで
きる。
In this way, when dimensions are entered in a plurality of projections, it is possible to indicate to the user where the dimensions are insufficient from the entire projection relationship. In addition, overlapping dimension entries between projection views can be detected by projecting and converting dimension data of another projection view into a projection view.

【0034】[0034]

【発明の実施の形態】以下、本発明の複数の実施形態を
図面にしたがって詳細に説明する。なお、各図を通して
同等の構成要素には、原則として同一の符号を付してい
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In addition, the same components are denoted by the same reference symbols throughout the drawings.

【0035】〔実施形態1〕図1は、実施形態1による
図面検査装置の構成を示す。図面検査装置は、図形デー
タ2と寸法データ3を備える図面データ記憶手段1、互
いに相対的な位置を決定できる図形データ同士をまとめ
てグループ分けする図形データグループ化手段4、図形
データ2をグループ別に異なる表示属性で表す図形デー
タグループ表示手段5、グループ化により不足する寸法
を追加する寸法追加手段7及び、図面や寸法などを所定
のフォーマットで表示する表示手段6からなる。
[Embodiment 1] FIG. 1 shows the configuration of a drawing inspection apparatus according to Embodiment 1. The drawing inspection apparatus includes a drawing data storage means 1 having graphic data 2 and dimension data 3, a graphic data grouping means 4 for grouping graphic data whose relative positions can be determined together, and a graphic data 2 for each group. It comprises graphic data group display means 5 represented by different display attributes, dimension addition means 7 for adding missing dimensions due to grouping, and display means 6 for displaying drawings and dimensions in a predetermined format.

【0036】図2は、図面検査装置を実現するハード構
成を示す。このハード構成は、各実施形態において共通
である。すなわち、図面および検査結果を出力するディ
スプレイ装置201と、図面検査処理および入出力機器を
制御する中央演算装置202と、ユーザの指令や指示を受
け取るキーボード、ポインティングディバイス等の入力
装置203と、図面データ、検査結果、検査処理のプログ
ラム、処理中のワークデータ等を記憶する主記憶装置20
4と、補助記憶装置やネットワークとの間で図面データ
や検査結果を入出力するための外部入出力装置205と、
を備える計算機システムにより実現される。
FIG. 2 shows a hardware configuration for realizing the drawing inspection apparatus. This hardware configuration is common to each embodiment. That is, a display device 201 that outputs drawings and inspection results, a central processing unit 202 that controls drawing inspection processing and input / output devices, a keyboard that receives user commands and instructions, an input device 203 such as a pointing device, and drawing data. Main storage device 20 for storing inspection results, inspection processing programs, work data being processed, and the like.
4, an external input / output device 205 for inputting / outputting drawing data and inspection results between an auxiliary storage device and a network,
This is realized by a computer system including:

【0037】次に、図面検査装置の各構成要素について
詳細に説明する。主記憶装置205に設けられる図面デ
ータ記憶手段1は、本図形検査装置とおなじ計算機上で
動作するCADプログラムにより作成される図形データ
2と寸法データを、ユーザによる入力装置203からの指
示で入力される。あるいは、他の計算機で動作するCA
Dプログラムにより作成され、外部入出力装置205を介
して、図面データ記憶手段1に記憶してもよい。
Next, each component of the drawing inspection apparatus will be described in detail. The drawing data storage means 1 provided in the main storage device 205 receives the graphic data 2 and the dimension data created by the CAD program operating on the same computer as the graphic inspection device according to the instruction from the input device 203 by the user. You. Alternatively, a CA operating on another computer
It may be created by a D program and stored in the drawing data storage unit 1 via the external input / output device 205.

【0038】図面データ記憶手段1では、線分、円、円
弧等を図形データ2に、図形データ2の大きさや、図形
データ間の距離や角度を指示する寸法を寸法データ3に
格納している。
The drawing data storage means 1 stores line segments, circles, arcs, and the like in the graphic data 2, and stores the size of the graphic data 2 and the dimensions indicating the distance and angle between the graphic data in the dimension data 3. .

【0039】図3に、図面の一例を示す。この図面上の
図形データ2は図4に示すようなデータ構造で、寸法デ
ータ3は図5に示すようなデータ構造で記憶される。す
なわち、図形データ2は図形ID毎に、図形の種別(例
えば直線)と幾何情報(座標)を記憶している。また、
寸法データ3は寸法ID毎に、寸法種別(例えば直線間
距離)及び対象となる図形要素(図形ID)を記憶して
いる。
FIG. 3 shows an example of the drawing. The graphic data 2 on this drawing has a data structure as shown in FIG. 4, and the dimension data 3 has a data structure as shown in FIG. That is, the graphic data 2 stores the type of graphic (for example, a straight line) and geometric information (coordinates) for each graphic ID. Also,
The dimension data 3 stores a dimension type (for example, distance between straight lines) and a target graphic element (graphic ID) for each dimension ID.

【0040】図形データグループ化手段4は、寸法デー
タと図形データ間の位置関係から、図形データを互いに
相対的な位置関係を決定できる図形データ同士にグルー
プ分けする。互いに相対的な位置を決定できる図形デー
タグループとは、その中で幾つかの図形データの絶対的
な位置を決めれば、残りの図形データの絶対的な位置を
決定できる図形データの集合である。
The graphic data grouping means 4 groups the graphic data into graphic data whose relative positional relationship can be determined from the positional relationship between the dimension data and the graphic data. A graphic data group whose relative positions can be determined is a set of graphic data from which the absolute positions of some of the graphic data can be determined if the absolute positions of some of the graphic data are determined.

【0041】例えば、図3の図面の直線16と直線17は互
いに平行で、その距離は寸法23によって100と指定され
ている。もし、直線16の図面上での位置が与えられれ
ば、平行な2直線間の距離が決まっているので、直線17
の図面上での位置を決定できる。逆に、直線17の図面上
での位置が与えられれば、直線16の図面上での位置を決
定できる。このような直線16と直線17は、互いに相対的
な位置を決定できる図形データであるといえる。
For example, the straight line 16 and the straight line 17 in the drawing of FIG. If the position of the straight line 16 on the drawing is given, since the distance between two parallel straight lines is determined, the straight line 17
Can be determined on the drawing. Conversely, given the position of the straight line 17 on the drawing, the position of the straight line 16 on the drawing can be determined. Such a straight line 16 and a straight line 17 can be said to be graphic data from which a relative position can be determined.

【0042】図形データグループ化手段4は、直線16と
直線17を1つのグループとする。また、直線16と直線18
も寸法24により距離が80であると指定されている。図形
データグループ化手段4は、直線16と直線18を1つのグ
ループとする。さらに、直線16と直線17、直線16と直線
18の相対的な位置が決まるので、直線17と直線18の相対
的な位置が決定できる。図形データグループ化手段4
は、これらの関係から直線16、直線17、直線18を1つの
グループとする。同様にして直線16、直線17、直線18、
直線19、直線20を1つのグループとする。
The graphic data grouping means 4 groups the straight line 16 and the straight line 17 into one group. Also, straight line 16 and straight line 18
Is also specified by distance 24 to be 80. The graphic data grouping means 4 groups the straight line 16 and the straight line 18 into one group. In addition, straight line 16 and straight line 17, straight line 16 and straight line
Since the relative position of the line 18 is determined, the relative position of the line 17 and the line 18 can be determined. Figure data grouping means 4
Makes the straight line 16, the straight line 17, and the straight line 18 into one group from these relationships. Similarly, straight line 16, straight line 17, straight line 18,
The straight line 19 and the straight line 20 constitute one group.

【0043】一方、垂直な直線については、寸法21が与
えられているので直線11と直線12を1つのグループにす
る。また、寸法22が与えられているので、直線13と直線
14を1つのグループにする。しかし、直線11あるいは直
線12と直線13の間には寸法が記入されていない。このた
め、直線11の図面上での絶対位置を決めたとしても、直
線13の位置は決まらない。すなわち、直線11と直線13の
相対的な位置は決定できない。
On the other hand, for the vertical straight line, since the dimension 21 is given, the straight line 11 and the straight line 12 are put into one group. Also, given the dimensions 22, the straight line 13 and the straight line
Make 14 into one group. However, no dimension is drawn between the straight line 11 or the straight line 12 and the straight line 13. Therefore, even if the absolute position of the straight line 11 on the drawing is determined, the position of the straight line 13 is not determined. That is, the relative position between the straight line 11 and the straight line 13 cannot be determined.

【0044】したがって、図形データグループ化手段4
は、相対的な位置を決定できない図形を別のグループに
区分する。すなわち、直線13は直線11、12のグループ及
び、直線13、14のグループと別グループとする。同様に
して、直線15も更に別のグループとする。
Therefore, the graphic data grouping means 4
Classifies a figure whose relative position cannot be determined into another group. That is, the straight line 13 is a different group from the group of the straight lines 11 and 12 and the group of the straight lines 13 and 14. Similarly, the straight line 15 is another group.

【0045】最後に、図形データグループ化手段4は図
面上から1ヵ所だけ基準点を選び、それを通る直線の間
の角度が与えられていれば、それぞれの直線が属するグ
ループをあわせて1つのグループとする。基準点は、互
いに独立な直線群の相対的な位置を決めるために選択さ
れる。もし、基準点をきめないと、図3の図面では、縦
方向の直線と横方向の直線の相対的な位置が決まらな
い。
Finally, the graphic data grouping means 4 selects only one reference point from the drawing, and if an angle between straight lines passing through the reference point is given, the group to which each straight line belongs is combined into one group. Group. The reference points are selected to determine the relative positions of the lines that are independent of each other. If the reference point is not determined, the relative positions of the vertical straight line and the horizontal straight line cannot be determined in the drawing of FIG.

【0046】たとえば、直線11と直線16の交点を基準点
とすれば、直線11と直線16は直交する。製図法では、直
交する直線の間には角度寸法の記入を省略する。そこ
で、直交する場合も角度が指示されているとして処理す
る。幾何学の作図定理により、1点を通り直線との角度
が与えられていれば、他方の直線の位置を決めることが
できるので、これら2つの直線は互いに相対的な位置を
決めることができる。したがって、これらの図形が属す
るグループを合わせて直線11、12、16、17、18、19、20
を1つのグループにする。
For example, if the intersection of the straight line 11 and the straight line 16 is set as a reference point, the straight line 11 and the straight line 16 are orthogonal. In the drafting method, the entry of the angle dimension between the orthogonal straight lines is omitted. Therefore, the processing is performed assuming that the angle is instructed even in the case of orthogonality. If an angle with a straight line passing through one point is given by the geometric drawing theorem, the position of the other straight line can be determined, so that these two straight lines can determine the relative positions to each other. Therefore, the straight lines 11, 12, 16, 17, 18, 19, 20
Into one group.

【0047】図6に、図形データグループ化手段4によ
って図3の図面データをグループ化した結果を示す。グ
ループ化の結果は、グループ番号毎に図形要素のIDが
記憶される。
FIG. 6 shows the result of grouping the drawing data of FIG. 3 by the graphic data grouping means 4. As the grouping result, the ID of the graphic element is stored for each group number.

【0048】図形データグループ表示手段5は、グルー
プ分けした図形データグループごとに異なる表示属性を
設定し、表示手段6(ディスプレイ201)に表示す
る。図7に、グループ分けした図形データの表示例を示
す。ここでは、図6の3つのグループについて、グルー
プごとに異なる線幅や線種を設定している。このよう
に、図形データのグループ別に表示属性を変えること
で、相互に相対的な位置が決まる図形同士は同じ表示属
性で表示され、他の図形グループと容易に識別できる。
The graphic data group display means 5 sets different display attributes for each of the grouped graphic data groups and displays them on the display means 6 (display 201). FIG. 7 shows a display example of grouped graphic data. Here, different line widths and line types are set for each of the three groups in FIG. In this way, by changing the display attribute for each group of graphic data, the graphics whose relative positions are determined are displayed with the same display attribute, and can be easily distinguished from other graphic groups.

【0049】寸法追加手段7は、画面上で表示属性の異
なる図形の間に寸法を記入する。たとえば、ユーザから
のマウスなどによる指示に従って、画面上で追加記入す
る寸法線を描画し、キーボード入力される寸法値ととも
に、寸法データ記憶手段3に格納する。なお、追加する
寸法の自動記入の実施例については後述する。
The dimension adding means 7 writes dimensions between figures having different display attributes on the screen. For example, in accordance with an instruction from a user with a mouse or the like, a dimension line to be additionally entered is drawn on the screen, and stored in the dimension data storage unit 3 together with a dimension value input from the keyboard. An example of automatic entry of a dimension to be added will be described later.

【0050】図7のような画面表示では、線種の異なる
直線12と直線13は他グループに属することが一目でわか
る。そこで、ユーザは直線12と直線13の間に距離寸法を
追加すれば、直線12と直線13は平行であるから、互いの
相対的な位置がきまる。その結果、直線、13、14のグル
ープ2はグループ1に吸収され、寸法不足の一つを解消
できる。
In the screen display as shown in FIG. 7, it can be seen at a glance that the straight lines 12 and 13 having different line types belong to other groups. Therefore, if the user adds a distance dimension between the straight line 12 and the straight line 13, the straight line 12 and the straight line 13 are parallel to each other, so that their relative positions are determined. As a result, the group 2 of the straight lines 13 and 14 is absorbed by the group 1 and one of the dimensional shortages can be eliminated.

【0051】ところで、同じ線種の図形の間に寸法を記
入すると、追加した寸法は過剰な寸法記入となる。例え
ば、直線17と直線18の間に寸法を追加すると、すでに寸
法23と寸法24により直線17と直線18の相対的な位置が決
まっているため、追加する寸法は重複となる。しかし、
本実施形態によれば、各図形が属するグループの異同は
一目瞭然となるので、ユーザは真に寸法の不足している
記入個所を容易に把握でき、重複記入を防止できる。
By the way, when dimensions are written between figures of the same line type, the added dimensions become excessive. For example, if a dimension is added between the straight line 17 and the straight line 18, the relative positions of the straight line 17 and the straight line 18 are already determined by the dimension 23 and the dimension 24, and therefore, the added dimensions overlap. But,
According to the present embodiment, the difference of the group to which each figure belongs can be seen at a glance, so that the user can easily grasp the entry point where the dimension is truly insufficient, and can prevent duplicate entry.

【0052】図形データグループ表示手段5は、グルー
プごとに異なる表示色を設定してもよい。また、GKS
やPHIGS、OPEN−GL等のグラフィックライブ
ラリが有している表示データのグルーピング機能を利用
し、図形データグループ化手段4によってグループ分け
した図形データを、グループごとに異なる表示データグ
ループに割当るようにしてもよい。表示データグループ
は、グループ内の図形要素を一括して表示色を変更した
り、ピックしたときに一括してハイライトまたは点滅表
示することができる。
The graphic data group display means 5 may set different display colors for each group. Also, GKS
The graphic data grouped by the graphic data grouping means 4 is assigned to different display data groups for each group by using a display data grouping function of a graphic library such as PHIGS and OPEN-GL. May be. In the display data group, it is possible to change the display color of the graphic elements in the group all at once, or to highlight or blink the graphic elements collectively when picked.

【0053】表示手段6は、上記の表示データグループ
機能を備えるCRT等の表示装置であることが望まし
い。しかし、本実施例の図形データグループ表示手段5
を設け、グループごとに表示属性を変更することで、プ
リンタやプロッタ等のハードコピー出力装置でも代替可
能である。
The display means 6 is preferably a display device such as a CRT having the above display data group function. However, the graphic data group display means 5 of this embodiment
By changing the display attribute for each group, a hard copy output device such as a printer or a plotter can be used instead.

【0054】さらに、図形要素を最も多く含むグループ
に属する図形を元の図面の図形と同じ表示属性で表示す
ると、図7のように図面上の要素数に比べて寸法の不足
数が少ない場合、元の図面に比べて表示属性の変わる図
形の数が少ないので、表示属性が変わった図形要素が目
立つ。したがって、ユーザは寸法不足の箇所を簡単に見
つけることができる。
Further, when a figure belonging to the group containing the largest number of figure elements is displayed with the same display attributes as the figure in the original drawing, if the number of missing elements is smaller than the number of elements in the drawing as shown in FIG. Since the number of graphics whose display attributes change is smaller than that of the original drawing, graphic elements whose display attributes have changed stand out. Therefore, the user can easily find a portion with insufficient dimensions.

【0055】〔実施形態2〕次に、本発明の実施形態2
を説明する。本実施形態は不足する寸法の自動的な追加
を行なう寸法追加手段に特徴がある。
[Embodiment 2] Next, Embodiment 2 of the present invention.
Will be described. This embodiment is characterized by a dimension adding unit for automatically adding a missing dimension.

【0056】図8に、不足する寸法を自動的に記入する
寸法追加手段の処理手順を示す。寸法追加手段7は、図
形データグループの異なる図形の間に、最小限必要な寸
法データを自動的に追加して、表示手段6に表示する。
FIG. 8 shows a processing procedure of the dimension adding means for automatically filling in missing dimensions. The dimension adding means 7 automatically adds the minimum required dimension data between the different figures of the figure data group and displays them on the display means 6.

【0057】まず、最も図形要素の数が多いグループを
変数G1に設定し、グループG1に属する図形要素をリ
ストL1に格納する(S31)。図6の例では、グルー
プ1は7つ、グループ2は2つ、グループ3は1つの図
形要素を持っている。従って、グループ1を変数G1に
設定し、図形要素11、12、16、17、18、19、20をリスト
変数L1に設定する。
First, a group having the largest number of graphic elements is set as a variable G1, and graphic elements belonging to the group G1 are stored in a list L1 (S31). In the example of FIG. 6, group 1 has seven graphic elements, group 2 has two graphic elements, and group 3 has one graphic element. Therefore, the group 1 is set as the variable G1, and the graphic elements 11, 12, 16, 17, 18, 19, and 20 are set as the list variable L1.

【0058】次に、グループG1以外のグループについ
て、ループの繰返し毎に変数G2を設定して、以下のル
ープ処理を実行する(S32)。最初の繰り返しでグル
ープ2が、次の繰り返しではグループ3が変数G2に設
定される。
Next, for a group other than the group G1, a variable G2 is set each time the loop is repeated, and the following loop processing is executed (S32). Group 2 is set to the variable G2 in the first iteration and group 3 in the next iteration.

【0059】次に、グループG2に属する図形をリスト
L2に設定する。たとえば、図形要素13、図形要素14が
リストL2に設定される。そして、リストL1の各図形
要素を順次、変数E1に設定して以下の処理を繰り返す
(S34)。
Next, figures belonging to the group G2 are set in the list L2. For example, the graphic element 13 and the graphic element 14 are set in the list L2. Then, each graphic element of the list L1 is sequentially set to the variable E1, and the following processing is repeated (S34).

【0060】図6の例では、最初に図形要素11、次の繰
り返しで図形要素12...と、リストL1に格納されて
いる図形要素がループの度に順次、変数E1に設定され
る。同様に、リストL2の図形要素の各々をループの度
に変数E2に設定し、以下の処理を繰り返す(S3
5)。
In the example of FIG. 6, the graphic element 11 is first displayed, and the graphic element 12. . . And the graphic elements stored in the list L1 are sequentially set to the variable E1 every time the loop is performed. Similarly, each of the graphic elements in the list L2 is set as a variable E2 for each loop, and the following processing is repeated (S3).
5).

【0061】次に、変数E1と変数E2に格納された図
形要素の間に、寸法が設定できるか否かを判定する(S
36)。設定できる場合には、変数E1と変数E2の図
形要素の幾何情報に応じた寸法Dを生成し、リストL3
に追加する(S37)。
Next, it is determined whether a dimension can be set between graphic elements stored in the variables E1 and E2 (S
36). If it can be set, a dimension D according to the geometric information of the graphic elements of the variables E1 and E2 is generated, and a list L3
(S37).

【0062】寸法Dを生成したら、寸法DにグループG
2のグループ番号を設定する(S38)。たとえば、変
数E1に図形要素11が、変数E2に図形要素13が格納さ
れている場合、これらは平行な直線なので、平行直線間
の距離寸法41を生成する。距離寸法41は、図形要素11と
図形要素13の図形幾何データ303から算出する。
When the dimension D is generated, the group G is added to the dimension D.
The group number 2 is set (S38). For example, when the graphic element 11 is stored in the variable E1 and the graphic element 13 is stored in the variable E2, since these are parallel straight lines, a distance dimension 41 between the parallel straight lines is generated. The distance dimension 41 is calculated from the graphic geometric data 303 of the graphic elements 11 and 13.

【0063】図9に、リストL3のデータ構造を示す。
寸法41を生成したとき、変数G2にはグループ2が設定
されているので、リストL3に示すように、寸法41のグ
ループ番号に、グループ番号2を設定する。
FIG. 9 shows the data structure of the list L3.
When the dimension 41 is generated, since the group 2 is set in the variable G2, the group number 2 is set to the group number of the dimension 41 as shown in the list L3.

【0064】グループ2のすべての図形要素の相対的な
位置が決まるとS32に戻る。ここでは、グループG2
に対して寸法を1つ生成すれば、グループG1の図形要
素との相対的な位置が決まるので、G2の図形要素に関
してこれ以上の寸法追加は必要ない。S32に戻り、次
のグループ番号3を変数G2に設定して、処理を繰り返
す。
When the relative positions of all the graphic elements of group 2 are determined, the flow returns to S32. Here, the group G2
When one dimension is generated, the relative position with respect to the graphic element of the group G1 is determined, so that additional dimension addition is not necessary for the graphic element of G2. Returning to S32, the next group number 3 is set as the variable G2, and the process is repeated.

【0065】同様にして、グループ番号3では、S36
で図形要素11と図形要素15の間に距離寸法の設定できる
ことが分かるので、リストL3に寸法42を生成し、S3
8でグループ番号3を寸法42に設定する。すべてのグル
ープについてS32を繰り返した後、リストL3に格納
されている追加生成した寸法を、そのグループ番号に従
った表示属性で表示手段6に表示する。
Similarly, in the group number 3, S36
It can be seen that the distance dimension can be set between the graphic element 11 and the graphic element 15 in FIG.
In step 8, the group number 3 is set to the dimension 42. After S32 has been repeated for all the groups, the additionally generated dimensions stored in the list L3 are displayed on the display means 6 with display attributes according to the group numbers.

【0066】もし、変数E1、E2に格納されている図
形要素が平行でない直線の場合、2つの直線が図面上か
ら直交でなく且つ、角度寸法が定義されていないと、2
つの直線の間に角度寸法を定義する。角度寸法は両図形
要素の図形幾何データ303から算出する。
If the graphic elements stored in the variables E1 and E2 are non-parallel straight lines, if the two straight lines are not orthogonal from the drawing and the angular dimension is not defined,
Define an angular dimension between two straight lines. The angle dimension is calculated from the graphic geometric data 303 of both graphic elements.

【0067】たとえば、変数E1に図形要素16、変数E
2に図形要素13が格納されている場合、両方の直線は図
面上で直交するので、角度寸法の定義は必要ない。ま
た、変数E1、E2に格納されている図形要素の何れか
が円または円弧の場合は、S37に分岐して中心や半径
などの距離寸法を定義する。
For example, the graphic element 16 and the variable E
When the graphic element 13 is stored in 2, both straight lines are orthogonal to each other on the drawing, so that it is not necessary to define the angular dimension. If any of the graphic elements stored in the variables E1 and E2 is a circle or an arc, the process branches to S37 to define a distance dimension such as a center or a radius.

【0068】図10に、図7の図面に追加した寸法を含
む図面の表示例を示す。追加した寸法は、図形データグ
ループ表示手段5で表示したグループ毎の表示属性に合
わせて表示する。たとえば、リストL3の寸法41はグル
ープ番号が2になるので、グループ番号2の図形要素1
3、14と同じ表示属性に表示する。また、寸法42はグル
ープ番号3なので、図形要素15と同じ表示属性に表示す
る。
FIG. 10 shows a display example of a drawing including dimensions added to the drawing of FIG. The added dimension is displayed in accordance with the display attribute of each group displayed by the graphic data group display means 5. For example, since the group number is 2 for the dimension 41 of the list L3, the graphic element 1 of the group number 2
Display with the same display attributes as 3 and 14. Also, since the dimension 42 is the group number 3, it is displayed with the same display attribute as the graphic element 15.

【0069】以上のように、異なるグループの図形要素
間に寸法を1つ追加することにより、寸法不足を自動的
に解消することができ、図面修正の工数を大幅に低減す
ることができる。さらに、寸法を追加した図形要素のグ
ループ番号毎に表示属性を変えて、追加前の図形グルー
プと重ねて表示することにより、追加した寸法がどの部
分の寸法不足を解消するために追加されたか容易に分か
る。これにより、自動的に追加した寸法をユーザが容易
に確認できる。
As described above, by adding one dimension between the graphic elements of different groups, the shortage of the dimensions can be automatically eliminated, and the man-hour for correcting the drawing can be greatly reduced. In addition, by changing the display attribute for each group number of the figure element to which the dimension has been added and superimposing it on the figure group before the addition, it is easy to determine which part of the added dimension has been added to eliminate the lack of dimensions. I understand. This allows the user to easily confirm the automatically added dimensions.

【0070】〔実施形態3〕次に、本発明の実施形態3
を説明する。本実施形態の図面検査装置は、拘束関係が
不足している場合に、その不足の拘束関係を仮定してグ
ループ化を継続し、図面上の寸法の不足(仮定した値)
と重複を網羅して検出する。
[Embodiment 3] Next, Embodiment 3 of the present invention.
Will be described. When the constraint relationship is insufficient, the drawing inspection apparatus according to the present embodiment continues the grouping on the assumption that the constraint relationship is insufficient, and the dimension is insufficient (assumed value) on the drawing.
And duplicates are detected.

【0071】図11は、本実施形態による図面検査装置
の機能ブロック図を示す。図1と同等の図面記憶手段1
のほかに、拘束関係抽出手段101、拘束ネットワーク記
憶手段102、従属関係決定手段103、寸法不足・仮定検出
手段104および重複寸法検出手段105を有している。な
お、図示を省略しているが、図1と同等の図形データグ
ループ表示手段5や表示手段6を有している。また、本
実施形態のハード構成は、図2の計算機システムによっ
て実現する。
FIG. 11 is a functional block diagram of the drawing inspection apparatus according to the present embodiment. Drawing storage means 1 equivalent to FIG.
In addition to the above, there are a constraint relationship extraction unit 101, a constraint network storage unit 102, a dependency relationship determination unit 103, a dimension shortage / assuming detection unit 104, and an overlap dimension detection unit 105. Although not shown, it has graphic data group display means 5 and display means 6 equivalent to those in FIG. Further, the hardware configuration of the present embodiment is realized by the computer system of FIG.

【0072】拘束関係抽出手段101は、図面データ記憶
手段1から図形データ2と寸法データ3を読みだし、拘
束ネットワークを作成して拘束ネットワーク記憶手段10
2に書き込む。拘束ネットワークは図形データをノード
とし、距離や角度の寸法データによる明示的な拘束条件
や、接触や交差等の図形要素の位置関係による非明示な
拘束条件を、方向性のない無向アークとする。
The constraint relation extracting means 101 reads the graphic data 2 and the dimension data 3 from the drawing data storage means 1, creates a constraint network, and creates a constraint network.
Write to 2. The constraint network uses graphic data as nodes, and converts explicit constraint conditions based on distance and angle dimension data and implicit constraint conditions based on the positional relationship of graphic elements such as contact and intersection into undirected arcs with no directionality. .

【0073】従属関係決定手段103は、幾何推論ルール
に基づく推論を実行し、図形要素ノードの従属関係を決
定する。幾何推論ルールによる形状要素の位置決定の原
理については、たとえば、Aldefeld B. 著、「幾何推論
法に基づく幾何形状の変形(Variation of geometries
based on a geometric-reasoning method);Computer−
Aided Design;Volume 20, Number 3,1988年,PP.117
〜126」記載され、周知である。
The dependency determining means 103 executes the inference based on the geometric inference rule to determine the dependency of the graphic element nodes. For the principle of determining the position of a shape element by the geometric inference rule, see, for example, Aldefeld B., “Variation of geometries based on the geometric inference method.
based on a geometric-reasoning method); Computer-
Aided Design; Volume 20, Number 3, 1988, PP.117
~ 126 "are well known.

【0074】幾何推論ルールは、エキスパートシステム
などの推論ルールと同様に、「前提部」と「帰結部」に
分かれている。前提部の条件を満たす図形要素及び拘束
関係がデータベースに存在すれば、帰結部の図形要素の
位置を決定できる。すなわち、成立する幾何推論ルール
の前提部に含まれる図形要素に、帰結部に含まれる図形
要素が従属することを表わしている。
The geometric inference rule is divided into a "premise part" and a "consequence part", like the inference rule of the expert system or the like. If a graphic element and a constraint relationship satisfying the condition of the premise part exist in the database, the position of the graphic element of the consequent part can be determined. In other words, it indicates that the graphic element included in the consequent part depends on the graphic element included in the premise part of the established geometric inference rule.

【0075】例えば、〈前提〉位置の決まった2つの点
があり、それらの点との間に距離拘束をもつ位置の決ま
っていない直線がある、〈帰結〉その直線は決定でき
る、という幾何推論ルールが成立するならば、その直線
は2つの点に従属することが分かる。言い替えれば、従
属関係の成立する図形要素間では相対的位置が決定で
き、実施形態1、2での同一グループに属することを示
す。この場合、直線要素が2つの点要素に従属すること
を表わす従属関係データを、後述のように拘束ネットワ
ーク記憶手段102に追加する。
For example, <premise> geometric inference that there are two fixed-point positions, there is a straight line whose position has a distance constraint between these points and the fixed position, and <consequence> that straight line can be determined. If the rule holds, we know that the line is dependent on two points. In other words, the relative position can be determined between the graphic elements having the subordinate relation, indicating that they belong to the same group in the first and second embodiments. In this case, dependency data indicating that the straight line element is dependent on the two point elements is added to the constraint network storage means 102 as described later.

【0076】従属関係決定手段103の幾何推論は、拘束
ネットワーク記憶手段102に格納されている拘束ネット
ワークの図形要素ノードのいくつかを基準位置として選
択し、それを起点とする幾何推論によって図形要素間の
従属関係データを作成し、拘束ネットワーク記憶手段10
2に格納する。これを幾何推論ルールが適用できなくな
るまで繰り返す。
The geometric inference of the dependency relationship determining means 103 is performed by selecting some of the graphic element nodes of the constraint network stored in the constraint network storage means 102 as reference positions, and performing geometric inference with the starting point as a starting point. Create the dependency data of the constraint network storage means 10
Store in 2. This is repeated until the geometric inference rule cannot be applied.

【0077】図形要素データをノード、拘束関係データ
をアークとする拘束ネットワークの場合、従属関係デー
タは主従の関係になる拘束対象ノードと拘束アークの向
きで表わされる。また、従属関係データの作成に用いた
拘束アークには、使用済フラグを立てておく。このフラ
グは、後述する重複寸法の検出に用いる。
In the case of a constraint network using graphic element data as nodes and constraint relation data as arcs, the dependency relation data is expressed by the constraint target nodes and the direction of the constraint arc that are in a master-slave relationship. In addition, a used flag is set for the constraint arc used for creating the dependency relationship data. This flag is used for detecting an overlap dimension described later.

【0078】寸法不足検出・仮定手段104は、拘束ネッ
トワーク記憶手段102に記憶している全ての図形要素ノ
ードの従属関係が決定される前に幾何推論ルールの適用
ができなくなる場合に起動される。従属関係が決定でき
ない図形要素ノードが残るということは、拘束関係が不
十分であることを示す。そこで、拘束関係の不十分な図
形要素を特定して、その拘束関係を仮定し、従属関係決
定手段103による幾何推論の継続を可能にする。
The dimension shortage detection / assuming means 104 is activated when the geometric inference rule cannot be applied before the dependency of all the graphic element nodes stored in the constraint network storage means 102 is determined. Remaining graphic element nodes for which the dependency relationship cannot be determined indicates that the constraint relationship is insufficient. Thus, a graphic element having an insufficient constraint relationship is specified, the constraint relationship is assumed, and the geometric inference by the dependency determining means 103 can be continued.

【0079】この場合、従属関係の決定できない図形要
素を1つ選択し、どのような拘束関係があれば幾何推論
ルールを続行できるか調べる。そして、足りない拘束関
係を図形の幾何データから算出して仮定し、その図形要
素ノードの従属関係データを決定する。
In this case, one graphic element for which the dependent relationship cannot be determined is selected, and it is checked what constraint relationship can be satisfied to continue the geometric inference rule. The missing relation is calculated and assumed from the geometric data of the graphic, and the dependency data of the graphic element node is determined.

【0080】たとえば、位置の決まった2つの点があ
り、その1点との間に距離拘束をもつ位置の決まってい
ない直線があるとき、他の1点とその直線との間に距離
拘束があれば、上記した幾何推論ルールが適用できる。
従って、このような不足している距離拘束を図形の幾何
データ303から仮定し、その直線が2つの点に従属する
ことを表す従属関係データを作成する。
For example, when there are two fixed-point points and there is a straight line whose position is not fixed and has a distance constraint between the two points, a distance constraint is imposed between another point and the straight line. If so, the above-described geometric inference rules can be applied.
Therefore, such a missing distance constraint is assumed from the geometric data 303 of the graphic, and dependency data indicating that the straight line depends on two points is created.

【0081】新たな従属関係データを拘束ネットワーク
記憶手段102に追加すると、当該図形要素ノードに新た
に幾何推論ルールが適用できるので、従属関係決定手段
103を再実行する。
When new dependency data is added to the constraint network storage means 102, a new geometric inference rule can be applied to the graphic element node.
Perform step 103 again.

【0082】拘束関係を仮定して従属関係を決定する際
に、仮定前に従属関係を決定できた図形要素のグループ
には寸法記入の不足はない。しかし、仮定後に決定した
図形要素は、拘束関係、つまり寸法を仮定しているの
で、記入不足の寸法がある。しかも、この仮定は繰返し
行なわれる場合がある。これらを一つのグループとして
扱うことは適切ではない。
When determining the dependent relationship by assuming the constraint relationship, there is no lack of dimension entry for the group of graphic elements for which the dependent relationship could be determined before the assumption. However, since the graphic elements determined after the assumption assume a constraint relationship, that is, a dimension, there is a dimension for which entry is insufficient. Moreover, this assumption may be repeated. It is not appropriate to treat them as one group.

【0083】したがって、拘束関係を仮定する前に従属
関係を決定した図形要素と、仮定後に従属関係を決定し
た図形要素を区別するデータとして、従属関係グループ
番号を用意し、拘束関係の仮定の度に1を加算して記憶
し、幾何推論ルールを適用して従属関係を決定したとき
に、その値を図形データに付加する。
Accordingly, a dependency relationship group number is prepared as data for distinguishing a graphic element for which the dependency is determined before assuming the constraint relationship and a graphic element for which the dependency is determined after the assumption, and the degree of the constraint is assumed. Is added to and stored, and when the geometric inference rule is applied to determine the dependency, the value is added to the graphic data.

【0084】これにより、従属関係グループ番号の値が
0の図形データは寸法の記入不足がなく、1以上の図形
データは寸法の不足していることが分かる。また、従属
関係グループ番号の最大値は、図面データ記憶手段1に
格納している全図面データにおける寸法記入の不足数を
表している。
As a result, it can be understood that the graphic data having the dependency relationship group number of 0 has no insufficient dimension entry, and the graphic data having at least one has the insufficient dimension. Further, the maximum value of the dependency relationship group number indicates the number of missing dimension entries in all the drawing data stored in the drawing data storage unit 1.

【0085】重複寸法検出手段105は、拘束ネットワー
ク記憶手段102に格納されている拘束ネットワークを検
索し、使用済フラグの立っていない拘束アークを参照す
る。従属関係の決定に使われなかった拘束条件は、図形
の従属関係、すなわち図形の位置を決定するのに不要
な、重複記入の寸法である。しかし、未使用の拘束条件
データが必ずしも削除の対象とは限らない。製図規則上
からは、使用した拘束条件を削除し、未使用のデータを
残した方が適当なこともある。
The overlap size detecting means 105 searches the constraint network stored in the constraint network storage means 102 and refers to the constraint arc for which the used flag is not set. The constraints that were not used to determine the dependencies are the dependencies of the figure, ie, the dimensions of the duplicate entries that are not needed to determine the position of the figure. However, unused constraint condition data is not always subject to deletion. From the drafting rule, it may be appropriate to delete the used constraint conditions and leave unused data.

【0086】そこで、未使用の拘束アークの両端の図形
要素ノードを参照し、そのノードが従属関係決定手段10
3で決定した過程を逆方向に辿りながら、重複記入に係
る拘束条件データを集める。そして、集合ごとの拘束条
件、すなわち寸法データに、重複記入を示すデータとし
て、重複グループ番号を付与する。
Therefore, the graphic element nodes at both ends of the unused constraint arc are referred to, and the nodes are determined by the dependency determination means 10.
While tracing the process determined in 3 in the reverse direction, the constraint condition data related to the duplicate entry is collected. Then, an overlapping group number is assigned to the constraint condition for each set, that is, the dimension data, as data indicating an overlapping entry.

【0087】以下、本実施形態における各構成要素を詳
細に説明する。図12に、拘束関係抽出手段の処理フロ
ーを、図13〜図16にその説明の参照図を示す。
Hereinafter, each component in the present embodiment will be described in detail. FIG. 12 shows a processing flow of the constraint relationship extracting means, and FIGS.

【0088】図13は、本実施形態の説明に用いる図面
の一例を示している。同図において、符号601〜608は直
線図形要素、符号609、610は点図形要素である。また、
符号611〜617は寸法データである。
FIG. 13 shows an example of a drawing used for describing the present embodiment. In the figure, reference numerals 601 to 608 denote linear graphic elements, and reference numerals 609 and 610 denote point graphic elements. Also,
Reference numerals 611 to 617 are dimension data.

【0089】図14は、図13の図面のデータ構造を示
す。同図(a)の図形データ2は、個々の図形要素を区
別するための図形識別子301、点、線分、円、円弧等の
図形の種類を表わす図形種別302、図形種別302が点なら
その座標値、直線なら始点、終点の座標値、円なら中心
点の座標値と半径、円弧なら中心点座標値、半径、始点
終点の座標値を格納する図形幾何データ303、ディスプ
レイ装置201上に表示するときの表示色304、従属関係に
より相対的な位置が決まる図形要素のグループを表す従
属関係グループ番号305からなる。従属関係グループ番
号305は、従属関係決定手段103と寸法不足検出・仮定手
段104により書き込まれる。
FIG. 14 shows the data structure of the drawing of FIG. The graphic data 2 shown in FIG. 3A includes a graphic identifier 301 for distinguishing individual graphic elements, a graphic type 302 representing the type of a graphic such as a point, a line segment, a circle, an arc, and the like. Coordinate values, coordinate values of start and end points for straight lines, coordinate values and radii of center points for circles, coordinate values of center points, radii for arcs, and geometric data 303 for storing coordinates of start and end points, displayed on display device 201 The display color 304 includes a dependent relationship group number 305 representing a group of graphic elements whose relative positions are determined by the dependent relationship. The dependent relationship group number 305 is written by the dependent relationship determining means 103 and the dimension shortage detecting / assuming means 104.

【0090】同図(b)の寸法データ3は、個々の寸法
を識別するための寸法識別子306、距離、角度、半径、
直径等の寸法の種類を表わす寸法種別307、寸法が拘束
する1つまたは2つの図形要素の図形識別子301を格納
する拘束対象図形要素データ308、図面検査の結果で重
複と判定されたときに重複寸法検出手段105からセット
される重複フラグ309、互いに重複関係にある寸法のグ
ループを表わす重複グループ番号310からなる。
The dimension data 3 shown in FIG. 9B includes a dimension identifier 306 for identifying each dimension, a distance, an angle, a radius,
Dimension type 307 representing the type of dimension such as diameter, constrained graphic element data 308 for storing graphic identifiers 301 of one or two graphic elements whose dimensions are constrained, and duplication when it is determined in the drawing inspection that they are duplicates The overlap flag 309 is set by the dimension detection means 105, and includes an overlap group number 310 representing a group of dimensions having an overlapping relationship with each other.

【0091】図15及び図16に、拘束関係抽出手段等
により生成される、拘束ネットワークの図形要素ノード
テーブル及び拘束アークテーブルを示す。
FIGS. 15 and 16 show a graphic element node table and a constraint arc table of the constraint network generated by the constraint relationship extracting means and the like.

【0092】図形要素ノードテーブル400は、ノード識
別子401、点、直線、円等の図形要素の種類を表わすノ
ード種別402、ノードに対応する図形要素が図面データ
記憶手段1にあれば、その図形識別子301を格納する対
応図形識別子403、ノードが表わす図形の幾何情報を格
納するノード幾何データ404、幾何推論の実行により基
準位置からの相対位置が決定できことを示す決定済みフ
ラグ405、基準要素から何回目の推論ルール適用で従属
関係を決定できたかを示す従属関係決定順序番号406、
基準要素から拘束関係の不足なく決められたときは0、
拘束関係の追加により決めたときは追加の回数を示す従
属関係グループ番号407で構成する。
The graphic element node table 400 includes a node identifier 401, a node type 402 representing the type of graphic element such as a point, a straight line, a circle, and the like. Corresponding graphic identifier 403 for storing 301, node geometric data 404 for storing geometric information of the graphic represented by the node, determined flag 405 indicating that the relative position from the reference position can be determined by executing geometric inference, Dependency relationship determination order number 406 indicating whether the dependency was determined by the second inference rule application,
0 when determined from the reference element without lack of constraint
When determined by the addition of the constraint relation, it is composed of a dependent relation group number 407 indicating the number of additions.

【0093】ノード識別子401、ノード種別402、対応図
形識別子403及びノード幾何データ404は拘束関係抽出手
段101により、決定済みフラグ405、従属関係決定順序番
号406及び従属関係グループ番号407は従属関係決定手段
103により、それぞれ拘束ネットワーク記憶手段102に書
き込まれる。
The node identifier 401, the node type 402, the corresponding graphic identifier 403, and the node geometric data 404 are determined by the constraint extracting unit 101, and the determined flag 405, the dependent relationship determining order number 406, and the dependent group number 407 are determined by the dependent relationship determining unit.
By 103, they are respectively written into the constrained network storage means 102.

【0094】拘束アークテーブル410は、アーク識別子4
11、距離、角度、半径等の拘束の種類を示すアーク種別
412、拘束関係にある第1及び第2の図形要素ノードを
示す拘束対象ノード413、拘束アークに対応する寸法が
図面データ記憶手段1にあれば、その寸法識別子306を
格納する対応寸法データ414、拘束アークが幾何推論に
使用されたかどうか示す使用済フラグ415、幾何推論に
おいて、拘束対象ノード413の第1のノードから第2の
ノードを決定したときに0、逆のときに1を設定し、従
属関係の方向を示す従属方向データ416で構成する。
The constraint arc table 410 contains an arc identifier 4
11, arc type indicating the type of constraint such as distance, angle, radius, etc.
412, a constraint target node 413 indicating the first and second graphic element nodes in a constraint relationship, if the dimension corresponding to the constraint arc is in the drawing data storage unit 1, corresponding dimension data 414 storing the dimension identifier 306 thereof; A used flag 415 indicating whether or not the constrained arc has been used for geometric inference. In the geometric inference, 0 is set when a second node is determined from the first node of the node 413 to be constrained, and 1 is set in the opposite case. It is composed of dependent direction data 416 indicating the direction of the dependent relationship.

【0095】アーク識別子411、アーク種別412、拘束対
象ノード413及び対応寸法データ414は拘束関係抽出手段
101により、使用済フラグ415と従属方向データ416は従
属関係決定手段103により、それぞれ拘束ネットワーク
記憶手段102に書き込まれる。
The arc identifier 411, the arc type 412, the constraint target node 413, and the corresponding dimension data 414 are the constraint relation extracting means.
According to 101, the used flag 415 and the dependent direction data 416 are written into the restricted network storage means 102 by the dependent relationship determining means 103.

【0096】以下、図12の処理フローに従って、拘束
関係抽出手段101の処理手順を説明する。まず、図形要
素に基づいて拘束ネットワークのデータを生成する。こ
のため、図14(a)のように、図形データ2として記
憶されている各図形要素について順次、その図形識別子
301(601〜610)を変数E1に設定して、以下の処理を
繰り返す(S501)。
The processing procedure of the constraint relation extracting means 101 will be described below with reference to the processing flow of FIG. First, data of a constraint network is generated based on a graphic element. For this reason, as shown in FIG. 14A, for each of the graphic elements stored as the graphic data 2,
301 (601 to 610) is set as the variable E1, and the following processing is repeated (S501).

【0097】S502では、図形データ2を参照して、
変数E1に設定されている図形識別子301に対応する図
形要素ノードテーブル400を作成し、これを変数N1に
設定する。たとえば、変数E1に識別子「601」が設定
されているとき、図形データの中から符号320で示した
行の識別子601の図形種別302、図形幾何データ303を参
照し、ノードテーブル400の識別子L1の行を作成し、
変数N1にL1を代入し、ノード種別402、対応図形識
別子403、ノード幾何データ404の欄に、図形データの図
形種別302、図形識別子301、図形幾何データ303を複写
する。
In S502, referring to the graphic data 2,
A graphic element node table 400 corresponding to the graphic identifier 301 set in the variable E1 is created and set in the variable N1. For example, when the identifier “601” is set in the variable E1, the graphic type 302 and the graphic geometric data 303 of the identifier 601 of the row indicated by the reference numeral 320 are referenced from the graphic data, and the identifier L1 of the node table 400 is referred to. Create a row,
L1 is substituted for the variable N1, and the graphic type 302, graphic identifier 301, and graphic geometric data 303 of the graphic data are copied in the columns of the node type 402, the corresponding graphic identifier 403, and the node geometric data 404.

【0098】S503では、S502で作成した図形要
素ノードN1と、それまでに図形要素ノードテーブル40
0に登録したN1以外の図形要素ノードとの間に、交点
または接点があるかを調べる。もし、交点または接点が
あれば、N1と交点または接点を持つ図形要素ノードを
N2に、交点または接点の座標値を変数C1に設定し、
S504に分岐する。
In S503, the graphic element node N1 created in S502 and the graphic element node table 40
It is checked whether there is an intersection or a contact point with the graphic element node other than N1 registered in 0. If there is an intersection or a contact point, a graphic element node having an intersection or a contact point with N1 is set to N2, and the coordinate value of the intersection or the contact point is set to a variable C1,
The process branches to S504.

【0099】たとえば、変数E1に識別子「601」が設
定されている場合は、図形要素ノードテーブル400に
は、N1以外の図形要素ノードがないので、S504に
は分岐しない。次の繰り返しで、変数E1に識別子「60
2」が設定される場合、ノードテーブル400には識別子
「L1」、「L2」の図形要素ノードがあり、変数N1
には識別子「L2」が設定されている。L1とL2は、
座標(0、0)で交差するので変数N2にL1を、C1に
(0、0)を設定し、S504に分岐する。
For example, when the identifier "601" is set in the variable E1, there is no graphic element node other than N1 in the graphic element node table 400, so that the flow does not branch to S504. In the next iteration, the identifier “60” is assigned to the variable E1.
When “2” is set, the node table 400 has graphic element nodes with identifiers “L1” and “L2”, and the variable N1
Is set with the identifier “L2”. L1 and L2 are
Since the intersection occurs at the coordinates (0, 0), L1 is set to the variable N2, (0, 0) is set to C1, and the process branches to S504.

【0100】S504では、求めた複数の交点C1の各
々について、C1と同一座標の点要素ノードが既に図形
要素ノードテーブル400に登録済みであるか調べる。登
録済みでなければS505に分岐する。もし登録済であ
れば、変数N3にその識別子を代入してS507に進
む。図形要素ノードテーブル400に、識別子「L1」、
「L2」の図形要素しかない場合は、(0、0)に点要素
ノードが存在していないので、S505に分岐する。
In S504, it is determined whether or not a point element node having the same coordinates as C1 has already been registered in the graphic element node table 400 for each of the plurality of intersections C1 obtained. If not registered, the flow branches to S505. If registered, the identifier is substituted for the variable N3, and the process proceeds to S507. In the graphic element node table 400, the identifier "L1",
If there is only the graphic element of “L2”, there is no point element node at (0, 0), so the flow branches to S505.

【0101】S505では、図形要素ノードテーブル40
0に新たな図形要素ノードを、識別子「P1」で追加
し、ノード種別402に「点」を、対応図形403に「対応要
素なし」を、ノード幾何データ404に交点C1の座標値
(0、0)を設定する。変数N3には、作成した図形要
素ノードの識別子「P1」を設定し、S506に進む。
In S505, the graphic element node table 40
0, a new graphic element node is added with an identifier “P1”, “point” is set as the node type 402, “no corresponding element” is set as the corresponding figure 403, and the coordinate value (0, 0) is set. The identifier “P1” of the created graphic element node is set in the variable N3, and the process proceeds to S506.

【0102】S506では、拘束アークテーブル410
に、符号423で示す識別子「701」の拘束アークを追加
し、そのアーク種別412に「距離」を、拘束対象ノード4
13の第1ノード(#1)には線図形要素N2のL1、第
2ノード(#2)には点図形要素N3のP1を設定す
る。これによって、点図形要素N3が線図形要素N2上
に拘束されることを表す。なお、S506で新規に作成
した拘束アーク「701」の対応寸法データ414には、「対
応寸法なし」を設定する。
In S506, the constraint arc table 410
Is added to the constraint arc with the identifier “701” indicated by reference numeral 423, and “distance” is added to the arc type 412, and the constraint target node 4
The L1 of the line graphic element N2 is set to the first node (# 1) 13 and the P1 of the point graphic element N3 is set to the second node (# 2). This indicates that the point graphic element N3 is constrained on the line graphic element N2. Note that “no corresponding dimension” is set in the corresponding dimension data 414 of the constraint arc “701” newly created in S506.

【0103】S507では、たとえば拘束アークテーブ
ル410に、新たに符号424で示す拘束アーク「702」を追
加し、アーク種別412の欄に「距離」を、拘束対象ノー
ド413にS502で作成したノードN1の識別子「L
2」と、点図形ノードN3の識別子「L3」を設定す
る。対応寸法データ414は、「対応寸法なし」を設定す
る。
In S507, for example, a constraint arc “702” indicated by reference numeral 424 is newly added to the constraint arc table 410, “Distance” is entered in the field of the arc type 412, and the node N1 created in S502 is added to the constraint target node 413. The identifier "L
2 "and the identifier" L3 "of the point graphic node N3. The corresponding dimension data 414 sets “no corresponding dimension”.

【0104】S508では、S502によるノードN1
の図形要素ノードと、図形要素ノードテーブル400にお
ける既存の図形要素ノードとの間に接触関係(接線また
は接円)があるかを調べる。接触関係があれば、その図
形要素ノードの識別子を変数N4に設定し、S509に
分岐する。
In S508, the node N1 in S502
It is determined whether or not there is a contact relationship (tangent line or tangent circle) between the graphic element node and the existing graphic element node in the graphic element node table 400. If there is a contact relationship, the identifier of the graphic element node is set in the variable N4, and the flow branches to S509.

【0105】接触関係は円や円弧図形と周囲の図形要素
との間に存在するが、図13の図面の例では、円や円弧
がないのでS509には分岐しない。しかし、本処理を
追加することにより、角の丸めを含む図形処理にも対応
できる。
Although the contact relationship exists between the circle or arc figure and the surrounding graphic elements, in the example of the drawing of FIG. 13, there is no circle or arc, so that the flow does not branch to S509. However, by adding this processing, it is possible to cope with graphic processing including rounding of corners.

【0106】S509では、拘束アークテーブル410に
拘束アークを新たに作成し、そのアーク種別412に「距
離」を、拘束対象ノード413に変数N1のノード識別子4
01と変数N4のノード識別子401とを設定する。対応寸
法データ414には、「対応寸法なし」を設定する。たと
えば、線分を登録するとき、すでに拘束ネットワークに
登録済みの円にその線分が接する場合、その線分と円と
の間にアーク種別「距離」の拘束アークを生成する。
In step S509, a constrained arc is newly created in the constrained arc table 410, “distance” is set in the arc type 412, and the node identifier 4 of the variable N1 is set in the constrained node 413.
01 and the node identifier 401 of the variable N4 are set. "No corresponding dimension" is set in the corresponding dimension data 414. For example, when registering a line segment, if the line segment touches a circle already registered in the constraint network, a constraint arc of arc type “distance” is generated between the line segment and the circle.

【0107】このようにして、S501〜S509の処
理を繰返し、図形データ2に基づく拘束ネットワークの
中間生成を行ない、次いで寸法データ3に基づく、S5
11からの拘束ネットワークの生成に移行する。
In this manner, the processing of S501 to S509 is repeated, intermediate generation of the constraint network based on the graphic data 2 is performed, and then S5 based on the dimension data 3 is performed.
Then, the process proceeds to the generation of the constraint network from S11.

【0108】S511では、寸法データ3として記憶さ
れている各寸法を、順番に変数D1に代入し(S51
1)、S512〜S515の処理を繰り返す。図14
(b)の寸法データ3の例では、識別子611〜617を順番
に変数D1に代入する。
In S511, each dimension stored as the dimension data 3 is sequentially substituted into the variable D1 (S51).
1), the processing of S512 to S515 is repeated. FIG.
In the example of the dimension data 3 in (b), the identifiers 611 to 617 are sequentially assigned to the variable D1.

【0109】S512では、変数D1が示す寸法データ
の寸法種別307の欄を参照し、距離寸法ならS513
に、角度寸法ならS514に、円や円弧に付加した径寸
法ならS515に分岐する。
In S512, the column of the dimension type 307 of the dimension data indicated by the variable D1 is referred to.
The process branches to S514 for an angular dimension and to S515 for a diameter dimension added to a circle or an arc.

【0110】S513では、拘束アークテーブル410に
新たな拘束アークを作成し、アーク種別412の欄に「距
離」を設定する。さらに、変数D1の寸法識別子に対応
する寸法データの拘束対象図形要素308と、図形要素ノ
ードテーブル400の対応図形識別子403の値とで、一致す
るノード識別子401の値を拘束対象ノード413に設定す
る。最後に、変数D1の値を拘束アークテーブル410の
対応寸法データ414に設定する。
In S513, a new constraint arc is created in the constraint arc table 410, and "distance" is set in the field of the arc type 412. Further, the value of the node identifier 401 that matches with the constraint target graphic element 308 of the dimension data corresponding to the dimension identifier of the variable D1 and the value of the corresponding graphic identifier 403 of the graphic element node table 400 is set in the constraint target node 413. . Finally, the value of the variable D1 is set in the corresponding dimension data 414 of the constraint arc table 410.

【0111】たとえば、変数D1が寸法識別子「611」
の場合、まず拘束アーク「425」のセルを作成し、アー
ク種別412に「距離」を設定する。次に、寸法識別子「6
11」の拘束対象図形要素データ308の値を参照すると、
その値は「602」と「608」である。一方、図形識別子40
3が「602」および「608」となる図形要素ノードテーブ
ル400のノード識別子401の値は、それぞれ「L2」およ
び「L8」である。そこで、この「L2」および「L
8」拘束アーク「425」に設定する。そして、変数D1
の値「611」を対応寸法データ414に設定する。
For example, when the variable D1 is the dimension identifier "611"
In the case of, first, a cell of the constraint arc "425" is created, and "distance" is set to the arc type 412. Next, the dimension identifier “6
Referring to the value of the constraint target graphic element data 308 of “11”,
Its values are "602" and "608". On the other hand, the graphic identifier 40
The values of the node identifier 401 in the graphic element node table 400 in which 3 is “602” and “608” are “L2” and “L8”, respectively. Therefore, the “L2” and “L”
8 "is set to the constrained arc" 425 ". And the variable D1
Is set to the corresponding dimension data 414.

【0112】S514では、新たな拘束アークのアーク
種別412に「角度」を設定し、S513と同様の処理を
する。S515でも、新たな拘束アークのアーク種別41
2に「径」を設定し、S513と同様の処理をする。こ
れにより、図14(b)の寸法データの611〜617は、S
513ないしS515の処理を経て、拘束アークテーブ
ル410上に719〜725の拘束アークを作成する。
In S514, “angle” is set to the arc type 412 of the new constrained arc, and the same processing as in S513 is performed. Also in S515, the arc type 41 of the new constraint arc
“Diameter” is set to 2 and the same processing as in S513 is performed. As a result, 611 to 617 of the dimension data in FIG.
After the processes of 513 to S515, constraint arcs of 719 to 725 are created on the constraint arc table 410.

【0113】最後に、S521のループでは、通常、図
面上には明示していない図形要素間の直角関係(暗黙の
直角関係と呼ぶ)を抽出し、拘束ネットワークに追加す
る。S521では、図形要素ノードテーブル400のノー
ド種別402が「点」である全ての図形要素ノードについ
て、識別子401を変数Qに順次設定する。
Finally, in the loop of S521, usually, a right-angled relationship (referred to as an implicit right-angled relationship) between graphic elements not explicitly shown in the drawing is extracted and added to the constraint network. In S521, the identifier 401 is sequentially set to the variable Q for all the graphic element nodes whose node type 402 is “point” in the graphic element node table 400.

【0114】S522では、点Qを通り、ノード種別40
2が「直線」の図形要素ノードのうち、互いに直交する
ノードの組み合わせを全て求め、それをリスト変数R1
に格納する。たとえば、変数Qに識別子P1が設定され
ているとき、P1を通る直線はL1およびL2である。
リストR1には{(L1、L2)}の組み合わせが設定さ
れる。
In S522, the data passes through the point Q and the node type 40
Among the graphic element nodes in which “2” is a “straight line”, all combinations of nodes that are orthogonal to each other are obtained, and the combination
To be stored. For example, when the identifier P1 is set in the variable Q, straight lines passing through P1 are L1 and L2.
A combination of {(L1, L2)} is set in the list R1.

【0115】S523では、リストR1の各組み合わせ
を、順番に変数NP1に設定し、S524以下を繰り返
す。たとえば、リストR1が{(L1、L2)}のとき、
最初に変数NP1に(L1、L2)を設定してS524
を実行する。そして、リストR1に未処理の組み合わせ
がなくなるまで、S523のループを繰り返す。
In S523, each combination of the list R1 is set to the variable NP1 in order, and S524 and the subsequent steps are repeated. For example, when the list R1 is {(L1, L2)},
First, (L1, L2) is set to the variable NP1 and S524
Execute Then, the loop of S523 is repeated until there is no unprocessed combination in the list R1.

【0116】S524では、変数NP1の直線ノードの
組について、リスト内の各々のノードに寸法で結び付け
られたノード群、つまり平行な直線群を求め、それぞれ
リスト変数R2およびR3に設定する。たとえば、リス
トNP1に(L1、L2)が設定されている場合、L1
に平行な直線はL3である。従ってリスト変数R2には
(L1、L3)を設定する。また、L2に平行な直線は
L8で、リスト変数R3には(L2、L8)を設定す
る。
In S524, for a set of straight-line nodes of the variable NP1, a node group connected by dimension to each node in the list, that is, a parallel straight-line group is obtained and set to the list variables R2 and R3, respectively. For example, when (L1, L2) is set in the list NP1, L1
Is L3. Therefore, (L1, L3) is set in the list variable R2. A straight line parallel to L2 is L8, and (L2, L8) is set in the list variable R3.

【0117】S525では、拘束アークテーブル410を
参照し、変数R2の図形ノードと変数R3の図形ノード
の間に、アーク種別412が「角度」の拘束アークがある
かを調べる。無ければS526に分岐する。たとえば、
リストR2が(L1、L3)、リストR3が(L2、L
8)の例では、直線L1とL2、直線L1とL8、直線
L3とL2、直線L3とL8の間には、それぞれ角度の
拘束アークはない。
In S525, it is checked with reference to the constrained arc table 410 whether there is a constrained arc whose arc type 412 is “angle” between the graphic node of the variable R2 and the graphic node of the variable R3. If not, the flow branches to S526. For example,
List R2 is (L1, L3) and list R3 is (L2, L
In the example of 8), there is no angle-restricted arc between the straight lines L1 and L2, the straight lines L1 and L8, the straight lines L3 and L2, and the straight lines L3 and L8.

【0118】S526では、拘束アークテーブル410に
新たな拘束アークを作成し、そのアーク種別412に「角
度」を、拘束対象ノード413に変数NP1に設定されて
いる直線図形要素ノードの組み合わせを設定する。たと
えば、リストNP1に(L1、L2)が設定されている
場合、拘束アークテーブル410に識別子726の新しい拘束
アーク426を作成し、アーク種別412に「角度」を、拘束
対象ノード413に変数NP1に設定されている(L1、
L2)を設定する。
In S526, a new constraint arc is created in the constraint arc table 410, "angle" is set as the arc type 412, and a combination of the linear graphic element nodes set in the variable NP1 is set as the constraint target node 413. . For example, when (L1, L2) is set in the list NP1, a new constraint arc 426 with the identifier 726 is created in the constraint arc table 410, “angle” is set as the arc type 412, and the variable NP1 is set as the constraint target node 413. (L1,
L2) is set.

【0119】同様にして、変数QにP2〜P9を順番に
設定して処理を繰り返すと、拘束アークテーブル410に
識別子727の角度拘束アークが作成される。
Similarly, when P2 to P9 are sequentially set to the variable Q and the process is repeated, an angle constraint arc with the identifier 727 is created in the constraint arc table 410.

【0120】次に、従属関係決定手段103および寸法不
足検出・仮定手段104の動作を説明する。従属関係決定
手段103は、拘束ネットワーク記憶手段102に格納されて
いる拘束ネットワークのうち、いくつかの図形要素ノー
ドを基準として選択としたあと、幾何推論に基づいて拘
束アークをたどり、それぞれの図形要素ノードの基準要
素ノードからの相対的な位置が、決定可能かどうかを調
べる。調べた結果は図形ノード間の従属関係データとし
て、拘束ネットワーク記憶手段102の図形要素ノードテ
ーブル400および拘束アークテーブル410に格納する。
Next, the operation of the dependency relationship determining means 103 and the dimension shortage detecting / assuming means 104 will be described. The dependency determining means 103 selects a plurality of graphic element nodes from the constraint network stored in the constraint network storage means 102 based on the selected graphic element nodes, and then traces a constraint arc based on geometric inference. Check whether the relative position of the node from the reference element node can be determined. The result of the check is stored in the graphic element node table 400 and the constrained arc table 410 of the constrained network storage means 102 as dependency data between graphic nodes.

【0121】図17に、寸法不足検出処理を含む従属関
係決定フローを示す。図13の図面を例に、上記の拘束
ネットワークを使用して寸法不足検出を含む従属関係決
定処理の手順を詳細に説明する。
FIG. 17 shows a subordinate relationship determination flow including a dimension shortage detection process. With reference to the drawing of FIG. 13 as an example, a procedure of the dependency determination processing including the dimension shortage detection using the above-described constraint network will be described in detail.

【0122】まず、S801で、従属関係の基準要素を
決定する。このため、図形要素ノードテーブル400で、
互いに角度拘束を有し且つ、寸法による拘束アークが最
も多く設定されている対の直線ノードを1つ選ぶ。
First, in S801, the reference element of the dependency is determined. Therefore, in the graphic element node table 400,
One pair of straight nodes that have angular constraints on each other and have the largest number of constraint arcs due to dimensions are selected.

【0123】図16の例では、拘束アークテーブル410
のアーク種別412が角度のアークを検索し、識別子「72
6」及び「727」の拘束アークが得られる。各々の拘束対
象ノード413から、識別子726のアークは図形要素ノード
L1と図形要素ノードL2の組み合わせ、識別子727の
アークは図形要素ノードL4と図形要素ノードL5の組
み合わせが抽出される。
In the example shown in FIG.
Arc type 412 searches for an arc with an angle, and the identifier "72
6 "and" 727 "constrained arcs are obtained. From each of the constraint target nodes 413, the arc of the identifier 726 is a combination of the graphic element node L1 and the graphic element node L2, and the arc of the identifier 727 is the combination of the graphic element node L4 and the graphic element node L5.

【0124】次に、図形要素ノードの組み合わせ毎に、
その図形要素ノードに付加されている寸法による拘束ア
ークの数を検索する。ノードL1とノードL2の組み合
わせの場合、拘束対象ノード413の欄がL1またはL2
で、且つ、対応寸法データ414の欄に寸法識別子の設定
があるものは、識別子719、720、721、723の4つであ
る。一方、ノードL4とノードL5の組み合わせの場合
は、拘束アークの識別子724、725の2つである。この結
果、(L1、L2)の組みの直線が選択される。
Next, for each combination of graphic element nodes,
The number of constrained arcs according to the dimension added to the graphic element node is searched. In the case of a combination of the node L1 and the node L2, the column of the constraint target node 413 is L1 or L2.
In addition, there are four identifiers 719, 720, 721, and 723 for which the dimension identifier is set in the column of the corresponding dimension data 414. On the other hand, in the case of the combination of the node L4 and the node L5, the two are the constraint arc identifiers 724 and 725. As a result, a straight line of the set (L1, L2) is selected.

【0125】そして、選択された直線の組の交点と、寸
法による拘束アークの多い方の直線を基準要素とする。
上記の例では、拘束アーク「701」、「702」から、ノー
ドL1とノードL2の交点にある点要素ノードはP1で
ある。また、ノードL1、ノードL2に付加されている
寸法による拘束アークはそれぞれ2つで、どちらを基準
要素としてもよい。ここでは、L1とP1を基準要素ノ
ードとする。
Then, the intersection of the selected set of straight lines and the straight line with the larger number of constrained arcs depending on the dimensions are used as reference elements.
In the above example, the point element node at the intersection of the node L1 and the node L2 is P1 from the constraint arcs “701” and “702”. Further, there are two restraining arcs depending on the dimensions added to the node L1 and the node L2, and either one may be used as the reference element. Here, L1 and P1 are set as reference element nodes.

【0126】図18〜図20に、従属関係決定処理の途
中結果を示す。図18は図15、図19は図16、図2
0は図14(a)にそれぞれ対応している。
FIGS. 18 to 20 show intermediate results of the dependency determination processing. 18 is FIG. 15, FIG. 19 is FIG. 16, FIG.
0 respectively correspond to FIG.

【0127】符号901、902に示すように、基準要素ノー
ドL1、P1ノードの決定済みフラグ405を1に、従属
関係決定順序番号406を0に、グループ番号407を0に設
定する。また、符号930に示すように、基準要素ノード
L1に対応する図形要素「601」のグループ番号305を0
に設定する。基準要素ノードP1の対応図形はないの
で、グループ番号305の設定はしない。さらに、符号911
で示すように、基準要素ノードL1とP1を拘束する拘
束アーク「701」の使用済フラグ415を1に設定し、使用
済みとする。
As shown by reference numerals 901 and 902, the determined flag 405 of the reference element nodes L1 and P1 nodes is set to 1, the dependency determination order number 406 is set to 0, and the group number 407 is set to 0. Further, as indicated by reference numeral 930, the group number 305 of the graphic element “601” corresponding to the reference element node L1 is set to 0.
Set to. Since there is no figure corresponding to the reference element node P1, the group number 305 is not set. In addition, code 911
As shown by, the used flag 415 of the constrained arc "701" that constrains the reference element nodes L1 and P1 is set to 1 to indicate that it has been used.

【0128】S802では、従属関係決定処理に用いる
変数を初期化する。不足の寸法を仮定した回数を表わす
グループ番号変数は0に、従属関係を決定した図形要素
ノードの順序を表わす従属関係決定順序変数(伝播順序
変数)は1に初期設定する。これらの変数の値は、S8
05において決定した図形要素ノードのグループ番号40
7および従属関係決定順序番号406に設定する。
In S802, variables used for the dependency determination processing are initialized. A group number variable representing the number of times assuming an insufficient dimension is initialized to 0, and a dependency determining order variable (propagation order variable) representing the order of the graphic element nodes for which the dependency has been determined is initialized to 1. The values of these variables are
Group number 40 of the graphic element node determined in 05
7 and the dependency determination order number 406.

【0129】S803では、図形要素ノードテーブル40
0の全てのノードの決定済みフラグ405が1になるまで、
S804以下をループする。S804では、幾何推論ル
ールが適用できる図形要素ノードがあるか調べ、適用ノ
ードがあればS805に分岐する。
In S803, the graphic element node table 40
Until the determined flags 405 of all 0 nodes become 1,
Loop from S804. In S804, it is checked whether there is a graphic element node to which the geometric inference rule can be applied. If there is an applicable node, the flow branches to S805.

【0130】幾何推論ルールは、位置の決まった図形要
素との拘束関係で、新たに位置の決定できる図形要素
を、要素と拘束の種類でルール化したものである。代表
的なルールを以下に示す。
The geometric inference rule is a rule in which a graphic element whose position can be newly determined based on a constraint relationship with a graphic element whose position has been determined is classified according to the type of element and constraint. Representative rules are shown below.

【0131】.もし、位置の決まった2つの点との間
に距離拘束をもつ直線要素があるならば、その直線は決
定でき、 .もし、位置の決まった1つの直線要素との間に距離
拘束を持つ直線要素があるならば、その直線要素は決定
でき、 .もし、位置の決まった1つの点と距離拘束を持ち、
かつ位置の決まった1つの直線要素との間に角度拘束を
持つ直線要素があるならば、その直線要素の位置は決定
でき、 .もし、位置の決まった2つの直線と距離拘束をもつ
点要素があるならば、その点要素の位置は決定できる。
[0131] If there is a straight line element that has a distance constraint between two fixed points, the straight line can be determined, and. If there is a linear element having a distance constraint between one fixed linear element and the linear element, the linear element can be determined, and. If you have a fixed point and a distance constraint,
If there is a linear element having an angle constraint between one linear element whose position is determined, and the position of the linear element can be determined,. If there is a point element having two fixed lines and a distance constraint, the position of the point element can be determined.

【0132】上記のルールは、以下の(a)〜(d)の幾何
学定理に基づいている。
The above rules are based on the following geometric theorems (a) to (d).

【0133】(a)2点を通る直線を1つ引け、(b)直線
に平行で距離が与えられれば1つの直線が引け、(c)点
からの距離と、直線に対する角度が与えられれば直線が
1つ引け、(d)2つの直線からの距離が与えられれば、
点がきまる。
(A) Draw one straight line passing through two points, (b) draw one straight line if given a distance parallel to the straight line, and (c) give a distance from point and an angle to the straight line. If one straight line is drawn and (d) the distance from the two straight lines is given,
The point is fixed.

【0134】上記の幾何推論ルール〜は、直線と点
を対象としたルールであるが、幾何学定理に対応する幾
何推論ルールを加えることにより、円や3次元形状とい
うような、より複雑な図形や拘束を持つ図面の寸法の過
不足検査にも適用できる。
The above-mentioned geometric inference rules are rules for straight lines and points, but by adding geometric inference rules corresponding to the geometric theorem, more complicated figures such as circles and three-dimensional shapes can be obtained. It can also be applied to the inspection for excess or deficiency of the dimensions of drawings with restrictions and restrictions.

【0135】ところで、S804の最初の繰り返しで
は、図形要素ノードL1とP1のみが決定済である。幾
何推論ルールが適用できる図形要素ノードがあるかを調
べるには、拘束アークテーブル410において、決定済み
の図形要素ノードを拘束対象ノードとし、使用済みフラ
グが設定されていない拘束アークを検索する。
By the way, in the first iteration of S804, only the graphic element nodes L1 and P1 have been determined. In order to check whether there is a graphic element node to which the geometric inference rule can be applied, the determined graphic element node is set as a restriction target node in the restriction arc table 410, and a restriction arc for which a used flag is not set is searched.

【0136】図18のように、決定済みの図形要素ノー
ドがL1とP1だけのとき、図19のように、L1を拘
束対象とする使用済みでない拘束アークは717、720、72
3、726であり、P1を拘束対象とする使用済みでない拘
束アークは702である。これら拘束アークに接続する図
形要素ノードは、P4、L3、P5、L2である。その
うち、幾何推論ルールが適用できるのは、L2とL3で
ある。
As shown in FIG. 18, when the determined graphic element nodes are only L1 and P1, as shown in FIG. 19, unused constrained arcs for which L1 is to be constrained are 717, 720, and 72.
3, 726, and 702 is an unused constrained arc whose constraining target is P1. The graphic element nodes connected to these constraint arcs are P4, L3, P5, and L2. Among them, the geometric inference rules can be applied to L2 and L3.

【0137】L2は、決定済みの図形要素ノードP1と
の間に種別「距離」の拘束アーク「702」と、決定済み
の図形要素ノードL1との間に種別「角度」の拘束アー
ク「726」がある。したがって、図形要素ノードL2に
幾何推論ルールが適用できる。また、L3は決定済み
の図形要素ノードL1との間に種別「距離」の拘束アー
ク「720」があるので、上記幾何推論ルールが適用で
きる。
L2 is a constraint arc "702" of type "distance" between the determined graphic element node P1 and a constraint arc "726" of type "angle" between the determined graphic element node L1. There is. Therefore, the geometric inference rule can be applied to the graphic element node L2. Further, since the constraint arc “720” of the type “distance” exists between L3 and the determined graphic element node L1, the above-described geometric inference rule can be applied.

【0138】一方、点要素ノードP4は、決定済みの図
形要素ノードL1との間に種別「距離」の拘束アーク
「717」がある。P4を拘束対象とする他の拘束アーク
「718」は、P4とL8を拘束してはいるが、L8は決
定済みでない。したがって、P4には幾何推論ルール
が適用できず、位置は決定できない。同様に、図形要素
ノードP5にも、幾何推論ルールは適用できない。
On the other hand, between the point element node P4 and the determined graphic element node L1, there is a constraint arc "717" of type "distance". The other restraining arc “718” that restrains P4 restrains P4 and L8, but L8 has not been determined. Therefore, the geometric inference rule cannot be applied to P4, and the position cannot be determined. Similarly, the geometric inference rule cannot be applied to the graphic element node P5.

【0139】S805では、幾何推論ルールの適用によ
り位置決定のできることがわかった図形要素ノードの1
つを選び、図形要素ノードテーブル400の決定済みフラ
グ405に1を、従属関係決定順序番号406に従属関係決定
順序変数の値を、グループ番号407にグループ番号変数
の値を設定する。図形データの従属グループ番号305に
も、グループ番号変数の値を設定する。
In step S805, one of the graphic element nodes for which the position can be determined by applying the geometric inference rule is determined.
One is set to the determined flag 405 of the graphic element node table 400, the value of the dependent relationship determining order variable is set to the dependent relationship determining order number 406, and the value of the group number variable is set to the group number 407. The value of the group number variable is also set to the subordinate group number 305 of the graphic data.

【0140】さらに、位置決定に用いた拘束アークの使
用済フラグ415に1を、従属方向データ416に第1(#
1)の拘束対象ノードから第2(#2)の拘束対象ノー
ドを決定したときに0、逆の場合に1を設定する。最後
に、従属関係決定順序変数に1を加算する。
Further, 1 is set to the used flag 415 of the constraint arc used for position determination, and the first (#
0 is set when the second (# 2) constraint target node is determined from the constraint target node of 1), and 1 is set in the opposite case. Finally, 1 is added to the dependency determination order variable.

【0141】たとえば、図形要素ノードL2と図形要素
ノードL3が、幾何推論ルールにより位置決定のできる
場合、まず、図形要素ノードL2を選択したとする。符
号904で示す図形要素ノードL2の決定済みフラグ405に
1を、従属関係決定順序番号406に従属関係決定順序変
数の値1を、グループ番号407にグループ番号変数の値
0を設定する。また、図形要素ノードL3の対応図形40
3が「602」であるので、符号931で示す図形データの識
別子603の従属グループ番号305に、グループ番号変数の
値0を設定する。
For example, if the positions of the graphic element nodes L2 and L3 can be determined by the geometric inference rule, it is assumed that the graphic element node L2 is selected first. The determined flag 405 of the graphic element node L2 indicated by reference numeral 904 is set to 1, the dependent relationship determining order number 406 is set to the dependent relationship determining order variable value 1, and the group number 407 is set to the group number variable value 0. Also, the corresponding graphic 40 of the graphic element node L3
Since 3 is “602”, the value 0 of the group number variable is set to the subordinate group number 305 of the identifier 603 of the graphic data indicated by reference numeral 931.

【0142】次に、L2の位置を決定するのに用いた拘
束アークは「702」と「726」である。まず、符号912で
示す拘束アーク702の使用済フラグ415に1を設定し、拘
束対象ノード#2のP1から#1のL2を決定したの
で、従属方向データ416に1を設定する。さらに、符号9
13で示す拘束アーク726の使用済フラグ415に1を設定
し、拘束対象ノード#1のL1から#2のL2を決定し
たので、従属方向データ416に0を設定する。最後に、
従属関係決定順序変数は現在1なので、1を加えて2と
する。
Next, the constrained arcs used to determine the position of L2 are "702" and "726". First, the used flag 415 of the constrained arc 702 indicated by reference numeral 912 is set to 1 and P1 of the constrained node # 2 is determined from L1 of # 1. Therefore, 1 is set to the dependent direction data 416. In addition, code 9
Since the used flag 415 of the constraint arc 726 indicated by 13 is set to 1 and the L2 of the constraint target node # 1 is determined from the L1 of the constraint target node # 1, 0 is set to the dependent direction data 416. Finally,
Since the dependent relationship determination order variable is currently 1, it is set to 2 by adding 1.

【0143】以上の処理を、図13の図面データに幾何
推論ルールが、そのままでは適用できなくなるまで繰り
返す。その処理結果を図21〜図23に示す。各図はそ
れぞれ図18〜図20に対応する。図13の図面の例で
は、以下のような手順によって従属関係が決定される。
The above processing is repeated until the geometric inference rule cannot be applied to the drawing data of FIG. 13 as it is. The processing results are shown in FIGS. Each figure corresponds to FIGS. In the example of the drawing in FIG. 13, the dependency is determined by the following procedure.

【0144】(1)直線L1と直角で通過点P1が決ま
っているので、幾何推論ルールにより直線L2が決ま
る。決定順序番号は1、 (2)直線L1が決まり、距離が寸法D2で与えられて
いるので、幾何推論ルールにより直線L3が決まる。
決定順序番号は2、 (3)直線L2が決まり、距離が寸法D1で与えられて
いるので、幾何推論ルールにより直線L8が決まる。
決定順序番号は3、 (4)直線L1と直線L8が決まっているので、その交
点である点P4が幾何推論ルールにより決まる。決定
順序番号は4、 (5)直線L8が決まり、L1からの距離が寸法D5で
与えられているので、幾何推論ルールにより直線L8
上の点P5が決まる。決定順序番号は5、 (6)直線L3が決まり、L2からの距離が寸法D3で
与えられているので、幾何推論ルールにより直線L3
上の点P3が決まる。決定順序番号は6、 (7)直線L2と直線L3が決まっているので、その交
点である点P2が幾何推論ルールにより決まる。決定
順序番号は7、 (8)点P3と点P4が決まっているので、その2点を
通る直線L4が幾何推論ルールにより決まる。決定順
序番号は8、 (9)直線L4が決まり、距離が寸法D6で与えられて
いるので、幾何推論ルールにより直線L7が決まる。
決定順序番号は9。
(1) Since the passing point P1 is determined at right angles to the straight line L1, the straight line L2 is determined by the geometric inference rule. The determination order number is 1, (2) Since the straight line L1 is determined and the distance is given by the dimension D2, the straight line L3 is determined by the geometric inference rule.
The determination order number is 2, (3) Since the straight line L2 is determined and the distance is given by the dimension D1, the straight line L8 is determined by the geometric inference rule.
The determination order number is 3. (4) Since the straight line L1 and the straight line L8 are determined, the point P4, which is the intersection thereof, is determined by the geometric inference rule. The determination order number is 4, (5) Since the straight line L8 is determined and the distance from L1 is given by the dimension D5, the straight line L8 is determined by the geometric inference rule.
The upper point P5 is determined. The determination order number is 5, (6) Since the straight line L3 is determined and the distance from L2 is given by the dimension D3, the straight line L3 is determined by the geometric inference rule.
The upper point P3 is determined. The determination order number is 6, (7) Since the straight line L2 and the straight line L3 are determined, the point P2, which is the intersection thereof, is determined by the geometric inference rule. The determination order number is 7, (8) Since the points P3 and P4 are determined, the straight line L4 passing through the two points is determined by the geometric inference rule. The determination order number is 8, (9) Since the straight line L4 is determined and the distance is given by the dimension D6, the straight line L7 is determined by the geometric inference rule.
The decision order number is 9.

【0145】ここで、幾何推論ルールをそのまま適用し
て位置決定できる図形要素が、図13の図面データから
は無くなる。しかし、図21のように、位置の決まらな
い図形要素ノードL5、L6、L7、P6、P7、P
8、P9が残っている。そこで、S804のループを抜
けて、不足寸法の検出とその仮定を行なうS806、S
807に進む。なお、決定済みの図形要素ノードとの間
に、あと1つ拘束アークがあれば幾何推論ルールが適用
でき、位置が決定できる図形要素ノードが、複数ある場
合には直線を優先する。
Here, graphic elements whose positions can be determined by directly applying the geometric inference rules are eliminated from the drawing data of FIG. However, as shown in FIG. 21, the graphic element nodes L5, L6, L7, P6, P7, P
8, P9 remains. Then, the process exits the loop of S804 and detects the missing dimension and makes its assumption.
Proceed to 807. Note that if there is another constraint arc between the determined graphic element nodes, the geometric inference rule can be applied. If there are a plurality of graphic element nodes whose positions can be determined, the straight line is prioritized.

【0146】S806では、グループ番号変数に1を加
え、0から1に更新する。すなわち、これまでに決定さ
れた図形要素ノードグループ番号は0であり、これ以降
に決定されるグループ番号は1以上となる。
In S806, 1 is added to the group number variable to update from 0 to 1. That is, the figure element node group number determined so far is 0, and the group numbers determined thereafter are 1 or more.

【0147】次に、S807では、寸法が不足している
箇所、つまり決定済みの図形要素ノードとの間にあと1
つ拘束アークがあれば、幾何推論ルールが適用できる図
形要素ノードを1つ検索する。すなわち、図形要素ノー
ドテーブル400の決定済みフラグ405の欄が0で、拘束ア
ークテーブル410のアーク使用済フラグ415の欄に1が設
定されていない拘束アークで、かつ、決定済みフラグ40
5の欄が1の図形要素ノードと接続されている図形要素
ノードを検索する。
Next, in S807, one more space is left between the part where the dimension is insufficient, that is, the determined graphic element node.
If there is one constrained arc, one graphic element node to which the geometric inference rule can be applied is searched. That is, the determined arc 405 of the graphic element node table 400 is 0, the constrained arc in which the arc used flag 415 of the constrained arc table 410 is not set to 1 and the determined flag 40
A graphic element node whose column 5 is connected to one graphic element node is searched.

【0148】さらに、その図形要素に不足している拘束
アークを仮定し、再びS804を繰り返す。すべての図
形要素ノードが決定済みになれば、処理を終了する。
Further, S804 is repeated again on the assumption that the constraint arc is insufficient for the graphic element. When all the graphic element nodes have been determined, the process ends.

【0149】図17(b)に、不足している拘束関係を
仮定するS807の処理フローを示す。まず、S807
1で、図形要素ノードテーブル400の従属関係が決定で
きない直線ノード、すなわちノード種別402が「直線」
で、決定済みフラグ405が1でない各ノードについて、
順次、その直線ノードをNとして、以下の処理をループ
する。
FIG. 17B shows the processing flow of S807 assuming a lacking constraint relationship. First, S807
1, the straight line node for which the dependency relationship of the graphic element node table 400 cannot be determined, that is, the node type 402 is “straight line”
Then, for each node whose determined flag 405 is not 1,
The following processes are sequentially looped by setting the straight line node to N.

【0150】S8072では、未決定のノードNと決定
済みの図形要素ノードとの間に、角度拘束条件があるか
調べる。具体的には、拘束アークテーブル410を検索
し、アーク種別411が「角度」で、拘束対象ノード413の
一つにノードNを含み、かつ、もう一つの拘束対象ノー
ドの決定済みフラグが1となっている拘束アークの有無
を調べる。そのような拘束アークがあればS8073に
進む。もし、無ければS8074に進む。
In S8072, it is checked whether there is an angle constraint between the undetermined node N and the determined graphic element node. Specifically, the constrained arc table 410 is searched, the arc type 411 is “angle”, one of the constrained nodes 413 includes the node N, and the determined flag of the other constrained node is “1”. Check for the presence of a constrained arc. If there is such a restraining arc, the process proceeds to S8073. If not, the process proceeds to S8074.

【0151】S8073では、ノードNに最も近い点ノ
ードPを検索し、ノードNとノードPの間にアーク種別
が「距離」の拘束アークを仮定して、処理を終了する。
In S8073, a point node P closest to the node N is searched, and a constrained arc with an arc type of "distance" is assumed between the nodes N and P, and the processing is terminated.

【0152】S8074では、ノードNと決定済みの図
形要素との間に距離拘束条件があるか調べる。具体的に
は、拘束アークテーブル410を検索し、アーク種別が
「距離」で、拘束対象ノードの一つにノードNを含み、
かつ、もう一つの拘束対象ノードの決定済みフラグが1
となっている拘束アークの有無を調べる。そのような拘
束アークがあればS8075に進む。
In S8074, it is checked whether there is a distance constraint between the node N and the determined graphic element. Specifically, the constrained arc table 410 is searched, the arc type is “distance”, and one of the constrained nodes includes the node N,
In addition, the determined flag of another constraint target node is 1
Investigate the presence or absence of the constrained arc. If there is such a constrained arc, the process proceeds to S8075.

【0153】S8075では、ノードNの幾何データ40
4を参照し、最も近い決定済みの点ノードで、かつ、ノ
ードNとの間に拘束アークが損座しないノードPを検索
し、ノードNとノードPとの間にアーク種別「距離」の
拘束アークを仮定し、S807の処理を終了する。
In S8075, the geometric data 40 of the node N
Referring to FIG. 4, a search is made for a node P that is the closest determined point node and has no constraint arc between the node N and the node N, and the constraint of the arc type “distance” is set between the node N and the node P. The arc is assumed, and the process of S807 ends.

【0154】次に、上記の処理によっても従属関係の決
定できない点ノードの場合、S8076では、それらの
点ノードを順次、ノードQとして、以下のループ処理を
行なう。
Next, in the case of point nodes for which a dependency cannot be determined even by the above processing, in step S8076, the following loop processing is performed by sequentially setting those point nodes as nodes Q.

【0155】S8077では、未決定のノードQと決定
済みの図形要素ノードとの間に、距離拘束条件があるか
調べる。具体的には、拘束アークテーブル410を検索
し、アーク種別が「距離」で、拘束対象ノードにノード
Qを含み、かつ、もう一つの拘束対象ノードの決定済み
フラグが1となっている拘束アークの有無を調べる。
In S8077, it is checked whether there is a distance constraint between the undetermined node Q and the determined graphic element node. Specifically, the constrained arc table 410 is searched, and the arc type is “distance”, the constrained target node includes the node Q, and the determined flag of another constrained target node is “1”. Check for the presence of

【0156】そのような拘束アークがあればS8078
に進み、ノードQの幾何データ404を参照し、最も近い
決定済みの点ノードで、かつ、ノードQとの間に拘束ア
ークが存在しないノードPを検索し、ノードQとノード
Pの間にアーク種別が「距離」の拘束アークを仮定し、
S807の処理を終了する。
If there is such a restraining arc, S8078
To the node P, which refers to the geometric data 404 of the node Q and searches for a node P that is the closest determined point node and has no constraint arc between itself and the node Q. Assuming a constraint arc of type "distance",
The process of S807 ends.

【0157】上記の図21〜図23のように、拘束関係
が不足して幾何推論が中断した例を通して、S807の
処理を具体的に説明する。従属関係が決定できない直線
ノードを検索すると、図21の図形要素ノードテーブル
400から、L5,L6が得られる。
The processing of S807 will be specifically described through an example in which the geometric inference is interrupted due to the lack of the constraint relation as shown in FIGS. When a straight line node for which a dependency relationship cannot be determined is searched, a graphic element node table shown in FIG.
From L400, L5 and L6 are obtained.

【0158】L5をノードNとする場合、図22の拘束
アークテーブル410でL5を拘束対象ノードとする角度
拘束アークを調べると、識別子「727」の拘束アークが
得られる。拘束アーク「727」のもう一つの拘束対象ノ
ードはL4なので、図21の図形ノードテーブル400の
L4の決定済みフラグ405を調べると1であり、L5は
決定済みの図形要素L4との間に角度拘束アーク「72
7」のあることが検知される。
When L5 is a node N, when a constraint arc table with L5 as a constraint target node is examined in the constraint arc table 410 of FIG. 22, a constraint arc with the identifier "727" is obtained. Since another constraint target node of the constraint arc “727” is L4, the determined flag 405 of L4 in the graphic node table 400 in FIG. 21 is 1 and L5 is an angle between the determined graphic element L4 and the determined graphic element L4. Captive arc "72
7 "is detected.

【0159】そこで、S8073へと進み、ノードL5
に最も近い決定済みの点ノードを検索する。図21に
は、決定済みの点ノードがP1〜P5の5つあり、座標
値はそれぞれ(0,0)、(0,60)、(60,60)、(100,
0)、(100,20)である。L5の座標は始点(70,50)、
終点(50,30)なので、L5と各点の最短距離を計算す
ると、最も近いのはP3となる。したがって、P3とL
4の間に距離拘束を仮定することができる。
Then, the flow advances to S8073, where the node L5
Find the determined point node closest to. In FIG. 21, there are five determined point nodes P1 to P5, and the coordinate values are (0,0), (0,60), (60,60), (100,
0) and (100,20). L5 coordinates start point (70,50),
Since the end point is (50, 30), when the shortest distance between L5 and each point is calculated, the closest distance is P3. Therefore, P3 and L
4, a distance constraint can be assumed.

【0160】図24〜図26に、グループ番号変数=1
の場合の処理結果を示す。各図は、それぞれ図21〜図
23に対応している。符号971で示すノードL5の決定
済みフラグ405に1を、従属関係決定順序番号406に従属
関係決定順序変数の値10を、グループ番号407にグル
ープ番号変数の値1を設定する。ノードL5の対応図形
403は「605」なので、符号981で示す図形データ「605」
のグループ番号305に、グループ番号変数の値1を設定
する。さらに、符号991で示す拘束アーク「727」の使用
済フラグ415に1を設定し、L4からL5を決定したの
で、従属方向データ416に0を設定する。
FIGS. 24 to 26 show that the group number variable = 1.
The processing result in the case of is shown. Each figure corresponds to FIGS. 21 to 23, respectively. The determined flag 405 of the node L5 denoted by reference numeral 971 is set to 1, the dependent relationship determining order number 406 is set to the dependent relationship determining order variable value 10, and the group number 407 is set to the group number variable value 1. Corresponding figure of node L5
Since 403 is “605”, the graphic data “605” indicated by reference numeral 981
The value 1 of the group number variable is set to the group number 305. Further, the used flag 415 of the constraint arc “727” indicated by reference numeral 991 is set to 1 and L5 is determined from L4, so 0 is set to the dependent direction data 416.

【0161】S807の処理によって、決定済みの図形
要素が増え、再び幾何推論ルールが適用できる図形要素
が現われるので、S804が繰り返される。以下に、寸
法不足・仮定処理を経て、残りの図形要素の従属関係が
決定される過程を示す。
By the processing in S807, the number of determined graphic elements increases, and a graphic element to which the geometric inference rule can be applied appears again. Therefore, S804 is repeated. The following describes the process of determining the dependency of the remaining graphic elements through the dimension shortage / assuming process.

【0162】(10)点P3とL5との間に距離拘束アー
クがあると仮定し、L5の位置を幾何推論ルールによ
り決める。
(10) Assuming that there is a distance constraint arc between the points P3 and L5, the position of L5 is determined by a geometric inference rule.

【0163】(11)直線L5と直線L4が決まっている
ので、その交点である点P6が幾何推論ルールにより
決まる。
(11) Since the straight line L5 and the straight line L4 are determined, the point P6 which is the intersection thereof is determined by the geometric inference rule.

【0164】(12)直線L5が決まり、距離が寸法D7
で与えられているので、幾何推論ルールにより直線L
6が決まる。
(12) The straight line L5 is determined, and the distance is the dimension D7.
, The line L
6 is decided.

【0165】(13)直線L5と直線L7が決まっている
ので、その交点である点P8が幾何推論ルールにより
決まる。
(13) Since the straight line L5 and the straight line L7 are determined, the point P8, which is the intersection thereof, is determined by the geometric inference rule.

【0166】(14)直線L6と直線L7が決まっている
ので、その交点である点P9が幾何推論ルールにより
決まる。
(14) Since the straight line L6 and the straight line L7 are determined, the point P9 which is the intersection thereof is determined by the geometric inference rule.

【0167】(15)直線L6と直線L4が決まっている
ので、その交点である点P7が幾何推論ルールにより
決まる。
(15) Since the straight line L6 and the straight line L4 are determined, the point P7 which is the intersection thereof is determined by the geometric inference rule.

【0168】次に、重複寸法検出手段105による、重複
記入による削除すべき寸法の候補を検出する手順を説明
する。
Next, a description will be given of a procedure for detecting a candidate for a dimension to be deleted by overlapping entry by the overlapping dimension detecting means 105.

【0169】図27に、重複寸法検出処理のフローを示
す。まず、S1001で重複グループ番号変数を1に初
期化する。S1002では、拘束アークテーブル410中
の未使用拘束アーク、すなわち使用済フラグ415が1で
ない拘束アークの各々について、S1003以下の処理
を実行する。
FIG. 27 shows a flow of the overlap size detection processing. First, in S1001, a duplicate group number variable is initialized to 1. In S1002, the processing from S1003 on is performed for each unused constraint arc in the constraint arc table 410, that is, for each constraint arc whose used flag 415 is not 1.

【0170】S1003では、未使用拘束アークの拘束
対象ノード413欄の第1ノード(#1)について、幾何
推論ルールを適用する際に用いた拘束アークを、その従
属方向データ416とは逆方向に、基準要素ノードに行き
着くまで辿って、その途中の拘束アークをすべてリスト
に保存する。これをリストAとする。リストAは、未使
用拘束アークの拘束対象ノード413の第1ノードを決め
るために必要な拘束条件の集合である。
In S1003, the constraint arc used when applying the geometric inference rule for the first node (# 1) in the column 413 of the constraint target node of the unused constraint arc is set in the direction opposite to the dependent direction data 416. Tracing until the reference element node is reached, and all the constrained arcs in the middle are stored in a list. This is List A. The list A is a set of constraint conditions necessary for determining the first node of the constraint target node 413 of the unused constraint arc.

【0171】S1004では、未使用拘束アークの拘束
対象ノード413欄の第2ノード(#2)について、幾何
推論ルールを適用する際に用いた拘束アークを、上記と
同様に辿って、その途中の拘束アークをすべてリストB
に保存する。
In S1004, the constraint arc used when applying the geometric inference rule is traced in the same manner as described above for the second node (# 2) in the column 413 of the constraint target node of the unused constraint arc. List all constraint arcs
To save.

【0172】S1005では、リストAとリストBの和
集合を求め、その和集合からリストAとリストBの積集
合を取り除き、これをリストCに保存する。これを式で
表すと、数1のように記述される。
In S1005, the union of the list A and the list B is obtained, the intersection of the list A and the list B is removed from the union, and this is stored in the list C. When this is represented by an equation, it is described as in Equation 1.

【0173】[0173]

【数1】 (Equation 1)

【0174】リストAとリストBの積集合は、第1ノー
ドと第2ノードに共通に必要な拘束条件である。したが
って、積となる必要な拘束アークを取り除くと、両方の
ノードが決定できなくなってしまうので削除できない。
一方、リストCに含まれる拘束アークは、そのなかの1
つを削除しても、第1ノードあるいは第2ノードの何れ
かで決定でき、さらに未使用拘束アークを使えば決定で
きない方のノードも決定できる。したがって、リストC
に未使用拘束アークを加えたものが、重複寸法記入を解
決するために削除できる拘束アークの候補である。
The intersection of the list A and the list B is a constraint condition necessary for both the first node and the second node. Therefore, if the necessary constrained arcs that are to be a product are removed, both nodes cannot be determined and cannot be deleted.
On the other hand, the constrained arc included in list C is one of them.
Even if one is deleted, it can be determined by either the first node or the second node, and the node that cannot be determined by using an unused constraint arc can also be determined. Therefore, list C
Is a candidate for a constraint arc that can be deleted to solve overlapping dimension entry.

【0175】S1006では、リストCに含まれる拘束
アークと、未使用拘束アークのそれぞれの対応寸法デー
タ414を調べ、対応する寸法データがあれば、その寸法
データの重複フラグ309をセットし、重複グループ番号3
10に重複グループ番号変数の値を設定する。S1007
では、重複グループ番号変数に1を加え、つぎの未使用
拘束アークを処理する。
In S1006, the corresponding dimension data 414 of the constraint arc and the unused constraint arc included in the list C are checked. If there is the corresponding dimension data, the overlap flag 309 of the dimension data is set, and the overlap group is set. Number 3
Set the value of the duplicate group number variable to 10. S1007
Then, 1 is added to the overlapping group number variable, and the next unused constraint arc is processed.

【0176】従属関係データの処理結果である図25を
例にして、重複寸法検出手段105の動作を詳細に説明す
る。同図において、従属関係の決定に使用されず、アー
ク使用済フラグ415が1でない拘束アークは、符号992で
示す拘束アーク「722」である。拘束アーク「722」の拘
束対象ノード413は、第1ノードがP3、第2ノードが
P5である。
The operation of the overlap size detecting means 105 will be described in detail with reference to FIG. 25 which is a result of processing the dependency data as an example. In this figure, a constrained arc that is not used for determining the dependency and whose arc used flag 415 is not 1 is a constrained arc “722” indicated by reference numeral 992. Regarding the constraint target node 413 of the constraint arc “722”, the first node is P3 and the second node is P5.

【0177】つぎに、P3の位置決定に用いた拘束アー
ク、すなわち拘束対象ノード413の#1の欄がP3で従
属方向データ416の欄が1、または拘束対象ノード413の
#2の欄がP3で従属方向データ416の欄が0の拘束ア
ークを、図25の拘束アークテーブル410から検索する
と、拘束アーク「705」と「721」を得る。これらのアー
クをリストAに追加する。拘束アーク「705」のP3の
従属元の拘束対象ノードはL3であり、同様にしてL3
の位置を決めるために用いた拘束アークを検索し、拘束
アーク「720」をリストAに追加する。拘束アーク「72
0」の従属元の拘束対象ノードはL1であり、基準要素
ノードなので、ここで探索を中止する。
Next, the constraint arc used to determine the position of P3, that is, the column # 1 of the constraint target node 413 is P3, the column of the dependent direction data 416 is 1, or the column # 2 of the constraint node 413 is P3. Then, when the constraint arc in which the column of the dependent direction data 416 is 0 is searched from the constraint arc table 410 in FIG. 25, constraint arcs “705” and “721” are obtained. These arcs are added to list A. The constraint target node of the dependent element of P3 of the constraint arc "705" is L3.
The constraint arc used to determine the position of is searched, and the constraint arc “720” is added to the list A. Captive arc "72
The dependent node of the dependent source of "0" is L1 and is a reference element node, so the search is stopped here.

【0178】同様にして、拘束アーク「721」の従属元
の拘束対象ノードはL2なので、L2を決めるために用
いた拘束アーク「702」、「726」を得て、これらをリス
トAに追加する。拘束アーク「702」、「726」の従属元
の拘束対象ノードはP1、L1で両者とも基準要素ノー
ドなので、ここで探索は中止する。以上のようにして得
たリストAは、数2により表わされる。
Similarly, since the constraint target node of the dependent element of the constraint arc "721" is L2, the constraint arcs "702" and "726" used to determine L2 are obtained, and these are added to the list A. . The constraint target nodes of the dependent elements of the constraint arcs "702" and "726" are P1 and L1 and both are reference element nodes, so the search is stopped here. The list A obtained as described above is represented by Expression 2.

【0179】[0179]

【数2】A={アーク705,アーク721,アーク720,アー
ク702,アーク726} 同様に、第2ノードのP5の従属順序を逆にたどると、
リストBが得られ、数3により表わされる。
A = {arc 705, arc 721, arc 720, arc 702, arc 726} Similarly, if the subordinate order of P5 of the second node is reversed,
List B is obtained and is represented by Equation 3.

【0180】[0180]

【数3】B={アーク716,アーク723,アーク719,アー
ク702,アーク726} そして、リストCは数4により表わされる。
## EQU3 ## B = {arc 716, arc 723, arc 719, arc 702, arc 726} Then, list C is expressed by equation 4.

【0181】[0181]

【数4】C={アーク705,アーク721,アーク720,アー
ク716,アーク723,アーク719} ここで、A、Bに共通するアーク726は除かれている。
C = {arc 705, arc 721, arc 720, arc 716, arc 723, arc 719} Here, the arc 726 common to A and B is excluded.

【0182】リストCで、図25の拘束アークテーブル
410に対応する寸法があるのは、アーク721、アーク72
0、アーク723、アーク719で、それぞれ寸法613、寸法61
2、寸法615、寸法611である。また、未使用拘束アーク7
22は寸法614に対応する。
In the list C, the constraint arc table shown in FIG.
Arc 721 and Arc 72 have dimensions corresponding to 410
0, Arc 723 and Arc 719, dimensions 613 and 61 respectively
2, dimensions 615 and 611. Unused constraint arc 7
22 corresponds to dimension 614.

【0183】これらの寸法が、重複記入を解決するため
に削除できる拘束アークの候補である。それらの寸法デ
ータの重複フラグ309の欄に1を、重複グループ番号310
の欄に重複グループ番号変数の値1を設定する。この結
果を、図28の寸法データ3に示す。
These dimensions are candidates for constraint arcs that can be deleted to resolve duplicate entries. 1 is added to the column of the overlap flag 309 of the dimension data, and the overlap group number 310
Is set to the value 1 of the duplicate group number variable. The result is shown as dimensional data 3 in FIG.

【0184】寸法データの重複グループ番号310が同じ
寸法を、たとえば色を変えてディスプレイ装置201に表
示すれば、重複寸法の箇所と削除すべき寸法の候補をユ
ーザに示すことができる。また、重複グループ番号の最
大値をディスプレイ装置201に表示すれば、重複寸法
が何箇所あるかをユーザに提示することができる。
By displaying the same size with the same overlap group number 310 of the size data on the display device 201, for example, by changing the color, it is possible to show the user the location of the overlap size and the candidate of the size to be deleted. In addition, if the maximum value of the overlap group number is displayed on the display device 201, it is possible to present to the user how many overlap dimensions exist.

【0185】図29に、本実施形態における図面の不足
寸法および重複寸法の検査結果の表示例を示す。不足寸
法は図26の図形データ、重複寸法は図28の寸法デー
タを基にしている。メッセージボックス1101は、重
複記入寸法、寸法記入不足の数を示している。重複記入
寸法の数は、寸法データの重複グループ番号310の最大
値、寸法記入不足の数は、図26のグループ番号305の
最大値によりわかる。
FIG. 29 shows a display example of the inspection result of the missing dimension and the overlapping dimension of the drawing in the present embodiment. The missing dimension is based on the graphic data of FIG. 26, and the overlapping dimension is based on the dimension data of FIG. A message box 1101 indicates the number of duplicate entry dimensions and the number of dimension entry shortages. The number of overlapping entry dimensions can be found by the maximum value of the overlapping group number 310 of the dimension data, and the number of dimension entry shortages can be found by the maximum value of the group number 305 in FIG.

【0186】線種を変えてハイライト表示した寸法1102
は、重複記入を解決するために削除すべき候補を示す。
また、太線によりハイライト表示した図形要素1103は、
寸法記入不足のため位置が決まらない図形要素を示して
いる。
Dimension 1102 highlighted by changing line type
Indicates candidates to be deleted in order to resolve duplicate entries.
Also, the graphic element 1103 highlighted by a bold line is
A figure element whose position cannot be determined due to insufficient dimension entry is shown.

【0187】以上のようにして、図面上のすべての寸法
記入不足と重複記入をユーザにわかりやすく提示するこ
とができるので、ユーザの対応が容易で、誤作業を防止
できる。
As described above, it is possible to present to the user all the lack of dimensions and duplicate entries on the drawing in an easy-to-understand manner, so that it is easy for the user to deal with and incorrect work can be prevented.

【0188】〔実施形態4〕次に、複数の投影図を含む
図面について、寸法の過不足を検査する実施形態4を説
明する。本実施形態では正面図、側面図、補助投影図、
部分拡大図等、複数の投影図から構成されている図面の
寸法不足および重複寸法記入を検査する。
[Embodiment 4] Next, a fourth embodiment for inspecting a dimension including a plurality of projections for excess or deficiency will be described. In the present embodiment, a front view, a side view, an auxiliary projection view,
Inspect the drawings composed of a plurality of projection views, such as partial enlarged views, for insufficient dimensions and overlapping dimensions.

【0189】図30に、本実施形態による図面検査装置
の機能ブロック図を示す。この図面検査装置は、たとえ
ば図2に示した計算機システム上で実現できる。図面デ
ータ記憶手段1201は、複数の投影図データ1202を保存す
る。各々の投影図データ1202は、対象物の投影形状、中
心線等を表わす図形データ1203と、図形データ1203の距
離や半径、角度を表わす寸法データ1204と、三次元空間
上に配置した図面が表わす部品から投影形状を得るため
の投影変換行列1205からなる。図形データ1203と寸法デ
ータ1204のデータ構造は、図14に示した図形データ2
および寸法データ3のデータ構造と同じでもよい。
FIG. 30 is a functional block diagram of the drawing inspection apparatus according to the present embodiment. This drawing inspection apparatus can be realized, for example, on the computer system shown in FIG. The drawing data storage means 1201 stores a plurality of projection drawing data 1202. Each projection map data 1202 is represented by a figure arranged on a three-dimensional space, and graphic data 1203 representing a projected shape of an object, a center line, etc., dimension data 1204 representing a distance, a radius, and an angle of the graphic data 1203. It comprises a projection transformation matrix 1205 for obtaining a projection shape from a part. The data structure of the graphic data 1203 and the dimension data 1204 is the graphic data 2 shown in FIG.
And the data structure of the dimension data 3 may be the same.

【0190】拘束関係抽出手段1206は、図面データ1201
の投影図データ1202の各々について、図形データ1203と
寸法データ1204を読みだし、図形データをノード、寸法
データと図形要素間の位相関係や角度関係をアークとす
る拘束ネットワーク1208を作成する。拘束ネットワーク
1208のデータ構造は、図15、図16に示したデータ構
造と同じでよい。
The constraint relation extracting means 1206 generates the drawing data 1201
The figure data 1203 and the dimension data 1204 are read out for each of the projection view data 1202, and a constraint network 1208 is created in which the figure data is a node, and the phase relation and angle relation between the dimension data and the figure elements are arcs. Restraint network
The data structure of 1208 may be the same as the data structure shown in FIGS.

【0191】拘束関係追加手段1207は、拘束関係抽出手
段1206の処理対象となっている投影図データ1202(これ
を対象投影図データと呼ぶ)以外の投影図データ1202
(これを変換投影図データと呼ぶ)の各々について、寸
法データ1204と投影変換行列1205を読みだし、対象投影
図の投影変換行列1205と変換投影図の投影変換行列1205
から、変換投影図上の座標値を対象投影図上の座標系に
変換する変換行列を求め、この変換行列を用いて寸法デ
ータ1204を対象投影図の座標系に変換し、対象投影図デ
ータの拘束ネットワーク1208に追加する。
The constraint relation adding means 1207 includes projection view data 1202 other than the projection view data 1202 to be processed by the constraint relation extracting means 1206 (this is called target projection view data).
For each of these (referred to as transformed projection map data), the dimension data 1204 and the projection transformation matrix 1205 are read, and the projection transformation matrix 1205 of the target projection diagram and the projection transformation matrix 1205 of the transformed projection diagram are read.
From, a transformation matrix for transforming the coordinate values on the transformed projection view into the coordinate system on the subject projection view is obtained, and using this transformation matrix, the dimension data 1204 is transformed into the coordinate system of the subject projection view, Add to constraint network 1208.

【0192】従属関係決定手段1209は、図17に示した
手順と同様にして、拘束ネットワーク1208の図形要素ノ
ードの位置が幾何推論により決定できるかを検査し、そ
の検査結果に基づいた図形要素ノード間の従属関係デー
タを、拘束関係を表わすアークの方向として拘束ネット
ワーク1208に追加する。
The dependency determining means 1209 checks whether the position of the graphic element node of the constraint network 1208 can be determined by geometric inference in the same manner as the procedure shown in FIG. 17, and determines the graphic element node based on the inspection result. The dependency data between them is added to the constraint network 1208 as the direction of the arc representing the constraint relationship.

【0193】重複寸法検出手段1210は、図27に示した
処理手順により拘束ネットワーク1208から、寸法の重複
記入を解消するために削除すべき寸法の候補をもとめ、
寸法データ1204に設定する。
The overlapping dimension detecting means 1210 obtains a dimension candidate to be deleted in order to eliminate the duplicate entry of the dimension from the constraint network 1208 by the processing procedure shown in FIG.
Set the dimension data 1204.

【0194】寸法不足検出・仮定手段1211は、図11の
寸法不足検出・仮定手段104と同じ処理を行う。すなわ
ち、従属関係決定手段1209がすべての図形要素ノードの
従属関係を決定する前に幾何推論ルールが適用できなく
なったときに起動され、拘束ネットワーク1208から従属
関係を決定するために必要な拘束データを仮定する。こ
れによって、未決定の図形要素ノードの幾何推論を可能
とするとともに、従属関係決定時までに仮定した拘束関
係の数を図形データ1203に書き込む。
The undersize detecting / assuming means 1211 performs the same processing as the undersize detecting / assuming means 104 in FIG. That is, when the geometric inference rule cannot be applied before the dependency determining means 1209 determines the dependency of all the graphic element nodes, the dependency data necessary for determining the dependency from the constraint network 1208 is activated when the geometric inference rule cannot be applied. Assume. This enables geometric inference of an undetermined graphic element node, and writes the number of constraint relations assumed up to the time of determining the dependent relation into the graphic data 1203.

【0195】本実施形態における拘束関係追加手段1207
が、図11の図面検査手段4に実質的に付加された機能
と言える。図31に、拘束関係追加手段の処理手順を示
す。まず、S1300において、投影図データ1202中の変換
投影図データについて、S1301以下の処理を繰り返す。
[0195] Restriction relation addition means 1207 in this embodiment.
Can be said to be a function substantially added to the drawing inspection means 4 of FIG. FIG. 31 shows a processing procedure of the constraint relation adding means. First, in S1300, the processing from S1301 onward is repeated for the transformed projection view data in the projection view data 1202.

【0196】S1301では、対象投影図の投影変換行列12
05と変換投影図の投影変換行列1205から、変換投影図上
の座標値を対象投影図上の座標系に変換する行列を求め
る。S1302では、変換投影図データに含まれる寸法デー
タ1204の各々について、S303以下を繰り返す。S1303
では、寸法データ1204の寸法種別307が、距離寸法であ
ればS1304に、半径または直径寸法であればS1306に、
角度寸法であればS1310にそれぞれ分岐する。
In step S1301, the projection transformation matrix 12
From 05 and the projection transformation matrix 1205 of the transformation projection, a matrix for transforming the coordinate values on the transformation projection to the coordinate system on the target projection is obtained. In S1302, S303 and subsequent steps are repeated for each of the dimension data 1204 included in the converted projection view data. S1303
Then, if the dimension type 307 of the dimension data 1204 is a distance dimension, the procedure goes to S1304.
If it is an angular dimension, the process branches to S1310.

【0197】S1304では、S1301で計算した変換行列を
用いて、たとえば、図32に示す距離寸法の寸法線1401
の両端点1402及び1403の座標値を、対象投影図の座標系
上の座標値に変換する。ただし、寸法線端点の座標値は
2次元なので、Z座標値の値を0とした三次元座標値と
して扱う。そして、変換後の寸法線の両端点のZ座標値
が一致する、すなわち変換後の寸法線が対象投影図に対
して平行であれば、S1305に分岐する。変換後の寸法線
が対象投影図に平行でない寸法データは、対象投影図上
に正しく投影されないので無視する。
In S1304, using the transformation matrix calculated in S1301, for example, the dimension line 1401 of the distance dimension shown in FIG.
Are converted into coordinate values on the coordinate system of the target projection view. However, since the coordinate value of the end point of the dimension line is two-dimensional, it is treated as a three-dimensional coordinate value where the value of the Z coordinate value is 0. If the Z coordinate values at both ends of the converted dimension line match, that is, if the converted dimension line is parallel to the target projection view, the flow branches to S1305. Dimension data whose converted dimension line is not parallel to the target projected view is ignored because it is not correctly projected on the target projected view.

【0198】S1305では、2本の寸法補助線の足1404、
1405を対象投影図の座標系に変換し、その点を通り、変
換後の寸法線に垂直な直線を作成し、拘束ネットワーク
1208に図形要素ノードとして追加する。そして、その直
線ノードの間に距離拘束アークを追加する。もし、変換
後の寸法線に垂直な直線上に重なる直線がすでに拘束ネ
ットワーク1208に存在するときはノードを追加せず、既
存のノードとの間に距離拘束アークを追加する。もし、
追加した直線ノード上に既存の点ノードがあるとき、お
よび追加した直線ノードが既存の円要素アークに接する
ときには、それらの間に距離拘束アークを追加する。
At S1305, the feet 1404 of the two dimension auxiliary lines,
Convert 1405 to the coordinate system of the target projection, create a straight line passing through that point and perpendicular to the converted dimension line,
1208 is added as a graphic element node. Then, a distance constraint arc is added between the straight nodes. If a straight line overlapping on a straight line perpendicular to the converted dimension line already exists in the constraint network 1208, no node is added, and a distance constraint arc is added between the existing node and the existing node. if,
When there is an existing point node on the added straight line node and when the added straight line node contacts an existing circular element arc, a distance constraint arc is added between them.

【0199】S1306では、寸法が半径寸法または直径寸
法の場合の処理を行う。図33に直径寸法の例を示す。
まず、変換投影図上で、寸法が径を拘束する円または円
弧の中心点と半径を求める。つぎに、その中心点を通
り、変換投影図に垂直な直線を求め、これを変換投影図
上の中心軸とする。
At S1306, a process is performed for a case where the dimension is a radius dimension or a diameter dimension. FIG. 33 shows an example of the diameter dimension.
First, a center point and a radius of a circle or an arc whose dimensions constrain the diameter are obtained on the transformed projection view. Next, a straight line passing through the center point and perpendicular to the transformed projection is obtained, and this is set as the central axis on the transformed projection.

【0200】たとえば、中心点の座標値が(5、10)の場
合、点(5、10、0)と点(5、10、1)を通る直線が中心軸と
なる。この中心軸をS1301で計算した変換行列を用いて
対象投影図の座標系に変換する。変換後の中心軸が対象
投影図に対して垂直であれば、すなわち中心軸の方向ベ
クトルのX成分とY成分がともに0であるならば、S13
07に分岐する。もし、変換後の中心軸が対象投影図に対
して垂直でなければ、すなわち中心軸の方向ベクトルの
X成分とY成分がともに0でなければ、S1308に分岐す
る。
For example, when the coordinate value of the center point is (5, 10), a straight line passing through points (5, 10, 0) and (5, 10, 1) is the center axis. This center axis is converted to the coordinate system of the target projection using the conversion matrix calculated in S1301. If the converted center axis is perpendicular to the target projection view, that is, if both the X component and the Y component of the direction vector of the center axis are 0, S13
Branch to 07. If the converted center axis is not perpendicular to the target projection view, that is, if both the X component and the Y component of the direction vector of the center axis are not 0, the process branches to S1308.

【0201】S1307では、変換後の中心軸が対象投影図
に対して垂直であるので、変換投影図上の円がそのまま
円として対象投影図上に変換される。したがって、対象
投影図データの拘束ネットワーク1208の中で、変換後の
円と中心点と半径が一致する円図形要素ノードを検索
し、そのノードに半径拘束を付加する。
In S1307, since the center axis after the conversion is perpendicular to the target projection, the circle on the conversion projection is directly converted into a circle on the target projection. Therefore, in the constraint network 1208 of the target projection data, a circle graphic element node having a radius equal to the center of the converted circle is searched for, and a radius constraint is added to the node.

【0202】S1308では、変換後の中心軸が対象投影図
に対して平行かどうか、つまり変換後の中心軸の方向ベ
クトルのZ成分が0であるかを調べる。もし平行なら
ば、S1309に分岐する。変換後の中心軸が対象投影図に
対して平行ならば、変換投影図上では円で書かれる円筒
面を、対象投影図はその中心軸に垂直な方向から見てい
ることになる。したがって、変換投影図上の円は、対象
投影図上では中心軸に平行で半径だけ離れた平行線とし
て書かれる。
In S1308, it is checked whether or not the converted center axis is parallel to the target projection, that is, whether or not the Z component of the converted center axis direction vector is zero. If parallel, the flow branches to S1309. If the central axis after the conversion is parallel to the target projection, the target projection is viewed from a direction perpendicular to the central axis of the cylindrical surface described by a circle on the conversion projection. Therefore, the circle on the transformed projection is drawn as a parallel line parallel to the central axis and separated by a radius on the target projection.

【0203】S1309では、この平行線の間に距離寸法が
あるとして、拘束ネットワーク1208に距離拘束アークを
追加する。
At S1309, it is determined that there is a distance dimension between the parallel lines, and a distance constraint arc is added to the constraint network 1208.

【0204】上記の説明では円につけられた直径および
半径寸法の場合を説明したが、径寸法が円弧につけらて
いる場合も、円と同様に処理する。
In the above description, the case of the diameter and the radius dimension given to the circle has been described. However, when the diameter dimension is attached to the arc, the processing is performed in the same manner as the circle.

【0205】角度寸法の場合は、S1310において、以下
のようにして拘束ネットワーク1208に追加するかを判定
する。図34に角度寸法の例を示す。角度寸法が拘束し
ている二直線1601、1602の交点1603を通り変換投影図に
垂直な軸を、対象投影図の座標系に変換する。変換後の
軸が対象投影図に垂直ならば、S1311に分岐して拘束ネ
ットワーク1208に角度寸法を追加する。
In the case of an angular dimension, in S1310, it is determined whether to add to the constraint network 1208 as follows. FIG. 34 shows an example of the angle dimension. An axis that passes through the intersection 1603 of the two straight lines 1601 and 1602 whose angle dimensions are constrained and that is perpendicular to the transformed projection is transformed into the coordinate system of the target projection. If the converted axis is perpendicular to the target projection view, the flow branches to S1311 to add an angular dimension to the constraint network 1208.

【0206】S1311では、角度寸法が拘束している二直
線1601、1602を変換投影図の座標系に変換する。これら
の二直線と一致する直線ノードを拘束ネットワーク1208
から検索し、その間に角度拘束アークを追加する。
In step S1311, the two straight lines 1601 and 1602 whose angular dimensions are constrained are converted to the coordinate system of the converted projection. A straight line node matching these two straight lines is added to the constraint network 1208.
And add an angle constraint arc between them.

【0207】以下に、本実施形態による図面検査装置の
動作を、複数の投影図からなる図35の例によって詳細
に説明する。
Hereinafter, the operation of the drawing inspection apparatus according to the present embodiment will be described in detail with reference to the example of FIG. 35 including a plurality of projection views.

【0208】図35は、正面図1701、左側面図1702、右
側面図1703の3つの投影図からなる。この例において、
正面図1701を単独で寸法の過不足を検査すると、重複記
入はなく、図形要素1710、図形要素1711、図形要素1712
が寸法不足と判定される。しかし、図面全体でみれば、
図形要素1711、図形要素1712は、右側面図1703の寸法17
26により拘束されていることが分かる。さらに、正面図
1701の寸法1723と右側面図1703の寸法1725は、重複して
記入されており、過剰寸法であることが分かる。
FIG. 35 is composed of three projections: a front view 1701, a left side view 1702, and a right side view 1703. In this example,
If the front view 1701 alone is inspected for over / shortage of dimensions, there is no duplicate entry, and the graphic elements 1710, 1711, 1712
Is determined to be undersized. However, looking at the whole drawing,
The graphic element 1711 and the graphic element 1712 correspond to the dimension 17 in the right side view 1703.
It can be seen that it is restricted by 26. Furthermore, the front view
The dimension 1723 of the 1701 and the dimension 1725 of the right side view 1703 are overlapped, and it can be seen that they are excessive dimensions.

【0209】図35の図面は、図36に示した段付軸18
01を、正面図1701には視線方向1802から、左側面図1702
には視線方向1803から、右側面図1703には視線方向1804
から、三角法で投影した形状を描いたものである。
The drawing of FIG. 35 is the same as the stepped shaft 18 shown in FIG.
01, front view 1701 from the line of sight 1802, left side view 1702
From the line of sight 1803, the right side
, The shape projected by trigonometry.

【0210】図37は、図35の三次元空間図を示す。
すなわち、正面図1701を三次元空間上のYZ平面に配置
し、視線方向を考慮して三次元座標系の原点がそれぞれ
の投影図の座標系原点1704、1705、1706に投影されるよ
うに、左側面図1702と右側面図1703を三次元空間上に配
置している。平面1901は正面図1701を乗せた投影面、平
面1902は左側面図1702の投影面、平面1903は右側面図17
03の投影面、符号1904は投影図を配置した三次元空間の
原点と座標系を示している。
FIG. 37 shows a three-dimensional space diagram of FIG.
That is, the front view 1701 is arranged on the YZ plane in the three-dimensional space, and the origin of the three-dimensional coordinate system is projected on the coordinate system origins 1704, 1705, and 1706 of the respective projection views in consideration of the line of sight, A left side view 1702 and a right side view 1703 are arranged in a three-dimensional space. The plane 1901 is the projection plane on which the front view 1701 is placed, the plane 1902 is the projection plane of the left side view 1702, and the plane 1903 is the right side view 17
A projection plane 03, reference numeral 1904 indicates an origin and a coordinate system of the three-dimensional space where the projection view is arranged.

【0211】このように投影図を配置すれば、コンピュ
ータグラフィックスの三次元投影変換アルゴリズムか
ら、それぞれの投影図上の点を図37の三次元座標系に
変換する行列を決めることができる。このアルゴリズム
は、たとえば、「Fundamentalsof Interactive Compute
r Graphics(J.D.Floey, A.Van Dam著、Addison-We
sley Publishing Companay;1982年発行;PP268−31
6)」などに周知である。
By arranging the projections in this manner, a matrix for converting points on each projection into the three-dimensional coordinate system shown in FIG. 37 can be determined from a three-dimensional projection conversion algorithm of computer graphics. This algorithm is, for example, the "Fundamentalsof Interactive Compute
r Graphics (JD Floey, A. Van Dam, Addison-We
sley Publishing Companay; published in 1982; PP268-31
6)).

【0212】この変換行列を、投影図データ1202の投影
変換行列1205とする。正面図1701の投影変換行列をM
1、左側面図1702の投影変換行列をM2、右側面図1703
の投影変換行列をM3とすれば、それぞれの変換行列は
数5により表わされる。
This transformation matrix is defined as a projection transformation matrix 1205 of the projection drawing data 1202. The projection transformation matrix of the front view 1701 is M
1. The projection transformation matrix of the left side view 1702 is M2, and the right side view 1703
Let M3 be the projection transformation matrix of, each transformation matrix is represented by Equation 5.

【0213】[0213]

【数5】 (Equation 5)

【0214】なお、図面では物体の形状を表すときに、
投影図だけでなく断面図を用いることもある。断面図は
投影図と同様に視線方向が決まっているので、例示した
投影図の場合と同様に、断面図の投影変換行列1205を求
めることができる。
In the drawings, when representing the shape of an object,
In some cases, not only a projection view but also a cross-sectional view is used. Since the line-of-sight direction is determined in the sectional view as in the case of the projected view, the projection transformation matrix 1205 of the sectional view can be obtained in the same manner as in the case of the illustrated projected view.

【0215】図38に、図35に示した図面の図面デー
タ1201の内容を示す。符号号2001の行は図形データ120
3、符号2002の行は寸法データ1204、符号2003の行は投
影変換行列1205である。また、符号2004の各行は正面図
1701の投影図データ1202、符号2005の各行は右側面図17
03の投影図データ1204、符号2006の各行は左側面図1702
の投影図データ1202である。
FIG. 38 shows the contents of the drawing data 1201 of the drawing shown in FIG. The line with the code number 2001 is the graphic data 120
3. The row denoted by reference numeral 2002 is the dimension data 1204, and the row denoted by reference numeral 2003 is the projection transformation matrix 1205. Also, each row of reference numeral 2004 is a front view.
1701 projection view data 1202, each row of reference numeral 2005 is a right side view 17
Projection data 1203 of 03, each row of reference numeral 2006 is a left side view 1702
Is projection view data 1202 of FIG.

【0216】図39は、拘束関係抽出手段1206により、
図形データ1201から抽出した正面図1701の拘束ネットワ
ーク1208の図形要素ノードテーブルである。図40は、
拘束関係抽出手段1206および拘束関係追加手段1207によ
り、図形データ1201から抽出した正面図1701の拘束ネッ
トワーク1208の拘束アークテーブルで、識別子A1から
A20までの拘束アークは、拘束関係抽出手段1206によ
り、正面図1701の投影図データ2004から抽出した拘束ア
ークである。識別子A21からA24の拘束アークは、
拘束関係追加手段1207により、右側面図1703の投影図デ
ータ2005および左側面図1702の投影図データ2006より抽
出した拘束アークである。以下に識別子A21からA2
4の拘束アークを追加する処理を説明する。
FIG. 39 shows that the relation extracting unit 1206
6 is a graphic element node table of a constraint network 1208 of a front view 1701 extracted from graphic data 1201. FIG.
In the constraint arc table of the constraint network 1208 of the front view 1701 extracted from the graphic data 1201 by the constraint relationship extracting means 1206 and the constraint relationship adding means 1207, the constraint arcs with identifiers A1 to A20 are identified by the constraint relationship extracting means 1206. It is a constrained arc extracted from the projection view data 2004 of FIG. The constraint arcs with identifiers A21 to A24 are:
The constraint arc is extracted from the projection view data 2005 in the right side view 1703 and the projection view data 2006 in the left side view 1702 by the constraint relation adding means 1207. Below, identifiers A21 to A2
The process of adding the fourth constraint arc will be described.

【0217】正面図1701を対象投影図に、右側面図1703
を変換投影図とする場合、S1301において、右側面図17
03の座標値を正面図1701の座標系に変換する行列を、数
6により求める。
A front view 1701 is a target projection view, and a right side view 1703.
Is a conversion projection view, in S1301, the right side view 17
A matrix for converting the coordinate value of 03 into the coordinate system of the front view 1701 is obtained by Expression 6.

【0218】[0218]

【数6】 (Equation 6)

【0219】S1302において、正面図1701の図形データ
および寸法データから作成した拘束ネットワークに、右
側面図1703内の各寸法を変換行列M3-1を使って追加す
る。寸法1725は径寸法なので、S1306に分岐する。
In step S1302, each dimension in the right side view 1703 is added to the constraint network created from the graphic data and dimension data of the front view 1701 using the conversion matrix M3-1 . Since the dimension 1725 is a diameter dimension, the process branches to S1306.

【0220】S1306では、寸法1725は、図形要素1718の
円に付加されているので、その中心点を参照し、(0、
0、0)と(0、0、1)の2点を通る直線が寸法1725の中
心軸となる。これを変換行列M3-1を用いて、正面図170
1の座標系に変換すると、(100、0、0)と(101、0、
0)を通る直線となる。この直線は正面図1701に平行な
ので、S1308を経てS1309に分岐し、中心軸に平行で距
離が図形要素1718の円の半径50だけ離れた二直線の間の
距離寸法を正面図1701の拘束ネットワークに追加する。
In step S1306, since the dimension 1725 is added to the circle of the graphic element 1718, the center point is referred to (0,
A straight line passing through two points (0, 0) and (0, 0, 1) is the central axis of the dimension 1725. Using the transformation matrix M3-1 , the front view 170
When converted to a coordinate system of 1, (100, 0, 0) and (101, 0,
0). Since this straight line is parallel to the front view 1701, the process branches to S1309 via S1308, and the distance between two straight lines parallel to the central axis and separated by a radius of 50 of the circle of the graphic element 1718 is defined as the constraint network of the front view 1701. Add to

【0221】寸法1725の中心軸を正面図1701に変換する
と(100、0、0)と(101、0、0)であり、投影図上では
二次元平面座標系なのでZ軸方向座標値を無視すれば、
(100、0)−(101、0)となり、図30の図形要素ノー
ドL8と同一直線上になる。直線(100、0)−(101、
0)に平行で距離が図形要素1718の円の半径50だけ離れ
た2直線は(100、50)−(101、50)、(100、−50)
−(101、−50)となり、それぞれ図39の図形要素ノ
ードL2およびL3と同一直線上になる。
When the central axis of the dimension 1725 is converted into the front view 1701, the coordinates are (100, 0, 0) and (101, 0, 0). In the projection view, the coordinate value in the Z-axis direction is ignored because it is a two-dimensional plane coordinate system. if,
(100, 0)-(101, 0), which is on the same straight line as the graphic element node L8 in FIG. Straight line (100, 0)-(101,
Two straight lines parallel to 0) and separated by a radius of 50 of the circle of the graphic element 1718 are (100, 50)-(101, 50), (100, -50)
− (101, −50), and are on the same straight line as the graphic element nodes L2 and L3 in FIG. 39, respectively.

【0222】したがって、図40に符号2021および符号
2022で示す直線L2と直線L8及び、直線L3と直線L
8を拘束対象ノードとする拘束アークA21、A22を
正面図1701の拘束アークテーブルに追加する。同様にし
て、寸法1726を正面図1701上に変換すると符号2023、符
号2024で示す拘束アークA23、A24になる。なお、
左側面図1702には寸法がないので寸法追加処理はこれで
終了する。
Therefore, reference numerals 2021 and 2021 in FIG.
The straight lines L2 and L8 and the straight lines L3 and L shown by 2022
The constraint arcs A21 and A22 having the constraint node 8 as the constraint target node are added to the constraint arc table in the front view 1701. Similarly, when the dimension 1726 is converted into the front view 1701, the constrained arcs A23 and A24 indicated by reference numerals 2023 and 2024 are obtained. In addition,
Since there is no dimension in the left side view 1702, the dimension addition processing ends here.

【0223】拘束関係追加手段1207の処理が終了後の拘
束ネットワークに対して、従属関係決定手段1209、寸法
不足検出手段1211を適用したあとの図形要素ノードテー
ブルを図41に、拘束アークテーブルを図42に示す。
符号2031および符号2032で示すように、図形要素ノード
L6、P3、P4、P5、P6の従属関係グループ番号
は2となっており、他の図形要素ノードと異なってい
る。これは、図形要素ノードL6、P3、P4、P5、
P6が寸法記入不足のため、他の図形要素から相対位置
が決められないことを表わしている。このうち、対応図
形が設定されているのはL4だけで、その図形データ識
別子は直線1710である。このことから、直線1710が寸法
不足であることがわかる。
FIG. 41 shows a graphic element node table obtained by applying the dependency relation determining means 1209 and the dimension shortage detecting means 1211 to the constraint network after the processing of the constraint relation adding means 1207 is completed. 42.
As indicated by reference numerals 2031 and 2032, the dependent relationship group number of the graphic element nodes L6, P3, P4, P5, and P6 is 2, which is different from other graphic element nodes. This corresponds to graphic element nodes L6, P3, P4, P5,
P6 indicates that the relative position cannot be determined from other graphic elements due to insufficient dimension entry. Of these, the corresponding graphic is set only in L4, and its graphic data identifier is a straight line 1710. This indicates that the straight line 1710 is undersized.

【0224】一方、図42の拘束アークテーブルの使用
済みフラグの欄が設定されていない拘束アークは、符号
2041および符号2042で示すアークA21とアークA22
である。重複記入寸法検出手段1210によって、削除すべ
き寸法の候補を求めると、アークA21からはアークA
17が、アークA22からはアークA18が得られる。
図42に示すとおり、A17とA18には寸法1723が、
A21とA22には寸法1725が対応するので、寸法1723
と寸法1725が削除すべき寸法の候補である。
On the other hand, the constraint arc in the constraint arc table in FIG.
Arcs A21 and A22 indicated by 2041 and 2042
It is. When the candidate for the size to be deleted is obtained by the duplicated size detecting means 1210, the arc A
17 and arc A18 are obtained from arc A22.
As shown in FIG. 42, dimensions 1723 are set for A17 and A18,
Since dimension 1725 corresponds to A21 and A22, dimension 1723
And the dimension 1725 are candidates for the dimension to be deleted.

【0225】続いて、左側面図1702を対象投影図とした
場合について説明する。図43は、拘束関係抽出手段12
06および拘束関係追加手段1207により、図形データ1201
から抽出した左側面図1702の拘束ネットワーク1208の図
形要素ノードテーブルである。L1、L2、C1、C
2、P1は拘束関係抽出手段1206により、左側面図1702
より抽出した図形要素ノードである。L3、L4は、拘
束関係追加手段1207により、正面図1701の寸法データか
ら抽出した図形要素ノードである。
Next, the case where the left side view 1702 is set as the target projection view will be described. FIG. 43 shows the constraint relationship extracting means 12.
06 and the constraint addition means 1207
FIG. 70 is a graphic element node table of the constraint network 1208 of the left side view 1702 extracted from FIG. L1, L2, C1, C
2. P1 is a left side view 1702
This is a graphic element node extracted from FIG. L3 and L4 are graphic element nodes extracted from the dimension data of the front view 1701 by the constraint addition unit 1207.

【0226】図44は、拘束関係抽出手段1206および拘
束関係追加手段1207により、図形データ1201から抽出し
た左側面図1702の拘束ネットワーク1208の拘束アークテ
ーブルである。識別子A1からA5までの拘束アーク
は、拘束関係抽出手段1206により、左側面図1702の投影
図データ2006から抽出した拘束アークである。識別子A
6からA7の拘束アークは、拘束関係追加手段1207によ
り、右側面図1703の投影図データ2005より抽出した拘束
アークである。識別子A8からA10の拘束アークは、
拘束関係追加手段1207により、正面図1701の投影図デー
タ2004より抽出した拘束アークである。
FIG. 44 is a constraint arc table of the constraint network 1208 in the left side view 1702 extracted from the graphic data 1201 by the constraint relationship extracting means 1206 and the constraint relationship adding means 1207. The constrained arcs with identifiers A1 to A5 are the constrained arcs extracted from the projection data 2006 of the left side view 1702 by the constrained relationship extracting means 1206. Identifier A
The constraint arcs 6 to A7 are constraint arcs extracted from the projection view data 2005 of the right side view 1703 by the constraint relationship adding means 1207. The constraint arcs with identifiers A8 to A10 are:
This is a constraint arc extracted from the projection view data 2004 of the front view 1701 by the constraint relationship adding means 1207.

【0227】以下に、図43の図形要素ノードL3、L
4と、図44の識別子A6からA10の拘束アークを追
加する処理を説明する。最初に、右側面図1703を変換投
影図とする。S1301において、右側面図1703の座標値を
左側面図1702の座標系に変換する行列M3-2を、数7に
より求める。
The graphic element nodes L3 and L3 shown in FIG.
4 and the process of adding the constraint arcs of identifiers A6 to A10 in FIG. 44 will be described. First, the right side view 1703 is a transformed projection view. In step S1301, a matrix M3-2 for converting the coordinate values in the right side view 1703 into the coordinate system in the left side view 1702 is obtained by Expression 7.

【0228】[0228]

【数7】 (Equation 7)

【0229】S1302において、右側面図1703の各寸法を
変換行列M3-1を使って、左側面図1702の図形データ及
び寸法データから作成した拘束ネットワーク1208に追加
する。まず、寸法1725は径寸法なので、S1306に分岐す
る。
[0229] In S1302, the dimensions of the right side view 1703 using a transformation matrix M 3-1, adding to the constraint network 1208 created from graphic data and dimension data of left side view 1702. First, since the dimension 1725 is a diameter dimension, the process branches to S1306.

【0230】S1306では、寸法1725は図形要素1718の円
に付加されているので、その中心点を参照し、2点
(0、0、0),(0、0、1)を通る直線が寸法1725の中心
軸となる。これを変換行列M3-2を用いて、左側面図170
2の座標系に変換すると、(0、0、−100)と(0、0、−
101)を通る直線となる。
In S1306, since the dimension 1725 is added to the circle of the graphic element 1718, a straight line passing through two points (0, 0, 0) and (0, 0, 1) is referred to by referring to the center point. It is the central axis of 1725. This is converted to a left side view 170 by using a transformation matrix M 3-2 .
When converted to the coordinate system of 2, (0, 0, -100) and (0, 0,-
101).

【0231】この直線は、左側面図1702に垂直なので、
S1307に分岐し、中心軸が通る左側面図1702上の点
(0、0)を中心とし、図形要素1718の円の半径50と同じ
左側面図1702上の円を検索する。この場合、図形要素17
21の円が該当するので、図44の符号2121で示す拘束ア
ークA6を追加して種別の欄を「径」とし、符号2111で
示す図形要素1721に対応する図形要素ノードC1を拘束
対象の欄に設定する。さらに、対応寸法データの欄に変
換前の寸法データ識別子1725を設定する。
Since this straight line is perpendicular to the left side view 1702,
The process branches to step S1307, and a circle on the left side view 1702 that is the same as the radius 50 of the circle of the graphic element 1718 is searched around the point (0, 0) on the left side view 1702 through which the central axis passes. In this case, graphic element 17
Since the circle of 21 corresponds to this, a constraint arc A6 indicated by reference numeral 2121 in FIG. Set to. Further, a dimension data identifier 1725 before conversion is set in the corresponding dimension data column.

【0232】同様にして、寸法1726を左側面図1702に変
換すると中心軸が垂直になるので、符号2122で示す左側
面図1702上の円図形ノードC2の直径寸法A7として、
左側面図1702の拘束ネットワークに追加する。
Similarly, when the dimension 1726 is converted into the left side view 1702, the central axis becomes vertical. Therefore, as the diameter dimension A7 of the circular figure node C2 on the left side view 1702 indicated by reference numeral 2122,
Add to the constraint network in left side view 1702.

【0233】次に、正面図1701を変換投影図とする。正
面図1701の座標値を左側面図1702の座標系に変換する行
列M1-2を、数8により求める。
Next, the front view 1701 is a converted projection view. A matrix M1-2 for converting the coordinate values of the front view 1701 into the coordinate system of the left side view 1702 is obtained by Expression 8.

【0234】[0234]

【数8】 (Equation 8)

【0235】S1302において、正面図1701内の各寸法を
変換行列M1-2を使って、左側面図1702の図形データ及
び寸法データから作成した拘束ネットワークに追加す
る。まず、寸法1723は距離寸法なので、S1304に分岐す
る。
[0235] In S1302, using the transformation matrix M 1-2 the dimensions in the front view 1701, adds to the constraint network created from graphic data and dimension data of left side view 1702. First, since the dimension 1723 is a distance dimension, the process branches to S1304.

【0236】S1304では、寸法1723の寸法線の両端点の
正面図1701上の座標値を(−10、50)と(−10、−50)
とすれば、左側面図1702上に変換後の両端点の座標値は
(0、50、10)と(0、−50、10)となり、Z座標値が一
致するので変換後の寸法線は左側面図1702に平行にな
る。したがって、S1305に分岐する。
In S1304, the coordinate values on the front view 1701 of the both ends of the dimension line of the dimension 1723 are represented by (−10, 50) and (−10, −50).
Then, on the left side view 1702, the coordinate values of both end points after the conversion are (0, 50, 10) and (0, -50, 10), and the Z coordinate values match. It is parallel to the left side view 1702. Therefore, the flow branches to S1305.

【0237】S1305では、寸法1723の寸法補助線の足の
座標値(0、50)、(0、−50)を左側面図1702上に変換
して、座標値(0、50、0)、(0、−50、0)を得る。そ
れぞれの点をとおり、変換後の寸法線に垂直な2つの直
線をもとめて左側面図1702に投影すると、点(0、50)
と点(1、50)を通る直線と、点(0、−50)と点(1、
−50)を通る2本の直線を得る。これらの直線要素と同
一線上になる図形要素ノードは、図43の図形要素ノー
ドテーブルにはないので、符号2113および符号2114で示
すL3、L4として左側面図1702の拘束ネットワークに
追加する。
In S1305, the coordinate values (0, 50) and (0, -50) of the foot of the dimension auxiliary line of the dimension 1723 are converted to the left side view 1702, and the coordinate values (0, 50, 0), (0, -50, 0). When two straight lines perpendicular to the dimension line after conversion are obtained and projected on the left side view 1702, the points (0, 50)
And a straight line passing through points (1, 50), and points (0, -50) and (1,
-50) to obtain two straight lines. Since the graphic element nodes that are on the same line as these linear elements are not in the graphic element node table of FIG. 43, they are added to the constraint network of left side view 1702 as L3 and L4 indicated by reference numerals 2113 and 2114.

【0238】追加した直線L3とL4はC1に接するの
で、図44の符号2123で示すように、直線L3と円C
1、直線L4と円C1の間に種別が距離の拘束アークA
8、A9を追加する。さらに、符号2124で示すように、
L3とL4の距離を拘束する拘束アークA10を追加
し、その対応寸法データに変換前の寸法データの識別子
1723を設定する。
Since the added straight lines L3 and L4 are in contact with C1, as shown by reference numeral 2123 in FIG.
1. Restricted arc A whose type is distance between straight line L4 and circle C1
8. Add A9. Further, as indicated by reference numeral 2124,
A constraint arc A10 for restricting the distance between L3 and L4 is added, and the identifier of the dimension data before conversion is added to the corresponding dimension data.
Set 1723.

【0239】次に、寸法1724を処理する。寸法1724は距
離寸法なのでS1304に分岐し、寸法線の両端点の座標値
(0、−60)、(100、−60)を左側面図1702上に変換す
る。変換後の座標値は(0、−60、0),(0、−60、−1
00)となり、変換後の寸法線は左側面図1702に平行では
ない。したがって、寸法1724は左側面図1702には追加し
ない。
Next, the dimension 1724 is processed. Since the dimension 1724 is a distance dimension, the process branches to S1304, and the coordinate values (0, -60) and (100, -60) of both ends of the dimension line are converted into a left side view 1702. The coordinate values after conversion are (0, -60, 0), (0, -60, -1
00), and the converted dimension line is not parallel to the left side view 1702. Therefore, dimension 1724 is not added to left side view 1702.

【0240】図45は図形要素ノードテーブル、図46
は拘束アークテーブルを示し、図43、図44に示した
拘束ネットワークに、従属関係決定手段1209、寸法不足
検出手段1211及び重複寸法検出手段1210を適用した結果
を示している。
FIG. 45 shows a graphic element node table, and FIG.
Indicates a constrained arc table, and shows the result of applying the dependency relationship determining means 1209, the dimension shortage detecting means 1211 and the overlapping dimension detecting means 1210 to the constrained networks shown in FIGS. 43 and 44.

【0241】図形要素ノードテーブルの従属関係グルー
プ番号はすべて同一なので、左側面図1702には寸法の記
入不足がない。また、使用済みフラグが設定されていな
い拘束アークは、符号2125で示すA10である。これを
重複寸法検出手段1210により、従属方向を遡ると、アー
クA8、A9、A6、A3を得る。これらの拘束アーク
のうち対応寸法データを持つのはA6で、その対応寸法
は1725である。A10の対応寸法は1723であるから、削
除できる寸法の候補として寸法1723と寸法1725が得られ
る。
Since the dependent relationship group numbers in the graphic element node table are all the same, there is no lack of dimension entry in the left side view 1702. The constraint arc for which the used flag is not set is A10 indicated by reference numeral 2125. When this is traced back in the dependent direction by the overlapping dimension detecting means 1210, arcs A8, A9, A6, and A3 are obtained. A6 has the corresponding dimension data among these constrained arcs, and the corresponding dimension is 1725. Since the corresponding dimension of A10 is 1723, the dimensions 1723 and 1725 are obtained as candidates for the dimension that can be deleted.

【0242】以上、すべての投影図に関する検査結果を
まとめると、図35に示した図面において、寸法1723と
寸法1725が重複寸法、正面図1701の図形要素1710が寸法
不足と検出できる。
As described above, when the inspection results for all the projection views are summarized, it can be detected that the dimension 1723 and the dimension 1725 overlap in the drawing shown in FIG. 35 and the graphic element 1710 in the front view 1701 is insufficient in dimension.

【0243】図47に図35の図面の検査結果を示す。
寸法記入不足の図形要素2301をハイライト表示し、重複
寸法2302を表示色を変えて表示することにより、寸法の
記入ミスをユーザに提示することで、複数の投影図や断
面図からなる三次元図面においても、修正の必要な箇所
を一目で示すことができる。
FIG. 47 shows the inspection result of the drawing of FIG.
By highlighting the underfilled graphic element 2301 and displaying the overlapping dimensions 2302 in different display colors to present the user with errors in dimensioning, the three-dimensional In the drawings, the parts that need to be corrected can be shown at a glance.

【0244】[0244]

【発明の効果】本発明によれば、相対的に位置の決定で
きる図形要素同士をグループ化し、グループ別に異なる
表示属性で図面を表示するので、ユーザは不足している
寸法を容易に追加できる。また、異なるグループ間で、
寸法の追加できる図形要素間を選択して、自動的に不足
寸法の追加を行なうので、図面検査の手数が大幅に軽減
できる。
According to the present invention, the graphic elements whose positions can be relatively determined are grouped and the drawing is displayed with different display attributes for each group, so that the user can easily add the missing dimensions. Also, between different groups,
Since a missing dimension is automatically added by selecting between graphic elements to which dimensions can be added, the number of drawing inspections can be greatly reduced.

【0245】本発明によれば、図面中の各図形要素の間
の従属関係、すなわち相対的に位置の決定できる図形要
素同士を、前提部に拘束条件を含む幾何推論ルールによ
って決定し、拘束条件の不足によって推論が中断する場
合、未決定の図形要素に不足している拘束関係を仮定し
て、全図形要素の従属関係が成立するまで繰返し推論を
行なうので、この仮定を通して不足の寸法が自動的に決
定できる。
According to the present invention, the dependency between graphic elements in the drawing, that is, graphic elements whose positions can be relatively determined is determined by a geometric inference rule including a constraint condition in the premise, and the constraint condition is determined. If the inference is interrupted due to lack of data, the inferred constraints are assumed for the undetermined graphic elements, and the inference is performed repeatedly until the subordination of all the graphic elements is established. Can be determined.

【0246】また、推論が終結したところで、使用され
なかった拘束条件の推論仮定を逆方向に辿ることで、重
複記入の候補寸法を全て抽出できる。すなわち、図面に
寸法不足のある場合にも、全ての重複記入の寸法候補を
リストアップするので、ユーザは真に必要な寸法を残
し、その他を正しく削除できる。
Further, when the inference is completed, by tracing the inference assumption of the unused constraint condition in the reverse direction, all the candidate dimensions of the duplicate entry can be extracted. In other words, even when the drawing has insufficient dimensions, all the dimension candidates for duplicate entry are listed up, so that the user can leave the truly required dimensions and correctly delete the others.

【0247】本発明によれば、複数の投影図または断面
図を含む図面にたいして、投影図間の座標変換を行なっ
て、図面全体としての寸法の過不足を検出するので、実
図面に適用して正確な検査結果が得られ、修正の手間も
大幅に軽減できる。
According to the present invention, for a drawing including a plurality of projection views or cross-sectional views, coordinate conversion between the projection views is performed to detect an excess or deficiency of the dimensions of the whole drawing. Accurate inspection results are obtained, and the time and effort for correction can be greatly reduced.

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

【図1】本発明の第一の実施形態による図面検査装置の
機能ブロック図。
FIG. 1 is a functional block diagram of a drawing inspection apparatus according to a first embodiment of the present invention.

【図2】本発明による図面検査装置を実現するための計
算機システムの構成図。
FIG. 2 is a configuration diagram of a computer system for realizing the drawing inspection apparatus according to the present invention.

【図3】第一の実施形態の説明に参照する寸法記入の不
足がある図面の一例。
FIG. 3 is an example of a drawing having a lack of dimension entry referred to in the description of the first embodiment.

【図4】図3の図面における図形データを示すテーブ
ル。
FIG. 4 is a table showing graphic data in the drawing of FIG. 3;

【図5】図3の図面における寸法データを示すテーブ
ル。
FIG. 5 is a table showing dimension data in the drawing of FIG. 3;

【図6】図3の図面に対し、第一の実施形態によるグル
ープ化の結果を示すテーブル。
FIG. 6 is a table showing a result of grouping according to the first embodiment with respect to the drawing of FIG. 3;

【図7】図3の図面の図形要素をグループ別に異なる表
示属性で表示した画面。
7 is a screen displaying the graphic elements of the drawing of FIG. 3 with different display attributes for each group.

【図8】本発明の第二の実施形態による不足寸法の追加
処理を示すフロー図。
FIG. 8 is a flowchart showing a process of adding a missing dimension according to the second embodiment of the present invention.

【図9】追加寸法のリストを示すテーブル。FIG. 9 is a table showing a list of additional dimensions.

【図10】図7の図面に対し、追加寸法を異なる表示属
性で表示した画面。
FIG. 10 is a screen in which additional dimensions are displayed with different display attributes from the drawing of FIG. 7;

【図11】本発明の第三の実施形態による図面検査装置
の機能ブロック図。
FIG. 11 is a functional block diagram of a drawing inspection apparatus according to a third embodiment of the present invention.

【図12】拘束ネットワーク作成手段の処理フロー図。FIG. 12 is a processing flowchart of a constraint network creating unit.

【図13】第三の実施形態の説明に参照する寸法記入に
過不足のある図面の一例。
FIG. 13 is an example of a drawing with insufficient or insufficient dimension entry referred to in the description of the third embodiment.

【図14】図面データと寸法データの記憶フォーマット
を示すテーブル図。
FIG. 14 is a table diagram showing a storage format of drawing data and dimension data.

【図15】拘束ネットワーク記憶手段の図形要素ノード
テーブルのフォーマット図。
FIG. 15 is a format diagram of a graphic element node table in a constraint network storage unit.

【図16】拘束ネットワーク記憶手段の拘束アークテー
ブルのフォーマット図。
FIG. 16 is a format diagram of a constraint arc table in a constraint network storage unit.

【図17】従属関係決定手段の処理フロー図。FIG. 17 is a processing flowchart of a dependency determination unit.

【図18】従属関係決定手段で処理途中の図形要素ノー
ドテーブルの内容を示す遷移図。
FIG. 18 is a transition diagram showing the contents of a graphic element node table in the process of being processed by the dependency determination unit.

【図19】従属関係決定手段で処理途中の拘束アークテ
ーブルの内容を示す遷移図。
FIG. 19 is a transition diagram showing the contents of a constrained arc table being processed by the dependency determination means.

【図20】従属関係決定手段で処理途中の図形データの
内容を示す遷移図。
FIG. 20 is a transition diagram showing the contents of graphic data being processed by the dependency determining means.

【図21】推論中断時の図形要素ノードテーブルの内容
を示す遷移図。
FIG. 21 is a transition diagram showing contents of a graphic element node table when inference is interrupted.

【図22】推論中断時の拘束アークテーブルの内容を示
す遷移図。
FIG. 22 is a transition diagram showing contents of a constrained arc table when inference is interrupted.

【図23】推論中断時の図形データの内容を示す遷移
図。
FIG. 23 is a transition diagram showing the contents of graphic data when inference is interrupted.

【図24】拘束条件仮定による推論結果の図形要素ノー
ドテーブルの内容を示す遷移図。
FIG. 24 is a transition diagram showing the contents of a graphic element node table as a result of inference based on a constraint condition assumption.

【図25】拘束条件仮定による推論結果の拘束アークテ
ーブルの内容を示す遷移図。
FIG. 25 is a transition diagram showing contents of a constrained arc table as a result of inference based on a constrained condition assumption.

【図26】拘束条件仮定による推論結果の図形データの
内容を示す遷移図。
FIG. 26 is a transition diagram showing contents of graphic data as a result of inference based on a constraint condition assumption.

【図27】重複寸法検出手段の処理フロー図。FIG. 27 is a processing flowchart of an overlap size detection unit.

【図28】図13の図面の重複記入の寸法を示した寸法
データのテーブル図。
FIG. 28 is a table diagram of dimension data showing dimensions of overlapping entries in the drawing of FIG. 13;

【図29】第3の実施形態による図13の検査結果を示
す表示画面。
FIG. 29 is a display screen showing the inspection result of FIG. 13 according to the third embodiment.

【図30】本発明の第四の実施形態による図面検査装置
の機能ブロック図。
FIG. 30 is a functional block diagram of a drawing inspection apparatus according to a fourth embodiment of the present invention.

【図31】投影変換による拘束条件の追加処理を示すフ
ロー図。
FIG. 31 is a flowchart showing a process of adding a constraint condition by projection transformation.

【図32】距離寸法の例を示す説明図。FIG. 32 is an explanatory diagram showing an example of a distance dimension.

【図33】直径寸法の例を示す説明図。FIG. 33 is an explanatory view showing an example of a diameter dimension.

【図34】角度寸法の例を示す説明図。FIG. 34 is an explanatory diagram showing an example of an angle dimension.

【図35】第四の実施形態の説明に参照する投影図を持
つ図面の一例。
FIG. 35 is an example of a drawing having a projection view referred to in the description of the fourth embodiment;

【図36】図35の各投影図の視線方向を示す斜視図。FIG. 36 is a perspective view showing a direction of a line of sight of each projection view of FIG. 35;

【図37】図35の図面の各投影図を三次元空間に配置
した斜視図。
FIG. 37 is a perspective view in which the projections of the drawing of FIG. 35 are arranged in a three-dimensional space.

【図38】図35の図面データの内容を示す遷移図。FIG. 38 is a transition diagram showing the contents of the drawing data of FIG. 35;

【図39】拘束関係抽出手段と拘束関係追加手段により
作成した、図35の正面図の図形要素ノードテーブルの
内容を示す遷移図。
FIG. 39 is a transition diagram showing the contents of the graphic element node table in the front view of FIG. 35 created by the constraint relationship extracting means and the constraint relationship adding means.

【図40】図35の正面図の拘束アークテーブルの内容
を示す遷移図。
FIG. 40 is a transition diagram showing contents of a constrained arc table in the front view of FIG. 35;

【図41】従属関係決定手段による処理結果で、図39
に対応する遷移図。
FIG. 41 shows a processing result obtained by the dependency determination unit, and FIG.
Transition diagram corresponding to FIG.

【図42】従属関係決定手段による処理結果で、図40
に対応する遷移図。
FIG. 42 shows a processing result obtained by the dependency relationship determining means.
Transition diagram corresponding to FIG.

【図43】拘束関係抽出手段と拘束関係追加手段により
作成した、図形要素ノードテーブルの内容の一部を示す
遷移図。
FIG. 43 is a transition diagram showing a part of the contents of the graphic element node table created by the constraint relationship extracting means and the constraint relationship adding means.

【図44】拘束関係抽出手段と拘束関係追加手段により
作成した、拘束アークテーブルの内容の一部を示す遷移
図。
FIG. 44 is a transition diagram showing a part of the contents of the constraint arc table created by the constraint relationship extracting means and the constraint relationship adding means.

【図45】従属関係決定手段による処理結果で、図35
の左側面図の図形要素ノードテーブルの内容の一部を示
す遷移図。
FIG. 45 shows a processing result obtained by the dependency relationship determining means;
The transition diagram showing a part of the contents of the graphic element node table in the left side view of FIG.

【図46】従属関係決定手段による処理結果で、図35
の左側面図の拘束アークテーブルの内容の一部を示す遷
移図。
FIG. 46 shows a processing result obtained by the dependency determining means,
FIG. 6 is a transition diagram showing a part of the contents of a constrained arc table in the left side view of FIG.

【図47】第4の実施形態による図35の検査結果を示
す表示画面。
FIG. 47 is a display screen showing the test results of FIG. 35 according to the fourth embodiment.

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

1…図面データ記憶手段、2…図形データ、3…寸法デ
ータ、4…図形データグループ化手段、5…図形データ
グループ表示手段、6…表示手段、7…寸法追加手段、
101…拘束関係抽出手段、102…拘束ネットワーク記憶手
段、103…従属関係決定手段、104…寸法不足検出・仮定
手段、105…重複寸法検出手段、400…図形要素ノードテ
ーブル、410…拘束アークテーブル、1201…図面データ
記憶手段、1202…投影図データ、1203…図形データ、12
04…寸法データ、1205…投影変換データ、1206…拘束関
係抽出手段、1207…拘束関係追加手段、1208…拘束ネッ
トワーク記憶手段、1209…従属関係決定手段、1210…重
複寸法検出手段、1211…寸法不足検出・仮定手段。
DESCRIPTION OF SYMBOLS 1 ... Drawing data storage means, 2 ... Graphic data, 3 ... Dimension data, 4 ... Graphic data grouping means, 5 ... Graphic data group display means, 6 ... Display means, 7 ... Dimension addition means,
101: Constraint relation extraction means, 102: Constraint network storage means, 103: Dependency relation determination means, 104: Dimension shortage detection / assuming means, 105: Overlapping dimension detection means, 400: Graphic element node table, 410: Constraint arc table, 1201 ... Drawing data storage means, 1202 ... Projection drawing data, 1203 ... Graphic data, 12
04: Dimension data, 1205: Projection conversion data, 1206: Restriction relation extraction means, 1207: Restriction relation addition means, 1208: Restriction network storage means, 1209: Dependency relation determination means, 1210: Overlapping dimension detection means, 1211: Dimension shortage Means of detection and assumption.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 町井 克司 神奈川県横浜市戸塚区戸塚町5030番地 株式会社日立製作所 ソフトウェア開発 本部内 (56)参考文献 特開 平6−119424(JP,A) 特開 平6−75620(JP,A) 特開 平7−200667(JP,A) 特開 昭63−311572(JP,A) 特開 平6−119446(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 17/50 ──────────────────────────────────────────────────続 き Continuation of front page (72) Inventor Katsushi Machii 5030 Totsuka-cho, Totsuka-ku, Yokohama-shi, Kanagawa Pref. Software Development Division, Hitachi, Ltd. (56) References JP-A-6-119424 (JP, A) JP-A-6-75620 (JP, A) JP-A-7-200667 (JP, A) JP-A-63-315772 (JP, A) JP-A-6-119446 (JP, A) (58) Fields investigated (Int) .Cl. 7 , DB name) G06F 17/50

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 CAD図形データとして生成された図面
に対し、その図面の寸法記入の不足を計算機の処理によ
って検出する図面の検査方法において、 前記CAD図形データの図形要素毎の図形データと、該
図形要素間の相対的な位置関係を規定する拘束条件デー
タを記憶し、 前記拘束条件データに基づいて、前記図形データを互い
に相対的な位置関係を決定できる図形要素同士にグルー
プ分けし、前記グループ単位に異なる表示属性で前記図
形要素を表示させることを特徴とする図面検査方法。
1. A drawing inspection method for detecting, by a computer processing, a lack of dimension entry of a drawing generated as CAD graphic data, the drawing data for each graphic element of the CAD graphic data, Storing constraint condition data defining a relative positional relationship between the graphic elements; dividing the graphic data into graphic elements capable of determining a relative positional relationship to each other based on the constraint condition data; A drawing inspection method, wherein the graphic element is displayed with different display attributes in units.
【請求項2】 CADシステムで作成された複数の投影
図からなる図面の寸法記入の不足を、計算機の処理によ
って検出する図面の検査方法において、 各投影図の図形要素毎の図形データと、図形要素間の相
対的な位置関係を規定する拘束条件データと、各投影図
の投影方法を特定する投影変換データを記憶し、 対象の投影図に対して、該投影図以外の拘束条件データ
を前記投影変換データを用いて該投影図上の拘束条件デ
ータに変換し、該投影図の図形要素に付加されている拘
束条件データに追加し、追加された拘束条件データに基
づいて、互いの相対的な位置関係を決定できる図形要素
同士に前記図形データをグループ分けし、前記グループ
単位に異なる表示属性で該投影図上の図形要素を表示さ
せることを特徴とする図面検査方法。
2. A drawing inspection method for detecting, by computer processing, a lack of dimension entry of a drawing composed of a plurality of projections created by a CAD system, comprising: a graphic data for each graphic element of each projection; Phase between elements
Constraint condition data for defining a relative positional relationship and projection transformation data for specifying a projection method of each projection view are stored. For a target projection view, constraint condition data other than the projection view is stored in the projection transformation data. Is used to convert to constraint data on the projection view, and is added to the constraint data attached to the graphic element of the projection view. Based on the added constraint data, the relative positional relationship between each other is calculated. Wherein the graphic data is grouped into graphic elements each of which can determine a graphic element, and graphic elements on the projection view are displayed with different display attributes for each group.
【請求項3】 CADシステムで作成されたCAD図形
データで表わされる図面に対し寸法記入の過不足を検出
する図面検査装置において、 前記CAD図形データの図形要素毎の幾何データと、前
記図形要素間の相対的な位置関係を規定する拘束条件デ
ータとを記憶する図面データ記憶手段と、前記拘束条件
データに基づいて、互いの相対的な位置を決定できる図
形要素同士に前記CAD図形データをグループ分けする
図形グループ化手段と、前記グループ毎に異なる表示属
性で前記CAD図形データの図形要素を表示する表示手
段を備えることを特徴とする図面検査装置。
3. A drawing inspection apparatus for detecting an excess or deficiency of dimension entry for a drawing represented by CAD graphic data created by a CAD system, wherein the geometric data for each graphic element of the CAD graphic data is Drawing data storage means for storing constraint condition data for defining the relative positional relationship of the CAD data; and grouping the CAD graphic data into graphic elements whose relative positions can be determined based on the constraint data. A drawing inspection apparatus, comprising: a graphic grouping unit that performs graphic grouping; and a display unit that displays graphic elements of the CAD graphic data with different display attributes for each group.
【請求項4】 CADシステムで作成された複数の投影
図からなる図面の寸法記入の不足を検出する図面検査装
置において、 各投影図の図形要素毎の図形データと、図形要素間の相
対的な位置関係を規定する拘束条件データと、各投影図
の投影方法を特定する投影変換データを記憶する図面デ
ータ記憶手段と、 対象投影図の前記拘束条件データに対して、該対象投影
図以外の他の投影図の拘束条件データを前記投影変換デ
ータにより変換して追加する拘束関係追加手段と、 追加された拘束条件データに基づいて、互いの相対的な
位置関係を決定できる図形要素同士に前記図形データを
グループ分けする図形データグループ分け手段とを備え
ることを特徴とする図面検査装置。
4. A drawing inspection apparatus for detecting lack of dimension entry of a drawing composed of a plurality of projections created by a CAD system, comprising:
Drawing data storage means for storing constraint condition data for defining a relative positional relationship, projection transformation data for specifying a projection method of each projection view, and for the constraint condition data of the target projection view, A constraint relation adding means for converting and adding constraint condition data of a projection view other than the projection conversion data by the projection conversion data, and graphic elements capable of determining a relative positional relationship with each other based on the added constraint condition data. And a graphic data grouping means for grouping the graphic data.
JP15844796A 1996-06-19 1996-06-19 Drawing inspection method and drawing inspection device Expired - Fee Related JP3537956B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15844796A JP3537956B2 (en) 1996-06-19 1996-06-19 Drawing inspection method and drawing inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15844796A JP3537956B2 (en) 1996-06-19 1996-06-19 Drawing inspection method and drawing inspection device

Publications (2)

Publication Number Publication Date
JPH1011480A JPH1011480A (en) 1998-01-16
JP3537956B2 true JP3537956B2 (en) 2004-06-14

Family

ID=15671966

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15844796A Expired - Fee Related JP3537956B2 (en) 1996-06-19 1996-06-19 Drawing inspection method and drawing inspection device

Country Status (1)

Country Link
JP (1) JP3537956B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007048230A (en) * 2005-08-12 2007-02-22 Nsk Ltd Three-dimensional model product shape automatic construction system and basic dimension data display method
JP4789560B2 (en) * 2005-09-22 2011-10-12 キヤノン株式会社 Graphic processing apparatus and graphic processing method
JP4992439B2 (en) * 2007-01-26 2012-08-08 富士通株式会社 CAD system projection method, CAD system projection program, and CAD system
US20150347567A1 (en) * 2014-05-28 2015-12-03 Siemens Product Lifecycle Management Software Inc. Method for creation and editing of a massive constraint network
JP6086880B2 (en) * 2014-07-30 2017-03-01 Kddi株式会社 3D design apparatus, method and program

Also Published As

Publication number Publication date
JPH1011480A (en) 1998-01-16

Similar Documents

Publication Publication Date Title
US5161211A (en) Method and system of specification processing
JP3787743B2 (en) Mesh generator for numerical analysis
US8830266B1 (en) Merging electronic diagrams
JPH10312208A (en) Disassembling route generator, assembling route generator and mechanical system design support system
JPH04337843A (en) Program operation display method
JP3537956B2 (en) Drawing inspection method and drawing inspection device
EP0535894A2 (en) Apparatus and method for transforming a graphic pattern
US7844419B1 (en) Method of detecting potential topology problems in a network
JPH10222506A (en) Device for supporting document preparation
JPH0896166A (en) Device and method for extracting drawing candidate segment and device and method for compositing model
Comba Interactive Graphics in Data Processing: A language for three-dimensional geometry
Cyre et al. Knowledge visualization from conceptual structures
Liang et al. Towards a geometric-object-oriented language
Shapiro ESP3: a high-level graphics language
JP3085404B2 (en) Drawing management device
JP3635734B2 (en) 3D articulated structure shape generation method
JP3845137B2 (en) Automatic polygon record creation method around reference line and polygon record automatic creation device around reference line
CN117348868A (en) Interactive style template generation method and device, electronic equipment and storage medium
JPH06282593A (en) Leader preparing method
JP3234989B2 (en) Paper container design system
JPH02146681A (en) Contour line extracting system
Kulikov Building model generation project: Generating a model of the mit campus terrain
CN116186185A (en) Basic geographic element symbol rendering method considering cadastral semantics and attributes
JPH04289921A (en) Display method for multiple succession chart
JPH01296354A (en) System for debugging rule type inference

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040210

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040318

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

Free format text: PAYMENT UNTIL: 20090326

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090326

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100326

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110326

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees