JPH096981A - Drawing production and editing device - Google Patents

Drawing production and editing device

Info

Publication number
JPH096981A
JPH096981A JP7157410A JP15741095A JPH096981A JP H096981 A JPH096981 A JP H096981A JP 7157410 A JP7157410 A JP 7157410A JP 15741095 A JP15741095 A JP 15741095A JP H096981 A JPH096981 A JP H096981A
Authority
JP
Japan
Prior art keywords
history
data
processing
address
history 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.)
Withdrawn
Application number
JP7157410A
Other languages
Japanese (ja)
Inventor
Kenichi Kudo
健一 工藤
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 Engineering Ltd
Original Assignee
NEC Engineering Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP7157410A priority Critical patent/JPH096981A/en
Publication of JPH096981A publication Critical patent/JPH096981A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

PURPOSE: To restore an optional state such as a state that is kept before the production/editing processing is carried out even in a state where the production/ editing processing is canceled and rewritten. CONSTITUTION: An input control part 4 of a CAD processor 2 analyzes the contents of instructions received from an input device 1. Then a production/ editing processing part 5 carries out the instructions which are analyzed at the part 4. A history control part 7 stores those analyzed instructions, the data on coordinates, etc., in a history storage part 8. When an undo or redo instruction is received from the device 1, the part 4 sends these instructions to the part 7. At the same time, the part 5 carries out or cancels the history based on the information stored in the part 8. The processing results of the part 5 are displayed on a display device 3 under the control of a display control part 6.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は図面作成編集装置に関
し、特に回路図や波形図等の図面の作成処理及び編集処
理を行うためのCAD(Computer Aided
Design)システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a drawing creating / editing apparatus, and more particularly to a CAD (Computer Aided) for creating and editing drawings such as circuit diagrams and waveform diagrams.
Design) system.

【0002】[0002]

【従来の技術】従来、この種のCADシステムにおいて
は、複数のオペレーションを実行した後に任意のオペレ
ーションに遡ってデータを復元するため、CAD処理部
の作図・編集処理部で作成または編集された図形要素デ
ータ等を蓄積する要素データベースを備えている。
2. Description of the Related Art Conventionally, in this type of CAD system, since a plurality of operations are executed and data is restored by going back to an arbitrary operation, a figure created or edited by a drawing / editing processing section of a CAD processing section It has an element database that stores element data and the like.

【0003】この場合、CAD処理部の作図・編集処理
部では入力装置から入力されたコマンドを解釈し、その
結果を基に図形要素データや付加情報等を作成または編
集する。
In this case, the drawing / editing processing unit of the CAD processing unit interprets the command input from the input device, and creates or edits the graphic element data and additional information based on the result.

【0004】この作成または編集された図形要素データ
や付加情報等は表示制御部から表示装置に送出されて表
示されるとともに、図面出力制御部からプロッタ等の図
面出力装置に出力されて印刷される。
The created or edited graphic element data, additional information, and the like are sent from the display control unit to the display device for display, and also output from the drawing output control unit to a drawing output device such as a plotter for printing. .

【0005】また、作図・編集処理部で作成または編集
された図形要素データや付加情報等は、書込み読出し制
御部によって要素データベースに書込まれる。尚、書込
み読出し制御部は要素データベースからの図形要素デー
タや付加情報等の読出しも制御する。
The graphic element data and additional information created or edited by the drawing / editing processing unit are written in the element database by the writing / reading control unit. The writing / reading control unit also controls reading of graphic element data and additional information from the element database.

【0006】上記の要素データベースは、図13に示す
ように、エントノードA1と、セグメントA2と、ポイ
ントデータベースA3と、アンドウスタックA4と、リ
ドウスタックA5とから構成されている。
As shown in FIG. 13, the element database is composed of an ent node A1, a segment A2, a point database A3, an ANDO stack A4, and a REDO stack A5.

【0007】エントノードA1は要素番号「1」,
「2」,「3」,「4」,……、セグメントA2へのア
ドレス「AD1」,「AD2」,「AD3」,「AD
4」,……、要素データ「Line」,「Circl
e」等を格納する。
The ent node A1 has an element number "1",
“2”, “3”, “4”, ..., Addresses to segment A2 “AD1”, “AD2”, “AD3”, “AD
4 ”, ..., Element data“ Line ”,“ Circl ”
e ”and the like are stored.

【0008】セグメントA2は直線の端点「P1(始
点)」,「P2(終点)」,「P3」,「P4」や円の
各点「P5(中心)」,「P4(始点)」,「P6(終
点)」,「V1(長径)」,「V2(短径)」、及びベ
クトル等のデータのインデックスを格納する。
The segment A2 is a straight line end point "P1 (start point)", "P2 (end point)", "P3", "P4" or each point "P5 (center)", "P4 (start point)", " P6 (end point), "V1 (major axis)", "V2 (minor axis)", and indexes of data such as vectors are stored.

【0009】ポイントデータベースA3はセグメントイ
ンデックスによって指し示される座標値「X1,Y
1」,「X2,Y2」,「X3,Y3」,「X4,Y
4」,「X5,Y5」,「X6,Y6」,「X7,Y
7」,「X8,Y8」,……を格納する。
The point database A3 stores coordinate values "X1, Y" indicated by the segment index.
1 ”,“ X2, Y2 ”,“ X3, Y3 ”,“ X4, Y
4 ”,“ X5, Y5 ”,“ X6, Y6 ”,“ X7, Y
7 ”,“ X8, Y8 ”, ...

【0010】アンドウスタックA4は実行されたオペレ
ーションを取消してそのオペレーションの実行前のデー
タを復元するアンドウ(UNDO)時にエントノードA
1に復帰させるためのエントノードA1の所定情報「N
o.」,「AD」,「TYP」をスタックする。尚、ア
ンドウスタックA4はチェイン状に格納されるアンドウ
ノードへのポインタも格納し、マルチオペレーションに
対応している。
The ANDO stack A4 cancels the executed operation and restores the data before the execution of the operation.
Predetermined information "N" of the ent node A1 for returning to 1
o. , "AD", "TYP" are stacked. Note that the ANDO stack A4 also stores pointers to ANDO nodes that are stored in a chain, and supports multi-operation.

【0011】リドウスタックA5はアンドウを実行する
前のデータを復元するリドウ(REDO)時にエントノ
ードA1に復帰させるためのエントノードA1の所定情
報「No.」,「AD」,「TYP」をスタックする。
The redou stack A5 stacks predetermined information "No.", "AD", "TYP" of the ent node A1 for returning to the ent node A1 at the time of redo (REDO) for restoring the data before executing AND. .

【0012】上述したCADシステムではオペレーショ
ンを1〜数回実行した後に、アンドウ操作を1〜数回行
えるようになっており、またアンドウ操作を行っていな
い状態に戻すことが可能なリドウ操作も可能となってい
る。
In the CAD system described above, after performing the operation 1 to several times, the undo operation can be performed 1 to several times, and the redo operation capable of returning to the state in which the undo operation is not performed is also possible. Has become.

【0013】エントノードA1は図形を形作る要素デー
タの集合が順に並んで格納されるデータ領域であり、オ
ペレーションが実行されるとエントノードA1のデータ
はアンドウスタックA4に退避され、エントノードA1
にはオペレーションの実行によって生成された要素デー
タが格納される。この動作はオペレーションが実行され
る毎に繰返し行われる。
The ent node A1 is a data area in which a set of element data forming a figure is stored in order, and when the operation is executed, the data of the ent node A1 is saved in the AND stack A4, and the ent node A1 is stored.
The element data generated by executing the operation is stored in. This operation is repeated every time the operation is executed.

【0014】このオペレーションを2回実行した後にア
ンドウ操作を1回行った状態を図14に示す。この場
合、オペレーションを実行する前には何も入っていない
ことを示す“NULL”コードがエントノードA1に入
っている。
FIG. 14 shows a state in which this operation is performed twice and then the AND operation is performed once. In this case, there is a "NULL" code in the ent node A1 indicating that there is nothing before the operation is executed.

【0015】線を引くオペレーションが行われると、エ
ントノードA1には「Line」という要素タイプと、
セグメントA2へのアドレス「AD1」を含んだ要素と
が書込まれ、アンドウスタックA4にはエントノードA
1に入っていた“NULL”コードがスタックされる。
When a line drawing operation is performed, the element type "Line" is added to the ent node A1.
The element including the address "AD1" is written to the segment A2, and the ent node A is written in the ANDO stack A4.
The "NULL" code contained in 1 is stacked.

【0016】線を引くオペレーションが2回行われる
と、エントノードA1には「Line」を含んだ要素2
つが書込まれる。これは図面に2本の直線があることを
示す。アンドウスタックA4にはエントノードA1に入
っていた“NULL”コードが要素2つ分スタックされ
る。
When the line drawing operation is performed twice, the element 2 including "Line" is included in the ent node A1.
One is written. This indicates that there are two straight lines in the drawing. The "NULL" code stored in the entry node A1 is stacked in the AND stack A4 by two elements.

【0017】入力装置からアンドウ命令が入力される
と、エントノードA1の最後尾に格納されていたデータ
(「2」,「AD2」,Line)をリドウスタックA
5に退避し、アンドウスタックA4に退避してあったデ
ータ(“NULL”コード)をエントノードA1に復帰
させる。
When an AND command is input from the input device, the data ("2", "AD2", Line) stored at the end of the entropy node A1 is transferred to the redou stack A.
5, the data ("NULL" code) saved in the AND stack A4 is restored to the ent node A1.

【0018】すると、エントノードA1に格納される要
素が、図14に示すように、要素タイプ「Line」の
もの1つとなる。これは1回目のオペレーションを行っ
た直後の状態に等しい。
Then, the element stored in the ent node A1 becomes one of the element type "Line" as shown in FIG. This is equivalent to the state immediately after the first operation.

【0019】この後に、入力装置からリドウ命令が入力
されると、エントノードA1の最後尾に格納されていた
データ(“NULL”コード)をエンドウスタックA4
に退避し、リドウスタックA5に退避してあったデータ
(「2」,「AD2」,Line)をエントノードA1
に復帰させる。
After that, when a REDO instruction is input from the input device, the data ("NULL" code) stored at the end of the ent node A1 is transferred to the end stack A4.
The data (“2”, “AD2”, Line) saved in the redou stack A5 to the ent node A1.
Return to.

【0020】上記の要素データベースに関する技術につ
いては、特開平5−324555号公報に詳述されてい
る。
The technique relating to the above element database is described in detail in Japanese Patent Laid-Open No. 5-324555.

【0021】[0021]

【発明が解決しようとする課題】上述した従来のCAD
システムでは、アンドウ命令を実行することで複数のオ
ペレーションを行った後でもその複数のオペレーション
の取消しが可能となっており、またリドウ命令を実行す
ることでアンドウ命令の取消し、つまり複数のオペレー
ションの取消し処理自体を取消すことが可能となってい
る。
SUMMARY OF THE INVENTION The conventional CAD described above
In the system, it is possible to cancel multiple operations even after performing multiple operations by executing the AND instruction, and canceling the AND instruction by executing the REDO instruction, that is, canceling multiple operations. It is possible to cancel the processing itself.

【0022】上記の方法ではアンドウ命令を実行する時
にエントノードの内容をリドウスタックにスタックして
おり、作図・編集オペレーションを行う際にはリドウス
タックの内容をクリアしているので、作図・編集オペレ
ーションのみを実行した直後にはリドウ命令を実行する
ことができない。
In the above method, the contents of the ent node are stacked on the redou stack when the AND instruction is executed, and the contents of the redou stack are cleared when the drawing / editing operation is performed, so only the drawing / editing operation is performed. Immediately after execution, the REDO instruction cannot be executed.

【0023】すなわち、ある状態まで図面を作成した後
に一部書き直したい場合にはアンドウ処理でその書き直
したい位置まで戻らなければならないが、書き直しを行
った後には書き直しを行う前の状態に戻りたくとも、ア
ンドウ処理で戻った時点までしか戻ることができない。
That is, when a drawing is created to a certain state and it is desired to rewrite a part of the drawing, it is necessary to return to the position to be rewritten by AND processing. However, after rewriting, even if it is desired to return to the state before rewriting. , You can only return to the point when you returned with Ando processing.

【0024】そこで、本発明の目的は上記の問題点を解
消し、作図・編集処理を取消して書き直した状態でも作
図・編集処理の取消し前の状態のような任意の状態に復
元することができる図面作成編集装置を提供することに
ある。
Therefore, an object of the present invention is to solve the above problems and to restore an arbitrary state such as the state before the cancellation of the drawing / editing process even when the drawing / editing process is canceled and rewritten. An object is to provide a drawing creation / editing device.

【0025】[0025]

【課題を解決するための手段】本発明による図面作成編
集装置は、図面の作成処理及び編集処理を行う図面作成
編集装置であって、前記図面の作成処理及び編集処理を
行う毎にその処理内容を格納する格納手段と、前記図面
の作成処理及び編集処理を行う毎に現処理の処理内容の
前記格納手段における格納位置と前記現処理の前後に連
続して行われた前の処理及び次の処理の履歴情報の蓄積
位置と前記次の処理の後から連続して行われた前記現処
理に対する変更処理の履歴情報の蓄積位置とを対応付け
て履歴データとして蓄積する蓄積手段と、前記変更処理
の履歴情報を記憶する記憶手段と、前記現処理の処理内
容を取消して前記前の処理の処理内容を復元するアンド
ウ操作時にその取消した処理の履歴情報の蓄積位置を保
持する保持手段と、前記図面の作成処理及び編集処理と
前記アンドウ操作及び前記アンドウ操作で取消された処
理の処理内容を復元するリドウ操作とのうちのいずれか
を指示する外部指令に応じて前記格納手段の内容と前記
蓄積手段の内容と前記記憶手段の内容と前記保持手段の
内容とを基に前記図面の作成処理及び編集処理を実行す
る手段とを備えている。
A drawing creation / editing apparatus according to the present invention is a drawing creation / editing apparatus for performing drawing creation processing and editing processing, and the contents of the processing each time the drawing creation processing and editing processing are performed. Storing means for storing the drawing, and the storage position in the storing means of the processing content of the current processing every time the drawing creation processing and the editing processing are performed and the previous processing and the next processing performed continuously before and after the current processing. A storage unit that stores the history information of the process and the storage position of the history information of the change process with respect to the current process continuously performed after the next process in association with each other as history data, and the change process. Storage means for storing the history information of the current processing, and holding means for holding the storage position of the history information of the canceled processing during the AND operation for canceling the processing content of the current processing to restore the processing content of the previous processing The contents of the storage means and the contents of the storage means in response to an external command instructing one of the drawing creating process and the editing process, the undo operation and the redo operation for restoring the process content of the process canceled by the undo operation. It is provided with means for executing the creation processing and the editing processing of the drawing based on the content of the storage means, the content of the storage means and the content of the holding means.

【0026】[0026]

【作用】アンドウを行った状態(リドウ可能な状態)か
ら作成・編集を行った時点で、リドウ可能であった状態
を消去せずに保存し、新しい状態を分岐させて保存する
ので、アンドウを行った場合、分岐に達した時にどの状
態へ移行するのかが選択可能となる。
[Operation] At the time of creating / editing from the undo state (redo state), the redo state is saved without erasing, and the new state is branched and saved. If this is done, it becomes possible to select which state to transition to when the branch is reached.

【0027】また、命令が入力されると、その命令の内
容と命令に付随する属性及びその他の情報とを一つの履
歴データとして扱い、命令が行われる毎に履歴データを
作成していく。
When a command is input, the contents of the command and the attributes and other information associated with the command are treated as one history data, and the history data is created each time the command is executed.

【0028】これらの履歴データは履歴記憶部に記憶す
る時にリスト構造とし、ある履歴データの次の履歴デー
タあるいは前の履歴データのアドレスを履歴データの内
部に持たせておく。
When these history data are stored in the history storage unit, they have a list structure, and the address of the history data next to a certain history data or the history data of the previous history data is provided inside the history data.

【0029】さらに、履歴データの内部に分岐用のアド
レス(分岐データアドレス)を上記のデータとともに合
わせ持たせる。この分岐データアドレスで示される分岐
データには分岐先の履歴データのアドレスと、分岐を行
う毎に付与される分岐ID番号と、複数の分岐がある場
合に分岐データをリスト構造として扱うための次分岐デ
ータアドレスとを持たせる。
Further, an address for branching (branch data address) is provided in the history data together with the above data. The branch data indicated by this branch data address has the address of the history data of the branch destination, the branch ID number assigned each time the branch is performed, and the next branch for handling the branch data as a list structure when there are multiple branches. It has a branch data address.

【0030】命令を実行した場合に履歴データの領域を
確保し、命令の内容及び属性等を履歴データに書込む。
その履歴データのアドレスを、現在の履歴データのアド
レスを示す履歴ポインタに指定する。
When an instruction is executed, an area for history data is secured, and the contents and attributes of the instruction are written in the history data.
The address of the history data is designated as the history pointer indicating the address of the current history data.

【0031】アンドウ処理は履歴ポインタの示す履歴デ
ータの内容を取消す処理であるが、分岐された履歴デー
タの場合には履歴データの内容を実行する。そのとき、
履歴ポインタは該当する履歴データのアドレスを指定
し、アンドウされるデータのアドレスと分岐されたデー
タであるかどうかを示すフラグとがアンドウスタックに
退避される。
The AND process is a process for erasing the contents of the history data indicated by the history pointer, but in the case of branched history data, the contents of the history data are executed. then,
The history pointer designates the address of the corresponding history data, and the address of the data to be undone and the flag indicating whether or not it is branched data are saved in the AND stack.

【0032】履歴ポインタの示す履歴データが分岐デー
タアドレスを持っていれば、アンドウ命令が入力された
際に、前履歴データアドレスや次履歴データアドレス、
あるいは分岐データアドレスを辿って一覧表示し、オペ
レータに選択入力を促す。
If the history data indicated by the history pointer has a branch data address, when the AND instruction is input, the previous history data address, the next history data address,
Alternatively, the branch data addresses are traced and displayed in a list, and the operator is prompted to select and input.

【0033】その場合の表示順序は、前履歴データアド
レスが示す履歴データ、次履歴データアドレスが示す履
歴データ、分岐ID番号の若い順に並んだ分岐データア
ドレスが示す履歴データとなる。
In this case, the display order is the history data indicated by the previous history data address, the history data indicated by the next history data address, and the history data indicated by the branch data addresses arranged in ascending order of branch ID numbers.

【0034】リドウ処理はアンドウスタックのアドレス
を復帰し、分岐データであるかをフラグで判断して履歴
データの内容の取消しまたは実行を行う。アドレスを履
歴ポインタに指定し、履歴ポインタの示す履歴データに
含まれる次履歴データアドレスがNULLでないときに
命令が実行された場合には履歴データの分岐データアド
レスに確保した分岐データ領域のアドレスを入れる。
In the redou process, the address of the AND stack is restored, the flag is used to judge whether the data is branch data, and the contents of the history data are canceled or executed. The address is designated as the history pointer, and when the instruction is executed when the next history data address included in the history data indicated by the history pointer is not NULL, the address of the reserved branch data area is inserted into the branch data address of the history data. .

【0035】その後に、履歴データ領域を確保し、その
アドレスを分岐データの履歴データアドレスに入れる。
その履歴データアドレスで示される履歴データの領域に
は命令の内容や属性等のデータを書込み、そのアドレス
を履歴ポインタに設定する。
After that, a history data area is secured and its address is put in the history data address of the branch data.
The history data area indicated by the history data address is written with data such as the contents and attributes of the instruction, and the address is set as the history pointer.

【0036】これによって、アンドウ処理を行った後に
作成・編集処理を行っても、リドウ操作の情報が入って
いる部分と別の領域とを分岐して確保することができる
ので、全ての操作後の状態を再現することが可能とな
る。よって、アンドウ操作後に作成・編集処理を誤って
行ってしまった場合にアンドウ操作前の状態を復元する
ことや、取消して書き直した部分を元に戻すことが可能
となる。
With this, even if the creating / editing process is performed after the undo process, the portion containing the information of the redo operation and the other region can be branched and secured, so that after all the operations. It is possible to reproduce the state of. Therefore, when the creating / editing process is mistakenly performed after the undo operation, the state before the undo operation can be restored, or the canceled and rewritten portion can be restored.

【0037】[0037]

【実施例】次に、本発明の一実施例について図面を参照
して説明する。
Next, an embodiment of the present invention will be described with reference to the drawings.

【0038】図1は本発明の一実施例の構成を示すブロ
ック図である。図において、本発明の一実施例によるC
ADシステムは入力装置1と、CAD処理装置2と、表
示装置3とから構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, C according to one embodiment of the present invention
The AD system includes an input device 1, a CAD processing device 2, and a display device 3.

【0039】入力装置1は図示せぬキーボードやマウス
等の作図の命令を入力するための装置である。表示装置
3は入力装置1から入力された命令がCAD処理装置2
で解釈されて処理された結果を表示する。
The input device 1 is a device such as a keyboard and a mouse (not shown) for inputting a drawing command. The display device 3 receives a command input from the input device 1 from the CAD processing device 2
Display the results interpreted and processed by.

【0040】CAD処理装置2は入力制御部4と、作成
・編集処理部5と、表示制御部6と、履歴制御部7と、
履歴記憶部8とから構成されている。CAD処理装置2
においては入力装置1から入力された内容を入力制御部
4で解析し、入力制御部4で解析された命令の実行を作
成・編集処理部5で行う。入力制御部4で解析された命
令や座標等のデータは履歴制御部7に送られ、履歴制御
部7の制御によって履歴記憶部8に記憶される。
The CAD processing device 2 includes an input control section 4, a creation / edit processing section 5, a display control section 6, a history control section 7,
It comprises a history storage unit 8. CAD processor 2
In, the contents input from the input device 1 are analyzed by the input control unit 4, and the creation / editing processing unit 5 executes the instructions analyzed by the input control unit 4. Data such as commands and coordinates analyzed by the input control unit 4 is sent to the history control unit 7 and stored in the history storage unit 8 under the control of the history control unit 7.

【0041】また、入力装置1から実行されたオペレー
ションを取消してそのオペレーションの実行前のデータ
を復元するアンドウ(UNDO)命令やアンドウ命令を
実行する前のデータを復元するリドウ(REDO)命令
が入力されると、入力制御部4はそれらアンドウ命令や
リドウ命令を履歴制御部7に送る。
Also, an UNDO instruction for canceling the operation executed from the input device 1 and restoring the data before the execution of the operation, and a REDO instruction for restoring the data before executing the AND instruction are input. Then, the input control unit 4 sends the AND instruction and the REDO instruction to the history control unit 7.

【0042】このとき、作成・編集処理部5は履歴記憶
部8に記憶された情報を基に履歴の実行あるいは取消し
を行う。作成・編集処理部5で処理された結果は表示制
御部6の制御によって表示装置3に表示される。
At this time, the creation / editing processing unit 5 executes or cancels the history based on the information stored in the history storage unit 8. The result processed by the creation / editing processing unit 5 is displayed on the display device 3 under the control of the display control unit 6.

【0043】図2は図1の履歴記憶部8に記憶されるデ
ータの構造を示す図である。図2(a)は図1の履歴記
憶部8に記憶される履歴データ11の構造を示す図であ
り、図2(b)は図1の履歴記憶部8に記憶される分岐
データ12の構造を示す図であり、図2(c)は図1の
履歴記憶部8に記憶されるデータ値13の構造を示す図
である。
FIG. 2 is a diagram showing the structure of data stored in the history storage unit 8 of FIG. 2A is a diagram showing a structure of history data 11 stored in the history storage unit 8 of FIG. 1, and FIG. 2B is a structure of branch data 12 stored in the history storage unit 8 of FIG. FIG. 2C is a diagram showing the structure of the data value 13 stored in the history storage unit 8 of FIG. 1.

【0044】図2(a)において、履歴データ11は命
令の内容を示すコマンド名11aと、データ値13の格
納位置を示すデータ値アドレス11bと、命令に関する
属性11cと、一つ前の履歴データの格納位置を示す前
履歴データアドレス11dと、分岐データの格納位置を
示す分岐データアドレス11eと、次に行われる履歴デ
ータの格納位置を示す次履歴データアドレス11fとか
ら構成されている。
In FIG. 2A, the history data 11 is a command name 11a indicating the contents of an instruction, a data value address 11b indicating the storage position of the data value 13, an attribute 11c related to the instruction, and the previous history data. Of the previous history data address 11d indicating the storage position of the branch data, the branch data address 11e indicating the storage position of the branch data, and the next history data address 11f indicating the storage position of the history data to be performed next.

【0045】図2(b)において、分岐データ12は分
岐が行われた順番を示す分岐ID番号12aと、分岐先
の履歴データを示す履歴データアドレス12bと、次の
分岐データの格納位置を示す次分岐データアドレス12
cとから構成されている。
In FIG. 2B, the branch data 12 indicates a branch ID number 12a indicating the order of branching, a history data address 12b indicating history data of a branch destination, and a storage position of the next branch data. Next branch data address 12
c.

【0046】図2(c)において、データ値13は作成
・編集処理部5で処理された図面要素の内容を示すデー
タ13aと、このデータ13aに連続する次のデータの
格納位置を示す次データ値アドレス13bとから構成さ
れている。
In FIG. 2C, the data value 13 is the data 13a showing the contents of the drawing element processed by the creation / editing processing section 5 and the next data showing the storage position of the next data continuous to this data 13a. And the value address 13b.

【0047】図3は命令実行時における図1の履歴制御
部7の処理動作を示すフローチャートであり、図4はア
ンドウ命令実行時における図1の履歴制御部7の処理動
作を示すフローチャートであり、図5はリドウ命令実行
時における図1の履歴制御部7の処理動作を示すフロー
チャートである。これら図1〜図5を用いて履歴制御部
7の処理動作について説明する。
FIG. 3 is a flow chart showing the processing operation of the history control unit 7 of FIG. 1 when executing an instruction, and FIG. 4 is a flow chart showing the processing operation of the history control unit 7 of FIG. 1 when executing an AND instruction. FIG. 5 is a flow chart showing the processing operation of the history control unit 7 of FIG. 1 when the REDO instruction is executed. The processing operation of the history control unit 7 will be described with reference to FIGS.

【0048】作成・編集処理部5が作成・編集処理を行
う場合、履歴制御部7はまずアンドウスタック(図示せ
ず)の内容をクリアする(図3ステップS1)。すなわ
ち、履歴制御部7はアンドウスタックの先頭アドレスの
内容に“NULL”を書込むことで、アンドウスタック
の内容をクリアする。
When the creating / editing processing section 5 carries out the creating / editing processing, the history control section 7 first clears the contents of the AND stack (not shown) (step S1 in FIG. 3). That is, the history control unit 7 clears the contents of the ANDO stack by writing "NULL" into the contents of the start address of the ANDO stack.

【0049】次に、履歴制御部7は履歴記憶部8におい
て現在履歴ポインタが示している履歴データ11に次履
歴データアドレス11fがあるかどうかを調べる(図3
ステップS2)。
Next, the history control unit 7 checks in the history storage unit 8 whether or not the history data 11 indicated by the current history pointer has the next history data address 11f (FIG. 3).
Step S2).

【0050】履歴制御部7は次履歴データアドレス11
fが“NULL”コードであれば、つまり次履歴データ
がなければ履歴記憶部8において履歴データ11の領域
を新たに確保する(図3ステップS3)。履歴制御部7
は新たな領域の確保と同時にその新たな領域のアドレス
を得るので、そのアドレスを次履歴データアドレス11
fとする。
The history control unit 7 uses the next history data address 11
If f is a "NULL" code, that is, if there is no next history data, a new area for history data 11 is secured in the history storage unit 8 (step S3 in FIG. 3). History control unit 7
Acquires the address of the new area at the same time that the new area is secured, the address is set to the next history data address 11
f.

【0051】一方、履歴データ11に次履歴データアド
レス11fがあるということは他の領域を確保する必要
がある、つまり分岐して履歴データ11を作成する必要
があるということなので、履歴制御部7は履歴記憶部8
において分岐データ12の領域を新たに確保し(図3ス
テップS4)、確保した領域のアドレスを現在履歴ポイ
ンタが示している履歴データ11の分岐データアドレス
11eに入れる。
On the other hand, the fact that the history data 11 has the next history data address 11f means that another area needs to be secured, that is, the history data 11 needs to be branched to create the history control unit 7. Is the history storage unit 8
In, a new area for the branch data 12 is secured (step S4 in FIG. 3), and the address of the secured area is put into the branch data address 11e of the history data 11 indicated by the current history pointer.

【0052】その後に、履歴制御部7は履歴記憶部8に
おいて確保した分岐データ12の領域の下に新たな履歴
データ11の領域を確保し(図3ステップS5)、確保
した領域のアドレスを分岐データ12の履歴データアド
レス12bに入れる。
After that, the history control unit 7 secures a new area of the history data 11 under the area of the branch data 12 secured in the history storage unit 8 (step S5 in FIG. 3), and branches the address of the secured area. It is put in the history data address 12b of the data 12.

【0053】履歴制御部7はステップS3及びステップ
S5で確保した履歴データ11のアドレスを履歴ポイン
タに指定する(図3ステップS6)。履歴制御部7は履
歴ポインタが示す履歴データ11の領域に命令のコマン
ド名11aと属性11cとを書込む(図3ステップS
7)。
The history control unit 7 designates the address of the history data 11 secured in steps S3 and S5 as a history pointer (step S6 in FIG. 3). The history control unit 7 writes the command name 11a and the attribute 11c of the instruction in the area of the history data 11 indicated by the history pointer (step S in FIG. 3).
7).

【0054】このとき同時に、履歴制御部7は履歴記憶
部8にデータ値13の領域を確保して座標等のデータ1
3aを保存するとともに、そのデータ値13のアドレス
を履歴ポインタが示す履歴データ11のデータ値アドレ
ス11bに、また予め別に保存した一つ前の履歴データ
のアドレスを履歴ポインタが示す履歴データ11の前履
歴データアドレス11dに夫々書込む。この場合、履歴
制御部7は履歴ポインタが示す履歴データ11の分岐デ
ータアドレス11e及び次履歴データアドレス11fに
“NULL”コードを書込む。
At the same time, the history control unit 7 secures an area for the data value 13 in the history storage unit 8 and stores the data 1 such as coordinates.
3a is stored, the address of the data value 13 is stored in the data value address 11b of the history data 11 indicated by the history pointer, and the address of the previous history data separately stored in advance is stored in front of the history data 11 indicated by the history pointer. Write to the history data address 11d, respectively. In this case, the history control unit 7 writes the "NULL" code in the branch data address 11e and the next history data address 11f of the history data 11 indicated by the history pointer.

【0055】履歴データ11の書込み後、履歴制御部7
は作成・編集処理部5に作成・編集処理の実行を行わせ
る(図3ステップS8)。
After writing the history data 11, the history control unit 7
Causes the creation / editing processing unit 5 to execute the creation / editing process (step S8 in FIG. 3).

【0056】入力制御部4を通して入力装置1からアン
ドウ処理の命令が与えられると、履歴制御部7はまず履
歴ポインタが示す履歴データ11の分岐データアドレス
11eが“NULL”コードであるか否かを調べる(図
4ステップS11)。この処理は履歴データ11が分岐
しているか否かを調べる処理である。
When an AND processing command is given from the input device 1 through the input control unit 4, the history control unit 7 first determines whether or not the branch data address 11e of the history data 11 indicated by the history pointer is a "NULL" code. Check (step S11 in FIG. 4). This process is a process of checking whether or not the history data 11 is branched.

【0057】その分岐データアドレス11eが“NUL
L”コードであれば、履歴制御部7はアンドウスタック
の最新のフラグが“1”であるかどうかを調べる(図4
ステップS12)。この処理は直前に行ったアンドウ処
理が、その命令の実行で図面を復元させたものであるか
どうかを調べる処理である。
The branch data address 11e is "NUL.
If it is the L ”code, the history control unit 7 checks whether the latest flag of the ANDO stack is“ 1 ”(FIG. 4).
Step S12). This process is a process of checking whether the AND process performed immediately before is a process in which the drawing is restored by executing the command.

【0058】アンドウスタックの最新のフラグが“0”
または“NULL”コードであれば通常に命令の取消し
処理を行うアンドウ処理なので、履歴制御部7はアンド
ウスタックに履歴ポインタが示すアドレスを書込み、そ
のフラグに“0”を書込む(図4ステップS13)。そ
の後に、履歴制御部7は履歴ポインタが示す履歴データ
の内容を取消す処理を作成・編集処理部5に行わせるよ
う処理する(図4ステップS14)。
The latest flag of Ando stack is "0".
Alternatively, if it is a "NULL" code, since it is an AND process that normally cancels an instruction, the history control unit 7 writes the address indicated by the history pointer in the AND stack and writes "0" in the flag (step S13 in FIG. 4). ). After that, the history control unit 7 causes the creation / editing processing unit 5 to perform a process of canceling the contents of the history data indicated by the history pointer (step S14 in FIG. 4).

【0059】履歴制御部7は履歴ポインタに、取消した
履歴データ11の前履歴データアドレス11dのアドレ
スを指定する(図4ステップS15)。つまり、履歴制
御部7は取消した履歴データ11の一つ前の履歴データ
が履歴ポインタで示されるようにする。
The history control unit 7 designates the address of the previous history data address 11d of the canceled history data 11 in the history pointer (step S15 in FIG. 4). That is, the history control unit 7 causes the history data immediately before the canceled history data 11 to be indicated by the history pointer.

【0060】一方、ステップS11で履歴ポインタが示
す履歴データ11の分岐データアドレス11eが“NU
LL”コードでないと判定されると、履歴制御部7は履
歴ポインタが示す履歴データから前履歴データの方向ま
たは次履歴データの方向、あるいは分岐データの方向に
夫々前履歴データまたは次履歴データ、あるいは分岐デ
ータがなくなるまで辿り、それらの一覧を表示する(図
4ステップS16)。
On the other hand, in step S11, the branch data address 11e of the history data 11 indicated by the history pointer is "NU".
If it is determined that the LL "code is not set, the history control unit 7 moves the history data indicated by the history pointer in the direction of the previous history data or the direction of the next history data, or in the direction of the branch data, respectively. It traces until there is no branch data and displays a list of them (step S16 in FIG. 4).

【0061】すなわち、履歴制御部7は履歴ポインタが
示す履歴データから履歴データアドレスまたは次履歴デ
ータアドレス、あるいは分岐データアドレスが“NUL
L”コードとなるまで辿り、それらの一覧を表示する。
That is, the history control unit 7 determines that the history data address or the next history data address or the branch data address is "NUL" from the history data indicated by the history pointer.
It traces until it becomes L "code, and displays the list.

【0062】この一覧表示された内容を基にオペレータ
が分岐先を選択入力すると(図4ステップS17)、履
歴制御部7はオペレータからの選択入力が前履歴データ
アドレス11dを選択したものかどうかを調べる(図4
ステップS18)。
When the operator selects and inputs a branch destination based on the displayed contents (step S17 in FIG. 4), the history control unit 7 determines whether the selection input from the operator is the previous history data address 11d. Examine (Figure 4
Step S18).

【0063】履歴制御部7はオペレータからの選択入力
が前履歴データアドレス11dを選択したものであれ
ば、通常に命令の取消し処理を行うアンドウ処理と判断
し、ステップS13にてアンドウスタックに履歴ポイン
タが示すアドレスを書込み、そのフラグに“0”を書込
む。
If the operator's selection input selects the previous history data address 11d, the history control unit 7 determines that it is an AND processing which normally cancels an instruction, and in step S13, a history pointer is displayed on the AND stack. The address indicated by is written, and "0" is written in the flag.

【0064】また、履歴制御部7はオペレータからの選
択入力が前履歴データアドレス11dを選択したもので
なければ、履歴ポインタが示す履歴データの内容が実行
されたものであり、しかもその取消しも行わないので、
次履歴データあるいは分岐データの履歴データアドレス
が示す履歴データをアンドウ処理で復元させるものと判
断し、履歴ポインタにその復元させる履歴データのアド
レスを指定する(図4ステップS19)。
If the operator's selection input does not select the previous history data address 11d, the history control unit 7 has executed the contents of the history data indicated by the history pointer and also cancels it. Since there is no,
It is determined that the history data indicated by the history data address of the next history data or the branch data is restored by the AND processing, and the address of the history data to be restored is designated in the history pointer (step S19 in FIG. 4).

【0065】履歴制御部7はアンドウスタックに履歴ポ
インタが示すアドレスを書込み、そのフラグに命令の実
行によってアンドウ処理を実現することを示す“1”を
書込む(図4ステップS20)。その後に、履歴制御部
7は作成・編集処理部5に作成・編集処理の実行を行わ
せる(図4ステップS21)。
The history control unit 7 writes the address indicated by the history pointer in the AND stack and writes "1" in the flag to indicate that the AND processing is realized by executing the instruction (step S20 in FIG. 4). After that, the history control unit 7 causes the creation / editing processing unit 5 to execute the creation / editing process (step S21 in FIG. 4).

【0066】ここで、リドウ処理はアンドウ処理が行わ
れてから作成・編集処理が行われるまでの間に行うこと
ができる処理である。つまり、リドウ処理はアンドウ処
理の取消しを行う処理である。
Here, the redo process is a process that can be performed after the undo process is performed and before the creation / editing process is performed. That is, the redou process is a process of canceling the undo process.

【0067】そこで、入力制御部4を通して入力装置1
からリドウ処理の命令が与えられると、履歴制御部7は
まずアンドウスタックに書込まれたアドレスとフラグと
を読出し(図5ステップS31)、履歴ポインタにその
アドレスを指定する(図5ステップS32)。
Therefore, the input device 1 is operated through the input control unit 4.
When a command for redou processing is given from, the history control unit 7 first reads the address and flag written in the ANDO stack (step S31 in FIG. 5), and specifies the address in the history pointer (step S32 in FIG. 5). .

【0068】次に、履歴制御部7は読出したフラグが
“1”かどうかを判断し(図5ステップS33)、フラ
グが“1”であれば履歴ポインタが示す履歴データの内
容を取消す処理を作成・編集処理部5に行わせ(図5ス
テップS34)、フラグが“1”でなければ命令の実行
を作成・編集処理部5に行わせる(図5ステップS3
4)。
Next, the history control unit 7 determines whether or not the read flag is "1" (step S33 in FIG. 5). If the flag is "1", the history data indicated by the history pointer is deleted. The creation / editing processing unit 5 is caused to perform (step S34 in FIG. 5), and if the flag is not “1”, the creation / editing processing unit 5 is caused to execute the instruction (step S3 in FIG. 5).
4).

【0069】図6(a)は本発明の一実施例で命令を3
回行った時の履歴データの内容を示す図であり、図6
(b)は図6(a)の履歴データが記憶された時の表示
内容を示す図である。図7(a)は図6に示す状態でア
ンドウ処理を行った時の履歴データの内容を示す図であ
り、図7(b)は図7(a)の履歴データが記憶された
時の表示内容を示す図である。
FIG. 6 (a) shows an embodiment of the present invention in which three instructions are used.
It is a figure which shows the content of the historical data when it went to FIG.
6B is a diagram showing display contents when the history data of FIG. 6A is stored. FIG. 7A is a diagram showing the contents of history data when the AND process is performed in the state shown in FIG. 6, and FIG. 7B is a display when the history data of FIG. 7A is stored. It is a figure which shows the content.

【0070】図8(a)は図7に示す状態で命令を行っ
た時の履歴データの内容を示す図であり、図8(b)は
図8(a)の履歴データが記憶された時の表示内容を示
す図である。図9(a)は図8に示す状態で図面の状態
を図6に戻した時の履歴データの内容を示す図であり、
図9(b)は図9(a)の履歴データが記憶された時の
表示内容を示す図である。
FIG. 8A is a diagram showing the contents of history data when an instruction is issued in the state shown in FIG. 7, and FIG. 8B is when the history data of FIG. 8A is stored. It is a figure which shows the display content of. FIG. 9A is a diagram showing the contents of history data when the state of the drawing is returned to FIG. 6 in the state shown in FIG.
FIG. 9B is a diagram showing display contents when the history data of FIG. 9A is stored.

【0071】図10(a)は図9に示す状態で図面の状
態を最初の命令まで戻した時の履歴データの内容を示す
図であり、図10(b)は図10(a)の履歴データが
記憶された時の表示内容を示す図である。図11(a)
は1回分岐された状態で1度アンドウ処理を行ってから
新たに命令を行った時の履歴データの内容を示す図であ
り、図11(b)は図11(a)の履歴データが記憶さ
れた時の表示内容を示す図である。
FIG. 10A is a diagram showing the contents of history data when the state of the drawing is returned to the first instruction in the state shown in FIG. 9, and FIG. 10B is the history of FIG. 10A. It is a figure which shows the display content when data are memorize | stored. FIG. 11 (a)
11B is a diagram showing the contents of history data when a new instruction is performed after performing an AND processing once in a state of branching once, and FIG. 11B stores the history data of FIG. 11A. It is a figure which shows the display content at the time of being.

【0072】これら図1〜図11を用いて本発明の一実
施例による電気設計図面作成時の処理について説明す
る。
A process for creating an electrical design drawing according to an embodiment of the present invention will be described with reference to FIGS.

【0073】図6は命令を3回実行した状態を示してお
り、図6(b)に示すように、FFシンボル61を座標
(PX,PY)に配置した後に信号線62を座標(QX
1 ,QY1 )と座標(QX2 ,QY2 )との間に配線
し、FFシンボル63を座標(RX,RY)に配置した
状態を示している。
FIG. 6 shows a state in which the instruction is executed three times. As shown in FIG. 6B, after the FF symbol 61 is arranged at the coordinates (PX, PY), the signal line 62 is arranged at the coordinates (QX).
1 and QY1) and the coordinates (QX2, QY2) are wired, and the FF symbol 63 is arranged at the coordinates (RX, RY).

【0074】この場合、履歴記憶部8には、図6(a)
に示すような履歴データが記憶される。すなわち、履歴
21は履歴データ31〜33で構成されている。ここ
で、履歴ポインタ23は命令の実行や取消し処理が行わ
れてから最後に実行されたことになる現在の履歴データ
33のアドレスHAD3を示すポインタである。
In this case, the history storage unit 8 is stored in FIG.
The history data as shown in is stored. That is, the history 21 is composed of history data 31 to 33. Here, the history pointer 23 is a pointer indicating the address HAD3 of the current history data 33 that has been executed last since the execution or cancellation processing of the instruction was performed.

【0075】履歴データアドレスHAD1の履歴データ
31にはFFシンボル61を座標(PX,PY)に配置
するときの命令内容を示すコマンド名「SYMBOL」
と、データ値の格納位置を示すデータ値アドレスDAD
1と、命令に関する属性「FF」と、一つ前の履歴デー
タの格納位置を示す前履歴データアドレス「NULL」
と、分岐データの格納位置を示す分岐データアドレス
「NULL」と、次に行われる履歴データの格納位置を
示す次履歴データアドレスHAD2とが記憶されてい
る。
In the history data 31 of the history data address HAD1, the command name "SYMBOL" indicating the instruction content when the FF symbol 61 is arranged at the coordinates (PX, PY).
And a data value address DAD indicating the storage position of the data value
1, the attribute “FF” related to the command, and the previous history data address “NULL” indicating the storage location of the previous history data.
A branch data address “NULL” indicating the storage position of the branch data and a next history data address HAD2 indicating the storage position of the history data to be performed next are stored.

【0076】履歴データアドレスHAD2の履歴データ
32には信号線62を座標(QX1,QY1 )と座標
(QX2 ,QY2 )との間に配線するときの命令内容を
示すコマンド名「SIGNAL」と、データ値の格納位
置を示すデータ値アドレスDAD3と、命令に関する属
性「SINGLE」と、一つ前の履歴データの格納位置
を示す前履歴データアドレスHAD1と、分岐データの
格納位置を示す分岐データアドレス「NULL」と、次
に行われる履歴データの格納位置を示す次履歴データア
ドレスHAD3とが記憶されている。
In the history data 32 of the history data address HAD2, the command name "SIGNAL" indicating the content of the command when the signal line 62 is wired between the coordinates (QX1, QY1) and the coordinates (QX2, QY2), and the data A data value address DAD3 indicating a storage position of a value, an attribute “SINGLE” related to an instruction, a previous history data address HAD1 indicating a storage position of previous history data, and a branch data address “NULL” indicating a storage position of branch data. , And the next history data address HAD3 indicating the storage position of the history data to be performed next is stored.

【0077】履歴データアドレスHAD3の履歴データ
33にはFFシンボル63を座標(RX,RY)に配置
するときの命令内容を示すコマンド名「SYMBOL」
と、データ値の格納位置を示すデータ値アドレスDAD
7と、命令に関する属性「FF」と、一つ前の履歴デー
タの格納位置を示す前履歴データアドレスHAD2と、
分岐データの格納位置を示す分岐データアドレス「NU
LL」と、次に行われる履歴データの格納位置を示す次
履歴データアドレス「NULL」とが記憶されている。
In the history data 33 of the history data address HAD3, the command name "SYMBOL" indicating the content of the instruction when the FF symbol 63 is arranged at the coordinates (RX, RY).
And a data value address DAD indicating the storage position of the data value
7, an attribute “FF” related to the command, a previous history data address HAD2 indicating the storage position of the immediately previous history data,
Branch data address “NU indicating the storage location of branch data
LL ”and the next history data address“ NULL ”indicating the storage position of the history data to be performed next are stored.

【0078】アンドウスタック22はアンドウ処理が行
われた時に該当する履歴データのアドレスと、リドウ時
に履歴データの内容を実行するか取消すかを示すフラグ
とを格納するスタックである。図6(a)に示す状態で
はアンドウ処理が行われていないので、アンドウスタッ
ク22には空であることを示す“NULL”コードが入
っている。
The ANDO stack 22 is a stack for storing the address of the history data corresponding to the AND processing and a flag indicating whether to execute or cancel the contents of the history data at the time of redo. In the state shown in FIG. 6A, since the AND processing is not performed, the AND stack 22 contains a "NULL" code indicating that it is empty.

【0079】データ値列24はデータ値41〜48で構
成されている。データ値アドレスDAD1のデータ値4
1にはFFシンボル61を配置する座標PXと、次のデ
ータの格納位置を示す次データ値アドレスDAD2とが
記憶され、データ値アドレスDAD2のデータ値42に
はFFシンボル61を配置する座標PYと、次のデータ
の格納位置を示す次データ値アドレス「NULL」とが
記憶されている。
The data value sequence 24 is composed of data values 41 to 48. Data value of data value address DAD1 4
1 stores a coordinate PX at which the FF symbol 61 is arranged and a next data value address DAD2 indicating a storage position of the next data, and a coordinate PY at which the FF symbol 61 is arranged at the data value 42 of the data value address DAD2. , The next data value address “NULL” indicating the storage position of the next data is stored.

【0080】データ値アドレスDAD3のデータ値43
には信号線62を配線する始点座標QX1 と、次のデー
タの格納位置を示す次データ値アドレスDAD4とが記
憶され、データ値アドレスDAD4のデータ値44には
信号線62を配線する始点座標QY1 と、次のデータの
格納位置を示す次データ値アドレスDAD5とが記憶さ
れている。
Data value of the data value address DAD3 43
The starting point coordinate QX1 for wiring the signal line 62 and the next data value address DAD4 indicating the storage position of the next data are stored in the data value 44 of the data value address DAD4. And the next data value address DAD5 indicating the storage position of the next data are stored.

【0081】データ値アドレスDAD5のデータ値45
には信号線62を配線する終点座標QX2 と、次のデー
タの格納位置を示す次データ値アドレスDAD6とが記
憶され、データ値アドレスDAD26のータ値46には
信号線62を配線する終点座標QY2 と、次のデータの
格納位置を示す次データ値アドレス「NULL」とが記
憶されている。
Data value of data value DAD5 45
Stores the end point coordinate QX2 for wiring the signal line 62 and the next data value address DAD6 indicating the storage position of the next data. The end point coordinate for wiring the signal line 62 at the data value 46 of the data value address DAD26. QY2 and the next data value address "NULL" indicating the storage position of the next data are stored.

【0082】データ値アドレスDAD7のデータ値47
にはFFシンボル63を配置する座標RXと、次のデー
タの格納位置を示す次データ値アドレスDAD8とが記
憶され、データ値アドレスDAD8のデータ値48には
FFシンボル63を配置する座標RYと、次のデータの
格納位置を示す次データ値アドレス「NULL」とが記
憶されている。
Data value of the data value address DAD7 47
The coordinate RX for arranging the FF symbol 63 and the next data value address DAD8 indicating the storage position of the next data are stored, and the coordinate RY for arranging the FF symbol 63 at the data value 48 of the data value address DAD8. The next data value address “NULL” indicating the storage position of the next data is stored.

【0083】命令が実行されると、履歴制御部7は履歴
記憶部8の履歴21に履歴データ31〜33の領域を確
保し、ここに命令と属性とを書込む。このとき、履歴制
御部7は履歴データ31〜33を、各々のデータを互い
に関連付けるリスト構造をとって記憶する。
When the command is executed, the history control unit 7 secures the area of the history data 31 to 33 in the history 21 of the history storage unit 8 and writes the command and the attribute therein. At this time, the history control unit 7 stores the history data 31 to 33 in a list structure that associates each data with each other.

【0084】次に、履歴制御部7は履歴記憶部8のデー
タ値列24にデータ値41〜48の領域を確保し、そこ
に座標等のデータを書込む。ここで、データ値41〜4
8の領域の数が命令によって異なってくるので、履歴制
御部7は命令毎にデータ値41〜48の領域の数を変更
し、リスト構造をとって記憶する。
Next, the history control unit 7 secures areas for the data values 41 to 48 in the data value sequence 24 of the history storage unit 8 and writes the data such as coordinates therein. Here, the data values 41 to 4
Since the number of areas of 8 differs depending on the instruction, the history control unit 7 changes the number of areas of the data values 41 to 48 for each instruction and stores the list structure.

【0085】図6(a)に示すような履歴21の場合、
最初にシンボルを配置する命令が与えられるので、履歴
制御部7は履歴21のアドレスHAD1に履歴データ3
1の領域を確保し、確保した領域にシンボル配置の命令
であることを示すコマンド名「SYMBOL」と、配置
するシンボルがフリップフロップであることを示す属性
「FF」とを書込む。
In the case of history 21 as shown in FIG. 6A,
Since the command for arranging the symbols is given first, the history control unit 7 sets the history data 3 to the address HAD1 of the history 21.
The area 1 is reserved, and the command name “SYMBOL” indicating that it is a symbol arrangement instruction and the attribute “FF” indicating that the arranged symbol is a flip-flop are written in the reserved area.

【0086】続いて、履歴制御部7はデータ値列24の
アドレスDAD1,DAD2にデータ値41,42の領
域を確保し、確保した領域にシンボルの配置位置を示す
X座標値「PX」及びY座標値「PY」を書込む。
Subsequently, the history control unit 7 secures the areas of the data values 41 and 42 in the addresses DAD1 and DAD2 of the data value sequence 24, and the X coordinate value "PX" and Y indicating the arrangement position of the symbol in the secured area. Write the coordinate value "PY".

【0087】この場合、履歴制御部7はアドレスDAD
1の領域に次のデータ値アドレスとしてアドレスDAD
2を入れ、データ値42に次の領域がないのでアドレス
DAD2の領域に次のデータ値アドレスとして「NUL
L」を入れる。
In this case, the history control unit 7 uses the address DAD
Address DAD as the next data value address in area 1
2 is entered and there is no next area in the data value 42, so "NUL" is set as the next data value address in the area of the address DAD2.
Insert "L".

【0088】履歴制御部7は命令が一度行われる毎に、
上記の形態で命令の内容を履歴記憶部8に記憶する。
The history control unit 7 makes a command every time an instruction is issued.
The content of the instruction is stored in the history storage unit 8 in the above-described form.

【0089】履歴データの前履歴データアドレスには一
つ前に行われた命令の内容が格納されている履歴データ
のアドレスを入れる。図6(a)に示す履歴21の場
合、アドレスHAD1の履歴データ31は最初に実行さ
れた命令の履歴なので、その前履歴データアドレスに
「NULL」が入っている。
In the previous history data address of history data, the address of the history data in which the content of the previous command is stored is entered. In the case of the history 21 shown in FIG. 6A, since the history data 31 of the address HAD1 is the history of the instruction executed first, "NULL" is entered in the previous history data address.

【0090】また、アドレスHAD2の履歴データ32
の前履歴データアドレスには一つ前の履歴データ31の
アドレスHAD1が、アドレスHAD3の履歴データ3
3の前履歴データアドレスには一つ前の履歴データ32
のアドレスHAD2が夫々入っている。
Further, the history data 32 of the address HAD2
The address HAD1 of the previous history data 31 and the history data 3 of the address HAD3 are the previous history data addresses of
The previous history data address of 3 has the previous history data 32.
Addresses HAD2 of each are entered.

【0091】図6(a)に示す履歴21の場合、各履歴
データ31〜33の分岐データアドレスには分岐が行わ
れていないので、夫々「NULL」が入っている。
In the case of the history record 21 shown in FIG. 6A, since the branch data addresses of the history record data 31 to 33 are not branched, "NULL" is entered in each of them.

【0092】履歴データの次履歴データアドレスには分
岐データアドレスが示す分岐データの履歴データを使わ
ない限り、次に行う履歴データのアドレスが格納され
る。図6(a)に示す履歴21の場合、アドレスHAD
1の履歴データ31には次履歴データアドレスHAD2
が、アドレスHAD2の履歴データ32には次履歴デー
タアドレスHAD3が夫々入っている。アドレスHAD
3の履歴データ33は最後に行われた命令の履歴データ
なので、「NULL」が入っている。
The address of the next history data is stored in the next history data address of the history data unless the history data of the branch data indicated by the branch data address is used. In the case of the history 21 shown in FIG. 6A, the address HAD
The history data 31 of 1 has the following history data address HAD2.
However, the history data 32 of the address HAD2 contains the next history data address HAD3, respectively. Address HAD
Since the history data 33 of No. 3 is the history data of the last executed instruction, "NULL" is included.

【0093】図7は図6の状態から一回アンドウ命令を
行った状態を示しており、図7(b)に示すように、図
6(b)に示す状態から座標(RX,RY)に配置した
FFシンボル63を取り除いた状態を示している。
FIG. 7 shows a state in which an AND instruction has been performed once from the state shown in FIG. 6, and as shown in FIG. 7B, the state shown in FIG. 6B is changed to coordinates (RX, RY). It shows a state in which the arranged FF symbols 63 are removed.

【0094】この場合、図6(a)に示す状態で、アン
ドウ命令が与えられると、履歴ポインタ23が示すアド
レスHAD3をアンドウスタック22に書込み、このと
き同時に、アンドウスタック22のフラグにはリドウ時
に履歴データの内容を実行するデータであることを示す
“0”が書込まれる。
In this case, when the AND instruction is given in the state shown in FIG. 6A, the address HAD3 indicated by the history pointer 23 is written to the AND stack 22, and at the same time, the flag of the AND stack 22 is set at the time of the REDO. "0" is written to indicate that the contents of the history data are data to be executed.

【0095】この場合、作成・編集処理部5は履歴デー
タ33の内容がFFシンボル63を座標(RX,RY)
に配置する命令なので、座標(RX,RY)に配置され
たFFシンボル63を消去する命令を行う。その後に、
履歴ポインタ23には履歴データ33の前履歴データア
ドレスHAD2が指定される。
In this case, the creation / edit processing unit 5 determines that the contents of the history data 33 are the coordinates (RX, RY) of the FF symbol 63.
Since it is an instruction to be placed at, the instruction to delete the FF symbol 63 placed at the coordinates (RX, RY) is performed. After that,
The previous history data address HAD2 of the history data 33 is designated in the history pointer 23.

【0096】図8は図7の状態からシンボル配置の命令
を行った状態を示しており、図8(b)に示すように、
図7(b)に示す状態から座標(SX,SY)にAND
シンボル64を配置した状態を示している。
FIG. 8 shows a state in which a symbol arrangement instruction is issued from the state shown in FIG. 7, and as shown in FIG.
AND the coordinates (SX, SY) from the state shown in FIG.
The state where the symbols 64 are arranged is shown.

【0097】図7(a)に示す状態で、シンボル配置の
命令が与えられると、履歴制御部7はアンドウスタック
22をクリアし、履歴記憶部8の履歴21のアドレスN
AD1に分岐データ34の領域を確保し、履歴ポインタ
23が示すアドレスHAD2の履歴データ32の分岐デ
ータアドレスにNAD1を格納する。
In the state shown in FIG. 7A, when a symbol arrangement command is given, the history control unit 7 clears the AND stack 22, and the history storage unit 8 stores the address N of the history 21.
The area of the branch data 34 is secured in AD1, and NAD1 is stored in the branch data address of the history data 32 of the address HAD2 indicated by the history pointer 23.

【0098】続いて、履歴制御部7は履歴記憶部8の履
歴21のアドレスHAD4に履歴データ35の領域を確
保し、ANDシンボル64を配置する命令の内容を書込
む。その後、履歴制御部7は分岐データアドレスNAD
1の分岐データ34の履歴データアドレスに履歴データ
35のアドレスHAD4を格納し、履歴ポインタ23に
履歴データ35のアドレスHAD4を指定する。
Subsequently, the history control unit 7 secures the area of the history data 35 in the address HAD4 of the history 21 of the history storage unit 8 and writes the content of the instruction to place the AND symbol 64. After that, the history control unit 7 determines the branch data address NAD.
The address HAD4 of the history data 35 is stored in the history data address of the branch data 34 of 1, and the address HAD4 of the history data 35 is designated in the history pointer 23.

【0099】つまり、履歴制御部7は履歴21のアドレ
スNAD1に分岐データ34の領域を確保し、確保した
領域に分岐が行われた順番を示す分岐ID番号「1」
と、対応する履歴データ35のアドレスHAD4とを書
込む。この場合、分岐データ34の次に分岐デーがない
ので、次分岐データアドレスに「NULL」が書込まれ
る。
That is, the history control unit 7 secures the area of the branch data 34 at the address NAD1 of the history 21, and the branch ID number "1" indicating the order of branching in the secured area.
And the address HAD4 of the corresponding history data 35 are written. In this case, since there is no branch data next to the branch data 34, "NULL" is written in the next branch data address.

【0100】また、履歴制御部7は履歴21のアドレス
HAD4に履歴データ35の領域を確保し、確保した領
域にシンボル配置の命令であることを示すコマンド名
「SYMBOL」と、配置するシンボルがアンドゲート
であることを示す属性「AND」とを書込む。
Further, the history control unit 7 secures the area of the history data 35 at the address HAD4 of the history 21, and the command name "SYMBOL" indicating that it is an instruction of symbol placement in the secured area and the symbol to be placed is AND. Write the attribute "AND" indicating that it is a gate.

【0101】さらに、履歴制御部7はデータ値列24の
アドレスDAD9,DAD10にデータ値49,50の
領域を確保し、確保した領域にシンボルの配置位置を示
すX座標値「SX」及びY座標値「SY」を書込む。
Further, the history control unit 7 secures the areas of the data values 49 and 50 in the addresses DAD9 and DAD10 of the data value sequence 24, and the X coordinate value "SX" and the Y coordinate indicating the arrangement position of the symbol in the secured area. Write the value "SY".

【0102】このとき、履歴制御部7はアドレスDAD
9の領域に次のデータ値アドレスとしてアドレスDAD
10を入れ、データ値50に次の領域がないのでアドレ
スDAD10の領域に次のデータ値アドレスとして「N
ULL」を入れる。
At this time, the history control unit 7 sets the address DAD
Address DAD as the next data value address in area 9
10 is entered and there is no next area in the data value 50, the area of the address DAD10 is set to "N" as the next data value address.
Insert "ULL".

【0103】一方、履歴データ35の前履歴データアド
レスには一つ前に行われた命令の内容が格納されている
履歴データ32のアドレスHAD2が入っている。ま
た、履歴データ35の分岐データアドレスには分岐が行
われていないので「NULL」が、履歴データ35の次
履歴データアドレスには最後に行われた命令の履歴デー
タなので「NULL」が夫々入っている。
On the other hand, the previous history data address of the history data 35 contains the address HAD2 of the history data 32 in which the content of the instruction executed immediately before is stored. Since the branch data address of the history data 35 is not branched, "NULL" is entered, and the next history data address of the history data 35 is the history data of the last executed instruction, so "NULL" is entered. There is.

【0104】図9は図8の状態から二回アンドウ命令を
行った状態を示しており、図9(b)に示すように、図
8(b)に示す状態から座標(SX,SY)に配置した
ANDシンボル64を取り除き、座標(RX,RY)に
FFシンボル63を配置した状態を示している。但し、
2回目のアンドウ命令は分岐している履歴データへのア
ンドウ命令である。
FIG. 9 shows a state in which an AND instruction is performed twice from the state shown in FIG. 8. As shown in FIG. 9B, the state shown in FIG. 8B is changed to coordinates (SX, SY). It shows a state in which the arranged AND symbols 64 are removed and the FF symbols 63 are arranged at the coordinates (RX, RY). However,
The second ANDO instruction is an AND instruction to the branched history data.

【0105】図8(a)に示す状態で、アンドウ命令が
与えられると、履歴制御部7は履歴ポインタ23が示す
アドレスHAD4の履歴データ35の内容を取消す処理
を行い、アンドウスタック22にアドレスHAD4を書
込むとともに、アンドウスタック22のフラグにリドウ
時に履歴データの内容を実行するデータであることを示
す“0”を書込む。また、履歴制御部7は履歴ポインタ
23に履歴データ35の前履歴データアドレスHAD2
を指定する。
When an AND instruction is given in the state shown in FIG. 8A, the history control unit 7 performs processing to delete the contents of the history data 35 at the address HAD4 indicated by the history pointer 23, and the AND stack 22 receives the address HAD4. And the flag of the AND stack 22 is written with "0" indicating that the history data is the data to be executed at the time of redo. Further, the history control unit 7 causes the history pointer 23 to display the previous history data address HAD2 of the history data 35.
Is specified.

【0106】この状態でさらにアンドウ命令が与えられ
ると、履歴制御部7は履歴ポインタ23が示すアドレス
HAD2の履歴データ32の分岐データアドレスにNA
D1が入っているので、表示装置3を通してどの履歴デ
ータを復元するのかを示す選択入力をオペレータに促
す。
When an AND instruction is further given in this state, the history control unit 7 sets NA to the branch data address of the history data 32 of the address HAD2 indicated by the history pointer 23.
Since D1 is included, the operator is urged to select the history data to be restored through the display device 3.

【0107】その場合、オペレータの選択入力にはアド
レスHAD2の履歴データ32を取消して前履歴データ
アドレスHAD1の履歴データ31に戻る方向と、次履
歴データアドレスHAD3の履歴データ33に進む方向
とが考えられる。
In this case, the operator may select and input the history data 32 of the address HAD2 and return to the history data 31 of the previous history data address HAD1 and the direction of the history data 33 of the next history data address HAD3. To be

【0108】図9では次の履歴データすなわちアドレス
HAD3の履歴データ33の内容を実行することで、図
6(b)に示す図面の状態を図9(b)に示すように再
現することができる。
In FIG. 9, the state of the drawing shown in FIG. 6B can be reproduced as shown in FIG. 9B by executing the following history data, that is, the contents of the history data 33 at the address HAD3. .

【0109】このとき、履歴制御部7は履歴ポインタ2
3にアドレスHAD3を指定し、アンドウスタック22
にアドレスHAD3を書込むとともに、アンドウスタッ
ク22のフラグにリドウ時に履歴データの内容を取消す
ことを示す“1”を書込む。
At this time, the history control unit 7 uses the history pointer 2
Specify address HAD3 in 3 and
In addition to writing the address HAD3 to, the flag of the ANDO stack 22 is written with "1" indicating that the contents of the history data are deleted at the time of redo.

【0110】図10は図9の状態からリドウ命令を一回
行い、さらにアンドウ命令を行って前の履歴データを選
択した状態、あるいは図8の状態から二回アンドウ命令
を行い、二回目のアンドウ処理で前の履歴データを選択
した状態を示している。
In FIG. 10, the REDO instruction is performed once from the state of FIG. 9, the AND instruction is further performed to select the previous history data, or the AND instruction is performed twice from the state of FIG. The state in which the previous history data is selected in the processing is shown.

【0111】すなわち、図10(b)に示すように、図
9(b)に示す状態から座標(RX,RY)に配置した
FFシンボル63及び座標(QX1 ,QY1 )と座標
(QX2 ,QY2 )との間に配線した信号線62を取り
除いた状態、あるいは図8(b)に示す状態から座標
(SX,SY)に配置したANDシンボル64及び座標
(QX1 ,QY1 )と座標(QX2 ,QY2 )との間に
配線した信号線62を取り除いた状態を示している。
That is, as shown in FIG. 10B, the FF symbol 63 and the coordinates (QX1, QY1) and the coordinates (QX2, QY2) arranged at the coordinates (RX, RY) from the state shown in FIG. 9B. And the AND symbol 64 and the coordinates (QX1, QY1) and the coordinates (QX2, QY2) arranged at the coordinates (SX, SY) from the state shown in FIG. It shows a state in which the signal line 62 wired between and is removed.

【0112】つまり、図9(a)のアドレスHAD1の
履歴データ31の内容のみを実行した状態を再現してい
る。また、図10では図9の状態からリドウ命令を一回
行い、さらにアンドウ命令を行って前の履歴データを選
択した状態を示している。
That is, the state in which only the contents of the history data 31 at the address HAD1 in FIG. 9A are executed is reproduced. Further, FIG. 10 shows a state in which a redou command is performed once from the state of FIG. 9 and then an AND command is performed to select the previous history data.

【0113】この場合、アンドウスタック22にはアド
レスHAD4及びアドレスHAD2が、夫々対応するフ
ラグにリドウ時に履歴データの内容を実行することを示
す“0”が書込まれており、二回リドウ命令を実行する
と図8の状態を再現することができる。
In this case, the address HAD4 and the address HAD2 are written in the AND stack 22 and "0" indicating that the contents of the history data are to be executed at the time of redo are written in the corresponding flags, so that the redo instruction is executed twice. When executed, the state of FIG. 8 can be reproduced.

【0114】図11は1回分岐された状態で一回アンド
ウ命令を行ってから新たに命令を行った状態を示してお
り、図11(b)に示すように、FFシンボル61を座
標(PX,PY)に配置してから座標(QX1 ,QY1
)と座標(QX2 ,QY2 )との間に信号線62を配
線し、座標(TX,TY)にNANDシンボル65を配
置した状態を示している。
FIG. 11 shows a state in which an AND instruction has been executed once in the state of branching once, and then a new instruction has been executed. As shown in FIG. 11B, the FF symbol 61 has coordinates (PX). , PY) and then the coordinates (QX1, QY1
) And the coordinates (QX2, QY2), the signal line 62 is wired, and the NAND symbol 65 is arranged at the coordinates (TX, TY).

【0115】すなわち、一回分岐された状態で、履歴ポ
インタ23がアドレスHAD2の履歴データ32を示し
ている場合に作成・編集処理が行われた状態を示してい
る。この場合、作成・編集処理が実行されることでアン
ドウスタック22がクリアされる。
That is, it shows a state in which the creation / editing process has been performed when the history pointer 23 indicates the history data 32 of the address HAD2 in the state of branching once. In this case, the ANDO stack 22 is cleared by executing the creating / editing process.

【0116】一回分岐された状態ではアドレスHAD2
の履歴データ32の分岐データアドレスが「NULL」
ではなく、アドレスNAD1を示し、分岐データ34の
次分岐データアドレスが「NULL」を示している。
Address HAD2 in the state of branching once
The branch data address of the history data 32 of is "NULL"
Instead, the address NAD1 is indicated, and the next branch data address of the branch data 34 indicates "NULL".

【0117】その状態で、シンボル配置の命令が与えら
れると、履歴制御部7はアンドウスタック22をクリア
し、履歴記憶部8の履歴21のアドレスNAD2に分岐
データ36の領域を確保し、履歴ポインタ23が示すア
ドレスNAD1の分岐データ34の次分岐データアドレ
スにNAD2を格納する。
In this state, when a symbol arrangement command is given, the history control unit 7 clears the AND stack 22, secures an area for the branch data 36 at the address NAD2 of the history 21 of the history storage unit 8, and stores the history pointer. NAD2 is stored in the next branch data address of the branch data 34 of the address NAD1 indicated by 23.

【0118】続いて、履歴制御部7は履歴記憶部8の履
歴21のアドレスHAD5に履歴データ37の領域を確
保し、NANDシンボル65を配置する命令の内容を書
込む。その後、履歴制御部7は分岐データアドレスNA
D2の分岐データ36の履歴データアドレスに履歴デー
タ37のアドレスHAD5を格納し、履歴ポインタ23
に履歴データ37のアドレスHAD5を指定する。
Subsequently, the history control unit 7 secures the area of the history data 37 at the address HAD5 of the history 21 of the history storage unit 8 and writes the content of the instruction to arrange the NAND symbol 65. After that, the history control unit 7 determines the branch data address NA
The address HAD5 of the history data 37 is stored in the history data address of the branch data 36 of D2, and the history pointer 23
The address HAD5 of the history data 37 is designated at.

【0119】つまり、履歴制御部7は履歴21のアドレ
スNAD2に分岐データ36の領域を確保し、確保した
領域に分岐が行われた順番を示す分岐ID番号「2」
と、対応する履歴データ37のアドレスHAD5とを書
込む。この場合、分岐データ36の次に分岐データがな
いので、次分岐データアドレスに「NULL」が書込ま
れる。
That is, the history control unit 7 secures the area of the branch data 36 at the address NAD2 of the history 21, and the branch ID number "2" indicating the order of branching in the secured area.
And the address HAD5 of the corresponding history data 37 are written. In this case, since there is no branch data next to the branch data 36, "NULL" is written in the next branch data address.

【0120】また、履歴制御部7は履歴21のアドレス
HAD5に履歴データ37の領域を確保し、確保した領
域にシンボル配置の命令であることを示すコマンド名
「SYMBOL」と、配置するシンボルがナンドゲート
であることを示す属性「NAND」とを書込む。
Further, the history control unit 7 secures the area of the history data 37 at the address HAD5 of the history 21, and the command name "SYMBOL" indicating that it is a symbol placement instruction in the secured area and the symbols to be placed are NAND gates. Write the attribute "NAND" indicating that.

【0121】さらに、履歴制御部7はデータ値列24の
アドレスDAD11,DAD12にデータ値51,52
の領域を確保し、確保した領域にシンボルの配置位置を
示すX座標値「TX」及びY座標値「TY」を書込む。
Further, the history control unit 7 assigns the data values 51, 52 to the addresses DAD11, DAD12 of the data value sequence 24.
Area is secured, and the X coordinate value “TX” and the Y coordinate value “TY” indicating the arrangement position of the symbol are written in the secured area.

【0122】このとき、履歴制御部7はアドレスDAD
11の領域に次のデータ値アドレスとしてアドレスDA
D12を入れ、データ値52に次の領域がないのでアド
レスDAD12の領域に次のデータ値アドレスとして
「NULL」を入れる。
At this time, the history control unit 7 sets the address DAD
Address DA as the next data value address in area 11
D12 is entered and since there is no next area in the data value 52, "NULL" is entered as the next data value address in the area of the address DAD12.

【0123】一方、履歴データ37の前履歴データアド
レスには一つ前に行われた命令の内容が格納されている
履歴データ32のアドレスHAD2が入っている。ま
た、履歴データ37の分岐データアドレスには分岐が行
われていないので「NULL」が、履歴データ37の次
履歴データアドレスには最後に行われた命令の履歴デー
タなので「NULL」が夫々入っている。
On the other hand, the previous history data address of the history data 37 contains the address HAD2 of the history data 32 in which the content of the instruction executed immediately before is stored. Since the branch data address of the history data 37 is not branched, "NULL" is entered, and the next history data address of the history data 37 is the history data of the last executed instruction, so "NULL" is entered. There is.

【0124】図12(a)は本発明の一実施例における
アンドウ及びリドウ可能な状態を示す図であり、図12
(b)及び図12(c)は従来例におけるアンドウ及び
リドウ可能な状態を示す図である。
FIG. 12 (a) is a diagram showing a state in which an undo and redo operation are possible in one embodiment of the present invention.
FIG. 12B and FIG. 12C are diagrams showing a state in which undo and redo can be performed in the conventional example.

【0125】これらの図において、状態は最初にオペ
レーションを行った状態を示し、状態は状態からオ
ペレーションを行った状態を示し、状態は状態から
オペレーションを行った状態を示し、状態は状態を
取消した後に状態からオペレーションを行った状態を
示している。
In these figures, the state indicates the state in which the operation is performed first, the state indicates the state in which the operation is performed, the state indicates the state in which the operation is performed, and the state cancels the state. It shows a state in which an operation is performed later from the state.

【0126】従来例では、図12(b)に示すように、
最後のオペレーションを行った状態から状態及び状
態へのアンドウ及びリドウが可能となっている。しか
しながら、状態を取消した後に状態から状態にな
るようなオペレーションを行った場合、状態から状態
及び状態へのアンドウ及びリドウは可能であるが、
状態の復元は状態の情報が失われてしまうので不可
能となる。
In the conventional example, as shown in FIG.
It is possible to undo and redo from the state where the last operation was performed to the state and the state. However, if an operation is performed to change from state to state after canceling the state, ANDO and REDO from state to state are possible,
Restoring the state is impossible because the state information is lost.

【0127】これに対し、本発明の一実施例では、状態
を取消した後に状態から状態になるようなオペレ
ーションを行った場合でも、図12(a)に示すよう
に、状態の情報を分岐させて保存しておくため、状態
から状態、状態、状態のうちのいずれの状態へ
も復元することが可能である。
On the other hand, according to the embodiment of the present invention, even when the operation for changing from state to state is performed after canceling the state, the state information is branched as shown in FIG. 12 (a). It is possible to restore any state among the state, the state, and the state, since the state is saved.

【0128】このように、図面の作成処理及び編集処理
を行うCAD処理装置2において、図面の作成処理及び
編集処理を行う毎にその処理内容を示すデータ値13
と、図面の作成処理及び編集処理を行う毎に現処理のデ
ータ値アドレス11bと現処理の前後に連続して行われ
た前履歴データアドレス11d及び後履歴データアドレ
ス11fと後履歴データの後から連続して行われた現処
理に対する変更処理の履歴情報の蓄積位置を示す分岐デ
ータアドレス11eとを対応付けた履歴データ11と、
分岐データ12と、現処理の処理内容を取消して前段処
理の処理内容を復元するアンドウ操作時にその取消した
処理の履歴データアドレスを保持するアンドウスタック
22とを履歴記憶部8に記憶し、履歴記憶部8の内容を
基に通常の作成・編集命令またはアンドウ命令、あるい
はリドウ命令を履歴制御部7の制御で作成・編集処理部
5に行わせることによって、作図・編集処理を取消して
書き直した状態でも作図・編集処理の取消し前の状態の
ような任意の状態に復元することができる。
As described above, in the CAD processing apparatus 2 which performs drawing creation processing and editing processing, every time the drawing creation processing and editing processing is performed, the data value 13 indicating the processing content is shown.
And every time the drawing process and the editing process are performed, the data value address 11b of the current process, the previous history data address 11d and the subsequent history data address 11f, which are successively performed before and after the current process, and after the subsequent history data. History data 11 in which a branch data address 11e indicating the storage position of the history information of the change process for the current process performed continuously is associated;
The branch data 12 and the ANDO stack 22 that holds the history data address of the canceled processing at the time of the AND operation that cancels the processing content of the current processing and restores the processing content of the preceding processing are stored in the history storage unit 8 and the history storage is performed. A state in which the drawing / editing process is canceled and rewritten by causing the creating / editing processing unit 5 to execute a normal creation / editing command, an AND command, or a REDO command based on the contents of the unit 8 under the control of the history control unit 7. However, it is possible to restore to an arbitrary state such as the state before the cancellation of the drawing / editing process.

【0129】これによって、アンドウ処理を行った後に
作成・編集処理を行っても、リドウ操作の情報が入って
いる部分と別の領域とを分岐して確保することができる
ので、全ての操作後の状態を再現することが可能とな
る。つまり、アンドウ操作後に作成・編集処理を誤って
行ってしまった場合にアンドウ操作前の状態を復元する
ことや、取消して書き直した部分を元に戻すことが可能
となる。
With this, even if the creating / editing process is performed after the undo process, the portion containing the information of the redo operation and the other region can be branched and secured, so that after all the operations. It is possible to reproduce the state of. In other words, if the creation / editing process is mistakenly performed after the undo operation, the state before the undo operation can be restored, or the canceled and rewritten portion can be restored.

【0130】[0130]

【発明の効果】以上説明したように本発明によれば、図
面の作成処理及び編集処理を行う図面作成編集装置にお
いて、図面の作成処理及び編集処理を行う毎にその処理
内容を格納し、図面の作成処理及び編集処理を行う毎に
現処理の処理内容の格納位置と現処理の前後に連続して
行われた前の処理及び次の処理の履歴情報の蓄積位置と
次の処理の後から連続して行われた現処理に対する変更
処理の履歴情報の蓄積位置とを対応付けて履歴データと
して蓄積するとともに、変更処理の履歴情報を記憶し、
現処理の処理内容を取消して前の処理の処理内容を復元
するアンドウ操作時にその取消した処理の履歴情報の蓄
積位置を保持してこれらの内容に基づいて図面の作成処
理及び編集処理とアンドウ操作及びアンドウ操作で取消
された処理の処理内容を復元するリドウ操作とのいずれ
かを指示する外部指令に応じた作成処理及び編集処理を
実行することによって、作図・編集処理を取消して書き
直した状態でも作図・編集処理の取消し前の状態のよう
な任意の状態に復元することができるという効果があ
る。
As described above, according to the present invention, in a drawing creation / editing apparatus for performing drawing creation processing and editing processing, the processing contents are stored every time the drawing creation processing and editing processing are performed, Each time the creation process and the editing process of the current process are performed, the storage position of the process content of the current process and the accumulated position of the history information of the previous process and the next process performed before and after the current process and after the next process are performed. The history information of the change process is stored while the history information of the change process is stored by associating with the accumulation position of the history information of the change process with respect to the current process performed continuously.
Cancels the processing contents of the current processing and restores the processing contents of the previous processing. When the AND operation is performed, the storage position of the history information of the canceled processing is held and the drawing creation processing and editing processing and the AND operation are performed based on these contents. Also, even if the drawing / editing process is canceled and rewritten by executing the creating process and the editing process according to the external command instructing either the redo operation to restore the processing contents of the process canceled by the AND operation. There is an effect that the state can be restored to an arbitrary state such as the state before the cancellation of the drawing / editing process.

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

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

【図2】(a)は図1の履歴記憶部に記憶される履歴デ
ータの構造を示す図、(b)は図1の履歴記憶部に記憶
される分岐データの構造を示す図、(c)は図1の履歴
記憶部に記憶されるデータ値の構造を示す図である。
2A is a diagram showing a structure of history data stored in a history storage unit of FIG. 1, FIG. 2B is a diagram showing a structure of branch data stored in a history storage unit of FIG. 1, FIG. 3] is a diagram showing a structure of a data value stored in the history storage unit of FIG. 1.

【図3】図1の履歴制御部の命令実行時における処理動
作を示すフローチャートである。
FIG. 3 is a flowchart showing a processing operation at the time of executing an instruction of the history control unit of FIG.

【図4】図1の履歴制御部のアンドウ命令実行時におけ
る処理動作を示すフローチャートである。
FIG. 4 is a flowchart showing a processing operation of the history control unit of FIG. 1 when an AND instruction is executed.

【図5】図1の履歴制御部のリドウ命令実行時における
処理動作を示すフローチャートである。
5 is a flowchart showing a processing operation of the history control unit of FIG. 1 when a REDO instruction is executed.

【図6】(a)は本発明の一実施例で命令を3回行った
時の履歴データの内容を示す図、(b)は(a)の履歴
データが記憶された時の表示内容を示す図である。
FIG. 6A is a diagram showing the contents of history data when an instruction is given three times in one embodiment of the present invention, and FIG. 6B shows the display contents when the history data of FIG. FIG.

【図7】(a)は図6に示す状態でアンドウ処理を行っ
た時の履歴データの内容を示す図、(b)は(a)の履
歴データが記憶された時の表示内容を示す図である。
7A is a diagram showing the contents of history data when the AND processing is performed in the state shown in FIG. 6, and FIG. 7B is a diagram showing the display contents when the history data of FIG. Is.

【図8】(a)は図7に示す状態で命令を行った時の履
歴データの内容を示す図、(b)は(a)の履歴データ
が記憶された時の表示内容を示す図である。
8A is a diagram showing the content of history data when an instruction is issued in the state shown in FIG. 7, and FIG. 8B is a diagram showing the display content when the history data of FIG. 7A is stored. is there.

【図9】(a)は図8に示す状態で図面の状態を図6に
戻した時の履歴データの内容を示す図、(b)は(a)
の履歴データが記憶された時の表示内容を示す図であ
る。
9A is a diagram showing the contents of history data when the state of the drawing is returned to FIG. 6 in the state shown in FIG. 8, and FIG. 9B is a diagram showing FIG.
FIG. 7 is a diagram showing display contents when history data of is stored.

【図10】(a)は図9に示す状態で図面の状態を最初
の命令まで戻した時の履歴データの内容を示す図、
(b)は(a)の履歴データが記憶された時の表示内容
を示す図である。
10A is a diagram showing the contents of history data when the state of the drawing is returned to the first instruction in the state shown in FIG. 9;
(B) is a figure which shows the display content when the historical data of (a) is memorize | stored.

【図11】(a)は1回分岐された状態で1度アンドウ
処理を行ってから新たに命令を行った時の履歴データの
内容を示す図、(b)は(a)の履歴データが記憶され
た時の表示内容を示す図である。
11A is a diagram showing the contents of history data when a new instruction is performed after performing an AND processing once in a state of branching once, and FIG. 11B shows the history data of FIG. It is a figure which shows the display content at the time of being memorize | stored.

【図12】(a)は本発明の一実施例におけるアンドウ
及びリドウ可能な状態を示す図、(b)及び(c)は従
来例におけるアンドウ及びリドウ可能な状態を示す図で
ある。
FIG. 12 (a) is a diagram showing a condition in which an undo and redo can be performed in an embodiment of the present invention, and FIGS. 12 (b) and (c) are diagrams showing a condition in which an undo and redo can be performed in a conventional example.

【図13】従来例の要素データベースの構成を示す図で
ある。
FIG. 13 is a diagram showing a configuration of a conventional element database.

【図14】従来例においてオペレーションを2回実行し
た後にアンドウ操作を1回行った状態を示す図である。
FIG. 14 is a diagram showing a state in which an AND operation is performed once after performing an operation twice in the conventional example.

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

1 入力装置 2 CAD処理装置 4 入力制御部 5 作成・編集処理部 6 表示制御部 7 履歴制御部 8 履歴記憶部 11 履歴データ 11a コマンド名 11b データ値アドレス 11c 属性 11d 前履歴データアドレス 11e 分岐アドレスアドレス 11f 次履歴データアドレス 12 分岐データ 12a 分岐ID番号 12b 履歴データアドレス 12c 次分岐データアドレス 13a データ 13b 次データ値アドレス 1 Input Device 2 CAD Processing Device 4 Input Control Unit 5 Creation / Editing Processing Unit 6 Display Control Unit 7 History Control Unit 8 History Storage Unit 11 History Data 11a Command Name 11b Data Value Address 11c Attribute 11d Previous History Data Address 11e Branch Address Address 11f Next history data address 12 Branch data 12a Branch ID number 12b History data address 12c Next branch data address 13a Data 13b Next data value address

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 図面の作成処理及び編集処理を行う図面
作成編集装置であって、前記図面の作成処理及び編集処
理を行う毎にその処理内容を格納する格納手段と、前記
図面の作成処理及び編集処理を行う毎に現処理の処理内
容の前記格納手段における格納位置と前記現処理の前後
に連続して行われた前の処理及び次の処理の履歴情報の
蓄積位置と前記次の処理の後から連続して行われた前記
現処理に対する変更処理の履歴情報の蓄積位置とを対応
付けて履歴データとして蓄積する蓄積手段と、前記変更
処理の履歴情報を記憶する記憶手段と、前記現処理の処
理内容を取消して前記前の処理の処理内容を復元するア
ンドウ操作時にその取消した処理の履歴情報の蓄積位置
を保持する保持手段と、前記図面の作成処理及び編集処
理と前記アンドウ操作及び前記アンドウ操作で取消され
た処理の処理内容を復元するリドウ操作とのうちのいず
れかを指示する外部指令に応じて前記格納手段の内容と
前記蓄積手段の内容と前記記憶手段の内容と前記保持手
段の内容とを基に前記図面の作成処理及び編集処理を実
行する手段とを有することを特徴とする図面作成編集装
置。
1. A drawing creation / editing apparatus for performing drawing creation processing and editing processing, comprising: storing means for storing the processing contents each time the drawing creation processing and editing processing is performed; Each time an editing process is performed, the storage position of the processing content of the current process in the storage means and the storage position of the history information of the previous process and the next process performed before and after the current process and the next process are performed. Accumulation means for accumulating as history data by associating the accumulation position of the history information of the change processing with respect to the current processing continuously performed afterwards, storage means for storing the history information of the change processing, and the current processing. Holding means for holding the storage position of the history information of the canceled processing at the time of the AND operation for canceling the processing content of the above and restoring the processing content of the previous processing, and the creation processing and editing processing of the drawing and the AND operation. The contents of the storing means, the contents of the accumulating means, and the contents of the storing means in response to an external command instructing any one of the operation and the redou operation for restoring the processing content of the processing canceled by the AND operation. A drawing creation / editing apparatus comprising: means for executing the drawing creation processing and the editing processing based on the contents of the holding means.
【請求項2】 前記格納手段は、前記処理内容とその処
理内容に連続する処理内容の格納位置とを対応付けて格
納するよう構成したことを特徴とする請求項1記載の図
面作成編集装置。
2. The drawing creation / editing apparatus according to claim 1, wherein the storage unit is configured to store the processing content and a storage position of processing content subsequent to the processing content in association with each other.
【請求項3】 前記蓄積手段及び前記記憶手段は、各々
のデータを互いに関連付けるリスト構造としたことを特
徴とする請求項1または請求項2記載の図面作成編集装
置。
3. The drawing creation / editing apparatus according to claim 1, wherein the storage means and the storage means have a list structure in which respective data are associated with each other.
【請求項4】 前記記憶手段は、前記変更処理の履歴情
報と前記変更処理の処理順序を示す識別情報と前記変更
処理に連続する変更処理の履歴情報の記憶位置とを互い
に対応付けて記憶するよう構成したことを特徴とする請
求項1から請求項3のいずれか記載の図面作成編集装
置。
4. The storage means stores history information of the change processing, identification information indicating a processing order of the change processing, and storage locations of history information of change processing subsequent to the change processing in association with each other. The drawing creation / editing apparatus according to any one of claims 1 to 3, wherein the drawing creation / editing apparatus is configured as described above.
JP7157410A 1995-06-23 1995-06-23 Drawing production and editing device Withdrawn JPH096981A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7157410A JPH096981A (en) 1995-06-23 1995-06-23 Drawing production and editing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7157410A JPH096981A (en) 1995-06-23 1995-06-23 Drawing production and editing device

Publications (1)

Publication Number Publication Date
JPH096981A true JPH096981A (en) 1997-01-10

Family

ID=15649031

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7157410A Withdrawn JPH096981A (en) 1995-06-23 1995-06-23 Drawing production and editing device

Country Status (1)

Country Link
JP (1) JPH096981A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006051961A1 (en) * 2004-11-12 2006-05-18 Justsystems Corporation Data processing device and data processing method
WO2006051962A1 (en) * 2004-11-12 2006-05-18 Justsystems Corporation Data processing device and data processing method
WO2006051963A1 (en) * 2004-11-12 2006-05-18 Justsystems Corporation Data processing device and data processing method
WO2006051965A1 (en) * 2004-11-12 2006-05-18 Justsystems Corporation Data processing device and data processing method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006051961A1 (en) * 2004-11-12 2006-05-18 Justsystems Corporation Data processing device and data processing method
WO2006051962A1 (en) * 2004-11-12 2006-05-18 Justsystems Corporation Data processing device and data processing method
WO2006051963A1 (en) * 2004-11-12 2006-05-18 Justsystems Corporation Data processing device and data processing method
WO2006051965A1 (en) * 2004-11-12 2006-05-18 Justsystems Corporation Data processing device and data processing method
JPWO2006051963A1 (en) * 2004-11-12 2008-05-29 株式会社ジャストシステム Data processing apparatus and data processing method
JPWO2006051961A1 (en) * 2004-11-12 2008-05-29 株式会社ジャストシステム Data processing apparatus and data processing method
JPWO2006051965A1 (en) * 2004-11-12 2008-05-29 株式会社ジャストシステム Data processing apparatus and data processing method
JP4515461B2 (en) * 2004-11-12 2010-07-28 株式会社ジャストシステム Data processing apparatus and data processing method
JP4515462B2 (en) * 2004-11-12 2010-07-28 株式会社ジャストシステム Data processing apparatus and data processing method
JP4515463B2 (en) * 2004-11-12 2010-07-28 株式会社ジャストシステム Data processing apparatus and data processing method

Similar Documents

Publication Publication Date Title
US5604853A (en) Text editor using insert, update and delete structures for undo and redo operations
US4829468A (en) Print control system
JPH03266039A (en) Free format data link processing system
JPH05313969A (en) File list display method
JP3070701B2 (en) Program control method for interactive system
JPS63288357A (en) Data editing method
JPH05324555A (en) Already executed operation canceller
JP3129889B2 (en) Numerical control unit
JPH04230517A (en) Hierarchical menu processing device
JP2934713B2 (en) Menu processing device
JPH056272A (en) Software designing device
JPH05324556A (en) Already executed operation canceller
JP3722854B2 (en) Data editing device
JP2980748B2 (en) Printed wiring board design support equipment
JP3079825B2 (en) Electronic computer equipment
JPH10228492A (en) CAD system
JPH0822490A (en) Layer selection method and layer attribute editing method
JPH07104876B2 (en) Design support method and design support apparatus
JPH04165469A (en) Circuit diagram display device
JPH1011512A (en) Table calculation system having auxiliary line display function and method therefor
JPH01271877A (en) Drawing control system
JPH0588951A (en) Library data storage method and computer system
JPH01302429A (en) Source program editing system
JPH07295874A (en) Cad system
JPH03204722A (en) Specification review support method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20020903