JP4434469B2 - Drawing file generating method and medium storing the program - Google Patents
Drawing file generating method and medium storing the program Download PDFInfo
- Publication number
- JP4434469B2 JP4434469B2 JP2000344111A JP2000344111A JP4434469B2 JP 4434469 B2 JP4434469 B2 JP 4434469B2 JP 2000344111 A JP2000344111 A JP 2000344111A JP 2000344111 A JP2000344111 A JP 2000344111A JP 4434469 B2 JP4434469 B2 JP 4434469B2
- Authority
- JP
- Japan
- Prior art keywords
- file
- drawing file
- data
- raster data
- raster
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Processing Or Creating Images (AREA)
Description
【0001】
【発明の属する技術分野】
この発明は、紙図面をスキャナ等の読取装置で読み取ることによって取得されるようなドットデータの集合からなるラスタデータと、座標値や必要なパラメータ等により特定されるようなベクタデータとが混在する統合図面ファイルから、他のファイル形式の図面ファイルを生成する図面ファイル生成方法に関し、特に、統合図面ファイルからダイレクトにCADシステム等で利用することができる形式の図面ファイルを生成し、ラスタデータ編集装置からCADシステム等へのデータの互換性を向上させるようにすることができる図面ファイル生成方法及びそのプログラムを記憶してなる媒体に関する。
【0002】
【従来の技術】
従来より、CADシステムを用いて作成された図面データは、始点、終点、長さ、角度等の必要なパラメータで特定されるベクトルデータの形態で記憶されるので、その編集操作は、ベクトルデータに対して直接行うことになる。一方、紙図面に僅かな修正を加えて新しい図面を作成することにより、過去に作成された膨大な紙図面を有効利用したいという要求もある。この場合には、既存の紙図面をスキャナ等の図面読取装置で読み込んで、得られたラスタデータに対して必要な加筆・修正等を加えて新たな図面を作成することになる。このようなラスタデータの編集装置では、ドットデータの消去、コピー、貼り付け、回転、拡大、縮小等の操作が限界であるから、ベクタデータに対する編集が可能なCADシステムに比べると、操作性が格段に劣っている。
【0003】
そこで、スキャナで紙図面を読み取って得られたラスタデータをベクタデータに変換して、ベクタデータによる編集を可能にした編集装置も開発されている。しかし、上述した編集装置は、読み取ったラスタデータの全てをベクタデータに変換するものであるから、変換に時間がかかるうえ、意図しないベクタデータへの変換が随所で起こり、その修正作業に多大な手間がかかるという問題がある。
【0004】
この問題を解決するため、本出願人は、スキャナで紙図面を読み取ることにより得られたラスタデータのうち、指定された部分についてのみラスタデータをベクタデータに変換して、部分的にベクタデータに対する編集操作を可能にしたラスタデータ編集装置を提案し、出願している(特願平11−105057号)。このラスタデータ編集装置によれば、編集に必要な部分だけをベクタデータに変換すれば良いので、変換処理に時間がかからず、誤変換部分の修正作業も殆ど不要になると共に、ベクタデータに対する編集操作を行うことができるので、編集操作が容易で編集可能な範囲も広いという利点がある。また、本出願人は、上記ラスタデータ編集装置でラスタデータとベクタデータとを混在させることが可能である点に基づき、既存のCADファイル等を利用して編集操作の効率を上げることを可能にしたラスタデータ編集装置も提案し、出願している(特願平11−182291号)。このラスタデータ編集装置によれば、編集ベースとなるラスタデータに外部からのベクタデータを取り込んで座標系の整合を合わせ、任意の位置に貼り付けることができるので、既存のCADファイル等を有効活用することができると共に、ラスタデータとベクタデータとを統合ファイルによって関連付けて記憶するため、統合ファイルへの直接のアクセスによりラスタデータ及びベクタデータの素早い編集操作が可能になり、操作性が格段に向上するという利点がある。なお、近年では、ベクタデータにラスタデータからなるイメージデータを背景として貼り付けるいわゆるアタッチ機能により、CADシステムで取扱うベクタデータ上でラスタデータを参照することも可能となった。
【0005】
【発明が解決しようとする課題】
ところで、上述したラスタデータ編集装置では、ラスタデータとベクタデータとを混在させ、且つ統合ファイルにより関連付けることが可能であるため、このラスタデータ編集装置で作成した統合ファイル等を上述したイメージデータのアタッチ機能を有するCADシステムで利用できれば、種々の図面パターン等の更なる有効利用が可能となる。
【0006】
この発明は、このような点に鑑みてなされたもので、ラスタデータ及びベクタデータが混在する図面データからイメージデータのアタッチ機能を有するCADシステムで利用できる形式の図面ファイルを生成する図面ファイル生成方法及びそのプログラムを記憶してなる媒体を提供することを目的とする。
【0008】
【課題を解決するための手段】
この発明に係る図面ファイル生成方法は、ドットデータの集合からなるラスタデータとベクタデータとを含む混在図面データを有する統合図面ファイルを記憶する統合図面ファイル記憶手段と、前記統合図面ファイルを一時格納して編集ワークエリアを提供するメモリと、前記統合図面ファイル記憶手段に記憶された統合図面ファイルを前記メモリに読み出してベクタデータ形式の図面ファイル及びラスタデータ形式の図面ファイルを作成する編集手段と、外部のCADシステムとの間でファイルの入出力を行うファイル入出力手段とを備えたラスタデータ編集装置における図面ファイル生成方法であって、前記編集手段によって、前記統合図面ファイル記憶手段から前記統合図面ファイルを前記メモリに読み出す工程と、前記編集手段によって、前記統合図面ファイル記憶手段から読み出された統合図面ファイルのファイル情報に基づいて前記統合図面ファイルに含まれるベクタデータとラスタデータとを分割抽出する工程と、前記編集手段によって、前記抽出されたベクタデータからベクタデータ形式の図面ファイルを生成し前記ファイル入出力手段に出力する工程と、前記編集手段によって、前記抽出されたラスタデータからラスタデータ形式の図面ファイルを生成し前記ファイル入出力手段に出力する工程とを備え、前記編集手段が前記ベクタデータ形式の図面ファイルを生成する際に、前記ベクタデータ形式の図面ファイルから前記ラスタデータ形式の図面ファイルを参照するための前記ラスタデータ形式の図面ファイルのファイル情報を前記ベクタデータ形式の図面ファイルのファイル情報に付加して前記ファイル入出力手段に出力するようにしたことを特徴とする。
【0009】
前記ラスタファイル情報は、好ましくは前記ラスタデータ形式の図面ファイルの少なくともファイル名を含むものである。
【0010】
この場合、前記ラスタファイル情報は、前記ベクタデータ形式の図面ファイルに対する前記ラスタデータ形式の図面ファイルの位置情報を含むことが望ましい。
【0012】
この発明に係るコンピュータに読み取り可能な記録媒体は、コンピュータに、ドットデータの集合からなるラスタデータと、このラスタデータの座標系と整合するように座標変換されたベクタデータとを含む統合図面ファイルを、統合図面ファイル記憶手段からメモリに読み出す処理と、前記統合図面ファイル記憶手段から読み出された統合図面ファイルのファイル情報に基づいて前記統合図面ファイルに含まれるベクタデータとラスタデータとを分割抽出する処理と、前記抽出されたベクタデータからベクタデータ形式の図面ファイルを生成させファイル入出力手段に出力させる処理と、前記抽出されたラスタデータからラスタデータ形式の図面ファイルを生成させ前記ファイル入出力手段に出力させる処理とを実行させ、前記ベクタデータ形式の図面ファイルを生成させる際に、前記ベクタデータ形式の図面ファイルから前記ラスタデータ形式の図面ファイルを参照するためのラスタデータ形式の図面ファイルのファイル情報を前記ベクタデータ形式の図面ファイルのファイル情報に付加させて前記ファイル入出力手段に出力させるようにした処理を更に実行させる図面ファイル生成処理プログラムを記憶してなるものである。
【0013】
この発明によれば、ラスタデータとベクタデータとが混在する統合図面ファイルからベクタデータを抽出してベクタデータ形式の図面ファイルを生成すると共に、ラスタデータを抽出してラスタデータ形式の図面ファイルを生成することができ、且つベクタデータ形式の図面ファイルを生成する際に、ベクタデータ形式の図面ファイルからラスタデータ形式の図面ファイルを参照するためのラスタファイル情報を付加して生成することができる。このため、例えばラスタデータを編集ベースとしつつも統合図面ファイルの編集処理が可能なラスタデータ編集装置から、ベクタデータを編集ベースとしつつもアタッチ機能によりラスタデータをイメージデータとしてベクタデータの背景に貼り付けて編集処理をすることができるCADシステムに対してダイレクトにファイル出力をすることが可能となる。これにより、ラスタデータ及びベクタデータが混在する図面データを有効活用することができると共に、ラスタデータ編集装置とCADシステムとのデータ互換性を向上させることができ、図面編集作業の効率を全体的に高めることが可能となる。
【0014】
【発明の実施の形態】
以下、図面を参照して、この発明の実施例を説明する。
図1は、この発明の一実施例に係る図面ファイル作成方法を実現するためのラスタデータ編集装置を説明するためのブロック図である。
【0015】
修正前図面1のイメージは、読取装置のスキャナ2で読み取られる。読み取られたイメージは、スキャナ2でビットマップデータ等のラスタデータ形式の図面データ(以下、「ラスタデータ」とする。)に変換されてCPU3とRAM(Random Access Memory)などからなる編集部5内のメモリ4とに一時格納される。メモリ4に一時格納されるラスタデータのデータ形式は、その保存容量を考慮して、ランレングスデータ、MR、MMR、TIFF、CALS等、適宜圧縮処理が施されたものであっても良い。
【0016】
一方、編集部5にCADシステム6から送られてくるいわゆるCADファイルや外部の既存の記憶媒体7から送られてくるベクタデータ形式の図面データ(以下、「ベクタデータ」とする。)も、編集部5内のメモリ4に一時格納される。メモリ4に一時格納されたこれらのデータやファイル等は、ハードディスク装置等の記憶媒体7に保存され、且つディスプレイ装置等からなる表示部8に必要なコマンド入力用のアイコン等と共に表示されて、マウスやキーボード等の入力装置からなる入力部9の入力操作に基づいて編集部5で適宜編集される。編集された各データは、それぞれの元のデータ形態又は各データが混在したデータ形態でメモリ4や記憶媒体7に保存され、入力部9の入力操作に従ってプリンタやプロッタ等の印刷出力部10を介して修正後図面11として出力される。
【0017】
このラスタデータ編集装置では、スキャナ2で読み取られた図面のイメージデータやCADシステム6から送られてきたCADファイル等を編集部5内のメモリ4に一時格納した後、記憶媒体7においてラスタデータとベクタデータとをそれぞれ別々のデータベースに保存する。また、これらラスタデータ及びベクタデータは、RV(ラスタ・ベクタ)統合ファイルによりラスタデータの座標系にベクタデータの座標系を合わせた形態の混在データとして関連付けられ、記憶媒体7内に設けられたRV統合ファイルデータベース12に保存される。
【0018】
実際の図面データ編集作業時には、メモリ4や記憶媒体7に格納・保存されているラスタデータやベクタデータを一々別々に読出し/書込みせずにRV統合ファイルデータベース12からラスタデータ及びベクタデータが混在したRV統合ファイルを読み込んで適宜編集操作をすることにより、ラスタデータ及びベクタデータの同時編集作業をすることができる。
【0019】
図2は、このラスタデータ編集装置の編集部5と記憶媒体7の内部構成の一部を示すブロック図である。
【0020】
スキャナ2で読み取られた図面のイメージデータ1などのラスタデータは、編集部5内のファイル入出力部17を介してラスタデータ編集部15に入力され、記憶媒体7内のラスタデータベース(以下、「RDB」とする)20に保存される。ファイル入出力部17は、編集部5及び記憶媒体7に入力/出力されるデータファイルの入出力を行う。ラスタデータ編集部15は、このラスタデータ編集装置でのラスタデータの編集処理を担当し、必要に応じてRDB20と適宜ラスタデータの遣り取りを行う。一方、外部の既存のCADシステム6から供給されたCADファイルは、ファイル入出力部17を介して記憶媒体7内のCADファイルデータベース(以下、「CDB」とする)19に保存される。このCDB19に保存されたCADファイルのCADデータを用いて編集処理を施す際には、まず、編集部5がCDB19に保存されたCADデータを読み出す。編集部5内に読み出されたCADデータは、座標変換部14を備える編集部5内のベクタデータ貼付部13に入力される。ベクタデータ貼付部13の座標変換部14は、ベクタデータ貼付部13に入力されたCDB19からのCADデータの座標系を、ラスタデータの座標系に変換する処理を行う。ベクタデータ貼付部13は、座標変換部14で座標変換されたCADデータからなるベクタデータを、記憶媒体7内のベクタデータベース(以下、「VDB」とする)21に保存する。VDB21に保存されたベクタデータは、編集部5内のベクタデータ編集部16に入力され、このベクタデータ編集部16で適宜編集処理が施される。このように、ベクタデータ編集部16は、ラスタデータ編集装置でのベクタデータの編集処理を担当し、必要に応じて適宜VDB21とベクタデータの遣り取りを行う。なお、記憶媒体7内のRDB20及びVDB21に保存されているそれぞれのデータ形式のデータは、編集部5内に設けられたデータ変換部18を介してラスタ→ベクタ変換、ベクタ→ラスタ変換され、ラスタデータ編集装置内で常時相互利用されている。
【0021】
一方、記憶媒体7内部に設けられたRV統合ファイルデータベース(以下、「RVIDB」とする)12には、RV統合ファイル作成部23で作成されたRV統合ファイルが保存されている。このRV統合ファイル作成部23は、ラスタデータ編集部15及びベクタデータ編集部16からそれぞれラスタデータとベクタデータとを読み出し、ベクタデータをラスタデータに関連付けてラスタデータ及びベクタデータが混在するデータファイル形式のRV統合ファイルを作成する。このラスタデータ編集装置での実際の編集作業時には、編集部5がRVIDB12に保存されたRV統合ファイルのヘッダー情報を参照して、RDB20に保存されたラスタデータやVDB21に保存されたベクタデータをそれぞれ読み込んで編集したり、RV統合ファイルを直接RVIDB12から読み込んで、このRV統合ファイルをラスタデータ成分及びベクタデータ成分にそれぞれ分離して適宜編集したりすることができる。また、このように編集処理したデータは、それぞれ自在にRDB20やVDB21に保存したり、RVIDB12にRV統合ファイルとして保存したりすることができる。
【0022】
図3は、上述したRV統合ファイルの構成を示す図である。
同図に示すように、RV統合ファイル(例えば、ファイル名「ABC.RVD」とする。)40は、主にヘッダー情報領域30と、ラスタデータ情報領域31と、ベクタデータ情報領域32との3つの領域を持つファイル構造で構成されている。ヘッダー情報領域30内には、RV統合ファイル40のバージョンを表すバージョンデータ33、RV統合ファイル40のうちのベクタデータの要素数を表すベクタ要素数情報34及びその他の情報35がセットされている。ラスタデータ情報領域31内には、RV統合ファイル40のうちのラスタデータ37に関する情報が格納されている。ベクタデータ情報領域32内には、RV統合ファイル40のうちのベクタデータ361,362,363,…,36nを構成する複数のベクタデータ・インデックス(ベクタIdx1,Idx2,Idx3,…,Idxn)が格納されている。これらベクタデータ361〜36nは、RV統合ファイル40に基づき編集処理を施す場合、編集部5内のメモリ4の内部領域に構築されているラスタデータ37と、例えばレイヤを異にしてメモリ4内に展開されるように関連付けられている。これにより、ベクタデータは、そこでラスタデータ37と同一座標系38上に配置される。
【0023】
このような編集処理を施すことができるこのラスタデータ編集装置では、CADシステム6から送られてくるCADファイルを利用することができるだけでなく、ラスタデータ編集装置内で作成したラスタデータ及びベクタデータの混在データからなるRV統合ファイル40を直接CADシステム6側で利用可能なファイルとして送ることもできる。このため、このラスタデータ編集装置の編集部5内には、RVIDB12からRV統合ファイル40を読み出してCADシステム6側で利用可能なファイル形式のデータファイルを生成するためのファイル生成部22が設けられている。
【0024】
次に、このファイル生成部22でのファイル生成処理について説明する。
図4は、編集部5内のファイル生成部22の内部構成の一部を示すブロック図であり、図5は、このファイル生成部22でのファイル生成処理のフローチャートである。
【0025】
まず、ファイル生成部22は、RVIDB12からRV統合ファイル40を読み出す(S1)。RVIDB12からファイル生成部22に読み出されたRV統合ファイル40は、ファイル解析部41に入力され、このファイル解析部41でファイルの種々の情報(ファイル構造やファイルサイズ等の情報)が解析される(S2)。このファイル解析部41で解析されたRV統合ファイル40のファイル情報は、CPU3に出力され編集処理等に利用される。また、ファイル解析部41では、解析されたRV統合ファイル40のファイル情報に基づき、RV統合ファイル40のラスタデータ成分とベクタデータ成分とを適宜分割する(S3)。このようにファイル解析部41で解析され適宜分割されたRV統合ファイル40は、次にファイル情報編集部42に入力される。このファイル情報編集部42では、まずベクタデータのファイル情報にラスタデータのファイル情報を付加する編集処理を施すか否かが判断される(S4)。例えば、入力部9からの所定の入力信号がない場合は、RV統合ファイル40に対して特に編集処理を施さないが、入力部9からの所定の入力信号がある場合には、上記編集処理を施すという具合である。この場合、入力信号に基づきRV統合ファイル40内のラスタデータのファイル情報を参照してそのファイルの相対パス及びラスタデータ位置情報を抽出し、これらをベクタデータのファイル情報内に書き込むという一連の処理(43a〜43c)が含まれるアタッチコマンド43を実行してベクタデータにラスタデータのファイル情報を付加する(S5)という編集処理が行われる。その後、RV統合ファイル40は、ラスタファイルとベクタファイルをそれぞれ生成するために、ラスタファイル生成部44とベクタファイル生成部45で利用される。ラスタファイル生成部44は、ファイル情報編集部42内のRV統合ファイル40のラスタデータ成分を抽出して、ラスタデータからなるファイル(例えば、TIFFファイル)を生成してファイル入出力部17へ出力する。一方、ベクタファイル生成部45は、ファイル情報編集部42内のRV統合ファイル40のベクタデータ成分を抽出して、ベクタデータからなるファイル(例えば、DXFファイル)を生成してファイル入出力部17へ出力する(S6)。この際、上記ステップS4で編集処理を施す旨が選択され、ステップS5でラスタデータのファイル情報がベクタデータに付加されている場合は、ベクタファイル生成部45は、このラスタデータのファイル情報をベクタデータのファイル情報に付加した状態のベクタファイルを生成してファイル入出力部17へ出力する。
【0026】
次に、上述したラスタデータ編集装置でのファイル生成動作を伴うファイル出力動作について説明する。このラスタデータ編集装置は、表示部8の表示画面上に現在表示されているアクティブな図面をファイル出力する「単一ファイル出力」と、保存された複数の図面をファイル出力する「連続ファイル出力」の2つの出力モードを備える。まず、このラスタデータ編集装置が起動されると、表示部4の表示画面上に、図6に示すようなメイン操作画面50が表示される。このメイン操作画面50は、起動しているソフトウェア名等を表示するタイトルバー51、その起動しているソフトウェアの機能を選択するためのメニューバー52及びツールバー53、ソフトウェアの機能のうち、特に便利な機能を選択するための機能ツールバー54、レイヤに関する操作を行うためのレイヤツールバー55、各種モードや単位及び尺度等を表示するステータスバー56、読み込んだ図面ファイル等を表示して編集作業を行う作業領域57等の構成要素を備えて構成されている。なお、メニューバー52の各メニュー項目は文字表示、ツールバー53及び機能ツールバー54の各ツール項目は所定のアイコン表示で表示され、機能操作性の向上が図られている。
【0027】
「単一ファイル出力」モードの場合、現在作業中のファイルを生成出力するために、メイン操作画面50に表示されたメニューバー52のファイルメニュー52aの「ファイル出力」項目から「単一」コマンドを選択する。入力部9に「単一」コマンドが選択された旨が入力されると、その情報がCPU3に伝えられ、表示部8に表示されたメイン操作画面50上に、図7に示すような単一ファイル出力ダイアログ60が表示される。この単一ファイル出力ダイアログ60は、生成後のファイルを指定するためのファイル名入力ボックス61、生成後のファイルの種類を、例えばDXF,DWG等のファイルの種類から選択するためのファイル選択ボックス62、指定方法によってデータのレイヤを分けて生成するためのレイヤ分割指定ボックス63、レイヤ分割の詳細設定を行う「レイヤ設定」ダイアログを表示するための設定ボタン64、例えばチェック有りの場合ベクタ要素のみ生成出力するといった生成出力要素を指定する生成出力要素指定項目65、レイヤの分割が「単一レイヤ」又は「レイヤ名分割」で、DXF,DWG形式のファイルを生成するときに、データのレイヤ名を利用するかどうかの設定を行うレイヤ名設定項目66、DXF,DWG形式のファイルを生成する際に、データのイメージとしてラスタファイルを利用するか否かの設定を行うイメージファイル名出力設定項目67、図面の単位系を指定するための単位系指定ボックス68、DXF,DWG形式のファイルを生成するときにポリラインの頂点数の制限を指定するためのポリライン頂点数指定ボックス69及び現在の生成設定のファイル名を表示等するための生成設定ファイル表示ボックス70等の構成要素を備えて構成されている。
【0028】
一方、「連続ファイル出力」モードの場合、選択した複数のファイルを生成出力するために、ファイルメニュー52aの「ファイル出力」項目から「連続」コマンドを選択する。なお、上記「単一ファイル出力」モードの場合の説明と重複する部分の説明は省略する。入力部9に「連続」コマンドが選択された旨が入力されると、その情報がCPU3に伝えられ、メイン操作画面50上に、図8に示すような連続ファイル出力ダイアログ71が表示される。この連続ファイル出力ダイアログ71は、主に生成するファイルを指定するための入力ファイル設定ボックス72と、生成後の出力先ディレクトリを指定するための出力先設定ボックス73と、ファイル生成の各種条件を指定するための生成設定ボックス74とから構成されている。入力ファイル設定ボックス72には、生成するファイルの一覧表示を行う生成ファイルリスト表示ボックス75、「ファイルを開く」ダイアログを表示し生成するファイルをファイルリストへ追加するための登録ボタン76及び生成ファイルリストで選択されているファイルを解除するための解除ボタン77が設けられている。また、出力先設定ボックス73には、「変換先ディレクトリ指定」ダイアログを表示するための参照ボタン78が設けられている。一方、生成設定ボックス74には、現在の生成設定ファイル名を表示するための生成設定ファイル表示ボックス79、生成後のファイルの種類を、例えばDXF,DWG形式のファイルの種類から選択するためのファイル形式指定ボックス80、単位系指定ボックス81、レイヤ分割指定ボックス82、設定ボタン83、レイヤ名設定項目84、イメージファイル名出力設定項目85、ファイル生成時の変換モードを指定するための変換モード指定ボックス86、ポリライン頂点数指定ボックス87及びファイル生成時のフィルタ処理を指定し、指定された縦・横の矩形よりも小さなラスタデータを変換されないようにするためのフィルタ指定ボックス88等の構成要素を備えて構成される。
【0029】
これら「単一」及び「連続」ファイル出力ダイアログ60,71において、共通したコマンド選択項目の一つとして「イメージファイル名出力設定」がある。このイメージファイル名出力設定を有効にする(オンにする)ことにより、図4に示すように、入力部9から所定の入力信号がファイル情報編集部42に出力され、ラスタファイルのファイル情報をベクタファイルのファイル情報に付加するためのアタッチコマンド43が働く。このアタッチコマンド43では、まず、付加すべきラスタファイルを参照すべくラスタファイル参照コマンド43aがベクタファイルのファイル情報に書き込まれ、次に、そのラスタファイルが格納されている場所(ファイル名)を指定する相対パス43bが書き込まれる。そして、ラスタファイル内のラスタデータがベクタファイル内のベクタデータの背景イメージデータとしてどの位置に表示されるかを示すラスタデータの位置情報43cが書き込まれる。また、このアタッチコマンド43では、指定された生成する際の設定ファイル名と同一ファイル名を参照されるラスタファイルに命名する。このため、このラスタデータ編集装置では、例えば図9(a)に示すように、表示領域90上に表示されているRV統合ファイル40で構成される図面データから、同図(b)及び(c)に示すように、ファイル生成部22でベクタデータ91,92からなるベクタファイルとラスタデータ93からなるラスタファイルとを生成することができると共に、上記アタッチコマンド43が実行されてファイルが生成された場合には、ベクタファイル内にラスタファイルのファイル情報を参照すべくコマンド43a等が自動的に書き込まれるため、ベクタファイルのベクタデータを編集する際に、いわゆるアタッチ機能を用いなくてもラスタファイルのラスタデータを背景イメージデータとして貼り付けた状態で使用することができる。これにより、図10(a)に示すように、例えばCADシステム6へ生成したベクタファイル及びラスタファイルを別々に出力し、CADシステム6側の表示領域95にベクタデータ91,92を表示させることができるだけではなく、出力したベクタファイルにラスタファイルのファイル情報が付加されている場合には、実際にCADシステムでベクタファイルを利用しただけで、同図(b)に示すように、ラスタデータ93を背景として表示させることができるようになる。このため、同図(c)に示すように、CADシステム6においても機能的にRV統合ファイル40を利用した編集処理等を行うことが可能となる。このように、CADシステムに対してダイレクトに種々の図面ファイルを出力することが可能となるため、ラスタデータ及びベクタデータが混在する図面データを有効活用することができると共に、ラスタデータ編集装置とCADシステムとのデータ互換性を向上させることができ、図面編集作業の効率を全体的に高めることが可能となる。
【0030】
【発明の効果】
以上述べたように、この発明によれば、ラスタデータとベクタデータとが混在する統合図面ファイルからベクタデータを抽出してベクタデータ形式の図面ファイルを生成すると共に、ラスタデータを抽出してラスタデータ形式の図面ファイルを生成することができ、且つベクタデータ形式の図面ファイルを生成する際に、ベクタデータ形式の図面ファイルからラスタデータ形式の図面ファイルを参照するためのラスタファイル情報を付加して生成することができる。このため、例えばラスタデータを編集ベースとしつつも統合図面ファイルの編集処理が可能なラスタデータ編集装置から、ベクタデータを編集ベースとしつつもアタッチ機能によりラスタデータをイメージデータとしてベクタデータの背景に貼り付けて編集処理をすることができるCADシステムに対してダイレクトにファイル出力をすることが可能となる。これにより、ラスタデータ及びベクタデータが混在する図面データを有効活用することができると共に、ラスタデータ編集装置とCADシステムとのデータ互換性を向上させることができ、図面編集作業の効率を全体的に高めることが可能となるという効果を奏する。
【図面の簡単な説明】
【図1】 この発明の一実施例に係る図面ファイル作成方法を実現するためのラスタデータ編集装置を説明するためのブロック図である。
【図2】 同装置の編集部と記憶媒体の内部構成の一部を示すブロック図である。
【図3】 RV統合ファイルの構成を示す図である。
【図4】 同装置の編集部内のファイル生成部の内部構成の一部を示すブロック図である。
【図5】 同ファイル生成部でのファイル生成処理のフローチャートである。
【図6】 同装置の起動後の操作画面イメージを表す図である。
【図7】 同装置のメイン操作画面上に表示された単一ファイル出力ダイアログを示す図である。
【図8】 同装置のメイン操作画面上に表示された連続ファイル出力ダイアログを示す図である。
【図9】 同装置でRV統合ファイルからベクタファイル及びラスタファイルを生成するイメージを示す図である。
【図10】 CADシステム6でRV統合ファイルから生成されたベクタファイル及びラスタファイルを利用するイメージを示す図である。
【符号の説明】
1…修正前図面、2…スキャナ、3…CPU、4…メモリ、5…編集部、6…CADシステム、7…記憶媒体、8…表示部、9…入力部、10…印刷出力部、11…修正後図面、12…RVIDB、13…ベクタデータ貼付部、14…座標変換部、15…ラスタデータ編集部、16…ベクタデータ編集部、17…ファイル入出力部、18…データ変換部、19…CDB、20…RDB、21…VDB、22…ファイル生成部、23…RV統合ファイル作成部。[0001]
BACKGROUND OF THE INVENTION
In the present invention, raster data composed of a set of dot data obtained by reading a paper drawing with a reading device such as a scanner, and vector data specified by coordinate values, necessary parameters, and the like are mixed. The present invention relates to a drawing file generation method for generating a drawing file of another file format from an integrated drawing file, and in particular, generates a drawing file of a format that can be directly used in a CAD system or the like from an integrated drawing file, and a raster data editing device The present invention relates to a drawing file generation method capable of improving data compatibility from a computer to a CAD system or the like and a medium storing the program.
[0002]
[Prior art]
Conventionally, drawing data created using a CAD system is stored in the form of vector data specified by necessary parameters such as a start point, an end point, a length, and an angle. It will be done directly. On the other hand, there is also a demand for effective use of a huge number of paper drawings created in the past by creating a new drawing with a slight modification to the paper drawing. In this case, an existing paper drawing is read by a drawing reading device such as a scanner, and a new drawing is created by adding necessary corrections and corrections to the obtained raster data. Such raster data editing devices are limited in operations such as erasing, copying, pasting, rotating, enlarging, and reducing dot data. Therefore, the raster data editing apparatus is easier to operate than a CAD system capable of editing vector data. It is far inferior.
[0003]
In view of this, an editing apparatus has been developed in which raster data obtained by reading a paper drawing with a scanner is converted into vector data, and editing using vector data is possible. However, since the editing device described above converts all of the read raster data into vector data, it takes time for conversion and unintentional conversion to vector data occurs everywhere. There is a problem that it takes time and effort.
[0004]
In order to solve this problem, the present applicant converts raster data into vector data only for a specified portion of raster data obtained by reading a paper drawing with a scanner, and partially applies the vector data. A raster data editing apparatus that enables editing operations has been proposed and filed (Japanese Patent Application No. 11-105057). According to this raster data editing apparatus, only the portion necessary for editing needs to be converted into vector data, so that the conversion process does not take time, and correction work for the erroneous conversion portion is almost unnecessary, and vector data Since the editing operation can be performed, there is an advantage that the editing operation is easy and the editable range is wide. In addition, the applicant can improve the efficiency of editing operations using existing CAD files and the like based on the fact that raster data and vector data can be mixed in the raster data editing apparatus. A raster data editing apparatus has also been proposed and filed (Japanese Patent Application No. 11-182291). According to this raster data editing device, the vector data from the outside can be taken into the editing base raster data, the coordinate system can be matched and pasted at any position, so existing CAD files etc. can be used effectively Since raster data and vector data are stored in association with each other by an integrated file, raster data and vector data can be edited quickly by direct access to the integrated file, and operability is greatly improved. There is an advantage of doing. In recent years, it has become possible to refer to raster data on vector data handled by a CAD system by using a so-called attach function for pasting image data consisting of raster data as vector data.
[0005]
[Problems to be solved by the invention]
By the way, in the raster data editing apparatus described above, raster data and vector data can be mixed and associated by an integrated file. Therefore, the integrated file created by this raster data editing apparatus can be attached to the image data described above. If it can be used in a CAD system having a function, it is possible to further effectively use various drawing patterns.
[0006]
The present invention has been made in view of the above points, and a drawing file generation method for generating a drawing file in a format that can be used in a CAD system having an image data attaching function from drawing data in which raster data and vector data are mixed. And a medium for storing the program.
[0008]
[Means for Solving the Problems]
ThisThe drawing file generation method according to the invention is a raster data comprising a set of dot data.Integrated drawing file storage means for storing integrated drawing files having mixed drawing data including vector data, memory for temporarily storing the integrated drawing files and providing an editing work area, and storing in the integrated drawing file storage means Editing means for reading the integrated drawing file into the memory to create a drawing file in the vector data format and a drawing file in the raster data format, and a file input / output means for inputting / outputting the file to / from an external CAD system; A drawing file generation method in a raster data editing apparatus comprising: a step of reading the integrated drawing file from the integrated drawing file storage means into the memory by the editing means; and the integrated drawing file storage by the editing means. Integrated drawing file read from the means A step of dividing extracting the vector data and raster data contained in the integrated drawing file based on the distribution, by the editing means,Generate a drawing file in vector data format from the extracted vector dataOutput to the file input / output meansAnd a process ofThe extracted by the editing meansGenerate a raster data format drawing file from raster dataOutput to the file input / output meansComprising the steps of:The editing meansWhen generating the vector data format drawing file, the raster data format drawing file is referred to from the vector data format drawing file.SaidRasterOf drawing files in data formatFile information as a drawing file in the vector data formatFile informationAppend toAnd output to the file input / output meansIt was made to do.
[0009]
The raster file information preferably includes at least the file name of the raster data format drawing file.
[0010]
In this case, the raster file information preferably includes position information of the raster data format drawing file with respect to the vector data format drawing file.
[0012]
ThisRelated to the inventionComputer readable recordThe medium isOn the computer,An integrated drawing file containing raster data consisting of a set of dot data and vector data that has been coordinate-transformed to match the coordinate system of this raster data, Read from integrated drawing file storage means to memoryProcessing,Based on the file information of the integrated drawing file read from the integrated drawing file storage means, vector data and raster data included in the integrated drawing file are divided and extracted.Processing,The extractedVector dataFromGenerate drawing file in vector data formatOutput to file input / output meansAnd processingExtractedRaster dataFromGenerate drawing files in raster data formatOutput to the file input / output means.ProcessingLet it run, Generate a drawing file in the vector data formatLetA raster for referencing the raster data format drawing file from the vector data format drawing file.Of drawing files in data formatFile information as a drawing file in the vector data formatFile informationAppend toOutput to the file input / output means.Further processingLet it runA drawing file generation processing program is stored.
[0013]
According to the present invention, vector data is extracted from an integrated drawing file in which raster data and vector data are mixed to generate a vector data format drawing file, and raster data is extracted to generate a raster data format drawing file. In addition, when generating a drawing file in the vector data format, raster file information for referring to the drawing file in the raster data format can be added from the drawing file in the vector data format. For this reason, for example, from a raster data editing apparatus capable of editing an integrated drawing file while using raster data as an edit base, the raster data is pasted on the background of vector data as image data by the attach function while using vector data as an edit base. In addition, it is possible to directly output a file to a CAD system that can perform editing processing. As a result, it is possible to effectively utilize drawing data in which raster data and vector data are mixed, and to improve data compatibility between the raster data editing apparatus and the CAD system. It becomes possible to raise.
[0014]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a block diagram for explaining a raster data editing apparatus for realizing a drawing file creation method according to an embodiment of the present invention.
[0015]
The image of Drawing 1 before correction is read by the
[0016]
On the other hand, so-called CAD files sent from the CAD system 6 to the
[0017]
In this raster data editing apparatus, the image data of the drawing read by the
[0018]
During actual drawing data editing work, raster data and vector data are mixed from the RV integrated
[0019]
FIG. 2 is a block diagram showing a part of the internal configuration of the
[0020]
Raster data such as the image data 1 of the drawing read by the
[0021]
On the other hand, the RV integrated file database (hereinafter referred to as “RVIDB”) 12 provided in the storage medium 7 stores the RV integrated file created by the RV integrated
[0022]
FIG. 3 is a diagram showing the configuration of the RV integration file described above.
As shown in the figure, the RV integrated file (for example, file name “ABC.RVD”) 40 is mainly composed of a
[0023]
In this raster data editing apparatus capable of performing such editing processing, not only can a CAD file sent from the CAD system 6 be used, but also raster data and vector data created in the raster data editing apparatus can be used. The RV integrated
[0024]
Next, a file generation process in the
FIG. 4 is a block diagram showing a part of the internal configuration of the
[0025]
First, the
[0026]
Next, a file output operation accompanied by a file generation operation in the raster data editing apparatus described above will be described. This raster data editing apparatus is a “single file output” that outputs an active drawing currently displayed on the display screen of the
[0027]
In the “single file output” mode, a “single” command is issued from the “file output” item of the
[0028]
On the other hand, in the “continuous file output” mode, the “continuous” command is selected from the “file output” item of the
[0029]
In these “single” and “continuous”
[0030]
【The invention's effect】
As described above, according to the present invention, vector data is extracted from an integrated drawing file in which raster data and vector data are mixed to generate a vector data format drawing file, and raster data is extracted to obtain raster data. A format drawing file can be generated, and when a vector data format drawing file is generated, it is generated by adding raster file information for referring to the raster data format drawing file from the vector data format drawing file. can do. For this reason, for example, from a raster data editing apparatus capable of editing an integrated drawing file while using raster data as an edit base, the raster data is pasted on the background of vector data as image data by the attach function while using vector data as an edit base. In addition, it is possible to directly output a file to a CAD system that can perform editing processing. As a result, it is possible to effectively utilize drawing data in which raster data and vector data are mixed, and to improve data compatibility between the raster data editing apparatus and the CAD system. There is an effect that it can be increased.
[Brief description of the drawings]
FIG. 1 is a block diagram for explaining a raster data editing apparatus for realizing a drawing file creation method according to an embodiment of the present invention;
FIG. 2 is a block diagram showing a part of an internal configuration of an editing unit and a storage medium of the apparatus.
FIG. 3 is a diagram showing a configuration of an RV integrated file.
FIG. 4 is a block diagram showing a part of the internal configuration of a file generation unit in the editing unit of the apparatus.
FIG. 5 is a flowchart of file generation processing in the file generation unit.
FIG. 6 is a diagram illustrating an operation screen image after the apparatus is activated.
FIG. 7 is a view showing a single file output dialog displayed on the main operation screen of the apparatus.
FIG. 8 is a view showing a continuous file output dialog displayed on the main operation screen of the apparatus.
FIG. 9 is a diagram showing an image for generating a vector file and a raster file from an RV integrated file in the same apparatus.
10 is a diagram showing an image using a vector file and a raster file generated from an RV integrated file in the CAD system 6. FIG.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... Drawing before correction, 2 ... Scanner, 3 ... CPU, 4 ... Memory, 5 ... Editing part, 6 ... CAD system, 7 ... Storage medium, 8 ... Display part, 9 ... Input part, 10 ... Print output part, 11 ... drawing after correction, 12 ... RVIDB, 13 ... vector data pasting unit, 14 ... coordinate conversion unit, 15 ... raster data editing unit, 16 ... vector data editing unit, 17 ... file input / output unit, 18 ... data conversion unit, 19 ... CDB, 20... RDB, 21... VDB, 22... File generation unit, 23.
Claims (4)
前記編集手段によって、前記統合図面ファイル記憶手段から前記統合図面ファイルを前記メモリに読み出す工程と、
前記編集手段によって、前記統合図面ファイル記憶手段から読み出された統合図面ファイルのファイル情報に基づいて前記統合図面ファイルに含まれるベクタデータとラスタデータとを分割抽出する工程と、
前記編集手段によって、前記抽出されたベクタデータからベクタデータ形式の図面ファイルを生成し前記ファイル入出力手段に出力する工程と、
前記編集手段によって、前記抽出されたラスタデータからラスタデータ形式の図面ファイルを生成し前記ファイル入出力手段に出力する工程とを備え、
前記編集手段が前記ベクタデータ形式の図面ファイルを生成する際に、前記ベクタデータ形式の図面ファイルから前記ラスタデータ形式の図面ファイルを参照するための前記ラスタデータ形式の図面ファイルのファイル情報を前記ベクタデータ形式の図面ファイルのファイル情報に付加して前記ファイル入出力手段に出力するようにした
ことを特徴とする図面ファイル生成方法。 Integrated drawing file storage means for storing an integrated drawing file having mixed drawing data including raster data consisting of a set of dot data and vector data; a memory for temporarily storing the integrated drawing file and providing an editing work area; The integrated drawing file stored in the integrated drawing file storage means is read into the memory to create a vector data format drawing file and a raster data format drawing file, and an external CAD system inputs the file. A drawing file generation method in a raster data editing device comprising a file input / output means for performing output,
Reading the integrated drawing file from the integrated drawing file storage means to the memory by the editing means;
Dividing and extracting vector data and raster data included in the integrated drawing file based on file information of the integrated drawing file read from the integrated drawing file storage unit by the editing unit;
A step of generating a drawing file in a vector data format from the extracted vector data by the editing means and outputting to the file input / output means ;
A step of generating a drawing file in a raster data format from the extracted raster data by the editing means and outputting the drawing file to the file input / output means ;
When the editing means generates a drawing file of the vector data format, the vector data format said vector file information drawing file of raster data format from drawing files for referring to the drawing file of the raster data format A drawing file generation method characterized by adding to file information of a drawing file in a data format and outputting to the file input / output means .
ドットデータの集合からなるラスタデータと、このラスタデータの座標系と整合するように座標変換されたベクタデータとを含む統合図面ファイルを、統合図面ファイル記憶手段からメモリに読み出す処理と、
前記統合図面ファイル記憶手段から読み出された統合図面ファイルのファイル情報に基づいて前記統合図面ファイルに含まれるベクタデータとラスタデータとを分割抽出する処理と、
前記抽出されたベクタデータからベクタデータ形式の図面ファイルを生成させファイル入出力手段に出力させる処理と、
前記抽出されたラスタデータからラスタデータ形式の図面ファイルを生成させ前記ファイル入出力手段に出力させる処理とを実行させ、
前記ベクタデータ形式の図面ファイルを生成させる際に、前記ベクタデータ形式の図面ファイルから前記ラスタデータ形式の図面ファイルを参照するためのラスタデータ形式の図面ファイルのファイル情報を前記ベクタデータ形式の図面ファイルのファイル情報に付加させて前記ファイル入出力手段に出力させるようにした処理を更に実行させる
図面ファイル生成処理プログラムを記憶してなるコンピュータに読み取り可能な記録媒体。 On the computer,
A process of reading an integrated drawing file including raster data composed of a set of dot data and vector data coordinate-transformed so as to be consistent with the coordinate system of the raster data from the integrated drawing file storage means to
Processing for dividing and extracting vector data and raster data contained in the integrated drawing file based on file information of the integrated drawing file read from the integrated drawing file storage means ;
And Ru processing is output to a file input and output means to generate a drawing file of the vector data format from the vector data of the extracted,
Wherein the extracted raster data to generate a drawing file of raster data format by executing the process of Ru is output to the file input and output means,
When Ru to produce a drawing file of the vector data format, the drawings of the file information vector data format of the drawing file raster data format for referencing the drawing file of the raster data format from drawing file of the vector data format readable recording medium formed by storing the drawing file generation processing program by adding to the file information of the file Ru further execute the processing to so that is output to the file input and output unit computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000344111A JP4434469B2 (en) | 2000-11-10 | 2000-11-10 | Drawing file generating method and medium storing the program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000344111A JP4434469B2 (en) | 2000-11-10 | 2000-11-10 | Drawing file generating method and medium storing the program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2002150309A JP2002150309A (en) | 2002-05-24 |
JP4434469B2 true JP4434469B2 (en) | 2010-03-17 |
Family
ID=18818364
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2000344111A Expired - Fee Related JP4434469B2 (en) | 2000-11-10 | 2000-11-10 | Drawing file generating method and medium storing the program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4434469B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7448417B2 (en) * | 2020-05-21 | 2024-03-12 | ローランドディー.ジー.株式会社 | Image data creation device, printing system, and computer program for creating image data |
-
2000
- 2000-11-10 JP JP2000344111A patent/JP4434469B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2002150309A (en) | 2002-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2001328325A (en) | Imaging controller, imaging apparatus, method for controlling imaging apparatus, and storage medium | |
US6636774B2 (en) | CAD supporting apparatus, and CAD supporting program storage medium | |
US20050022112A1 (en) | Form processing method, program and apparatus | |
US7055141B2 (en) | Humanity interface development system of testing program of circuit board | |
JP4434469B2 (en) | Drawing file generating method and medium storing the program | |
JP2001243490A (en) | Method for generating and editing drawing file and medium stored with program thereof | |
JPS60100220A (en) | Document processor | |
JP2979588B2 (en) | Image processing apparatus and image data management / processing method thereof | |
JP4532872B2 (en) | Document processing method and document processing apparatus | |
JP4334987B2 (en) | DTP editing apparatus having area designation function and data cutout function | |
JP4253077B2 (en) | Raster data editing device | |
US20040019854A1 (en) | Dynamically configurable page numbering system | |
JP2001101327A (en) | Information processing method, information processor and printing system | |
JP4309987B2 (en) | Raster data editing method and apparatus | |
JP3607913B2 (en) | Image display device | |
JP2002366880A (en) | Device and method for frame editing and storage medium stored with computer-readable program | |
JP2995239B2 (en) | Print data processing device | |
JPH09245024A (en) | Document preparation device and suffix document management method | |
JP4401594B2 (en) | Image processing apparatus, image processing method, program, storage medium, and image forming system | |
JP4515108B2 (en) | Plotter | |
JP3569798B2 (en) | Form output device | |
JPH05274313A (en) | Document preparing device | |
JP2006343877A (en) | Print system, control method and program | |
JP2008139512A (en) | Information registration apparatus and method | |
JP2000194777A (en) | Electronic slip system and recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070608 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20070820 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090713 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090728 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090928 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20091208 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20091222 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130108 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130108 Year of fee payment: 3 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130108 Year of fee payment: 3 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140108 Year of fee payment: 4 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |