JPH1153017A - Graphic generation device for CAM and recording medium - Google Patents
Graphic generation device for CAM and recording mediumInfo
- Publication number
- JPH1153017A JPH1153017A JP9210630A JP21063097A JPH1153017A JP H1153017 A JPH1153017 A JP H1153017A JP 9210630 A JP9210630 A JP 9210630A JP 21063097 A JP21063097 A JP 21063097A JP H1153017 A JPH1153017 A JP H1153017A
- Authority
- JP
- Japan
- Prior art keywords
- graphic
- elements
- cam
- intersection
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Numerical Control (AREA)
Abstract
(57)【要約】
【課題】 本発明は、最小オペレーションで組立図CA
Dデータを単一部品に分解されたCAMデータに変換す
る。
【解決手段】 複数の部品からなる組立図形状のCAD
データをCAM用の単一部品単位のデータに分解するC
AM用図形生成装置において、任意の2つの図形要素の
交点を算出する交点算出手段(13)と、交点算出手段
より算出された交点にてその図形要素を分割する要素分
割手段(13)とを備え、CAM用図形を生成するにあ
たり、図形要素の交点分解処理を自動的に実行可能とし
たCAM用図形生成装置。
(57) [PROBLEMS] To provide an assembly drawing CA with minimum operation.
The D data is converted into CAM data decomposed into a single part. SOLUTION: An assembly drawing-shaped CAD including a plurality of parts is provided.
Decompose data into single part data for CAM
In the AM graphic generating apparatus, an intersection calculating means (13) for calculating an intersection of any two graphic elements, and an element dividing means (13) for dividing the graphic element at the intersection calculated by the intersection calculating means. An apparatus for generating a CAM graphic capable of automatically executing intersection decomposition processing of graphic elements when generating a CAM graphic.
Description
【0001】[0001]
【発明の属する技術分野】この発明はCADデータを変
換してCAM用図形を生成するCAM用図形生成装置及
び記録媒体に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a CAM graphic generating apparatus and a recording medium for converting CAD data to generate a CAM graphic.
【0002】[0002]
【従来の技術】近年の機械加工(切削加工や板金加工
等)の分野においては、CAD(コンピュータ支援設
計)装置で作成した図形データをもとに機械加工用NC
データ(CAMデータ)を作成し、CAM(コンピュー
タ支援製造)により機械加工品を製造するのが一般的と
なっている。2. Description of the Related Art In recent years, in the field of machining (cutting, sheet metal working, etc.), NC machines for machining are based on graphic data created by CAD (computer-aided design) devices.
It is common to create data (CAM data) and manufacture machined products by CAM (Computer Assisted Manufacturing).
【0003】かかるCAD/CAMシステムにより機械
加工用NCデータを作成する場合には、CAD装置から
CAM装置へ図形データを受け渡すことが必要である。
このとき、従来から製品の組立図形状のCADデータを
CAM装置で必要とされる単一部品形状の図形データ単
位に分解して1部品のみを抽出することが行われてい
る。When NC data for machining is created by such a CAD / CAM system, it is necessary to transfer graphic data from the CAD device to the CAM device.
At this time, conventionally, CAD data of an assembly drawing shape of a product is decomposed into graphic data units of a single component shape required by a CAM device, and only one component is extracted.
【0004】ところが、組立図形状のCADデータは、
部品毎に要素を分割して描くことはまれであり、部品間
の接合部分の要素を1要素で共有したり、一直線上につ
ながる各部品の要素を1つの直線でまとめたりして描く
のが一般的である。However, the CAD data of the assembly drawing shape is
It is rare to draw elements by dividing them for each part, and it is common to draw one element at the joint between parts and one element at a time General.
【0005】このようなときの単一部品抽出を行う上
で、従来のCAD/CAMシステムでは、以下の方法で
CADデータを部品分解して、CAMシステムにデータ
を接続していた。In order to extract a single component in such a case, in a conventional CAD / CAM system, the CAD data is disassembled by the following method and the data is connected to the CAM system.
【0006】(1)まず、CAD装置内で組立図CAD
データを読み込み表示する。 (2)次に、作業者は、任意の単一部品を構成する要素
群を個々に選択し、選択要素以外を削除する。(1) First, an assembly drawing CAD is created in a CAD apparatus.
Read and display data. (2) Next, the operator individually selects an element group constituting an arbitrary single part, and deletes elements other than the selected element.
【0007】(3)次に、作業者は、隣接する他部品の
要素と1つの要素でまとめられている要素が部品のコー
ナー部ではみ出しとなっている部分を、CAD装置の
“トリミング”機能(はみ出し部除去機能)を利用して
手動にて削除する。(3) Next, the operator can use a CAD device to perform a "trimming" function on a part in which an element that is combined with an element of an adjacent other part and protrudes at one corner of the part. Use the (protruding part removal function) to delete manually.
【0008】(4)次に、作業者は、残った要素を別の
名前を付けてファイル保存する。 以上の操作を部品数分繰り返すことで、単一部品形状毎
に部品分解されたCADデータがCAMデータとしてC
AM装置へ入力される。(4) Next, the operator saves the remaining elements under a different name. By repeating the above operation for the number of parts, CAD data decomposed into parts for each single part
Input to the AM device.
【0009】[0009]
【発明が解決しようとする課題】従来の方法では、上述
した4ステップの人手によるオペレーションによりCA
D部品分解を行う必要がある。したがって、CAD装置
上の単純操作の繰り返しとはいえ、部品点数が多い図面
や、要素数の多い複雑な図面を処理するのには多くの時
間を要する。In the conventional method, CA operation is performed by the above-described four-step manual operation.
D parts need to be disassembled. Therefore, it takes a lot of time to process a drawing having a large number of parts and a complicated drawing having a large number of elements, even though the simple operation on the CAD apparatus is repeated.
【0010】特に、単一部品要素の選択時には要素数分
の要素のピック作業が必要であるし、トリミング時に
も、はみ出し部分1個所に付きトリムされる要素の選択
及びトリム対象要素の選択と2回のピック作業が必要で
ある。とりわけ要素指定作業は回数が多く、これらによ
り作業者の労力的負担は大きなものとなり、指定ミス等
の間違いも発生し易くなる。In particular, when a single component element is selected, it is necessary to pick the elements for the number of elements, and when trimming, it is necessary to select an element to be trimmed at one protruding portion and to select an element to be trimmed. One pick operation is required. In particular, the element designating operation is frequently performed, and thus the labor burden on the operator becomes large, and an error such as a designation mistake easily occurs.
【0011】したがって、これらの一連のオペレーショ
ンを必要最小限の要素指定作業のみで、自動的にCAD
部品分解することができ、ひいてはCAMシステムでの
組立図CADデータからの単一部品抽出を自動化できる
システムが求められている。Therefore, a series of these operations are automatically performed by CAD with only a minimum necessary element designating operation.
There is a need for a system that can disassemble parts and thereby automate the extraction of a single part from CAD data in an assembly drawing by a CAM system.
【0012】本発明は、このような実情を考慮してなさ
れたもので、最小オペレーションで組立図CADデータ
を単一部品に分解されたCAMデータに変換するCAM
用図形生成装置及び記録媒体を提供することを目的とす
る。The present invention has been made in view of such circumstances, and a CAM for converting assembly drawing CAD data into CAM data decomposed into a single part with minimum operations.
It is an object of the present invention to provide a graphic generating device for use and a recording medium.
【0013】[0013]
【課題を解決するための手段】上記課題を解決するため
に、請求項1に対応する発明は、複数の部品からなる組
立図形状のCADデータをCAM用の単一部品単位のデ
ータに分解するCAM用図形生成装置において、任意の
2つの図形要素の交点を算出する交点算出手段と、交点
算出手段より算出された交点にてその図形要素を分割す
る要素分割手段とを備え、CAM用図形を生成するにあ
たり、図形要素の交点分解処理を自動的に実行可能とし
たCAM用図形生成装置である。In order to solve the above-mentioned problems, the invention according to claim 1 decomposes CAD data of an assembly drawing shape composed of a plurality of parts into data of a single part unit for CAM. The CAM graphic generating apparatus includes an intersection calculating means for calculating an intersection of any two graphic elements, and an element dividing means for dividing the graphic element at the intersection calculated by the intersection calculating means. This is a CAM graphic generation device that can automatically execute intersection decomposition processing of graphic elements upon generation.
【0014】本発明は、このような手段を設けたので、
図形要素の交点分解処理にあたり、図形要素の不要部分
をトリミングするための交点分解処理を自動的に実施す
ることができる。In the present invention, since such means are provided,
In the intersection decomposition processing of the graphic element, the intersection decomposition processing for trimming an unnecessary portion of the graphic element can be automatically performed.
【0015】また、請求項2に対応する発明は、複数の
部品からなる組立図形状のCADデータをCAM用の単
一部品単位のデータに分解するCAM用図形生成装置に
おいて、組立図形の中から任意の単一部品について指定
された部品領域内の図形要素及び部品領域の境界に跨が
る図形要素を抽出する領域掛け要素抽出手段と、この抽
出された各図形要素を各要素同士の交点にて分割し、そ
れぞれを新たな図形要素とする交点分解手段と、分解後
の新たな図形要素のうち、部品領域内の図形要素のみを
抽出する領域内要素抽出手段とを備え、CAM用図形を
生成するにあたり、単一部品を構成する図形要素につい
ての自動的なトリミングを実行可能としたCAM用図形
生成装置である。According to a second aspect of the present invention, there is provided a CAM graphic generating apparatus for decomposing CAD data of an assembly drawing shape composed of a plurality of parts into data of a single part unit for a CAM. Area multiplying element extraction means for extracting a graphic element in a specified part area and a graphic element straddling the boundary of the part area for an arbitrary single part, and using the extracted graphic elements at intersections of the elements Intersection decomposing means, each of which is a new graphic element, and an in-area element extracting means for extracting only the graphic element in the part area from among the decomposed new graphic elements. This is a CAM graphic generation apparatus capable of executing automatic trimming of graphic elements constituting a single part upon generation.
【0016】本発明は、このような手段を設けたので、
CAM用図形を生成するにあたり、単一部品を構成する
図形要素についての自動的なトリミングを行うことがで
きる。According to the present invention, such means are provided.
When generating a CAM graphic, automatic trimming of graphic elements constituting a single component can be performed.
【0017】さらに、請求項3に対応する発明は、請求
項2に対応する発明において、交点分解手段により、分
割された各図形要素について、連続する線上に構成され
る図形要素同士を接続するとぎれ線接続手段と、図形要
素の端点が他の図形要素上に存在するときに、この端点
にて各図形要素を接続したとすれば構成される図形のう
ち、最大面積を有しかつ閉図形となる図形以外の図形
が、当該最大面積を有する閉図形に包含されないときに
は、この包含されない図形を構成する図形要素を不要要
素として削除する不要要素削除手段とを備え、CAM用
図形を生成するにあたり、単一部品を構成する各図形要
素の自動的な抽出を実行可能としたCAM用図形生成装
置である。According to a third aspect of the present invention, in the invention according to the second aspect, each of the divided graphic elements is connected to each other by means of the intersection decomposing means. Line connection means, and, when an end point of a graphic element is present on another graphic element, if the graphic element is connected at this end point, the graphic having the largest area and a closed graphic When a figure other than the figure is not included in the closed figure having the maximum area, there is provided unnecessary element deleting means for deleting a graphic element constituting the non-included figure as an unnecessary element. This is a CAM graphic generation device capable of automatically extracting each graphic element constituting a single part.
【0018】本発明は、このような手段を設けたので、
CAM用図形を生成するにあたり、単一部品を構成する
各図形要素の自動的な抽出を実行することができる。さ
らに、請求項4に対応する発明は、請求項3に対応する
発明において、不要要素削除手段により不要要素を削除
されたことで、ある単一部品を構成する図形要素として
最終的に抽出された全図形要素に対し、単一部品間の識
別を可能とするための属性を付加する属性付加手段とを
備え、CAM用図形を生成するにあたり、CADデータ
から単一部品への自動的な分解を実行可能としたCAM
用図形生成装置である。The present invention provides such means,
In generating a CAM graphic, automatic extraction of each graphic element constituting a single part can be performed. Further, in the invention corresponding to claim 4, in the invention corresponding to claim 3, the unnecessary element is deleted by the unnecessary element deleting means, and thus the graphic element is finally extracted as a graphic element constituting a certain single part. Attribute adding means for adding an attribute for enabling identification between single parts to all graphic elements. When generating a CAM graphic, automatically decompose CAD data into single parts. Executable CAM
This is a graphic generation device.
【0019】本発明は、このような手段を設けたので、
CAM用図形を生成するにあたり、CADデータから単
一部品への自動的な分解を実行することができる。ま
た、請求項5に対応する発明は、複数の部品からなる組
立図形状のCADデータをCAM用の単一部品単位のデ
ータに分解するCAM用図形生成処理をコンピュータに
実行させるプログラムを記録した記録媒体において、プ
ログラムは、任意の2つの図形要素の交点を算出する交
点算出処理と、交点算出処理により算出された交点にて
その図形要素を分割する要素分割処理とを有するコンピ
ュータ読取り可能な記録媒体である。Since the present invention is provided with such means,
In generating a CAM graphic, automatic disassembly of CAD data into a single part can be performed. According to a fifth aspect of the present invention, there is provided a recording apparatus for recording a program for causing a computer to execute a CAM graphic generation process for decomposing CAD data of an assembly drawing shape composed of a plurality of parts into data of a single part for CAM. In the medium, the program is a computer-readable recording medium having: an intersection calculation process of calculating an intersection of any two graphic elements; and an element division process of dividing the graphic element at the intersection calculated by the intersection calculation. It is.
【0020】本発明は、このような手段を設けたので、
このプログラムを読み込ませたコンピュータは、請求項
1に対応する発明のCAM用図形生成装置と同様な作用
効果を奏する。The present invention provides such means,
The computer that reads this program has the same operation and effect as the CAM graphic generating apparatus according to the first aspect of the present invention.
【0021】一方、請求項6に対応する発明は、複数の
部品からなる組立図形状のCADデータをCAM用の単
一部品単位のデータに分解するCAM用図形生成処理を
コンピュータに実行させるプログラムを記録した記録媒
体において、プログラムは、組立図形の中から任意の単
一部品について指定された部品領域内の図形要素及び部
品領域の境界に跨がる図形要素を抽出する領域掛け要素
抽出処理と、この抽出された各図形要素を各要素同士の
交点にて分割し、それぞれを新たな図形要素とする交点
分解処理と、分解後の新たな図形要素のうち、部品領域
内の図形要素のみを抽出する領域内要素抽出処理とを有
するコンピュータ読取り可能な記録媒体である。According to a sixth aspect of the present invention, there is provided a program for causing a computer to execute a CAM graphic generation process for decomposing CAD data of an assembly drawing shape composed of a plurality of parts into single-unit data for CAM. In the recorded recording medium, the program includes an area multiplying element extraction process for extracting a graphic element in a specified component area and a graphic element straddling a boundary of the component area from among the assembled graphics, The extracted graphic elements are divided at intersections of the respective elements, and intersection decomposition processing is performed with each of them as a new graphic element, and among the new graphic elements after the decomposition, only the graphic elements in the component area are extracted. And a computer-readable recording medium having an in-area element extraction process.
【0022】本発明は、このような手段を設けたので、
このプログラムを読み込ませたコンピュータは、請求項
2に対応する発明のCAM用図形生成装置と同様な作用
効果を奏する。According to the present invention, such means are provided.
The computer that reads this program has the same functions and effects as the CAM graphic generating apparatus according to the second aspect of the present invention.
【0023】[0023]
【発明の実施の形態】以下、本発明の実施の形態につい
て説明する。図1は本発明の実施の形態に係るCAM用
図形生成装置の一例を示す構成図である。Embodiments of the present invention will be described below. FIG. 1 is a configuration diagram illustrating an example of a CAM graphic generation apparatus according to an embodiment of the present invention.
【0024】本装置は、例えば磁気ディスク等の記録媒
体に記録されたプログラムを読み込み、このプログラム
によって動作が制御されるコンピュータによって実現さ
れる。The present apparatus is realized by a computer which reads a program recorded on a recording medium such as a magnetic disk and the operation of which is controlled by the program.
【0025】このCAM用図形生成装置は、CADデー
タD1に対して部品が含まれる矩形領域を指示するだけ
で、当該CADデータD1を単一部品単位に分解し部品
単位に識別可能な属性を付加したCAMデータに変換す
るものである。ここで、CADデータファイル記憶装置
に格納されるCADデータD1は、複数の部品からなる
組立図形式の図形データである。また、CAMデータフ
ァイル記憶装置3に格納されるCAMデータD2は、C
AM用に部品単位に分解された図形データである。The CAM graphic generating apparatus decomposes the CAD data D1 into single parts and adds an attribute that can be identified in parts by simply designating a rectangular area including a part with respect to the CAD data D1. CAM data. Here, the CAD data D1 stored in the CAD data file storage device is graphic data in an assembly drawing format including a plurality of parts. The CAM data D2 stored in the CAM data file storage device 3 is
This is graphic data decomposed into parts for AM.
【0026】また、CAM用図形生成装置は、ハードウ
エア的にはCAD装置あるいはCAM装置を動作させる
ためのコンピュータに設けられたものであり、図1に示
すように、CAM用図形生成装置本体1に、CADデー
タファイル記憶装置2及びCAMデータファイル記憶装
置3、その他図示しない入力装置や表示装置等の周辺機
器が接続されて構成されている。The CAM graphic generating apparatus is provided in a computer for operating the CAD apparatus or the CAM apparatus in terms of hardware, and as shown in FIG. , A CAD data file storage device 2 and a CAM data file storage device 3, and other peripheral devices such as an input device and a display device (not shown) are connected.
【0027】さらに、機能的にみれば、CAM用図形生
成装置は、CAD部品分解装置4、CAD部品抽出装置
5及びCAD部品自動トリミング装置6を含むものであ
る。すなわち、CAM用図形生成装置本体1では、デー
タ入力表示処理部7にてCADデータファイル記憶装置
2からCADデータを読み出してCAD部品分解装置4
に入力し、CAD部品分解装置4からの出力をデータ出
力処理部8によりCAMデータとしてCAMデータファ
イル記憶装置3に保存する。Further, functionally, the CAM graphic generating apparatus includes a CAD part disassembling apparatus 4, a CAD part extracting apparatus 5, and a CAD part automatic trimming apparatus 6. That is, in the CAM graphic generating apparatus main body 1, the data input / display processing section 7 reads out the CAD data from the CAD data file storage device 2 and reads the CAD data.
The output from the CAD parts disassembly device 4 is stored in the CAM data file storage device 3 by the data output processing unit 8 as CAM data.
【0028】また上記各部をさらに具体的に説明する
と、まず、CAD部品分解装置4は、CAD部品抽出装
置5及び属性付加処理部9からなり、CAD部品抽出装
置5は、CAD部品自動トリミング装置6及び不要要素
削除処理部10とからなる。The above components will be described in more detail. First, the CAD parts disassembly apparatus 4 comprises a CAD parts extraction apparatus 5 and an attribute addition processing section 9. The CAD parts extraction apparatus 5 is a CAD parts automatic trimming apparatus 6 And an unnecessary element deletion processing unit 10.
【0029】さらに、CAD部品自動トリミング装置6
は、部品指定処理部11と、領域掛け要素抽出部12
と、交点分解処理部13と、領域内要素抽出処理部14
と、とぎれ線接続処理部15とからなっている。Further, a CAD part automatic trimming device 6
Is a component designation processing unit 11 and an area multiplication element extraction unit 12
, Intersection decomposition processing unit 13 and in-region element extraction processing unit 14
And a break line connection processing unit 15.
【0030】CAD部品分解装置4は、CADデータを
単一部品単位に分解し部品単位に識別可能な属性を付加
したCAMデータに変換する。CAD部品抽出装置5
は、CADデータから単一部品の図形要素のみを抽出す
る。The CAD parts disassembly device 4 disassembles CAD data into single parts and converts them into CAM data to which an attribute that can be identified for each part is added. CAD parts extraction device 5
Extracts only graphic elements of a single part from CAD data.
【0031】CAD部品自動トリミング装置6は、指定
した矩形領域に掛かっている図形要素のみをトリミング
し、矩形領域内の図形要素のみ抽出可能とする。データ
入力表示処理部7は、CADデータファイル記憶装置2
より、CADデータD1を読み込み図示しない表示装置
に画面表示する。The CAD component automatic trimming device 6 trims only the graphic elements covering the specified rectangular area, so that only the graphic elements in the rectangular area can be extracted. The data input / display processing unit 7 includes the CAD data file storage device 2
Thus, the CAD data D1 is read and displayed on a display device (not shown).
【0032】部品指定処理部11は、データ入力表示処
理部7で画面上に表示された図形に対し、作業者が任意
の単品部品を含むようにマウス等のポインティングデバ
イスにより矩形領域を指示すると、このときの矩形領域
の対角線上2角の始点・終点をメモリに保持する。When the operator designates a rectangular area with a pointing device such as a mouse so as to include an arbitrary single part with respect to the figure displayed on the screen by the data input display processing section 7, At this time, the starting point and the ending point of the diagonal two corners of the rectangular area are held in the memory.
【0033】領域掛け要素抽出部12は、データ入力表
示処理部7で画面上に表示された図形要素に対してCA
Dの標準機能である“領域掛け選択”を用い、部品指定
処理部11で保持した始点・終点で示す矩形領域内の図
形要素を抽出する。The area-hung element extracting unit 12 applies a CA to the graphic element displayed on the screen by the data input / display processing unit 7.
Using "area multiplication selection" which is a standard function of D, a graphic element in a rectangular area indicated by a start point and an end point held by the component specification processing unit 11 is extracted.
【0034】交点分解処理部13は、抽出された図形要
素を各要素の交点でバラバラに分解する。領域内要素抽
出処理部14は、交点分解処理部13で分解された図形
要素に対してCADの標準機能である“領域内選択”を
用い、部品指定処理部11で保持した始点・終点で現す
矩形領域内にその要素部分の全体が含まれる矩形領域内
の図形要素のみを抽出する。The intersection decomposing unit 13 disassembles the extracted graphic elements separately at the intersections of the elements. The in-area element extraction processing unit 14 uses the CAD standard function “select in area” for the graphic element decomposed by the intersection decomposing processing unit 13 and expresses the graphic element with the start point and end point held by the component specification processing unit 11. Only the graphic elements in the rectangular area including the entire element part in the rectangular area are extracted.
【0035】とぎれ線接続処理部15は、領域内要素抽
出処理部14で抽出した図形要素に対して、処理部9に
より交点でバラバラに分解された図形要素を1つの図形
に接続し修復する。つまり、とぎれ線接続処理部15
は、要素のとぎれや重なり等のCAD作図上の“断片要
素”を自動的に接続修正するよう構成されている。すな
わち、許容誤差範囲外に離れた隣り合う2要素が、直線
同士で同一直線上にあるもの、または円弧同士で同一円
周上にあるもの、を接続し単一要素とすることで、“断
片要素”(直線の部分的な切り離し、円弧の部分的な切
り離し)を自動的に修正する。The break line connection processing unit 15 connects the graphic elements extracted by the in-region element extraction processing unit 14 at the intersections by the processing unit 9 into one graphic and repairs them. That is, the break line connection processing unit 15
Is configured to automatically connect and correct "fragment elements" on CAD drawings such as element breaks and overlaps. In other words, two adjacent elements separated from each other outside the allowable error range are connected on a single straight line or connected on the same circumference between arcs to form a single fragment by connecting them. Automatically corrects elements "(partial cuts in straight lines, partial cuts in arcs).
【0036】不要要素削除処理部10は、とぎれ線接続
処理部15で接続した図形要素に対して、矩形領域内の
指定部品以外の要素(閉形状以外の図形要素、及び閉形
状図形の内矩形面積が最大でない図形要素)を削除し、
指定部品の図形要素(矩形面積最大の図形要素)のみを
抽出する。つまり、不要要素削除処理部10は、上記各
部の処理により、複数個の閉形状が作成された図形に対
し、面の外側にある要素や、面の内側にある単一要素等
のCAD作図上の“消し残し要素”を自動的に削除する
よう構成されている。すなわち、上記各処理の結果残さ
れた、閉形状以外の要素(単独要素含む)の削除、およ
び最大矩形領域を持つ面の外にある閉形状要素と、面の
中にある干渉している閉形状(面に交差や接している要
素)を削除することで、“消し残し要素”を自動的に削
除する。The unnecessary element deletion processing unit 10 replaces the graphic elements connected by the intermittent line connection processing unit 15 with the elements other than the designated part (the graphic elements other than the closed shape and the inner rectangular shape of the closed shape graphic) in the rectangular area. Non-maximum shape elements)
Only the graphic element of the specified part (the graphic element with the largest rectangular area) is extracted. In other words, the unnecessary element deletion processing unit 10 performs the CAD drawing of the element outside the surface or the single element inside the surface with respect to the figure in which a plurality of closed shapes are created by the processing of the above units. It is configured to automatically delete the "leave-off element". That is, elements other than the closed shape (including a single element) remaining as a result of the above-described processing are deleted, and the closed shape element outside the plane having the maximum rectangular area and the interfering closed By deleting the shape (the element that intersects or touches the surface), the “unremoved element” is automatically deleted.
【0037】属性付加処理部9は、領域内要素抽出処理
部14で抽出した図形要素に対し、これら要素が1部品
として識別できるようにレイヤー等の一意の属性を付加
する。また、属性付加処理部9は、データ入力表示処理
部7に処理を引き渡し、もとのCADデータについて繰
り返し処理の実行を可能とする。ひいては、CADデー
タD1の全部品についてCAMデータD2(単一部品単
位に分解され部品単位に識別可能な属性を付加された図
形データ)への変換が可能となる。The attribute addition processing section 9 adds a unique attribute such as a layer to the graphic element extracted by the in-region element extraction processing section 14 so that these elements can be identified as one component. Further, the attribute addition processing unit 9 hands over the processing to the data input / display processing unit 7, and enables the execution of the repetitive processing for the original CAD data. As a result, it is possible to convert all parts of the CAD data D1 into CAM data D2 (graphic data decomposed into single parts and to which an attribute that can be identified for each part is added).
【0038】データ出力処理部8は、CADデータD1
の各部品についてこれまでの処理により変換されたCA
MデータD2をCAMシステムで使用可能なようにCA
Mデータファイル記憶装置3へ出力する。The data output processing section 8 outputs the CAD data D1
CA converted by the previous process for each part
CA is used so that the M data D2 can be used in the CAM system.
Output to the M data file storage device 3.
【0039】次に、以上のように構成された本発明の実
施の形態に係るCAM用図形生成装置の動作について説
明する。本動作説明では、まず、図1及び図2を用いて
全体的な流れを説明する。次に、CAM用図形生成に包
含されるCAD部品分解方法、CAD部品抽出方法、C
AD部品自動トリミング方法について、図3、図4及び
図5を用いてそれぞれ説明する。さらにその後、各処理
部の動作、すなわちとぎれ線接続処理部15、不要要素
削除処理部10及び交点分解処理部13について図6、
図7及び図8を用いて詳しく説明する。 (全体の動作)図2は本実施形態のCAM用図形生成装
置の全体的な動作を説明するための図である。Next, the operation of the CAM graphic generating apparatus according to the embodiment of the present invention configured as described above will be described. In the description of the operation, first, an overall flow will be described with reference to FIGS. Next, a CAD part disassembly method, a CAD part extraction method, and a C
The AD part automatic trimming method will be described with reference to FIGS. 3, 4, and 5, respectively. Further, after that, the operation of each processing unit, that is, the broken line connection processing unit 15, the unnecessary element deletion processing unit 10, and the intersection decomposition processing unit 13 are shown in FIG.
This will be described in detail with reference to FIGS. (Overall Operation) FIG. 2 is a diagram for explaining the overall operation of the CAM graphic generating apparatus according to the present embodiment.
【0040】最初に、データ入力表示処理部7により複
数の部品からなる組立図用のCADデータがファイルよ
り読み込まれ画面表示される(図2(a))。この段階
では、図中の丸点線で囲われた部分は例えば図2(a)
の様に2本の線で描かれている。なお、以下、図2にお
いて交点部分で離して表示しているのは各線の帰属関係
を示すためのもので、特に断らない限り現実の座標位置
も離れているわけではない。First, CAD data for an assembly drawing composed of a plurality of parts is read from a file by the data input / display processing section 7 and displayed on the screen (FIG. 2A). At this stage, a portion surrounded by a dotted line in the figure is, for example, a part shown in FIG.
It is drawn with two lines like. Note that, in FIG. 2, the distances between the intersections are shown to indicate the belonging relationship of each line, and the actual coordinate positions are not separated unless otherwise specified.
【0041】次に、作業者の指示に従い、部品指定処理
部11によって、組立図CADデータの中から任意の単
一部品を含むようにマウス等のポインティングデバイス
により矩形領域が指示される(図2(b))。同図で
は、例示された組立図に含まれる部品のうち、1の部品
について領域指示がされている。Next, in accordance with the operator's instruction, the component designating section 11 instructs a rectangular area by a pointing device such as a mouse so as to include an arbitrary single component from the assembly drawing CAD data (FIG. 2). (B)). In the figure, an area instruction is given for one of the components included in the illustrated assembly drawing.
【0042】次に、領域掛け要素抽出処理部12によ
り、指定した矩形領域に基づく、図形要素が選択され
る。このときの選択では矩形領域内に含まれる図形要素
と矩形領域に掛っている図形要素とが抽出される(図2
(c))。Next, a graphic element based on the specified rectangular area is selected by the area multiplying element extraction processing section 12. In this selection, a graphic element included in the rectangular area and a graphic element covering the rectangular area are extracted (FIG. 2).
(C)).
【0043】次に、交点分解処理部13により、抽出さ
れた図形要素の中から任意の2つの図形要素が選ばれ、
交わりがある場合(一方の図形要素の端点がもう一方の
図形要素に接している場合を含む)、その交点で2つの
図形要素をそれぞれ分割する。この処理を2つの図形要
素の組み合わせの数全てについて行うことで、抽出され
た図形要素の全ての交点でバラバラに分解される。つま
り、この処理により交点位置にて各図形要素は必ず別々
の図形要素に別れることになる。同図にこの様子が模式
的に示されている(図2(d))。Next, the intersection decomposition processing section 13 selects any two graphic elements from the extracted graphic elements,
If there is an intersection (including a case where the end point of one graphic element is in contact with the other graphic element), the two graphic elements are divided at the intersection. By performing this process for all the combinations of two graphic elements, the extracted graphic elements are disassembled at all intersections. In other words, this processing always separates each graphic element into a separate graphic element at the intersection position. This is schematically shown in FIG. 2 (FIG. 2D).
【0044】次に、領域内要素抽出処理部14により、
抽出された図形要素に対して部品指定処理部11で指定
した矩形領域と同じ矩形領域を用いて、図形要素が再び
選択される。このときの選択は矩形領域内に含まれる図
形要素のみであり、したがって、矩形領域に掛っている
図形要素は削除される(図2(e))。Next, the in-region element extraction processing unit 14
A graphic element is selected again using the same rectangular area specified by the component specification processing unit 11 for the extracted graphic element. At this time, only the graphic element included in the rectangular area is selected, and therefore, the graphic element covering the rectangular area is deleted (FIG. 2E).
【0045】ここまでの処理により、指定した矩形領域
に掛っている図形要素だけが矩形領域内の一番外側で交
わる図形要素を基準にトリミングされ、矩形領域内に含
まれる図形要素だけが抽出されることになる。By the above-described processing, only the graphic elements overlapping the designated rectangular area are trimmed with reference to the graphic elements intersecting the outermost part in the rectangular area, and only the graphic elements included in the rectangular area are extracted. Will be.
【0046】しかし、このままでは、矩形領域内に含ま
れる図形要素は領域内の各要素の交点でバラバラに分割
されたままである。これは、図形的な見た目上は問題な
いがCAM用の部品データとして使用するには都合が悪
い。However, in this state, the graphic elements included in the rectangular area are still separated at the intersections of the elements in the area. This is not a problem in the appearance of graphics, but is not convenient for use as component data for CAM.
【0047】例えばレーザ加工機により加工を行う場
合、当該レーザ加工機は1要素につき1の処理を行う。
したがって、レーザ加工処理が連続する部分は1要素と
すべきである。例えば直線的な加工が2要素で構成され
ると、1要素の加工毎にレーザ加工機が加工を止めて一
旦基準位置に戻るため、加工効率が悪いのみならず、重
複レーザ照射によって要素間に黒点を生じ、加工品とし
て質の悪いものとなる。また、上記バラバラ要素のまま
では、例えばタレットパンチプレスの場合、金型が別の
ものとなってしまう可能性があり、効率が悪い。For example, when processing is performed by a laser processing machine, the laser processing machine performs one process for each element.
Therefore, the portion where the laser processing is continued should be one element. For example, if linear processing is composed of two elements, the laser processing machine stops processing and returns to the reference position once for each processing of one element. Black spots are formed, resulting in poor quality as a processed product. In addition, in the case of a turret punch press, for example, in the case of a turret punch press, there is a possibility that a separate die is used, and the efficiency is poor.
【0048】また、別途の問題として、部品指定処理時
に、部品をどうやって囲っても矩形領域内に必要部品の
矩形面積より小さい他部品の図形要素が含まれてしまう
場合も考えられ(例えば図2(a)〜(e)に示す不要
要素品)、これを放置すると、この不要要素も一緒に抽
出されてしまう。As another problem, it is conceivable that during the component designation process, no matter how the component is surrounded, a rectangular area may include a graphic element of another component smaller than the rectangular area of the required component (for example, FIG. 2). Unnecessary element products shown in (a) to (e)), and if left unchecked, these unnecessary elements will be extracted together.
【0049】そこで、とぎれ線接続処理部15及び不要
要素削除処理部10を用いたCADデータ清書処理がな
される。CADデータ清書処理においては、まず、とぎ
れ線接続処理部15によって、とぎれ線が接続され、次
に不要要素削除処理部10によって、矩形領域内で最大
面積の閉形状図形内に含まれる要素以外の図形要素(つ
まり他部品の閉形状図形や閉形状以外の図形要素)が不
要要素として削除される(図2(f))。Therefore, the CAD data clean-up processing using the discontinuous line connection processing unit 15 and the unnecessary element deletion processing unit 10 is performed. In the CAD data clear copy processing, first, the break lines are connected by the break line connection processing unit 15, and then, the unnecessary element deletion processing unit 10 performs processing other than the elements included in the closed shape figure having the maximum area in the rectangular area. The graphic element (that is, a closed shape graphic of another part or a graphic element other than the closed shape) is deleted as an unnecessary element (FIG. 2 (f)).
【0050】ここまでの処理により、指定領域内の必要
部品の図形要素だけが抽出されることとなる。次に、属
性付加処理部9により、抽出された部品を構成する各図
形要素に対し、各図形要素がその部品に属することを識
別できるようにレイヤー指定等による属性が付加され
る。同図では、図2(b)で矩形領域指定された部品に
対し、P1という属性が付加されている(図2
(g))。By the processing so far, only the graphic elements of the necessary parts in the designated area are extracted. Next, the attribute addition processing unit 9 adds an attribute by layer designation or the like to each of the graphic elements constituting the extracted component so that each graphic element can be identified as belonging to the component. In the figure, the component designated as the rectangular area in FIG. 2B has an attribute P1 added thereto (FIG. 2).
(G)).
【0051】以上により、組立図CADデータのうち、
1の部品についてのCAMデータが作成された。しか
し、部品からなる実際の製品を組み立てるには、組立図
CADデータに含まれる全部品が必要であり、したがっ
て、全部品についてのCAMデータが作成されなければ
ならない。そこで、属性付加処理部9から処理がデータ
入力表示処理部7に引き渡され、再び、同じ組立図CA
Dデータが読み込まれて、次の別の部品について、上記
各処理が繰り返されることになる。As described above, of the assembly drawing CAD data,
CAM data for one component was created. However, in order to assemble an actual product consisting of parts, all parts included in the assembly drawing CAD data are necessary, and therefore, CAM data for all parts must be created. Then, the process is transferred from the attribute addition processing unit 9 to the data input / display processing unit 7, and again the same assembly drawing CA
The D data is read, and the above-described processing is repeated for the next different component.
【0052】こうして、最終的に部品単位の図形データ
が生成される(図2(h))。なお、図2(h)に示す
部品単位の図形データ(CAMデータD2)は、見た目
は図2(a)に示す組立図形式の図形データ(CADデ
ータD1)と同じだが、単一部品単位に分解され部品単
位に識別可能な属性P1,P2を付加された図形データ
に変換されている。In this way, finally, the graphic data for each part is generated (FIG. 2 (h)). The graphic data (CAM data D2) in component units shown in FIG. 2 (h) has the same appearance as the graphic data (CAD data D1) in assembly drawing format shown in FIG. It is disassembled and converted into graphic data to which attributes P1 and P2 that can be identified for each component are added.
【0053】最後に、データ出力処理部8により、変換
後のCADデータがCAMデータD2としてCAMデー
タファイル記憶装置3にファイル出力される。次に、各
部の処理について説明する。 (CAD部品分解処理)図3は本実施形態のCAD部品
分解方法を説明する流れ図である。Finally, the converted CAD data is output as a CAM data D2 to the CAM data file storage device 3 by the data output processing section 8 as a file. Next, processing of each unit will be described. (CAD Component Disassembly Processing) FIG. 3 is a flowchart for explaining the CAD component disassembly method of this embodiment.
【0054】まず、属性情報の基準値が設定される(S
T11)。ここでは、属性がレイヤーで指定されるの
で、まず、レイヤーNo.1とされる。次に、CAD部
品の抽出が行われる(ST12)。部品抽出方法の具体
的内容は、図4を用いて後述する。First, a reference value of the attribute information is set (S
T11). Here, since the attribute is specified by the layer, first, the layer No. It is set to 1. Next, CAD components are extracted (ST12). The specific contents of the component extraction method will be described later with reference to FIG.
【0055】次に、すでにCADデータD1中のすべて
の部品が抽出完了しているか否かが判定され、抽出完了
していれば終了し、抽出完了していなければ、次ステッ
プに進む(ST13)。なお、すべての部品が抽出完了
していれば、例えば図2(h)に示すような状態となっ
ている。Next, it is determined whether or not all the components in the CAD data D1 have already been extracted. If the extraction has been completed, the process ends. If the extraction has not been completed, the process proceeds to the next step (ST13). . If all the components have been extracted, the state is as shown in FIG. 2H, for example.
【0056】すべての部品が抽出完了していなかった場
合、ステップST12で部品抽出が完了したCAD部品
について、すべての図形要素がメモリから読み込まれ画
面に表示される(ST14,図2(f))。If not all components have been extracted, all graphic elements of the CAD component for which component extraction has been completed in step ST12 are read from the memory and displayed on the screen (ST14, FIG. 2 (f)). .
【0057】次に、画面に表示された全ての図形要素に
対して同一の部品属性が付加される(ST15,図2
(g))。次に、この属性付加された部品データがCA
MデータとしてCAMデータファイルに書き出される
(ST16)。Next, the same component attribute is added to all the graphic elements displayed on the screen (ST15, FIG. 2).
(G)). Next, the component data with this attribute is
The data is written to the CAM data file as M data (ST16).
【0058】次に、レイヤNo.がインクリメントさ
れ、ステップST12に戻る(ST17)。なお、CA
DデータD1中のすべての部品についてCAMデータ作
成処理がなされ、各部品に部品属性まで付加されればス
テップST13から処理全体が終了する。 (CAD部品抽出処理)図4は本実施形態のCAD部品
抽出方法を説明する流れ図である。Next, the layer No. Is incremented, and the process returns to step ST12 (ST17). Note that CA
The CAM data creation process is performed for all the components in the D data D1, and if the component attributes are added to each component, the entire process ends from step ST13. (CAD Component Extraction Processing) FIG. 4 is a flowchart illustrating a CAD component extraction method according to the present embodiment.
【0059】この処理は、図3のステップST12の処
理である。まず、CAD部品自動トリミング装置6によ
るCAD部品自動トリミングが行われる(ST21)。
CAD部品自動トリミング方法の具体的内容は、図5を
用いて後述する。This processing is the processing of step ST12 in FIG. First, CAD component automatic trimming is performed by the CAD component automatic trimming device 6 (ST21).
The specific contents of the CAD component automatic trimming method will be described later with reference to FIG.
【0060】次に、トリミングされた結果である全ての
図形要素がメモリから読み込まれ、画面に表示される
(ST22)。この処理により例えば図2(f)におけ
る不要要素未削除の状態となる。Next, all the graphic elements as a result of the trimming are read from the memory and displayed on the screen (ST22). By this processing, for example, an unnecessary element has not been deleted in FIG.
【0061】次に、不要要素が削除され、図2(f)と
同様な状態となる(ST23)。なお、不要要素削除処
理については、図7を用いて後述する。そして、不要要
素削除後の画面上の全ての図形要素がメモリに書き出さ
れ(ST24)、以下、図3のステップST13に進む
ことになる。 (CAD部品自動トリミング処理)図5は本実施形態の
CAD部品自動トリミング方法を説明する流れ図であ
る。Next, unnecessary elements are deleted, and a state similar to that of FIG. 2F is obtained (ST23). The unnecessary element deletion processing will be described later with reference to FIG. Then, all the graphic elements on the screen after the unnecessary element is deleted are written out to the memory (ST24), and the process proceeds to step ST13 in FIG. (CAD Part Automatic Trimming Process) FIG. 5 is a flowchart for explaining the CAD part automatic trimming method of the present embodiment.
【0062】この処理は、図4のステップST21の処
理である。まず、CADデータファイルのCADデータ
D1が読み出され画面に表示される(ST31,図2
(a))。This process is the process of step ST21 in FIG. First, the CAD data D1 of the CAD data file is read and displayed on the screen (ST31, FIG. 2).
(A)).
【0063】次に、マウス等のポインティングデバイス
を用いて、部品指定が行われ(ST32,図2
(b))、このとき指定された矩形領域の始点終点座標
が保持される(ST33,図2(b))。Next, parts are designated using a pointing device such as a mouse (ST32, FIG. 2).
(B)) At this time, the coordinates of the start point and the end point of the specified rectangular area are held (ST33, FIG. 2B).
【0064】次に、矩形領域内及びこれにかかる図形要
素が抽出され(ST34,図2(c))、更にCAD部
品交点分解が行われる(ST35,図2(d))。な
お、交点分解処理については、図8を用いて後述する。Next, the graphic elements in the rectangular area and the graphic elements related thereto are extracted (ST34, FIG. 2 (c)), and the CAD part intersections are further decomposed (ST35, FIG. 2 (d)). The intersection decomposition processing will be described later with reference to FIG.
【0065】次に、矩形領域内のみの図形要素が抽出さ
れ(ST36,図2(e))、これにとぎれ線接続処理
が施される(ST37,図2(f))。なお、とぎれ線
接続処理については、図6を用いて後述する。Next, a graphic element only in the rectangular area is extracted (ST36, FIG. 2 (e)), and a break line connection process is performed (ST37, FIG. 2 (f)). The break line connection process will be described later with reference to FIG.
【0066】そして、とぎれ線接続処理後の画面上の全
ての図形要素がメモリに書き出され(ST38)、以
下、図4のステップST22に進むことになる。 (とぎれ線接続処理)図6は本実施形態のとぎれ線接続
処理を説明する流れ図である。Then, all graphic elements on the screen after the break line connection processing are written out to the memory (ST38), and thereafter, the process proceeds to step ST22 in FIG. FIG. 6 is a flowchart for explaining the break line connection processing of this embodiment.
【0067】この処理は、許容誤差範囲外に離れた隣り
合う2要素が、直線同士で同一直線上にあるもの、また
は円弧同士で同一円周上にあるものを自動的に接続し単
一要素に変換後、メモリ内の2つの図形要素を削除し変
換後の図形要素と入れ替えるものである。In this process, two elements adjacent to each other that are outside the allowable error range are automatically connected to each other if the two straight lines are on the same straight line or if two adjacent arcs are on the same circumference. After the conversion, the two graphic elements in the memory are deleted and replaced with the converted graphic elements.
【0068】図6において、まず、最初の要素がメモリ
から取り出され、要素Aにセットされる(ST41)。
このとき、メモリ内に取り出すべき要素がなければ終了
し、あれば次ステップに進む(ST42)。In FIG. 6, first, the first element is fetched from the memory and set in element A (ST41).
At this time, if there is no element to be fetched in the memory, the process ends;
【0069】メモリから次の要素が取り出され、要素B
にセットされる(ST43)。このとき、メモリ内に取
り出すべき要素がなければ終了し、あれば次ステップに
進む(ST44)。The next element is fetched from the memory and the element B
Is set to (ST43). At this time, if there is no element to be taken out in the memory, the process ends, and if there is, the process proceeds to the next step (ST44).
【0070】次に、要素Aと要素Bが同一直線上にある
かがチェックされる(ST45)。ここで、両要素が同
一直線上にないとき、ステップST41に戻る(ST4
6)。一方、両要素が同一直線上にあるとき、次ステッ
プに進む(ST46)。Next, it is checked whether the element A and the element B are on the same straight line (ST45). If both elements are not on the same straight line, the process returns to step ST41 (ST4).
6). On the other hand, when both elements are on the same straight line, the process proceeds to the next step (ST46).
【0071】そして、両要素A,Bが同一直線上にある
とき、要素Aの開始点と要素Bの終了点を端点とする要
素Cが作成される(ST47)。なお、要素Cは、要素
A,Bと同様にCADデータ変換装置3の記憶要素内の
データである。When both elements A and B are on the same straight line, an element C having the start point of element A and the end point of element B as end points is created (ST47). Note that the element C is data in the storage element of the CAD data conversion device 3 like the elements A and B.
【0072】次に、要素Aと要素Bに対応するメモリ内
の各要素がメモリ削除され(ST48)、要素Cに接続
済みフラグが立てられる(ST49)。さらに、要素C
がメモリ内に要素A,Bに対応する要素に代えてメモリ
内に追加される(ST50)。したがって、当初メモリ
内にあった2つの要素が接続された場合、この2つの要
素に代えて接続された新たな要素がメモリ内に保存され
ることになる。Next, each element in the memory corresponding to the element A and the element B is deleted from the memory (ST48), and the connected flag is set for the element C (ST49). Further, the element C
Are added to the memory in place of the elements corresponding to the elements A and B (ST50). Therefore, when two elements that were originally in the memory are connected, a new connected element is stored in the memory instead of the two elements.
【0073】そして、要素Aに要素Cが代入される(S
T51)。このようにして、要素Aが更新された後、ス
テップST43に戻り、メモリ内の次の要素を要素Bと
して、新たな要素A,Bについてとぎれ線処理の判定、
処理が上記したように実行される。Then, the element C is substituted for the element A (S
T51). After the element A is updated in this way, the process returns to step ST43, and the next element in the memory is set as the element B, and the determination of the break line processing is performed on the new elements A and B
The processing is performed as described above.
【0074】そして、メモリ内の全要素について、上記
判定、処理が実施されることで、とぎれ線処理が実行さ
れる。なお、上記処理においては、連続する2要素間が
とぎれた場合のみを扱っているが、例えば連続する2要
素が同一直線上で一部もしくは全部重なるような場合も
考えられる。このような場合でも図6に示す処理により
対処することができる。Then, the above determination and processing are performed for all the elements in the memory, so that the break line processing is executed. Although the above processing deals only with a case where two consecutive elements are interrupted, for example, a case where two consecutive elements partially or entirely overlap on the same straight line may be considered. Such a case can be dealt with by the processing shown in FIG.
【0075】すなわち、このような重なりがある場合で
もステップST45,46の処理判断により、重なりが
同一直線上のものあれば、2要素の開始点と終点を結ぶ
新たな要素に置き換えられるから(ST47〜ST5
1)、要素の重なり部分は解消されることとなる。In other words, even if there is such an overlap, if the overlap is on the same straight line, it is replaced by a new element connecting the start point and the end point of the two elements if the overlap is on the same straight line (ST47). ~ ST5
1) The overlapping part of the elements is eliminated.
【0076】つまり、とぎれ線接続処理部6は、連続要
素のとぎれのみならず、重なりをも解消するものであ
る。 (不要要素削除処理)図7は本実施形態の不要要素削除
処理を説明する流れ図である。That is, the break line connection processing unit 6 eliminates not only breaks in continuous elements but also overlaps. (Unnecessary Element Deletion Processing) FIG. 7 is a flowchart for explaining the unnecessary element deletion processing of this embodiment.
【0077】この処理は、とぎれ線接続処理後のメモリ
内に書き出された図形要素を図8に示す様な手順で、閉
形状以外の要素(単独要素含む)の削除し、最大矩形領
域を持つ面の外にある閉形状要素、及び、面の中にある
が干渉している閉形状(面に交差や接している要素)を
メモリ内から削除するものである。この処理により、図
2(f)に示すように不要な図形要素が削除される。In this processing, graphic elements written in the memory after the intermittent line connection processing are deleted from elements other than the closed shape (including single elements) by a procedure as shown in FIG. A closed-shape element outside the holding surface and a closed-shape element that exists in the surface but interferes (an element that intersects or touches the surface) are deleted from the memory. By this processing, unnecessary graphic elements are deleted as shown in FIG.
【0078】図7に示す処理を開始する前に、メモリ内
に、不要要素削除処理用のデータが作成される。すなわ
ち、任意の2つの図形要素について、その一方の端点が
他方の図形要素上の座標となる場合があれば、その2図
形要素は接続関係にある旨の設定情報をメモリに保存す
る。この処理をすべての図形要素の組み合わせについて
行う。このようにすれば閉形状を構成する要素について
は全て接続関係にある旨の設定情報がメモリに保存され
る。Before starting the processing shown in FIG. 7, data for unnecessary element deletion processing is created in the memory. That is, if one end point of any two graphic elements is a coordinate on the other graphic element, setting information indicating that the two graphic elements are in a connection relationship is stored in the memory. This process is performed for all combinations of graphic elements. In this way, the setting information indicating that all the elements constituting the closed shape are connected is stored in the memory.
【0079】このような準備をした後、図7において、
まず、最初の要素がメモリから読み出され、スタックに
格納される(ST61)。このとき、メモリ内に取り出
すべき要素がなければステップST69に進み、あれば
次ステップに進む(ST62)。After such preparation, in FIG.
First, the first element is read from the memory and stored in the stack (ST61). At this time, if there is no element to be fetched in the memory, the process proceeds to step ST69, and if so, the process proceeds to the next step (ST62).
【0080】次に、スタックに格納された最後の要素の
終了点と接続されている次の要素があるか否かについて
上記設定情報をもとにメモリが検索される(ST6
3)。このとき、接続されるべき要素がメモリ内にあれ
ば(ST64)、これがスタックに格納され(ST6
5)、接続される要素がなければ(ST64)、当該一
連の要素は、単なる線分のような開形状であるので、ス
タックに格納された要素に対応するメモリ内の要素が削
除され、ステップST61に戻る(ST66)。Next, the memory is searched for whether there is a next element connected to the end point of the last element stored in the stack based on the setting information (ST6).
3). At this time, if the element to be connected exists in the memory (ST64), this is stored in the stack (ST6).
5) If there is no element to be connected (ST64), the series of elements has an open shape like a simple line segment, so the element in the memory corresponding to the element stored in the stack is deleted, and The process returns to ST61 (ST66).
【0081】ステップST65に進んだ場合、さらにス
タックに格納された要素が閉形状であるか否かが上記設
定情報を用いて判定される(ST66)。なお、一要素
の閉形状となる場合はステップST64でステップST
66に進まず、当該ステップによりステップST68に
進む。When the process proceeds to step ST65, it is further determined whether or not the element stored in the stack has a closed shape using the setting information (ST66). If a closed shape of one element is obtained, step ST64 is followed by step ST64.
Without going to step 66, the process goes to step ST68 by this step.
【0082】ステップST67においてスタックに格納
された要素が閉形状でない場合、ステップST63に戻
り、閉形状の場合、スタックに格納された一連の要素か
らなる閉形状が閉形状格納領域に格納され、ステップS
T61に戻る(ST68)。If the element stored in the stack is not a closed shape in step ST67, the process returns to step ST63. If the element is a closed shape, the closed shape consisting of a series of elements stored in the stack is stored in the closed shape storage area. S
The process returns to T61 (ST68).
【0083】このようにして、全要素についてメモリか
ら読み出しがされた場合、ステップST69に進む。次
に、閉形状格納領域に格納された全閉形状から最も面積
の大きな閉形状が最大矩形領域として選択される(ST
69)。When all elements have been read from the memory in this way, the process proceeds to step ST69. Next, a closed shape having the largest area is selected as the largest rectangular region from the fully closed shapes stored in the closed shape storage area (ST).
69).
【0084】そして、閉形状格納領域に格納された各閉
形状が最大矩形領域と比較され、干渉チェックが行われ
る。すなわち最大矩形領域よりも外側にある閉形状及び
最大矩形領域と一部重なり合う干渉閉形状について、そ
の閉形状に対応するメモリ内の要素が削除されることで
当該閉形状が削除される(ST70)。 (交点分解処理)図8は本実施形態の交点分解処理を説
明する流れ図である。Then, each closed shape stored in the closed shape storage area is compared with the maximum rectangular area, and an interference check is performed. That is, for the closed shape outside the maximum rectangular area and the interference closed shape partially overlapping the maximum rectangular area, the element in the memory corresponding to the closed shape is deleted to delete the closed shape (ST70). . (Intersection Decomposition Processing) FIG. 8 is a flowchart for explaining the intersection decomposition processing of the present embodiment.
【0085】まず、画面上の全ての図形要素が配列にセ
ットされる(ST71)。次に、読み込まれた要素数が
変数MAXSCHにセットされる(ST72)。配列の
引き数となるI,Jの初期値が設定され(ST73)、
引数Iがインクリメントされる(ST74)。First, all graphic elements on the screen are set in an array (ST71). Next, the number of read elements is set in a variable MAXSCH (ST72). Initial values of I and J which are arguments of the array are set (ST73),
The argument I is incremented (ST74).
【0086】引数Iが要素数−1よりも大きくなれば終
了し、小さい間は交点分解処理を継続すべく次ステップ
に進む(ST75)。引数Jがインクリメントされ(S
T76)、引数Jが要素数より大きくなればステップS
T74に戻り、小さいければ次ステップに進む(ST7
7)。If the argument I is greater than the number of elements minus one, the process ends. If the argument I is smaller, the process proceeds to the next step to continue the intersection decomposing process (ST75). The argument J is incremented (S
T76) If the argument J becomes larger than the number of elements, step S
Returning to T74, if smaller, proceed to the next step (ST7).
7).
【0087】以下、個々2要素についての交点分解処理
が行われる。まず、要素Iと要素Jの交点が求められ
(ST78)、両者が交点がなく平行であれば、ステッ
プST76に戻り次要素Jについての処理に移る(ST
79)。Subsequently, intersection decomposition processing is performed on each of the two elements. First, the intersection of the element I and the element J is obtained (ST78). If the two have no intersection and are parallel, the process returns to step ST76 and proceeds to the processing for the next element J (ST78).
79).
【0088】一方、交点があれば(ST79)、その交
点が何れかの要素上にあるか否かが確認され、要素上に
なければステップST76に戻り、要素上にあれば次ス
テップに進む(ST80)。On the other hand, if there is an intersection (ST79), it is checked whether or not the intersection is on any element. If it is not on the element, the process returns to step ST76, and if it is on the element, the process proceeds to the next step (ST79). ST80).
【0089】次に、求められた交点が要素Iの端点と一
致していない場合には(ST81)、要素Iが当該交点
で分割され画面表示されるとともに(ST82)、もと
の要素Iが消去される(ST83)。Next, when the obtained intersection does not coincide with the end point of the element I (ST81), the element I is divided at the intersection and displayed on the screen (ST82), and the original element I is It is erased (ST83).
【0090】次に、求められた交点が要素Iの端点と一
致している場合(ST81)、又はステップST83終
了後に、ステップST84に進む。ステップST84で
は、求められた交点が要素Jの端点と一致しているか否
か判定され、一致していない場合には(ST84)、要
素Jが当該交点で分割され画面表示されるとともに(S
T85)、もとの要素Jが消去される(ST86)。Next, when the obtained intersection point coincides with the end point of the element I (ST81), or after the end of step ST83, the process proceeds to step ST84. In step ST84, it is determined whether or not the obtained intersection point matches an end point of the element J. If not (ST84), the element J is divided at the intersection point and displayed on the screen (S84).
T85), the original element J is erased (ST86).
【0091】そして、求められた交点が要素Jの端点と
一致している場合(ST84)、又はステップST86
終了後に、ステップST76に戻りインクリメントされ
る。以上の処理が繰り返されることで、全ての交点にお
いて交点分解が実行されることになる。なお、この交点
分解の対象となる要素は、直線に限られず円弧等の種々
の形状の要素を対象とすることができる。If the obtained intersection point matches the end point of element J (ST84), or step ST86
After the end, the process returns to step ST76 and is incremented. By repeating the above processing, intersection decomposition is performed at all intersections. The elements to be subjected to the intersection decomposition are not limited to straight lines, but may be elements having various shapes such as arcs.
【0092】上述したように、本発明の実施の形態に係
るCAM用図形生成装置は、部品指定処理部11と、領
域掛け要素抽出部12と、交点分解処理部13と、領域
内要素抽出処理部14と、とぎれ線接続処理部15と、
不要要素削除処理部10と、属性付加処理部9を設けた
ので、組立図CADデータに対し、部品が含まれる矩形
領域を指示するだけで、当該組立図を単一部品のデータ
に分解し、部品単位に識別可能な属性が付加されたCA
Mデータに変換することができる。As described above, the CAM graphic generating apparatus according to the embodiment of the present invention comprises a component designation processing unit 11, an area multiplication element extraction unit 12, an intersection decomposition processing unit 13, an in-area element extraction processing Unit 14, a break line connection processing unit 15,
Since the unnecessary element deletion processing unit 10 and the attribute addition processing unit 9 are provided, the assembly drawing is decomposed into single component data only by designating a rectangular area including a component with respect to the assembly drawing CAD data. CA with an attribute that can be identified for each component
It can be converted to M data.
【0093】したがって、最小オペレーションで組立図
CADデータから単一部品に分解されたCAMデータを
生成することができる。すなわち、CAMシステム側に
おいて、付加された部品属性を指定するだけで、組立図
CADデータからの単一部品抽出を自動化することが可
能となる。Therefore, it is possible to generate CAM data decomposed into a single part from the assembly drawing CAD data with the minimum operation. That is, on the CAM system side, it is possible to automate the extraction of a single component from the assembly drawing CAD data only by specifying the added component attribute.
【0094】なお、本発明は、上記各実施の形態に限定
されるものでなく、その要旨を逸脱しない範囲で種々に
変形することが可能である。例えばまず、本実施形態で
はCAM用図形生成装置全体について説明したが、CA
D部品抽出装置5に対して、CADデータファイル記憶
装置2と、CAMデータファイル記憶装置3と、データ
入力表示処理部7と、データ出力処理部8とを直接組み
合わせることで、CAD部品抽出装置単体としても利用
することも可能である。このCAD部品抽出装置によれ
ば、CAM用図形を生成するにあたり、単一部品を構成
する各図形要素の自動的な抽出を実行することができ
る。The present invention is not limited to the above embodiments, but can be variously modified without departing from the scope of the invention. For example, first, in the present embodiment, the entire CAM graphic generating apparatus has been described.
By directly combining the CAD data file storage device 2, the CAM data file storage device 3, the data input display processing unit 7, and the data output processing unit 8 with the D component extraction device 5, the CAD component extraction device alone It is also possible to use as. According to the CAD part extracting apparatus, when generating a CAM graphic, it is possible to automatically extract each graphic element constituting a single part.
【0095】同様に、CAD部品自動トリミング装置3
についても、CADデータファイル記憶装置2と、CA
Mデータファイル記憶装置3と、データ入力表示処理部
7と、データ出力処理部8とを直接組み合わせること
で、CAD部品自動トリミング装置単体として利用する
ことができる。このCAD部品自動トリミング装置によ
れば、CAM用図形を生成するにあたり、単一部品を構
成する図形要素についての自動的なトリミングを行うこ
とができる。Similarly, CAD parts automatic trimming device 3
For the CAD data file storage device 2 and the CA
By directly combining the M data file storage device 3, the data input / display processing unit 7, and the data output processing unit 8, it can be used as a CAD component automatic trimming device alone. According to the CAD component automatic trimming apparatus, when generating a CAM graphic, it is possible to automatically trim a graphic element constituting a single part.
【0096】また、実施形態に記載した手法は、コンピ
ュータに実行させることができるプログラムとして、例
えば磁気ディスク(フロッピーディスク、ハードディス
ク等)、光ディスク(CD−ROM、DVD等)、半導
体メモリ等の記憶媒体に格納し、また通信媒体により伝
送して頒布することもできる。本装置を実現するコンピ
ュータは、記憶媒体に記録されたプログラムを読み込
み、このプログラムによって動作が制御されることによ
り上述した処理を実行する。The method described in the embodiment can be executed by a computer as a program such as a magnetic disk (floppy disk, hard disk, etc.), an optical disk (CD-ROM, DVD, etc.), or a storage medium such as a semiconductor memory. And can also be transmitted and distributed via a communication medium. A computer that implements the present apparatus reads a program recorded in a storage medium, and executes the above-described processing by controlling the operation of the program.
【0097】[0097]
【発明の効果】以上詳記したように本発明によれば、最
小オペレーションで組立図CADデータを単一部品に分
解されたCAMデータに変換するCAM用図形生成装置
及び記録媒体を提供することができる。As described above in detail, according to the present invention, it is possible to provide a CAM graphic generating apparatus and a recording medium for converting assembly drawing CAD data into CAM data decomposed into a single part with a minimum operation. it can.
【図1】本発明の実施の形態に係るCAM用図形生成装
置の一例を示す構成図。FIG. 1 is a configuration diagram showing an example of a CAM graphic generation apparatus according to an embodiment of the present invention.
【図2】同実施形態のCAM用図形生成装置の全体的な
動作を説明するための図。FIG. 2 is an exemplary view for explaining the overall operation of the CAM graphic generation apparatus according to the embodiment;
【図3】同実施形態のCAD部品分解方法を説明する流
れ図。FIG. 3 is a flowchart illustrating a CAD component disassembly method of the embodiment.
【図4】同実施形態のCAD部品抽出方法を説明する流
れ図。FIG. 4 is a flowchart illustrating a CAD part extraction method according to the embodiment.
【図5】同実施形態のCAD部品自動トリミング方法を
説明する流れ図。FIG. 5 is a flowchart illustrating a CAD component automatic trimming method according to the embodiment;
【図6】同実施形態のとぎれ線接続処理を説明する流れ
図。FIG. 6 is a flowchart for explaining a break line connection process according to the embodiment;
【図7】同実施形態の不要要素削除処理を説明する流れ
図。FIG. 7 is an exemplary flowchart for explaining unnecessary element deletion processing according to the embodiment;
【図8】同実施形態の交点分解処理を説明する流れ図。FIG. 8 is a flowchart for explaining intersection decomposition processing according to the embodiment;
1…CAM用図形生成装置本体 2…CADデータファイル記憶装置 3…CAMデータファイル記憶装置 4…CAD部品分解装置 5…CAD部品抽出装置 6…CAD部品自動トリミング装置 7…データ入力表示処理部 8…データ出力処理部 9…属性付加処理部 10…不要要素削除処理部 11…部品指定処理部 12…領域掛け要素抽出処理部 13…交点分解処理部 14…領域内要素抽出処理部 15…とぎれ線接続処理部 DESCRIPTION OF SYMBOLS 1 ... CAM figure generation apparatus main body 2 ... CAD data file storage apparatus 3 ... CAM data file storage apparatus 4 ... CAD parts disassembly apparatus 5 ... CAD parts extraction apparatus 6 ... CAD parts automatic trimming apparatus 7 ... Data input display processing part 8 ... Data output processing unit 9 ... Attribute addition processing unit 10 ... Unnecessary element deletion processing unit 11 ... Part designation processing unit 12 ... Area multiplication element extraction processing unit 13 ... Intersection decomposition processing unit 14 ... Intra-region element extraction processing unit 15 ... Disconnected line connection Processing unit
Claims (6)
データをCAM用の単一部品単位のデータに分解するC
AM用図形生成装置において、 任意の2つの図形要素の交点を算出する交点算出手段
と、 前記交点算出手段より算出された交点にてその図形要素
を分割する要素分割手段とを備えたことを特徴とするC
AM用図形生成装置。1. An assembly drawing-shaped CAD comprising a plurality of parts.
Decompose data into single part data for CAM
An AM graphic generating apparatus, comprising: an intersection calculating means for calculating an intersection of any two graphic elements; and an element dividing means for dividing the graphic element at the intersection calculated by the intersection calculating means. C
AM graphic generator.
データをCAM用の単一部品単位のデータに分解するC
AM用図形生成装置において、 前記組立図形の中から任意の単一部品について指定され
た部品領域内の図形要素及び前記部品領域の境界に跨が
る図形要素を抽出する領域掛け要素抽出手段と、 この抽出された各図形要素を各要素同士の交点にて分割
し、それぞれを新たな図形要素とする交点分解手段と、 分解後の新たな図形要素のうち、前記部品領域内の図形
要素のみを抽出する領域内要素抽出手段とを備えたこと
を特徴とするCAM用図形生成装置。2. An assembly drawing-shaped CAD comprising a plurality of parts.
Decompose data into single part data for CAM
In the AM graphic generating apparatus, an area multiplying element extracting means for extracting a graphic element in a specified component area and a graphic element straddling a boundary of the component area from among the assembled graphics, An intersection decomposing unit that divides each of the extracted graphic elements at intersections of the respective elements and sets each of the extracted graphic elements as a new graphic element, and among the decomposed new graphic elements, only the graphic elements in the component area. A CAM graphic generating apparatus comprising: an in-area element extracting means for extracting.
図形要素について、連続する線上に構成される図形要素
同士を接続するとぎれ線接続手段と、 図形要素の端点が他の図形要素上に存在するときに、こ
の端点にて各図形要素を接続したとすれば構成される図
形のうち、最大面積を有しかつ閉図形となる図形以外の
図形が、当該最大面積を有する閉図形に包含されないと
きには、この包含されない図形を構成する図形要素を不
要要素として削除する不要要素削除手段とを備えたこと
を特徴とする請求項2記載のCAM用図形生成装置。3. An interline decomposing means, for each graphic element divided by connecting graphic elements formed on a continuous line, a line connecting means, and an end point of the graphic element exists on another graphic element. At this time, if the graphic elements are connected at this end point, a graphic other than the graphic having the maximum area and being the closed graphic is not included in the closed graphic having the maximum area. 3. The CAM graphic generating apparatus according to claim 2, further comprising: unnecessary element deleting means for deleting a graphic element constituting the graphic not included as an unnecessary element.
削除されたことで、ある単一部品を構成する図形要素と
して最終的に抽出された全図形要素に対し、前記単一部
品間の識別を可能とするための属性を付加する属性付加
手段とを備えたことを特徴とする請求項3記載のCAM
用図形生成装置。4. An unnecessary element is deleted by said unnecessary element deleting means, so that all of the graphic elements finally extracted as graphic elements constituting a certain single part can be identified between said single parts. 4. The CAM according to claim 3, further comprising attribute adding means for adding an attribute for enabling the CAM.
Figure generation device.
データをCAM用の単一部品単位のデータに分解するC
AM用図形生成処理をコンピュータに実行させるプログ
ラムを記録した記録媒体において、 前記プログラムは、 任意の2つの図形要素の交点を算出する交点算出処理
と、 前記交点算出処理により算出された交点にてその図形要
素を分割する要素分割処理とを有することを特徴とする
コンピュータ読取り可能な記録媒体。5. An assembly drawing CAD having a plurality of parts.
Decompose data into single part data for CAM
In a recording medium storing a program for causing a computer to execute an AM graphic generation process, the program includes: an intersection calculation process of calculating an intersection of any two graphic elements; and an intersection calculated by the intersection calculation process. A computer-readable recording medium having an element division process for dividing a graphic element.
データをCAM用の単一部品単位のデータに分解するC
AM用図形生成処理をコンピュータに実行させるプログ
ラムを記録した記録媒体において、 前記プログラムは、 前記組立図形の中から任意の単一部品について指定され
た部品領域内の図形要素及び前記部品領域の境界に跨が
る図形要素を抽出する領域掛け要素抽出処理と、 この抽出された各図形要素を各要素同士の交点にて分割
し、それぞれを新たな図形要素とする交点分解処理と、 分解後の新たな図形要素のうち、前記部品領域内の図形
要素のみを抽出する領域内要素抽出処理とを有すること
を特徴とするコンピュータ読取り可能な記録媒体。6. A CAD of an assembly drawing shape composed of a plurality of parts.
Decompose data into single part data for CAM
In a recording medium recording a program for causing a computer to execute an AM graphic generation process, the program includes: a graphic element in a component area designated for an arbitrary single component from the assembled graphics; and a boundary between the component areas. An area multiplying element extraction process for extracting straddling graphic elements, an intersection decomposing process in which each of the extracted graphic elements is divided at intersections of the respective elements and each of them is a new graphic element, A computer-readable recording medium, comprising: an in-area element extraction process of extracting only graphic elements in the component area from among various graphic elements.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9210630A JPH1153017A (en) | 1997-08-05 | 1997-08-05 | Graphic generation device for CAM and recording medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9210630A JPH1153017A (en) | 1997-08-05 | 1997-08-05 | Graphic generation device for CAM and recording medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH1153017A true JPH1153017A (en) | 1999-02-26 |
Family
ID=16592511
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP9210630A Pending JPH1153017A (en) | 1997-08-05 | 1997-08-05 | Graphic generation device for CAM and recording medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH1153017A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006128318A (en) * | 2004-10-27 | 2006-05-18 | Toshiba Corp | Substrate processing information generation apparatus and substrate processing information generation method |
| JP2007128173A (en) * | 2005-11-01 | 2007-05-24 | Fuji Heavy Ind Ltd | Area calculation method using CAD |
| JP2007334783A (en) * | 2006-06-19 | 2007-12-27 | Ricoh Co Ltd | Parts catalog creation method and parts catalog creation device |
| JP2012218037A (en) * | 2011-04-11 | 2012-11-12 | Murata Machinery Ltd | Sheet metal process work support system |
-
1997
- 1997-08-05 JP JP9210630A patent/JPH1153017A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006128318A (en) * | 2004-10-27 | 2006-05-18 | Toshiba Corp | Substrate processing information generation apparatus and substrate processing information generation method |
| JP2007128173A (en) * | 2005-11-01 | 2007-05-24 | Fuji Heavy Ind Ltd | Area calculation method using CAD |
| JP2007334783A (en) * | 2006-06-19 | 2007-12-27 | Ricoh Co Ltd | Parts catalog creation method and parts catalog creation device |
| JP2012218037A (en) * | 2011-04-11 | 2012-11-12 | Murata Machinery Ltd | Sheet metal process work support system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH1153017A (en) | Graphic generation device for CAM and recording medium | |
| JP6479275B1 (en) | Machining program correction device and machining program correction method | |
| JPH0439092B2 (en) | ||
| JP2018063730A (en) | Program, information processing device, and processing method thereof | |
| JP2000039909A (en) | Numerical control information creation device | |
| JP4992439B2 (en) | CAD system projection method, CAD system projection program, and CAD system | |
| JP3658027B2 (en) | Graphic editing apparatus and graphic editing method | |
| JP2584229B2 (en) | CAD / CAM automatic programming device | |
| JP2726746B2 (en) | Graphic information management method and system | |
| JPH07334222A (en) | Tool path editing system | |
| JP3102222B2 (en) | Knowledge acquisition method and its implementation device | |
| JP2982490B2 (en) | SFC programming method | |
| JP2998534B2 (en) | Method of changing shape of CAM model for press working | |
| JPH1021282A (en) | Harness diagram creation device | |
| JP2818067B2 (en) | Bleed image processing method | |
| JP2836217B2 (en) | Parametric figure registration processing method | |
| JPH05307589A (en) | System for data transfer between cad systems | |
| JP3358743B2 (en) | Offset figure generation system | |
| JPH04219877A (en) | Division and coupling system for contour closed curve represented with vector | |
| JP2005165985A (en) | DTP editing apparatus having area designation function and data cutout function | |
| JP3152769B2 (en) | Program analyzer | |
| JP2020161102A (en) | Drawing creation support device, drawing creation support program and drawing creation support method | |
| JP3154790B2 (en) | Optical character reader | |
| JPH09160626A (en) | Nc data generation system | |
| JPH10228539A (en) | Graphic editing method |