JPS63221477A - File conversion method - Google Patents
File conversion methodInfo
- Publication number
- JPS63221477A JPS63221477A JP62056036A JP5603687A JPS63221477A JP S63221477 A JPS63221477 A JP S63221477A JP 62056036 A JP62056036 A JP 62056036A JP 5603687 A JP5603687 A JP 5603687A JP S63221477 A JPS63221477 A JP S63221477A
- Authority
- JP
- Japan
- Prior art keywords
- file
- graphic data
- displayed
- point coordinates
- graphic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔概要〕
図形データを浮動小数点形式で表示・格納するファイル
1と図形データを固定小数点形式で表示・格納するファ
イル2との間で図形データを交換する場合、浮動小数点
形式から固定小数点形式に変換された図形データが固定
小数点形式表示の限界値外の値である3時は浮動小数点
形式のまま収容して表示せず、ファイル1に戻す時は変
換せず其のままファイル1に送出する。[Detailed Description of the Invention] [Summary] When exchanging graphic data between file 1 that displays and stores graphic data in floating point format and file 2 that displays and stores graphic data in fixed point format, floating point If the graphic data converted from format to fixed-point format is a value outside the fixed-point format display limit, it will be stored in floating-point format and not displayed, and when returning to file 1, it will not be converted and it will be Send as is to file 1.
本発明は計算機を使用する自動設計システムに於いて、
非互換項目が存在する図形データベース間のファイルコ
ンバートに関するものである。The present invention provides an automatic design system using a computer.
This relates to file conversion between graphic databases that have incompatible items.
従来計算機を使用する自動設計システム(以下単にCA
Dと云う)に於いて、図形データが浮動 ゛小数点座標
で表示される場合と固定小数点座標で表示される場合が
ある。Automatic design system using conventional computers (hereinafter simply CA)
D), the graphic data may be displayed in floating point coordinates or in fixed point coordinates.
第3図は従来のファイルコンバート方式の一例を示す図
である。FIG. 3 is a diagram showing an example of a conventional file conversion method.
図中、1は浮動小数点座標で図形データが表示されてい
るファイル、2は固定小数点座標で図形データが表示さ
れているファイル、3は変換手段、4はディスプレイ画
面、6は検査手段である。In the figure, 1 is a file in which graphic data is displayed in floating point coordinates, 2 is a file in which graphic data is displayed in fixed point coordinates, 3 is a conversion means, 4 is a display screen, and 6 is an inspection means.
尚以下全図を通じ同一記号は同一対象物を表す。The same symbols represent the same objects throughout the figures below.
ファイルl内に格納される図形データは総て浮動小数点
座標で表示されているものとし、図形要素A、図形要素
B、図形要素C1及び図形要素りが収容されているとす
る。It is assumed that all the graphic data stored in file l is displayed in floating point coordinates, and that graphic element A, graphic element B, graphic element C1, and graphic element 1 are stored.
又ファイル2内に格納される図形データは総て固定小数
点座標で表示されているものとする。It is also assumed that all graphic data stored in file 2 is displayed in fixed-point coordinates.
今ファイル1内に格納されている図形要素A〜図形要素
りをファイル2に移す時は変換手段3を動作させて、浮
動小数点座標で表示されている図形要素A〜図形要素り
の各座標を固定小数点座標に変換した後、ファイル2に
移し、ディスプレイ画面4上に表示する。When moving the graphic elements A to 3 currently stored in file 1 to file 2, the conversion means 3 is operated to convert the coordinates of graphic elements A to 3, which are displayed in floating point coordinates, to file 2. After converting to fixed-point coordinates, it is transferred to file 2 and displayed on display screen 4.
周知の通り、浮動小数点座標で表示される図形領域の広
さは固定小数点座標で表示される図形領域の広さより広
い。通常固定小数点座標の場合、座標値の幅は最大で数
万バイト程度である。As is well known, the width of a graphic area displayed using floating point coordinates is wider than the width of a graphic area displayed using fixed point coordinates. Usually, in the case of fixed-point coordinates, the width of the coordinate value is about tens of thousands of bytes at most.
今仮に浮動小数点座標で表示されるX座標値の下限値が
XL、上限値がXuとし、固定小数点座標で表示される
X座標値の下限値がxL、上限値がXuとする。Assume now that the lower limit value of the X coordinate value displayed in floating point coordinates is XL and the upper limit value is Xu, and the lower limit value of the X coordinate value displayed in fixed point coordinates is xL and the upper limit value is Xu.
浮動小数点座標で表示されるX座標値を座標変換手段3
により固定小数点座標に変換した時の値が下限値xLよ
り小さい場合、又は上限値xLlより大きい場合が起き
る。Coordinate conversion means 3 converts the X coordinate value displayed in floating point coordinates
Therefore, the value when converted into fixed point coordinates may be smaller than the lower limit value xL or larger than the upper limit value xLl.
即ち、浮動小数点座標で表示されている図形データを固
定小数点座標に変換する場合、固定小数点座標の限界外
の座標値が求められることがある。That is, when converting graphic data displayed in floating point coordinates to fixed point coordinates, coordinate values outside the limits of fixed point coordinates may be obtained.
従来のファイルコンバート方式に依ると検査手段6によ
り、固定小数点座標に変換された座標値が限界値(下限
値xL〜上限値Xu)外にあるか否かを検査している。According to the conventional file conversion method, the inspection means 6 inspects whether the coordinate values converted to fixed-point coordinates are outside the limit values (lower limit xL to upper limit Xu).
若し限界値(下限値XL〜上限値xu)外にある時は自
動的に座標値を切り捨てる処理を行っている。If the coordinate value is outside the limit value (lower limit value XL to upper limit value xu), the coordinate value is automatically rounded down.
第3図に於いて、例えば図形要素A、図形要素B、及び
図形要素りは固定少数点座標に変換された座標値が限界
値(下限値xL〜上限値xu)内にあるが、図形要素C
は整数座標に変換された座標値が限界値(下限値xL〜
上限値xu)外となる。In FIG. 3, for example, the coordinate values of graphical element A, graphical element B, and graphical element A after being converted to fixed decimal point coordinates are within the limit values (lower limit value xL to upper limit value xu), but the graphical element C
The coordinate values converted to integer coordinates are the limit values (lower limit xL ~
is outside the upper limit xu).
従って浮動小数点座標で表示されている図形データを固
定少数点座標に変換する場合には図形データの一部(図
形要素C)がディスプレイ画面4上に表示されないのみ
ならず、表示されない図形データは消失してしまうと云
う問題点があった。Therefore, when converting graphic data displayed in floating-point coordinates to fixed-point coordinates, not only a part of the graphic data (graphic element C) is not displayed on the display screen 4, but also the graphic data that is not displayed disappears. There was a problem with this.
上記問題点は第1図の原理図に示す様に図形データを第
1の情報形式で格納するファイル1、図形データを第2
の情報形式で格納するファイル2、ファイル1とファイ
ル2に格納されている図形データを相互に交換する際に
、各々該当する情報形式の図形データに変換する変換手
段3、及び変換手段3により他方の情報形式に変換され
た図形データが当該情報形式の限界外の値であるか否か
を検査する検査手段6とを備えることにより解決される
。As shown in the principle diagram in Figure 1, the above problem is that file 1 stores graphic data in the first information format,
When mutually exchanging the graphic data stored in file 1 and file 2, the conversion means 3 converts the graphic data into the corresponding information format, and the conversion means 3 converts the other This problem can be solved by providing a checking means 6 for checking whether the graphic data converted into the information format has a value outside the limits of the information format.
本発明に依るとファイル1に格納されている第1の情報
形式の図形データを変換手段3により第2の情報形式の
図形データに変換した時、検査手段6により情報形式が
当該ファイル内の情報形式外又は形式変換により限界外
であると判定された図形データを第1の情報形式のまま
格納すると共に格納されている図形データの情報形式を
確認し、当該ファイル内の形式に合致しているかを検知
するので再びファイル1へ戻す時でも図形データが消失
することはない。According to the present invention, when the graphic data in the first information format stored in the file 1 is converted by the converting means 3 into the graphic data in the second information format, the checking means 6 determines that the information format is the information in the file. Graphical data determined to be out of format or outside the limits due to format conversion is stored in the first information format, and the information format of the stored graphical data is checked to see if it matches the format in the file. is detected, so the graphic data will not be lost even when returning to file 1 again.
第2図は本発明に依るファイルコンバート方式の一実施
例を示す図である。FIG. 2 is a diagram showing an embodiment of the file conversion method according to the present invention.
図中、5Aは定常領域、5Bは特定領域、7は制御部で
ある。In the figure, 5A is a constant region, 5B is a specific region, and 7 is a control section.
本発明に依ると、制御部7がファイル1内の図形データ
をファイル2へ移す場合、制御部7はファイル1内の図
形データを読取り、変換手段3に入力する。According to the present invention, when the control section 7 transfers the graphic data in the file 1 to the file 2, the control section 7 reads the graphic data in the file 1 and inputs it to the conversion means 3.
変換手段3が浮動小数点形式で表示されている図形デー
タを固定小数点形式に変換した後、検査手段6により変
換された固定小数点座標の値が限界値の外に在るか否か
を調べる。After converting means 3 converts graphic data displayed in floating point format into fixed point format, checking means 6 checks whether the converted fixed point coordinate value is outside a limit value or not.
若し限界値内である時はファイル2内の定常領域5Aに
格納し、若し限界値外である時は浮動小数点のまま特定
領域5Bに格納する。If it is within the limit value, it is stored in the constant area 5A in the file 2, and if it is outside the limit value, it is stored as a floating point in the specific area 5B.
勿論特定領域5Bに格納された図形データをディスプレ
イ画面4に表示することは出来ないが、特定領域5Bか
ら図形データを読出した時は其のままファイル1ヘフア
イル1に戻すので其の図形データが消失することはなく
なる。Of course, the graphic data stored in the specific area 5B cannot be displayed on the display screen 4, but when the graphic data is read from the specific area 5B, it is returned to file 1 as it is, so the graphic data is lost. There will be nothing left to do.
以上詳細に説明した様に本発明によれば、浮動小数点座
標で表示されている図形データを固定小数点座標で表示
されている図形データにコンバートした後、再び浮動小
数点座標に戻した時、一部データが消失することがなく
なると云う大きい効果がある。As explained in detail above, according to the present invention, when graphic data displayed in floating point coordinates is converted to graphic data displayed in fixed point coordinates and then converted back to floating point coordinates, some This has the great effect of preventing data loss.
第1図は本発明の原理図である。
第2図は本発明に依るファイルコンバート方式の一実施
例を示す図である。
第3図は従来のファイルコンバート方式の一例を示す図
である。
図中、1は浮動小数点座標で図形データが表示されてい
るファイル、2は固定小数点座標で図形データが表示さ
れているファイル、3は変換手段、4はディスプレイ画
面、5Aは定常領域、5Bは特定N域、7は制御部であ
る。FIG. 1 is a diagram showing the principle of the present invention. FIG. 2 is a diagram showing an embodiment of the file conversion method according to the present invention. FIG. 3 is a diagram showing an example of a conventional file conversion method. In the figure, 1 is a file in which figure data is displayed in floating point coordinates, 2 is a file in which figure data is displayed in fixed point coordinates, 3 is a conversion means, 4 is a display screen, 5A is a stationary area, and 5B is a The specific N area 7 is a control section.
Claims (1)
、 該図形データを第2の情報形式で格納するファイル(2
)、 該ファイル(1)と該ファイル(2)に格納されている
該図形データを相互に交換する際に、各々該当する情報
形式の図形データに変換する変換手段(3)、該変換手
段(3)により他方の情報形式に変換された該図形デー
タが当該情報形式の限界外の値であるか否かを検査する
検査手段(6)とを備え、該検査手段(6)により情報
形式が当該ファイル内の情報形式外又は形式変換により
限界外であると判定された該図形データを該変換手段(
3)を介さずに転送することを特徴とするファイルコン
バート方式。[Claims] File (1) storing graphic data in a first information format
, a file (2) that stores the graphic data in the second information format;
), a conversion means (3) for converting the graphic data stored in the file (1) and the file (2) into graphic data in the corresponding information format when mutually exchanging the graphic data stored in the file (1) and the file (2); and inspection means (6) for inspecting whether the graphic data converted into the other information format by step 3) has a value outside the limits of the information format, and the inspection means (6) The converting means (
3) A file conversion method characterized by transfer without going through.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62056036A JPS63221477A (en) | 1987-03-11 | 1987-03-11 | File conversion method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62056036A JPS63221477A (en) | 1987-03-11 | 1987-03-11 | File conversion method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63221477A true JPS63221477A (en) | 1988-09-14 |
Family
ID=13015852
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP62056036A Pending JPS63221477A (en) | 1987-03-11 | 1987-03-11 | File conversion method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63221477A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1989006400A1 (en) * | 1987-12-29 | 1989-07-13 | Nippon Steel Corporation | Method of converting graphic data |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5676147U (en) * | 1979-11-15 | 1981-06-22 | ||
JPS5711475U (en) * | 1980-06-24 | 1982-01-21 | ||
JPS5762392A (en) * | 1980-10-03 | 1982-04-15 | Hitachi Ltd | Heat exchanger device |
JPS5991572U (en) * | 1982-12-10 | 1984-06-21 | 東京瓦斯株式会社 | Engine-driven heat pump device |
JPS62206260A (en) * | 1986-03-06 | 1987-09-10 | Meidensha Electric Mfg Co Ltd | Dual-purpose electricity and steam generation device |
-
1987
- 1987-03-11 JP JP62056036A patent/JPS63221477A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5676147U (en) * | 1979-11-15 | 1981-06-22 | ||
JPS5711475U (en) * | 1980-06-24 | 1982-01-21 | ||
JPS5762392A (en) * | 1980-10-03 | 1982-04-15 | Hitachi Ltd | Heat exchanger device |
JPS5991572U (en) * | 1982-12-10 | 1984-06-21 | 東京瓦斯株式会社 | Engine-driven heat pump device |
JPS62206260A (en) * | 1986-03-06 | 1987-09-10 | Meidensha Electric Mfg Co Ltd | Dual-purpose electricity and steam generation device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1989006400A1 (en) * | 1987-12-29 | 1989-07-13 | Nippon Steel Corporation | Method of converting graphic data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0887495A (en) | Table data cut and paste method and data processing system | |
JPS60218142A (en) | Dynamic data conversion method | |
JPS63221477A (en) | File conversion method | |
JPS61262884A (en) | Method for drawing to specified point on element | |
KR100237879B1 (en) | File format transformation method | |
JPS63153671A (en) | Data processor | |
JP2637208B2 (en) | Graphic processing system | |
JP3159974B2 (en) | Electronic computer | |
JP2750835B2 (en) | Image display method for displaying multiple objects on monitors with different display capabilities | |
CN114676367A (en) | Screen multi-page adaptive display method, storage medium and electronic device | |
KR100237876B1 (en) | How to convert an infomap file to KSF data format | |
JPS63284682A (en) | Drawing management method and device | |
JPH04174051A (en) | Drawing data management system | |
JPS60128525A (en) | Coordinate specification method | |
JPH0476598A (en) | Display controller | |
JPH0137019B2 (en) | ||
JPH038062A (en) | Document converting device | |
JPS63208090A (en) | Display device | |
JPS58105651U (en) | Pattern center position detection device | |
JPH02302877A (en) | Method and device for converting data between cad devices | |
JPS61214022A (en) | Graphic display control method | |
JPS62129886A (en) | Cursor control system for display unit | |
JPH023868A (en) | Information controlling method | |
JPH03271875A (en) | Processing method for converting graphic to coordinates | |
JPH0242521A (en) | Data storage method |