JPH0433063A - Moving / copying system for cad system - Google Patents

Moving / copying system for cad system

Info

Publication number
JPH0433063A
JPH0433063A JP2132683A JP13268390A JPH0433063A JP H0433063 A JPH0433063 A JP H0433063A JP 2132683 A JP2132683 A JP 2132683A JP 13268390 A JP13268390 A JP 13268390A JP H0433063 A JPH0433063 A JP H0433063A
Authority
JP
Japan
Prior art keywords
shape
movement
rotation angle
reference point
moving
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
JP2132683A
Other languages
Japanese (ja)
Inventor
Maki Seki
関 真樹
Takashi Takegahara
竹ヶ原 隆史
Toru Matsunaka
松中 透
Shizuaki Hayanagi
葉柳 静秋
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP2132683A priority Critical patent/JPH0433063A/en
Publication of JPH0433063A publication Critical patent/JPH0433063A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To set a form as the object of movement at an arbitrary target position in a desired posture by setting a reference point for positioning a to the form as the object of movement and designating an angle to be formed between a linear element constituting the form and the other linear element drawn on a graphic display. CONSTITUTION:An operator sets a reference point P for positioning at one point of a form F as the object of movement and by setting, inputting a moving position Q of the reference point P for positioning and selecting a linear element l' constituting the form F and another linear element l drawn on the display, an angle theta to be formed between the both linear elements is designated. A microprocessor calculates the rotational amount of the form F based on the angle theta to be formed between the both linear elements and calculates the parallel moving amount from the reference point P for positioning and the moving position Q. Then, a transformation matrix is formed according to the rotational moving amount and the parallel moving amount, and the transformation matrix is multiplied to the position data of the form so as to automatically draw the moved form. Thus, without requiring complicated input processing or manual calculation, the form as the object of movement is drawn at the arbitrary target position in the desired posture.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、CADシステムにおける移動・複写方式に関
する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a movement/copying method in a CAD system.

従来の技術 グラフィックディスプレイ上に描画された形状を選択し
て移動または複写すべき位置を指定することにより、該
選択された形状を任意位置に平行移動して描画するよう
にした移動・複写方式は既に公知である。
2. Description of the Related Art A moving/copying method in which a shape drawn on a graphic display is selected and a position to be moved or copied is specified, and the selected shape is translated in parallel to an arbitrary position and drawn. It is already publicly known.

また、グラフィックディスプレイ上に描画された形状を
選択し、グラフィックディスプレイ上の任意位置に回転
中部・を設定して回転角度を入力することにより、上記
回転中心を基準に回転角度の分だけ、選択された形状を
回転させて描画するようにした移動・複写方式も知られ
ている。
In addition, by selecting the shape drawn on the graphic display, setting the center of rotation at an arbitrary position on the graphic display, and inputting the rotation angle, the selected shape will be selected by the rotation angle based on the rotation center. A moving/copying method is also known in which a rotated shape is drawn.

発明が解決すべき課題 しかし、これら従来技術によれば、一つの形状を平行移
動し、かつ、回転移動を施すような場合、−旦、移動や
複写の対象となる形状を選択して必要なデータを入力し
、平行移動もしくは回転移動のうちいずれか一方の処理
を施した後、移動または複写された形状を再び選択して
データの再入力を行ってからもう一方の回転移動もしく
は回転移動の処理を施さなければならず、形状の選択や
データの入力操作が煩わしいといった欠点がある。
Problems to be Solved by the Invention However, according to these conventional techniques, when one shape is to be translated and rotated, - the shape to be moved or copied is first selected and the necessary After inputting data and performing either parallel or rotational movement, select the moved or copied shape again, re-input the data, and then perform the other rotational or rotational movement. It has the disadvantage that it requires processing, and shape selection and data input operations are cumbersome.

また、上記の移動・複写方式によって回転移動を行わせ
るためには、移動または複写の対象となる形状の現在位
置から所望の移動・複写位置に至る回転角度をオペレー
タ自らが計算して入力しなければならないので、移動や
複写の対象となる形状が座標軸や他の形状に対して特定
の角度となるような回転移動を行わせるためには複雑な
手計算が必要となり、計算ミスが生じ易いといった問題
もある。
In addition, in order to perform rotational movement using the above movement/copying method, the operator must calculate and input the rotation angle from the current position of the shape to be moved or copied to the desired movement/copying position. Therefore, complex manual calculations are required in order to rotate the shape to be moved or copied so that it is at a specific angle with respect to the coordinate axes or other shapes, and calculation errors are likely to occur. There are also problems.

そこで、本発明の目的は、これら従来技術の欠点を解消
し、面倒な入力処理や複雑な手計算を必要とせず、移動
や複写の対象となる形状を任意の目標位置に所望の姿勢
で適確に描画することのできるCADシステムにおける
移動・複写方式を提供することにある。
Therefore, an object of the present invention is to eliminate these drawbacks of the prior art, and to move or copy a shape to any target position in a desired posture without the need for troublesome input processing or complicated manual calculations. The object of the present invention is to provide a movement/copying method in a CAD system that allows accurate drawing.

課題を解決するための手段 本発明の移動・複写方式は、移動または複写の対象とな
る形状の一点に位置決め用基準点を設定し、該位置決め
用基準点の移動位置を設定入力すると共に、上記形状を
構成する直線要素の1つおよびグラフィックディスプレ
イ上に描画された他の直線要素の1つを選択し、両直線
要素のなすべき角を指定することにより、CADシステ
ムのマイクロプロセッサは、上記なすべき角から求めら
れる上記形状の回転量と、位置決め用基準点から移動点
に至る平行移動量より変換マトリクスを作成し、上記形
状の位置データに上記変換マトリクスを乗じて、上記形
状の移動または複写後の形状を自動的に描画することに
より上記目的を達成した。
Means for Solving the Problems The moving/copying method of the present invention sets a positioning reference point at one point of a shape to be moved or copied, sets and inputs the movement position of the positioning reference point, and By selecting one of the linear elements making up the shape and one of the other linear elements drawn on the graphic display and specifying the angle to be formed by both linear elements, the microprocessor of the CAD system A transformation matrix is created from the amount of rotation of the shape obtained from the power angle and the amount of translation from the positioning reference point to the movement point, and the position data of the shape is multiplied by the transformation matrix to move or copy the shape. The above objective was achieved by automatically drawing the subsequent shape.

作用 オペレータは、移動または複写の対象となる形状の一点
に位置決め用基準点を設定し、該位置決め用基準点の移
動位置を設定入力すると共に、上記形状を構成する直線
要素の1つおよびグラフィックディスプレイ上に描画さ
れた他の直線要素の1つを選択し、両直線要素のなすべ
き角を指定する。
The operator sets a positioning reference point at one point of the shape to be moved or copied, sets and inputs the movement position of the positioning reference point, and selects one of the linear elements constituting the shape and the graphic display. Select one of the other linear elements drawn above and specify the angle that both linear elements should form.

CADシステムのマイクロプロセッサは、上記両直線要
素のなすべき角に基き上記形状の回転量を求める。また
、位置決め用基準点と該位置決め用基準点の移動位置と
から平行移動量を求め、これらの回転移動量および平行
移動量より変換マトリクスを作成し、上記形状の位置デ
ータに該変換マトリクスを乗じて、移動または複写の対
象となる形状の移動または複写後の形状を自動的に描画
する。
The microprocessor of the CAD system determines the amount of rotation of the shape based on the angles to be formed between the linear elements. In addition, the amount of parallel movement is determined from the positioning reference point and the movement position of the positioning reference point, a conversion matrix is created from these rotational movement amounts and parallel movement amounts, and the position data of the above shape is multiplied by the conversion matrix. automatically draws the shape after the shape is moved or copied.

実施例 以下、図面を参照して本発明の詳細な説明する。Example Hereinafter, the present invention will be described in detail with reference to the drawings.

第2図は一実施例のCADシステムを構成する自動プロ
グラミング装置の要部を示すブロック図で、10はマイ
クロプロセッサ(以下、CPUという)、11は該自動
プログラミング装置の制御プログラムを格納したROM
、12はフロッピーディスク17からロードされたシス
テムプログラムや各種のデータ等を格納するRAM、1
3はキーボード、14はグラフィックディスプレイとし
てのCRT表示装置(以下、CRTという)、15はタ
ブレット装置、16はディスクコントローラ、17はフ
ロッピーディスク、18は作成図面を出力するためのプ
ロッタ、19はプリンタであり、これらの各要素はバス
20を介して連絡されている。
FIG. 2 is a block diagram showing the main parts of an automatic programming device constituting a CAD system according to an embodiment, in which 10 is a microprocessor (hereinafter referred to as CPU), and 11 is a ROM that stores a control program for the automatic programming device.
, 12 is a RAM for storing system programs and various data loaded from the floppy disk 17;
3 is a keyboard, 14 is a CRT display device (hereinafter referred to as CRT) as a graphic display, 15 is a tablet device, 16 is a disk controller, 17 is a floppy disk, 18 is a plotter for outputting created drawings, and 19 is a printer. Each of these elements is communicated via a bus 20.

タブレット装置15は、画面対応領域15aとメニュー
表15bとを有し、タブレットカーソル15cを画面対
応領域15a内で移動させてCRT14上のグラフィッ
クカーソルを移動させることにより、CRT14上に表
示された形状の要素や形状の任意点をピックしたり、ま
た、メニュー表15b上でタブレットカーソル15cを
移動させることにより各種のメニュー項目をピックする
ようになっている。
The tablet device 15 has a screen corresponding area 15a and a menu table 15b, and by moving the tablet cursor 15c within the screen corresponding area 15a and moving the graphic cursor on the CRT 14, the shape displayed on the CRT 14 can be changed. Various menu items can be picked by picking an arbitrary point on an element or shape or by moving the tablet cursor 15c on the menu table 15b.

この種の自動プログラミング装置の一般機能およびこれ
を用いた通常の設計方法に関しては既に公知であるから
説明を省略し、以下、システムプログラムとして記憶さ
れた移動・複写処理の要部を示すフローチャートを参照
して、本実施例の移動・複写方式について説明する。
Since the general functions of this type of automatic programming device and the usual design method using the same are already known, the explanation will be omitted, and the following will refer to a flowchart showing the main parts of the move/copy process stored as a system program. Next, the moving/copying method of this embodiment will be explained.

移動・複写処理(第1図参照)によって形状の移動を行
うか複写を行うかは、タブレット装置15の操作によっ
てメニュー表15bから「移動・複写」の項目をピック
した後、「移動」もしくは「複写」のうちいずれか一方
の処理を指定することで決定されるが、「移動」と「複
写」との相違は、移動や複写の対象として選択された形
状自体のデータや表示出力を、移動・複写処理実行後に
消去するかそのまま保持するかの相違に過ぎない。
To determine whether to move or copy the shape using the move/copy process (see FIG. 1), select the "Move/Copy" item from the menu table 15b by operating the tablet device 15, and then select "Move" or "Copy". The difference between "move" and "copy" is that the data and display output of the shape itself selected to be moved or copied can be moved or - The only difference is whether to delete or retain the data after the copy process is executed.

移動・複写処理のシステムプログラムおよび予め設計さ
れた形状のデータは既にフロッピーディスク17からR
AM12に読込まれ、CRTl4の表示画面上に第3図
中実線でに示されるような形状Fおよび形状Gが描画さ
れているものとし、−例として、形状Fを移動の対象と
して選択し、該形状Fの左上端点Pを形状Gの右上端点
Qの位置に合わせて、形状Gの右側に、形状Fと形状G
とのなす角がθとなるように形状Fを移動配置する場合
について説明する。
The system program for moving/copying processing and the pre-designed shape data have already been stored on the floppy disk 17.
It is assumed that shape F and shape G are read into AM12 and drawn on the display screen of CRT14 as shown by solid lines in FIG. Align the upper left end point P of shape F with the upper right end point Q of shape G, and place shape F and shape G on the right side of shape G.
A case will be described in which the shape F is moved and arranged so that the angle formed by the shape F becomes θ.

形状を移動するための移動・複写処理を開始したCPU
l0は、まず、CRTl4の表示画面に、移動の対象と
なる形状(以下、移動形状という)を選択するメツセー
ジ、例えば、「移動の対象となる形状をグラフィックカ
ーソルでピックして下さい」を表示しくステップS1)
、オペレータによるビック操作を待つ待機状態に入る(
ステップS2)。
CPU that started the movement/copying process to move the shape
10 first displays a message for selecting the shape to be moved (hereinafter referred to as the moving shape) on the display screen of the CRT 14, for example, ``Please pick the shape to be moved with the graphic cursor.'' Step S1)
, enters the standby state waiting for the operator's big operation (
Step S2).

オペレータはCRTl4のメツセージを参照し、タブレ
ット装置15を操作してCRTl4上のグラフィックカ
ーソルを移動させ、形状Fの代表点(図示せず)をピッ
クする。
The operator refers to the message on the CRTl4, operates the tablet device 15 to move the graphic cursor on the CRTl4, and picks a representative point (not shown) of the shape F.

オペレータによるピック操作は移動・複写処理のステッ
プS2で検出され、CPU10は該形状Fを移動の対象
となる形状としてRAM12に記憶する(ステップ83
)。
The pick operation by the operator is detected in step S2 of the movement/copying process, and the CPU 10 stores the shape F in the RAM 12 as the shape to be moved (step 83
).

次いで、CPUI Oは、移動形状に位置決め用基準点
を設定するメツセージ、例えば、「移動の対象となる形
状の一点をグラフィックカーソルでピックして位置決め
用基準点を設定して下さい」を表示しくステップS4)
、オペレータによるピック操作を待つ待機状態に入る(
ステップS5)。
Next, the CPUI O executes a step to display a message for setting a positioning reference point on the moving shape, for example, ``Pick a point on the shape to be moved with the graphic cursor and set the positioning reference point.'' S4)
, enters a standby state waiting for a pick operation by the operator (
Step S5).

位置決め用基準点設定のためのピック操作では、移動形
状を構成する要素の端点や円弧の中心および要素の交点
などを特徴とする特異点のうち、ピック操作が実行され
た位置に直近する特異点を自動的にピックする近接点モ
ードの処理により、オペレータの操作に応じて移動形状
の一点が自動的に指定されるようになっている。
In the pick operation for setting reference points for positioning, among the singular points characterized by the end points of the elements that make up the moving shape, the centers of circular arcs, and the intersections of elements, the singular point closest to the position where the pick operation is performed is selected. By automatically picking a nearby point mode, a point on the moving shape is automatically specified in response to an operator's operation.

この場合、移動形状Fの左上端点Pを形状Gの右上端点
Qの位置に合わせる必要があるので、オペレータはCR
Tl4のメツセージを参照し、タブレット装置15を操
作してCRTl4上のグラフィックカーソルを移動させ
、移動形状Fの左上端点Pの近傍をピックして、位置決
め用基準点として設定する。
In this case, it is necessary to align the upper left end point P of the moving shape F with the upper right end point Q of the shape G, so the operator needs to
Referring to the message Tl4, operate the tablet device 15 to move the graphic cursor on the CRTl4, pick the vicinity of the upper left end point P of the moving shape F, and set it as the positioning reference point.

オペレータによるピック操作は移動・複写処理のステッ
プS5で検出され、CPU10は、該左上端点Pを位置
決め用基準点としてRAM12に記憶し、その座標値X
=四ロロ、ロロ。
The pick operation by the operator is detected in step S5 of the movement/copying process, and the CPU 10 stores the upper left end point P as a reference point for positioning in the RAM 12, and stores its coordinate value X.
= Four Roro, Roro.

Y=ロロロ、ロロをCRTl4上に表示する(ステップ
S6)。
Y=Rororo, Roro is displayed on the CRTl4 (step S6).

次いで、CPUl0は、位置決め用基準点の移動後の位
置(以下、移動位置という)を設定するメツセージ、例
えば、「位置決め用基準点の移動後の位置に対応する一
点をグラフィックカー・ツルでピックして移動後の位置
を設定して下さい」を表示しくステップS7)、オペレ
ータによるピック操作を待つ待機状態に入る(ステップ
S8)。
Next, the CPU 10 sends a message to set the position of the positioning reference point after the movement (hereinafter referred to as the movement position), for example, ``Pick a point corresponding to the position of the positioning reference point after the movement with the graphics car crane. "Please set the post-movement position" is displayed (step S7), and the machine enters a standby state waiting for a pick operation by the operator (step S8).

移動位置を設定するピック操作の場合も、位置決め用基
準点設定のためのピック操作の場合と同様、近接点モー
ドの処理により、ピック操作が実行された位置に直近す
る特異点が自動的にピックされるようになっている。
In the case of a pick operation to set a movement position, as in the case of a pick operation to set a reference point for positioning, the singular point closest to the position where the pick operation was executed is automatically picked by processing in the nearby point mode. It is supposed to be done.

この場合、位置決め用基準点Pを形状Gの右上端点Qの
位置に合わせる必要があるので、オペレータはCRTl
 4のメツセージを参照し、タブレット装置15を操作
してCRTl4上のグラフィックカーソルを移動させ、
形状Gの右上端点Qの近傍をピックし、この位置に移動
位置を設定する。
In this case, it is necessary to align the positioning reference point P with the upper right end point Q of the shape G, so the operator
4, operate the tablet device 15 to move the graphic cursor on the CRT14,
Pick the area near the upper right end point Q of the shape G and set the movement position to this position.

オペレータによるピック操作は移動・複写処理のステッ
プS8で検出され、CPUl0は、該右上端点Qを移動
位置としてRAM12に記憶し、その座標値X=ロロロ
、ロロ。
The pick operation by the operator is detected in step S8 of the movement/copying process, and the CPU 10 stores the upper right end point Q as the movement position in the RAM 12, and its coordinate value X=Rororo, Roro.

Y=ロロロ、ロロをCRT14上に表示する(ステップ
S9)。
Y=Rororo, Roro is displayed on the CRT 14 (step S9).

次いで、CPUl0は、移動方法の選択と各移動方法を
実施するための操作手順を示すメツセージ、例えば、「
回転を含む移動を実施する場合には、移動の対象となる
形状を構成する直線要素の一つをグラフィックカーソル
でピックして回転角度設定線を設定して下さい。平行移
動のみを実施する場合にはキーボードのNLキーを押し
て下さい。」を表示しくステップ510)、オペレータ
による選択操作を待つ待機状態に入る(ステップ811
〜ステツプ512のループ処理)。
Next, the CPU 10 sends a message indicating the selection of a movement method and the operating procedure for implementing each movement method, for example, "
When performing a movement that includes rotation, use the graphic cursor to pick one of the linear elements that make up the shape to be moved and set the rotation angle setting line. To perform only parallel movement, press the NL key on the keyboard. " is displayed (step 510), and enters a standby state waiting for selection operation by the operator (step 811).
~ loop processing of step 512).

この場合、移動形状Fと形状Gとのなす角は目標とする
角度θとは一致せず、移動形状Fをこのまま平行移動し
ても所望位置に移動することはできないので、移動形状
Fに回転を加える必要がある。
In this case, the angle between the moving shape F and the shape G does not match the target angle θ, and moving shape F cannot be moved to the desired position even if it is translated in parallel, so it is rotated to the moving shape F. need to be added.

そこで、オペレータはCRT14のメツセージを参照し
、回転を含む移動を実施するため、移動形状Fを構成す
る直線要素の一つ(以下、回転角度設定線という)をグ
ラフィックカーソルでピックする。この場合、移動形状
Fと形状Gとのなす角は、移動形状Fを構成する直線要
素l′と形状Gを構成する直線要素l (後述の回転角
度設定基準線)によって簡単に代表させることができる
ので、回転角度設定線としては直線要素l′を選択する
ことが望ましいが、他の直線要素を選択してもよい。但
し、角度の特定が困難(実施例では不可)な円弧要素等
を選択してはならない。
Therefore, the operator refers to the message on the CRT 14 and picks one of the linear elements (hereinafter referred to as the rotation angle setting line) constituting the movement shape F with a graphic cursor in order to perform movement including rotation. In this case, the angle formed by the moving shape F and the shape G can be easily represented by the linear element l' that constitutes the moving shape F and the linear element l that constitutes the shape G (rotation angle setting reference line described later). Therefore, it is desirable to select the linear element l' as the rotation angle setting line, but other linear elements may be selected. However, arcuate elements whose angles are difficult to specify (not possible in the example) must not be selected.

オペレータによる要素のビック操作は移動・複写処理の
ステップS12で検出され、CPUl0は、回転角度設
定線の選択が適切であるか否か、誤って円弧要素等がピ
ックされていないかを判別しくステップ513)、選択
された回転角度設定線が適切なものであれば、回転角度
設定線となる直線要素l′をRAM12に記憶する(ス
テップ514)。
The element pick operation by the operator is detected in step S12 of the move/copy process, and the CPU 10 performs a step to determine whether the selection of the rotation angle setting line is appropriate and whether an arc element or the like has been picked by mistake. 513), if the selected rotation angle setting line is appropriate, the linear element l' that becomes the rotation angle setting line is stored in the RAM 12 (step 514).

次いで、CPUl0は、移動形状以外の直線要素(以下
、回転角度設定基準線という)を選択するメツセージ、
例えば、「移動の対象となる形状を除く直線要素の一つ
をグラフィックカーソルでピックして、回転角度設定基
準線を設定して下さい。」を表示しくステップ515)
、オペレータによる選択操作を待つ待機状態に入る(ス
テップ516)。
Next, CPU10 sends a message to select a linear element other than the moving shape (hereinafter referred to as rotation angle setting reference line),
For example, please display "Pick one of the linear elements excluding the shape to be moved with the graphic cursor and set the rotation angle setting reference line" (step 515).
, enters a standby state waiting for selection operation by the operator (step 516).

この場合、移動形状Fの位置決め用基準点Pを形状Gの
右上端点Qの位置に合わせて、移動形状Fを形状Gに対
して所定角度θで右側に配置する必要があり、しかも、
回転角度設定線として移動形状Fの直線要素l′が既に
選択されているので、形状Gの直線要素lを回転角度設
定基準線として選択することが望ましい。そこで、オペ
レータはCRT14のメツセージを参照し、形状Gを構
成する直線要素lの近傍をグラフィックカーソルでピッ
クし、該直線要素lを回転角度設定基準線として選択す
る。
In this case, it is necessary to align the positioning reference point P of the moving shape F with the position of the upper right end point Q of the shape G, and to place the moving shape F on the right side at a predetermined angle θ with respect to the shape G.
Since the linear element l' of the moving shape F has already been selected as the rotation angle setting line, it is desirable to select the linear element l of the shape G as the rotation angle setting reference line. Therefore, the operator refers to the message on the CRT 14, picks the vicinity of the linear element l forming the shape G with the graphic cursor, and selects the linear element l as the rotation angle setting reference line.

オペレータによるピック操作は、移動・複写処理のステ
ップS16で検出され、CPUl0は、該直線要素lを
回転角度設定基準線として記憶しくステップ517)、
次いで、回転角度設定基準線lに対し回転角度設定線β
′がなすべき角を入力するメツセージ、例えば、「移動
の対象となる形状の回転角度を、回転角度設定線が回転
角度設定基準線に対してなすべき角として数値入力して
下さい。」を表示しくステップ518)、オペレータに
よ入力操作を待つ待機状態に入る(ステップ519)。
The pick operation by the operator is detected in step S16 of the movement/copying process, and the CPU 10 stores the linear element l as the rotation angle setting reference line (step 517).
Next, the rotation angle setting line β is set with respect to the rotation angle setting reference line l.
A message for inputting the angle that ′ should be displayed, for example, ``Please enter the rotation angle of the shape to be moved as the angle that the rotation angle setting line should make with the rotation angle setting reference line.'' is displayed. (step 518), and enters a standby state waiting for an input operation by the operator (step 519).

この場合、移動形状Fの直線要素l′が回転角度設定線
として選択され、かつ、形状Gの一部である直線要素1
が回転角度設定基準線として選択されているので、移動
形状Fと形状Gとのなす角をθとするためには、移動形
状Fが形状Gに対してなすべき角θをそのまま入力すれ
ばよい。そこで、オペレータはCRT14のメツセージ
を参照してキーボード13の数値キーを操作し、移動形
状Fが形状Gに対してなすべき角θを数値入力する。シ
ステム内部では、回転角度設定基準線と回転角度設定線
の交点を基準に反時計方向への回転が正、時計方向への
回転が負と規定されているので、第3図に示される例で
は、θを正の値として入力することとなる。
In this case, the linear element l' of the moving shape F is selected as the rotation angle setting line, and the linear element 1 which is a part of the shape G
is selected as the rotation angle setting reference line, so in order to set the angle between the moving shape F and the shape G to be θ, just input the angle θ that the moving shape F should make with the shape G as is. . Then, the operator refers to the message on the CRT 14, operates the numerical keys on the keyboard 13, and numerically inputs the angle θ that the moving shape F should make with the shape G. Inside the system, rotation in the counterclockwise direction is defined as positive, and rotation in the clockwise direction is defined as negative, based on the intersection of the rotation angle setting reference line and the rotation angle setting line. Therefore, in the example shown in FIG. , θ are input as positive values.

オペレータによる入力操作は移動・複写処理のステップ
S19で検出され、CPU10は、オペレータによって
入力された角度(以下、入力回転角度という)θを記憶
し、その値をCRT14上に表示する(ステップ520
)。
The input operation by the operator is detected in step S19 of the movement/copying process, and the CPU 10 stores the angle θ input by the operator (hereinafter referred to as input rotation angle) and displays the value on the CRT 14 (step 520).
).

次いで、CPUl0は、予めRAM12に記憶された回
転角度設定基準線lと回転角度設定線l′との関係およ
び入力回転角度θ並びに位置決め用基準点Pの位置デー
タに基いて、位置決め用基準点Pを中心として移動形状
Fに与えるべき回転移動を示すマトリクスgを求めると
共に、位置決め用基準点Pを移動位置Qに平行移動する
マトリクスfを求め、これらのマトリクスを乗じて回転
を伴う平行移動のマトリクスを作成し、変換マトリクス
hとして記憶する(ステップ521)。
Next, the CPU 10 sets the positioning reference point P based on the relationship between the rotation angle setting reference line l and the rotation angle setting line l' stored in advance in the RAM 12, the input rotation angle θ, and the position data of the positioning reference point P. Find a matrix g that indicates the rotational movement that should be given to the moving shape F around is created and stored as a transformation matrix h (step 521).

移動形状Fに与えるべき回転移動量θ「は、入力回転角
度θから、回転角度設定基準線lに対して回転角度設定
線l′がなす角θ1. を減じた値である。第3図では
回転角度設定基準線lと回転角度設定線l′との角度関
係を明確に示すために移動形状Fの平行移動状態を破線
で示している。
The amount of rotational movement θ to be given to the moving shape F is the value obtained by subtracting the angle θ1 made by the rotation angle setting line l' with respect to the rotation angle setting reference line l from the input rotation angle θ. In order to clearly show the angular relationship between the rotation angle setting reference line l and the rotation angle setting line l', the parallel movement state of the moving shape F is shown by broken lines.

第3図に示される例では、入力回転角度θ、および、回
転角度設定基準線lに対して回転角度設定線l′がなす
角θ□・ とも正の値で、かつ、θ、1.に比べてθの
方が大きいので、回転移動量θr=θ−θ1.・ 〉0
となり、移動形状Fは回転移動を示すマトリクスgによ
り位置決め用基準点Pを中心として正方向に1θr 1
回転される。また、第4図に示されるように、θおよび
θ、1、とも正の値で、かつ、θ1. に比べてθの方
が小さ°い場合には、回転移動量θr=θ−θ1.・ 
〈0となり、移動形状Fは位置決め用基準点Pを中心と
して負方向に1θr 1だけ回転される。θおよびθ□
、とも負の値でθ11、に比べてθの方が小さい場合に
は、第5図に示されるように、回転移動量θr=θ−θ
1. 〈0となり、移動形状Fは位置決め用基準点Pを
中心として負方向に1θrだけ回転される。第6図に示
されるようにθおよびθ、、 とも負の値でθ1. に
比べてθの方が大きい場合にはθr=θ−θII’>O
となって移動形状Fは位置決め用基準点Pを中心として
正方向に1θr だけ回転され、第7図に示されるよう
にθが正でθ、、・が負の場合には θr=θ−θ1.
 〉0となって移動形状Fは位置決め用基準点Pを中心
として正方向に1θr 1だけ回転される。また、第8
図に示されるようにθが負でθ、1 が正の場合にはθ
「=θ−θ、、 〈0となって移動形状Fは位置決め用
基準点Pを中心として負方向に1θr 1だけ回転され
る。即ち、回転移動を示すマトリクスgは、位置決め基
準点Pを中心とするθ−θ、、 の回転移動として定義
され、この移動量θrにより、回転角度設定線l′と回
転角度設定基準線lとのなす角をθとする補正がなされ
る。
In the example shown in FIG. 3, the input rotation angle θ and the angle θ□· formed by the rotation angle setting line l' with respect to the rotation angle setting reference line l are both positive values, and θ, 1. Since θ is larger than θ, the amount of rotational movement θr=θ−θ1.・〉0
Therefore, the movement shape F is 1θr 1 in the positive direction centering on the positioning reference point P according to the matrix g indicating rotational movement.
be rotated. Further, as shown in FIG. 4, both θ and θ,1 are positive values, and θ1. If θ is smaller than θ, the amount of rotational movement θr=θ−θ1.・
<0, and the moving shape F is rotated by 1θr 1 in the negative direction about the positioning reference point P. θ and θ□
, both have negative values and θ is smaller than θ11, as shown in FIG. 5, the rotational movement amount θr=θ−θ
1. <0, and the moving shape F is rotated by 1θr in the negative direction about the positioning reference point P. As shown in FIG. 6, θ and θ are both negative values, and θ1. If θ is larger than θr=θ−θII'>O
As a result, the moving shape F is rotated by 1θr in the positive direction around the positioning reference point P, and as shown in FIG. 7, when θ is positive and θ, . ..
>0, and the moving shape F is rotated by 1θr 1 in the positive direction about the positioning reference point P. Also, the 8th
As shown in the figure, when θ is negative, θ, and when 1 is positive, θ
= θ - θ,, <0, and the moving shape F is rotated by 1θr 1 in the negative direction around the positioning reference point P. In other words, the matrix g indicating rotational movement is rotated around the positioning reference point P. This movement amount θr is used to correct the angle between the rotation angle setting line l' and the rotation angle setting reference line l as θ.

回転移動のマトリクスgは位置決め用基準点Pを中心と
する回転移動であり、かつ、平行移動のマトリクスfは
位置決め用準点Pを移動位置Qに平行移動するマトリク
スであるから、これらのマトリクスを乗じて得られる変
換マトリクスhは、回転角度設定線l′が回転角度設定
基準線lに対して入力回転角度θをなし、かつ、位置決
め用基準点Pを移動位置Qに一致させる変換マトリクス
となる。
Since the rotational movement matrix g is a rotational movement centered on the positioning reference point P, and the parallel movement matrix f is a matrix that moves the positioning reference point P in parallel to the movement position Q, these matrices are The conversion matrix h obtained by multiplication is a conversion matrix in which the rotation angle setting line l' forms an input rotation angle θ with respect to the rotation angle setting reference line l, and the positioning reference point P matches the movement position Q. .

変換マトリクスhを作成したCPUl0は、移動形状F
の各位置のデータに変換マトリクスhを乗じ、変換実行
後の形状F′を求めてRAM12に記憶し、該形状F′
をCRT14に描画する一方(ステップ522) 、R
AM12に記憶されていた移動形状Fのデータとその表
示出力を消去して、移動形状Fの移動処理を終了する。
The CPU l0 that created the transformation matrix h converts the moving shape F
The data at each position is multiplied by the transformation matrix h to obtain the shape F' after the transformation, which is stored in the RAM 12, and the shape F'
While drawing on the CRT 14 (step 522), R
The data of the moving shape F stored in the AM 12 and its display output are erased, and the moving process of the moving shape F is ended.

従って、移動の対象として選択された形状を他の形状を
規準として移動配置するような場合であっても、オペレ
ータがこれらの形状の姿勢や形状間の傾き等を知る必要
は無く、単に、移動の対象として選択した形状の一点に
位置決め用基準点を設定して移動位置を選択し、移動の
対象として選択した形状の直線要素の一つ(回転角度設
定線)と他の形状の直線要素の一つ(回転角度設定基準
線)を選択して両直線要素のなすべき角を入力するだけ
で、移動の対象となる形状を任意の目標位置に所望の姿
勢で適確に位置決めすることができる。
Therefore, even when moving and arranging a shape selected as a movement target using other shapes as a reference, the operator does not need to know the orientation of these shapes or the inclination between the shapes; Set a positioning reference point at one point of the shape selected as the target of movement, select the movement position, and select one of the linear elements (rotation angle setting line) of the shape selected as the movement target and the linear elements of the other shape. By simply selecting one (rotation angle setting reference line) and inputting the angle that both linear elements should form, you can accurately position the shape to be moved at any target position in the desired attitude. .

なお、位置決め用基準点と回転角度設定線、および、移
動位置と回転角度設定基準線との間に特定の条件を設け
る必要は無く、例えば、第3図に示される例では、移動
形状Fの回転角度設定線として直線要素1 、 /を選
択し、また、回転角度設定基準線として形状Gの直線要
素!や11を選択することもできる。また、移動形状F
の回転角度設定線として直線要素l′を選択し、回転角
度設定基準線として形状Gの直線要素12を選択するよ
うなことも可能であるが、第3図に示されるような例で
は、入力回転角度θ′を計算で求めなければならないの
で、好ましくない。逆に、第3図に示されるような例に
おいて、移動の対象として選択された形状Fを構成する
直線要素l′が形状Gの直線要素12と特定の角度θ′
をなすように形状Fを移動したい場合、即ち、回転角度
θ′自体が所望の回転角度となるような場合には、形状
Fの直線要素l′を回転角度設定線として選択し、形状
Gの直線要素12を回転角度設定基準線として選択し、
回転角度θ′を入力すべきである。
Note that there is no need to set specific conditions between the positioning reference point and the rotation angle setting line, and between the movement position and the rotation angle setting reference line. For example, in the example shown in FIG. Select linear element 1, / as the rotation angle setting line, and select the linear element of shape G as the rotation angle setting reference line! or 11 can also be selected. In addition, the moving shape F
It is also possible to select linear element l' as the rotation angle setting line and select linear element 12 of shape G as the rotation angle setting reference line, but in the example shown in FIG. This is not preferable because the rotation angle θ' must be calculated. Conversely, in the example shown in FIG. 3, the linear element l' that constitutes the shape F selected as the object of movement is at a specific angle θ' with the linear element 12 of the shape G.
If you want to move the shape F so that the rotation angle θ' itself becomes the desired rotation angle, select the linear element l' of the shape F as the rotation angle setting line, and move the shape Select the linear element 12 as the rotation angle setting reference line,
The rotation angle θ' should be input.

通常、回転角度設定基準線は移動の対象として選択され
た形状以外の直線要素から選択するが、移動の対象とし
て選択された形状の同一直線要素を回転角度設定基準線
および回転角度設定線として選択すれば、選択された形
状の現在位置を基準として回転角度を設定することも可
能である。
Normally, the rotation angle setting reference line is selected from linear elements other than the shape selected for movement, but the same linear elements of the shape selected for movement are selected as the rotation angle setting reference line and rotation angle setting line. Then, it is also possible to set the rotation angle based on the current position of the selected shape.

また、回転角度設定基準線と移動位置とを別個の形状か
ら選択して移動・複写処理を実行してもよい。例えば、
第9図に示される例において、移動または複写の対象と
して移動形状Fを選択して位置決め用基準点Pおよび回
転角度設定線l′を設定し、形状Gの右上端点に移動位
置Qを設定する一方、別の形状G′を構成する直線要素
の一つlを回転角度設定基準線として選択し、回転角度
設定線1′と回転角度設定基準線lとがなすべき角θを
入力するようにすれば、移動形状Fの位置決め用基準点
Pを形状Gの右上端点Qに位置付けし、しかも、移動形
状Fの直線要素l′と形状G′の直線要素lとが所望の
角度θを形成するような移動を行わせることができる。
Further, the rotation angle setting reference line and the movement position may be selected from different shapes and the movement/copying process may be executed. for example,
In the example shown in FIG. 9, the moving shape F is selected as the object to be moved or copied, the positioning reference point P and the rotation angle setting line l' are set, and the moving position Q is set at the upper right end point of the shape G. On the other hand, select one of the linear elements 1 that constitutes another shape G' as the rotation angle setting reference line, and input the angle θ that should be formed between the rotation angle setting line 1' and the rotation angle setting reference line l. Then, the positioning reference point P of the moving shape F is positioned at the upper right end point Q of the shape G, and the linear element l' of the moving shape F and the linear element l of the shape G' form a desired angle θ. You can make movements like this.

なお、第9図においては、回転角度設定線l′と回転角
度設定基準線lとのなすべき角θの値が06の場合、即
ち、形状G′に対し、移動形状Fが平行となるように移
動配置した場合の形状F′について示している。
In addition, in FIG. 9, when the value of the angle θ between the rotation angle setting line l' and the rotation angle setting reference line l is 06, that is, the moving shape F is parallel to the shape G'. The figure shows the shape F' when it is moved and placed.

ステップS10のメツセージ表示に従ってオペレータが
NLキーを操作した場合には、移動・複写処理のステッ
プSllでNLキーの操作が検出され、CPUl0はス
テップS23に移行して、位置決め用基準点Pを移動位
置Qに移動する平行移動のマトリクスfを作成し、ステ
ップ322に移行して、単純な平行移動処理を実行する
When the operator operates the NL key according to the message displayed in step S10, the operation of the NL key is detected in step Sll of the movement/copying process, and the CPU 10 proceeds to step S23 to move the positioning reference point P to the position. A parallel movement matrix f for moving to Q is created, and the process moves to step 322, where a simple parallel movement process is executed.

発明の効果 本発明の移動・複写方式によれば、移動や複写の対象と
なる形状を選択してその一点に位置決め用基準点を設定
し、該位置決め用基準点の移動または複写後の位置を設
定入力すると共に、移動または複写の対象となる形状を
構成する直線要素の1つおよびグラフィックディスプレ
イ上に描画された他の直線要素の1つを選択して両直線
要素のなすべき角を指定すだけで、回転移動と平行移動
が同時に実行されるので、回転移動と平行移動とを個別
に指定してデータ入力を行うといった煩わしさがなく、
しかも、選択された形状の姿勢に関わりなくこの形状を
他の直線要素を基準として所望の角度で回転移動させる
ことができるので、形状間の角度に基いて移動や複写を
行うような場合であっても移動や複写の対象となる形状
の相対回転角度を求めるための計算は必要なく、部品等
の形状配置作業が簡素化され、設計作業が円滑化される
Effects of the Invention According to the movement/copying method of the present invention, a shape to be moved or copied is selected, a positioning reference point is set at one point, and the position of the positioning reference point after movement or copying is determined. Input the settings, select one of the linear elements that make up the shape to be moved or copied, and one of the other linear elements drawn on the graphic display, and specify the angle that both linear elements should form. Since rotational movement and parallel movement are executed at the same time, there is no need to specify rotational movement and parallel movement separately and enter data.
Furthermore, regardless of the orientation of the selected shape, this shape can be rotated and moved at a desired angle with respect to other linear elements, making it possible to move or copy the shape based on the angle between the shapes. There is no need for calculations to determine the relative rotation angle of the shape to be moved or copied, simplifying the work of arranging shapes such as parts and facilitating the design work.

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

第1図は本発明の一実施例における移動・複写処理の要
部を示すフローチャート、第2図は同実施例のCADシ
ステムを構成する自動プログラミング装置の要部を示す
ブロック図、第3図はグラフィックディスプレイの表示
例を示す概念図、第4図乃至第9図は移動または複写の
対象となる形状の直線要素の一つと他の直線要素との位
置関係を例示する模式図である。 10・・・マイクロプロセッサ(CPU)、11・・・
ROM、12・・・RAM、13・・・キーボード、1
4・・・グラフィックディスプレイ(CRT)、15・
・・タブレット装置、15a・・・画面対応領域、15
b・・・メニュー表、15C・・・タブレットカーソル
、16・・・ディスクコントローラ、17・・・フロッ
ピーディスク、18・・・プロッタ、19・・・プリン
タ、20・・・バス、F・・・移動または複写の対象と
なる形状、F′・・・移動または複写後の形状、G・・
・他の形状、P・・・位置決め基準点、Q・・・位置決
め基準点の移動または複写後の位置、F′・・・移動ま
たは複写の対象となる形状を構成する直線要素の一つ、
!・・・グラフィックディスプレイ上に描画された他の
直線要素の一つ、θ・・・両度線要素のなすべき角、S
・・・方向性を指定するピック位置、θr・・・移動ま
たは複写の対象となる形状の回転量、h・・・変換マト
リクス。 第 3区 第 因 第 第
FIG. 1 is a flowchart showing the main parts of the moving/copying process in one embodiment of the present invention, FIG. 2 is a block diagram showing the main parts of the automatic programming device that constitutes the CAD system of the same embodiment, and FIG. The conceptual diagrams illustrating display examples of the graphic display, FIGS. 4 to 9, are schematic diagrams illustrating the positional relationship between one linear element of a shape to be moved or copied and another linear element. 10...Microprocessor (CPU), 11...
ROM, 12... RAM, 13... Keyboard, 1
4...Graphic display (CRT), 15.
...Tablet device, 15a...Screen compatible area, 15
b... Menu table, 15C... Tablet cursor, 16... Disk controller, 17... Floppy disk, 18... Plotter, 19... Printer, 20... Bus, F... Shape to be moved or copied, F'...shape after movement or copying, G...
・Other shapes, P...Positioning reference point, Q...Position after movement or copying of the positioning reference point, F'...One of the linear elements constituting the shape to be moved or copied,
! ...One of the other linear elements drawn on the graphic display, θ...The angle that the biparallel element should form, S
. . . Pick position for specifying directionality, θr . . . Rotation amount of the shape to be moved or copied, h . . . Transformation matrix. Third Ward No. 1

Claims (1)

【特許請求の範囲】[Claims] 移動または複写の対象となる形状の一点に位置決め用基
準点を設定し、該位置決め用基準点の移動位置を設定入
力すると共に、上記形状を構成する直線要素の1つおよ
びグラフィックディスプレイ上に描画された他の直線要
素の1つを選択し、両直線要素のなすべき角を指定する
ことにより、CADシステムのマイクロプロセッサは、
上記なすべき角から求められる上記形状の回転量と、位
置決め用基準点から移動点に至る平行移動量より変換マ
トリクスを作成し、上記形状の位置データに上記変換マ
トリクスを乗じて、上記形状の移動または複写後の形状
を自動的に描画することを特徴としたCADシステムに
おける移動・複写方式。
A positioning reference point is set at one point of the shape to be moved or copied, and the movement position of the positioning reference point is set and input, and the data is drawn on one of the linear elements constituting the shape and on the graphic display. By selecting one of the other linear elements and specifying the angle that both linear elements should form, the CAD system's microprocessor can:
A conversion matrix is created from the amount of rotation of the above shape obtained from the angle to be made and the amount of parallel movement from the positioning reference point to the movement point, and the position data of the above shape is multiplied by the above conversion matrix to move the above shape. Or a movement/copying method in a CAD system characterized by automatically drawing the shape after copying.
JP2132683A 1990-05-24 1990-05-24 Moving / copying system for cad system Pending JPH0433063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2132683A JPH0433063A (en) 1990-05-24 1990-05-24 Moving / copying system for cad system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2132683A JPH0433063A (en) 1990-05-24 1990-05-24 Moving / copying system for cad system

Publications (1)

Publication Number Publication Date
JPH0433063A true JPH0433063A (en) 1992-02-04

Family

ID=15087082

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2132683A Pending JPH0433063A (en) 1990-05-24 1990-05-24 Moving / copying system for cad system

Country Status (1)

Country Link
JP (1) JPH0433063A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100778821B1 (en) * 2007-10-25 2007-11-23 문엔지니어링 (주) Multi digital customer device box

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100778821B1 (en) * 2007-10-25 2007-11-23 문엔지니어링 (주) Multi digital customer device box

Similar Documents

Publication Publication Date Title
JPH0433063A (en) Moving / copying system for cad system
JPH03161792A (en) Three-dimensional cursor and offline programming system using this cursor
JPH0991017A (en) Device for confirming robot operation route
JP3361652B2 (en) 3D figure arrangement input method and graphic system
JP3148489B2 (en) 3D object placement device
JP3661224B2 (en) Scale graphic display controller
JP2542527B2 (en) Graphic drawing method in graphic processing apparatus
JP2751114B2 (en) Character processing method
JP3209561B2 (en) CAD system
JPH06119430A (en) Graphic display device
JP2636014B2 (en) Figure connection control method
JPS6132109A (en) Data setting screen display system in numerical controller
JP3113023B2 (en) Arc length dimension creation method and device
JPH0664589B2 (en) Drawing method in CAD system
JPH0620022A (en) Data preparing device
JPH05324040A (en) Numerical controller
JPH0648460B2 (en) Coordinate scale display method
JP2003178330A (en) Three-dimensional solid arrangement editing method and three-dimensional solid arrangement editing device
JP2575636B2 (en) Graphic display device
JPH03123977A (en) Parts position correction system in metallic mold design
JPH03269570A (en) Display device
EP0406445A1 (en) Graphic parameter setting and plotting method
JPH0827844B2 (en) Figure processing device with regular polygon creation function
JPH04168504A (en) Method for moving and copying shape
JPH0935091A (en) Directing method for change in state of display of three-dimensional figure and display state changing device used for executing the method