JPH0520402A - Cad/cam system - Google Patents

Cad/cam system

Info

Publication number
JPH0520402A
JPH0520402A JP3175616A JP17561691A JPH0520402A JP H0520402 A JPH0520402 A JP H0520402A JP 3175616 A JP3175616 A JP 3175616A JP 17561691 A JP17561691 A JP 17561691A JP H0520402 A JPH0520402 A JP H0520402A
Authority
JP
Japan
Prior art keywords
line segment
cad
line
cam system
line segments
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3175616A
Other languages
Japanese (ja)
Inventor
Hiroshi Kajitani
弘 梶谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP3175616A priority Critical patent/JPH0520402A/en
Publication of JPH0520402A publication Critical patent/JPH0520402A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To smoothly generate NC work data by removing duplicate segments included in form data. CONSTITUTION:An extraction means S3 extracting the duplicate segments from form data which a CAD system generates, a substitution means S4 which substitutes the duplicate segments for one segment and a division means S5 dividing the substituted segment by an intersection with the other segment are given.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はCAD/CAMシステム
に関し、特にCADシステムとCAMシステムのインタ
ーフェース部分に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a CAD / CAM system, and more particularly to an interface portion between a CAD system and a CAM system.

【0002】[0002]

【従来の技術】従来、CADシステムで作成された形状
データは、データのチェックや修正を行なうことなく、
そのままCAMシステムに渡され、CAMシステムで
は、このCADシステムで作成された形状データを使っ
て、加工領域定義を行ない、NC加工データを作成して
いた。
2. Description of the Related Art Conventionally, shape data created by a CAD system can be checked and corrected without data.
It was passed to the CAM system as it was, and the CAM system used the shape data created by this CAD system to define the machining area to create the NC machining data.

【0003】[0003]

【発明が解決しようとする課題】CADシステムで作成
された形状データは、CAMシステムの側から見ると、
不完全な場合がある。すなわち、一本の線分の上に不要
な他の線分が重なっていたり、一本の線分であるべき箇
所が部分的に重なった複数本の線分で構成されていたり
することがある。
The shape data created by the CAD system, when viewed from the side of the CAM system,
It may be incomplete. That is, an unnecessary line segment may be overlapped on one line segment, or a portion that should be one line segment may be composed of a plurality of line segments that are partially overlapped. .

【0004】このような形状データは、設計・製図をす
るというCADシステムにおいては何ら問題ないが、そ
の形状データを使ってNC加工データを作成するCAM
システムにおいては、加工領域を定義できないという問
題があった。
Such shape data has no problem in a CAD system for designing and drawing, but a CAM for creating NC machining data using the shape data.
In the system, there was a problem that the machining area could not be defined.

【0005】本発明の目的は、前記課題を解決したCA
D/CAMを提供することにある。
An object of the present invention is to solve the above problems.
It is to provide D / CAM.

【0006】[0006]

【課題を解決するための手段】前記目的を達成するた
め、本発明に係るCAD/CAMシステムにおいては、
部品の形状データを作成するCADシステムと、CAD
システムで作成された形状データを使ってNC加工デー
タを作成するCAMシステムよりなるCAD/CAMシ
ステムであって、CADシステムにより作成された形状
データから重なり合った線分を抽出する抽出手段と、前
記抽出手段で抽出された複数の線分を一本の線分に置き
換える置換手段と、前記置換手段で置き換えられた一本
の線分を他の線分との交点で分割する分割手段とを含む
ものである。
In order to achieve the above object, in a CAD / CAM system according to the present invention,
CAD system for creating shape data of parts, and CAD
A CAD / CAM system comprising a CAM system for creating NC machining data using the shape data created by the system, the extraction means for extracting overlapping line segments from the shape data created by the CAD system, and the extraction. It includes a replacement means for replacing a plurality of line segments extracted by the means with a single line segment, and a dividing means for dividing the one line segment replaced by the replacement means at an intersection with another line segment. .

【0007】また、前記重なった線分を識別し易いよう
にディスプレィに表示する手段を有するものである。
Further, it has a means for displaying the overlapped line segments on a display so that they can be easily identified.

【0008】[0008]

【作用】本発明では、重なった線分を整理して、重なり
のない複数の線分に形状修正し、CADシステムで作成
した形状データをCAMシステムで有効利用するように
したものである。
According to the present invention, overlapping line segments are arranged and the shape is corrected into a plurality of line segments which do not overlap, and the shape data created by the CAD system is effectively used by the CAM system.

【0009】[0009]

【実施例】以下、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings.

【0010】(実施例1)図1は、本発明の実施例1を
示すブロック図である。
(First Embodiment) FIG. 1 is a block diagram showing a first embodiment of the present invention.

【0011】図4に示すように、本実施例に係るCAD
/CAMシステムは、形状データを作成するCADシス
テムS1と、CADシステムS1で作成された形状データ
を使ってデータ修正、加工領域定義を行いNC加工デー
タを作成するCAMシステムS2とを有している。
As shown in FIG. 4, the CAD according to the present embodiment.
/ CAM system, chromatic and CAD system S 1 to create the shape data, data correction by using the shape data created by CAD system S 1, the CAM system S 2 for creating NC machining data subjected to the processing region defined is doing.

【0012】ここに、本実施例に係るCAD/CAMシ
ステムは、図1に示すように形状を構成する全線分の中
から同一線上にある重なり合った線分を抽出する抽出手
段S3と、抽出された複数の線分を一本の線分に置き換
える置換手段S4と、置き換えられた一本の線分を他の
線分との交点で分割する分割手段S5とを備えている。
6はNCコントローラ、S7はNC加工機、S8はCR
Tディスプレィ、S10は加工領域定義手段、S11はNC
データ生成手段である。
Here, the CAD / CAM system according to the present embodiment, as shown in FIG. 1, the extraction means S 3 for extracting the overlapping line segments on the same line from all the line segments forming the shape, and the extraction means S 3 . A replacing means S 4 for replacing the plurality of line segments thus created with one line segment, and a dividing means S 5 for dividing the replaced one line segment at an intersection with another line segment are provided.
S 6 is NC controller, S 7 is NC processing machine, S 8 is CR
T display, S 10 is machining area defining means, S 11 is NC
It is a data generation means.

【0013】図2(a)は、CADシステムS1で作成
された重なり合った線分を持つ形状を示す。1〜10は
各々1つの線分を示す。線分2と線分7は説明のために
分離して描いているが、実際には同一線上にある重なり
合った線分である。
FIG. 2A shows a shape having overlapping line segments created by the CAD system S 1 . Each of 1 to 10 indicates one line segment. Although the line segment 2 and the line segment 7 are drawn separately for the sake of explanation, they are actually overlapping line segments on the same line.

【0014】図2(b)は、本発明の方法によりデータ
を修正する処理過程を示し、図2(c)は、完全に修正
され、CAMシステムで使用可能な形状を示す。
FIG. 2 (b) shows the process of modifying the data by the method of the present invention, and FIG. 2 (c) shows the shape which has been completely modified and is usable in a CAM system.

【0015】本発明の一実施例を説明する前に図2
(c)により従来のCAD/CAMシステムでNC加工
データを作成する手順を説明する。図中の線分1、線分
3〜線分6、線分8〜線部10、線分12、線分13は
各々1つの線分を表わし、その端点は隣り合う線分の端
点と一致している。
Before describing an embodiment of the present invention, FIG.
A procedure for creating NC processed data by the conventional CAD / CAM system will be described with reference to FIG. Each of line segment 1, line segment 3 to line segment 6, line segment 8 to line portion 10, line segment 12, and line segment 13 in the figure represents one line segment, and its end point is equal to the end point of an adjacent line segment. I am doing it.

【0016】NC加工データを作成するときは、まず加
工領域を加工領域定義手段S10で定義する。これは加工
領域を含む線分をオートトレース機能で抽出することに
より実施する。本図において加工領域定義手段S10で加
工領域Aを定義するときは、オートトレース開始要素と
して線分1を指示し、オートトレース方向として線分1
2を指示し、オートトレース終了要素として線分6を指
示する。オートトレースの途中で線分13と線分8への
分岐があるので、このとき線分13を指示するとオート
トレースが完了して加工領域Aが定義できる。
When creating NC machining data, the machining area is first defined by the machining area defining means S 10 . This is performed by extracting the line segment including the processing area with the auto trace function. When the machining area A is defined by the machining area defining means S 10 in this figure, the line segment 1 is designated as the auto-trace start element, and the line segment 1 is designated as the auto-trace direction.
2 is designated, and the line segment 6 is designated as the auto trace end element. Since there is a branch to a line segment 13 and a line segment 8 in the middle of the auto trace, if the line segment 13 is instructed at this time, the auto trace is completed and the machining area A can be defined.

【0017】この加工領域の情報に加工条件等をNCデ
ータ生成手段S11で付与することによりNC加工データ
が生成される。
NC processing data is generated by adding processing conditions and the like to the processing area information by the NC data generating means S 11 .

【0018】次に、図2(a),(b)を用いて本発明
の一実施例を説明する。図2(a)において線分2と線
分7は重なっているので、CRTディスプレィS8上で
は識別できない。
Next, an embodiment of the present invention will be described with reference to FIGS. 2 (a) and 2 (b). Since line segment 2 and line segment 7 overlap in FIG. 2A, they cannot be identified on the CRT display S 8 .

【0019】この場合、図2(c)で説明した従来の方
式で加工領域Aを定義しようとすると、オートトレース
開始要素として線分1を定義した後、オートトレース方
向として線分2を定義しようとすると、線分7を指示し
てしまうことがある。すると、線分7の端点は線分8の
端点と一致しているので、加工領域Aをトレースできな
くなる。したがって、オートトレースを開始する前に本
発明の処理を実施する。
In this case, if the machining area A is to be defined by the conventional method described with reference to FIG. 2C, the line segment 1 will be defined as the auto trace starting element and then the line segment 2 will be defined as the auto trace direction. Then, the line segment 7 may be instructed. Then, since the end point of the line segment 7 coincides with the end point of the line segment 8, the machining area A cannot be traced. Therefore, the process of the present invention is carried out before starting the auto trace.

【0020】すなわち、図2の形状を構成する線分1〜
線分10の中から同一線上にある線分2と線分7を抽出
手段S3により抽出する。これは例えば直線を表わす次
式の係数a,b,cを計算して一致した線分の組み合わ
せを作り、さらに端点の座標値を用いて実際には重なら
ない線分を除外することにより可能である。
That is, the line segments 1 to 1 forming the shape of FIG.
From the line segment 10, the line segment 2 and the line segment 7 on the same line are extracted by the extracting means S 3 . This can be done, for example, by calculating the coefficients a, b, and c of the following equations that represent straight lines to form matching line segment combinations, and using the coordinate values of the end points to exclude line segments that do not actually overlap. is there.

【0021】 ax+by=c; a=yi1−yi2,b=xi1−xi2, c=xi1(yi1−yi2),yi1(xi1,xi2Ax + by = c; a = y i1 −y i2 , b = x i1 −x i2 , c = x i1 (y i1 −y i2 ), y i1 (x i1 , x i2 ).

【0022】ここで、(xi1,yi1),(xi2,yi2
はi番目の線分の端点の座標値である。
Where (x i1 , y i1 ), (x i2 , y i2 ).
Is the coordinate value of the end point of the i-th line segment.

【0023】次に、抽出された線分2と線分7の合計4
つの端点の内最も離れた2点、イ,ロをとることによ
り、置換手段S4で重なった2本の線分2と線分7を1
本の線分11に置き換える(図2(b))。
Next, a total of 4 of the extracted line segment 2 and line segment 7
By taking the two points farthest away from the two end points, i and b, the two line segments 2 and 7 which are overlapped by the replacing means S 4 are set to 1
The line segment 11 of the book is replaced (FIG. 2B).

【0024】さらに残った線分1、線分3〜線分6、線
分8〜線分10と線分11の交点を計算して交点のある
線分8との交点ハで線分11を線分12と線分13に分
割手段S5で分割する。
Further, the intersection points of the remaining line segment 1, line segment 3 to line segment 6, line segment 8 to line segment 10 and line segment 11 are calculated, and the line segment 11 is formed at the intersection C of the line segment 8 having the intersection point. The line segment 12 and the line segment 13 are divided by the dividing means S 5 .

【0025】以上の処理により図2(a)のCADシス
テムS1で作成された不完全な形状は図2(c)のよう
CAMシステムS2で処理可能な形状となる。
The incomplete shape created by the CAD system S 1 of FIG. 2A by the above processing becomes a shape that can be processed by the CAM system S 2 as shown in FIG. 2C.

【0026】また、図3は他の事例を示す。この場合、
線分15と線分16が同一線上に端点を共有せずに存在
するが、図1の実施例と全く同様にして、図2(c)の
ようなCAMシステムS2で処理可能な形状とすること
ができる。
FIG. 3 shows another case. in this case,
Although the line segment 15 and the line segment 16 exist on the same line without sharing the end points, a shape which can be processed by the CAM system S 2 as shown in FIG. can do.

【0027】(実施例2)次に、図1に基いて本発明の
実施例2を説明する。
(Second Embodiment) Next, a second embodiment of the present invention will be described with reference to FIG.

【0028】本実施例に係るCAD/CAMシステムは
形状データを作成するCADシステムS1と、CADシ
ステムS1で作成された形状データを使ってNC加工デ
ータを作成するCAMシステムS2とを有するものであ
り、実施例1の構成に加えて、形状を構成する全線分の
中から重なり合った線分を見つけ出し、オペレータが識
別し易いように表示する表示手段S9を備えている。
The CAD / CAM system according to the present embodiment includes a CAD system S 1 to create a shape data, and a CAM system S 2 for creating NC machining data using the shape data created by CAD system S 1 In addition to the configuration of the first embodiment, a display means S 9 is provided for finding an overlapping line segment from all the line segments forming the shape and displaying it for easy identification by the operator.

【0029】図5(a)は、CADシステムS1で作成
された形状である。図中、a〜hは線分の端点、1〜7
は線分を示す。線分2は端点aから端点cまでであり、
線分3は端点bから端点dまでである。
FIG. 5A shows a shape created by the CAD system S 1 . In the figure, a to h are end points of line segments, and 1 to 7
Indicates a line segment. The line segment 2 is from the end point a to the end point c,
The line segment 3 is from the end point b to the end point d.

【0030】したがって、線分2と線分3は端点bから
端点cまでの間で重なり合っている。本実施例では、ま
ず重なり合った線分を抽出手段S3で抽出する。
Therefore, the line segment 2 and the line segment 3 overlap each other from the end point b to the end point c. In this embodiment, first, the overlapping line segments are extracted by the extraction means S 3 .

【0031】これは次式の係数a,b,cが一致した線
分を同一直線上にある線分として抽出し、次に端点の座
標値により実際に重なっているかどうかをチェックする
ことにより可能である。
This is possible by extracting a line segment in which the coefficients a, b, and c of the following equation are coincident as a line segment on the same straight line, and then checking whether or not they actually overlap with each other by the coordinate values of the end points. Is.

【0032】 ax+by=c; a=yi1−yi2,b=xi1−xi2, c=xi1(yi1−yi2),yi1(xi1,xi2Ax + by = c; a = y i1 −y i2 , b = x i1 −x i2 , c = x i1 (y i1 −y i2 ), y i1 (x i1 , x i2 ).

【0033】ここで、(xi1,yi1),(xi2,yi2
はi番目の線分の端点の座標値である。
Where (x i1 , y i1 ), (x i2 , y i2 ).
Is the coordinate value of the end point of the i-th line segment.

【0034】本図では線分2と線分3が重なった線分と
して抽出されるが、CRTディスプレィS8に表示する
と一本の線分のように見え、オペレータには識別ができ
ない。そこで、表示手段S9によりCRTディスプレィ
8への表示のみを図5(b)のようにオフセットする
ことによりオペレータにとって識別しやすいものとな
る。
In this figure, the line segment 2 and the line segment 3 are extracted as overlapping line segments, but when displayed on the CRT display S 8, they appear as one line segment and cannot be identified by the operator. Therefore, by offsetting only the display on the CRT display S 8 by the display means S 9 as shown in FIG. 5B, it becomes easy for the operator to identify.

【0035】次にオペレータが図5(c)のように線分
2、線分3を1本の線分8に修正することにより、加工
領域Aの定義が可能となる。加工領域の定義は加工開始
要素として線分1を指定し、加工方向として線分8を指
定し、加工終了要素として線分7を指定してオートトレ
ースを行なうことにより、線分1、線分8、線分4〜線
分7を自動的に抽出することにより行なう。
Next, the operator corrects the line segment 2 and the line segment 3 into one line segment 8 as shown in FIG. 5C, whereby the machining area A can be defined. In the definition of the machining area, line segment 1 is designated as the machining start element, line segment 8 is designated as the machining direction, and line segment 7 is designated as the machining end element. 8. Line segment 4 to line segment 7 are automatically extracted.

【0036】次にこの加工領域情報に加工条件等を付加
することによりNC加工データが生成できる。
Next, NC processing data can be generated by adding processing conditions and the like to this processing area information.

【0037】図6は他の実施例であり、重なった線分の
表示方法が異なる。すなわち、重なった線分をオフセッ
ト表示するのではなく、表示色を変え、かつ文字による
メッセージMを表示することにより行なう。
FIG. 6 shows another embodiment, in which the display method of overlapping line segments is different. That is, the overlapping line segments are not displayed by offset, but the display color is changed and the message M in characters is displayed.

【0038】図7では、端点a,b,c,dを表示する
ことにより、重なった線分が存在することを明示する。
In FIG. 7, the end points a, b, c and d are displayed to clearly show that there are overlapping line segments.

【0039】[0039]

【発明の効果】以上説明したように、本発明は重なった
線分を整理して、重なりのない複数の線分に形状修正す
る作業を自動化したので、CADシステムで作成した形
状データをCAMシステムで有効利用して、NC加工デ
ータを短時間で作成する効果がある。
As described above, according to the present invention, the work of rearranging overlapping line segments and correcting the shape into a plurality of line segments that do not overlap is automated. Therefore, the shape data created by the CAD system is used by the CAM system. It has an effect of creating NC processing data in a short time.

【0040】さらに、重なり合った線分の存在をディス
プレィ上に明示することにより、オペレータのデータ修
正作業を容易にし、CADシステムで作成した形状デー
タをCAMシステムで使用してNC加工データを作成す
ることを可能にするという効果がある。
Further, by clearly showing the existence of overlapping line segments on the display, the operator's data correction work can be facilitated, and the NC processing data can be created by using the shape data created by the CAD system in the CAM system. Has the effect of enabling.

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

【図1】本発明の実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】実施例1における動作説明図である。FIG. 2 is an operation explanatory diagram in the first embodiment.

【図3】実施例1における動作説明図である。FIG. 3 is an operation explanatory diagram in the first embodiment.

【図4】全体の処理の流れを示すフロー図である。FIG. 4 is a flowchart showing the flow of overall processing.

【図5】実施例2における動作説明図である。FIG. 5 is an operation explanatory diagram in the second embodiment.

【図6】実施例2における動作説明図である。FIG. 6 is an operation explanatory diagram of the second embodiment.

【図7】実施例2における動作説明図である。FIG. 7 is an operation explanatory diagram of the second embodiment.

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

1 CADシステム S2 CAMシステム S3 抽出手段 S4 置換手段 S5 分割手段 S9 表示手段S 1 CAD system S 2 CAM system S 3 extraction means S 4 replacement means S 5 division means S 9 display means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 部品の形状データを作成するCADシス
テムと、CADシステムで作成された形状データを使っ
てNC加工データを作成するCAMシステムよりなるC
AD/CAMシステムであって、 CADシステムにより作成された形状データから重なり
合った線分を抽出する抽出手段と、 前記抽出手段で抽出された複数の線分を一本の線分に置
き換える置換手段と、 前記置換手段で置き換えられた一本の線分を他の線分と
の交点で分割する分割手段とを含むことを特徴とするC
AD/CAMシステム。
1. A C system comprising a CAD system for creating shape data of a part and a CAM system for creating NC machining data using the shape data created by the CAD system.
An AD / CAM system, which is an extraction unit that extracts overlapping line segments from shape data created by the CAD system, and a replacement unit that replaces the plurality of line segments extracted by the extraction unit with one line segment. And a dividing means for dividing one line segment replaced by the replacing means at an intersection with another line segment.
AD / CAM system.
【請求項2】 前記重なった線分を識別し易いようにデ
ィスプレィに表示する手段を有することを特徴とする請
求項1に記載のCAD/CAMシステム。
2. The CAD / CAM system according to claim 1, further comprising means for displaying the overlapped line segments on a display for easy identification.
JP3175616A 1991-07-16 1991-07-16 Cad/cam system Pending JPH0520402A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3175616A JPH0520402A (en) 1991-07-16 1991-07-16 Cad/cam system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3175616A JPH0520402A (en) 1991-07-16 1991-07-16 Cad/cam system

Publications (1)

Publication Number Publication Date
JPH0520402A true JPH0520402A (en) 1993-01-29

Family

ID=15999203

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3175616A Pending JPH0520402A (en) 1991-07-16 1991-07-16 Cad/cam system

Country Status (1)

Country Link
JP (1) JPH0520402A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7805215B2 (en) 2006-08-01 2010-09-28 Mitsubishi Electric Corporation Programming device and programming method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7805215B2 (en) 2006-08-01 2010-09-28 Mitsubishi Electric Corporation Programming device and programming method

Similar Documents

Publication Publication Date Title
JPH0640219B2 (en) How to create cutout mask data
JPH0520402A (en) Cad/cam system
CN106094732B (en) A kind of teeth processing route generating method of What You See Is What You Get
CN108139733B (en) Machining process data generation device and machining process data generation method
JP4390899B2 (en) Plate inspection method and apparatus
JPH05204432A (en) Automatic nc data generating device
JP2004155001A (en) Image processing apparatus and method
JP3254286B2 (en) Plate mask making equipment
JPH0546689A (en) Picture data extracting device
JP3066667B2 (en) Outline character correction processing method
JPH04254854A (en) Method and device for producing clipping mask
JP2000099735A (en) Pattern recognition method and storage medium
JPH0773327A (en) Broken line/chain line recognizing method for automatic drawing recognizing device
JPH0765056A (en) Drafting symbol data conversion system between differeny device types
JPH05314273A (en) Method and device for processing image data
JPH07129745A (en) Method and device for connecting image data
JP2018108720A (en) Inside color information deletion method for 3d object
JPH02133877A (en) Input system for circuit diagram
JPS62269272A (en) Editing system of image data and japanese character data
JPH0652262A (en) Apparel cad device
JPH04155384A (en) Character producing device
JPH1026970A (en) Character forming device
JPS60193037A (en) Straight line drawing system
JPS6238908A (en) Numerical controller
JP2000067257A (en) Separation of unwanted graphic