JP2006227988A - Cad device and cad program - Google Patents
Cad device and cad program Download PDFInfo
- Publication number
- JP2006227988A JP2006227988A JP2005042127A JP2005042127A JP2006227988A JP 2006227988 A JP2006227988 A JP 2006227988A JP 2005042127 A JP2005042127 A JP 2005042127A JP 2005042127 A JP2005042127 A JP 2005042127A JP 2006227988 A JP2006227988 A JP 2006227988A
- Authority
- JP
- Japan
- Prior art keywords
- dimension
- notation
- value
- calculated
- dimension value
- 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
Images
Abstract
Description
本発明は、CAD装置、及びCADプログラムに関し、例えば、建築設計、機械設計などの設計図面をコンピュータにより作図・保守するものに関する。 The present invention relates to a CAD apparatus and a CAD program. For example, the present invention relates to a computer that draws and maintains design drawings such as architectural design and mechanical design.
近年の急激なコンピュータの発達に伴い、従来はドラフタなどを用いて手作業で行っていた建築図面の作成をコンピュータを用いたCAD(Computer Aided Design)装置により作成することが広く行われるようになってきた。
ここで、CAD装置とは、コンピュータによる設計支援装置のことであり、コンピュータにCADソフトをインストールし、コンピュータの演算機能や記憶機能などを用いて図面作成を効率化するものである。
With the rapid development of computers in recent years, the creation of architectural drawings, which have been done manually using a drafter or the like, by a CAD (Computer Aided Design) device using a computer has been widely performed. I came.
Here, the CAD device is a computer-aided design support device, in which CAD software is installed in the computer, and drawing creation is made efficient by using the computer's arithmetic function and storage function.
CAD装置で生成されるCADデータ(図面データ)は、例えば、直線や円弧などの図形を表す図形要素や、寸法表記、寸法公差、施工指示などの補助的な要素を用いて設計対象が表現される。 CAD data (drawing data) generated by a CAD device represents a design object using, for example, graphic elements representing figures such as straight lines and arcs, and auxiliary elements such as dimension notation, dimension tolerance, and construction instructions. The
CAD装置では、図形の寸法を表記する寸法表記を図形の大きさと図面の縮尺などから自動生成することが可能であるが、これは設計者が編集することができるため、人為的なミスなどにより寸法表記と図形の大きさが一致しない場合がある。 In a CAD device, it is possible to automatically generate a dimension notation that describes the dimensions of a figure from the size of the figure and the scale of the drawing. However, since this can be edited by the designer, due to human error, etc. Dimensional notation and figure size may not match.
特に、建築分野では、複数の業者が共同して建築工事を行うため、作成されたCADデータが業者間でやり取りされる。そのため、その間で寸法表記が書き換えられるなどして、寸法値の表記が実際に施工する数値と異なる設計図面が施工者に渡されることがある。このような場合、寸法値が正しくない図面に従って施工すると、設計通りの成果物にならない(設計値と表記された寸法値が異なる)ため、図面の寸法値の表記が正しいかどうかを確認する必要がある。
このように、図形と寸法表記が一致するか否かを判定する技術に次のものがある。
As described above, there are the following techniques for determining whether or not a figure and a dimensional notation match.
この技術は、CAD画面における寸法表記が正しいか否かを図面における実寸法と比較して確認するものである。
この技術は、2次元CADデータから3次元CADデータを生成した後、2次元CADデータで表記された寸法値と、3次元CADデータでの図形の寸法が一致するか否かを確認するものである。 In this technology, after generating three-dimensional CAD data from two-dimensional CAD data, it is confirmed whether or not the dimension value described in the two-dimensional CAD data matches the figure dimension in the three-dimensional CAD data. is there.
ところで、一般に、CADデータで用いられる寸法表記は、文字列データ(テキストデータ)で構成されている。
そして、寸法表記には、寸法値を表す数字の他に、寸法の意味や単位などを表す記号(例えば円弧の半径を表すR記号など)、公差の指定などの付属的な情報も含まれている。
このように寸法表記は、複合的な文字列で構成されているため、コンピュータで寸法表記から寸法数値を認識するのが困難であるという問題があった。
By the way, generally, the dimension notation used in CAD data is composed of character string data (text data).
The dimension notation includes not only numbers representing dimension values but also additional information such as symbols representing meanings and units of dimensions (for example, R symbol representing the radius of an arc) and specification of tolerances. Yes.
Thus, since the dimension notation is composed of a complex character string, there is a problem that it is difficult for a computer to recognize the dimension numerical value from the dimension notation.
また、例えば、寸法の範囲を指定する矢線などで表される寸法線の長さと、寸法線が指す箇所を示す寸法補助線の指示箇所(足の基準点)の距離が異なる場合など、寸法表記の形状によっては寸法線の座標から単純に計算できない場合も存在する。 Also, for example, when the length of the dimension line indicated by an arrow line that specifies the dimension range is different from the distance between the designated part of the dimension extension line (the reference point of the foot) that indicates the part pointed to by the dimension line, etc. Depending on the shape of the notation, there are cases where it cannot be simply calculated from the coordinates of the dimension line.
そこで、本発明の目的は、CADデータにおいて、寸法値として表記されている文字列を数値として認識し、寸法表記が示す箇所の計算値と比較することである。 Accordingly, an object of the present invention is to recognize a character string written as a dimension value as a numerical value in CAD data and compare it with a calculated value indicated by the dimension notation.
本発明は、前記目的を達成するために、請求項1に記載した発明では、寸法表記が対応付けられた図形要素を用いて構成されたCADデータから、前記寸法表記を構成する文字列データを読み取って所定の記憶領域に記憶する寸法表記読取手段と、前記記憶した文字列データを変換して前記寸法表記が表す表記寸法値を生成し、前記生成した表記寸法値を所定の記憶領域に記憶する表記寸法値生成手段と、前記文字列データを読み取った寸法表記に対応する図形要素の算出寸法値を算出し、前記算出した算出寸法値を所定の記憶領域に記憶する寸法値算出手段と、前記記憶した表記寸法値と、前記記憶した算出寸法値と、を比較する比較手段と、前記比較手段による比較結果を出力する比較結果出力手段と、を具備したことを特徴とするCAD装置を提供する。
請求項2に記載の発明では、前記寸法値算出手段は、当該算出した図形要素に対応する寸法表記の寸法線、及び寸法補助線の少なくとも一方の座標値を用いて図形要素の寸法値を算出することを特徴とする請求項1に記載のCAD装置を提供する。
請求項3に記載の発明では、前記記憶した表記寸法値の単位が寸法表記によって特定されない場合、前記取得した表記寸法値と算出寸法値との誤差が、単位ごとに設定された表記寸法数値と算出寸法数値の許容誤差のうちの少なくとも1つを満たしている場合に、当該表記寸法値と当該算出寸法値が一致しているか否かを比較することを特徴とする請求項1、又は請求項2に記載のCAD装置を提供する。
請求項4に記載の発明では、前記生成した表記寸法値と当該表記寸法値に対応する算出寸法値とから縮尺を算出し、前記算出した算出縮尺を所定の記憶領域に記憶する縮尺算出手段を具備したことを特徴とする請求項1、請求項2、又は請求項3に記載のCAD装置を提供する。
請求項5に記載の発明では、前記出力手段は、表記寸法と算出寸法が一致しない図形要素を、表記寸法と算出寸法が一致する図形要素から識別可能に表示装置に表示することを特徴とする請求項1から請求項4までのうちの何れか1の請求項に記載のCAD装置を提供する。
請求項6に記載の発明では、寸法表記が対応付けられた図形要素を用いて構成されたCADデータから、前記寸法表記を構成する文字列データを読み取って所定の記憶領域に記憶する寸法表記読取機能と、前記記憶した文字列データを変換して前記寸法表記が表す表記寸法値を生成し、前記生成した表記寸法値を所定の記憶領域に記憶する表記寸法値生成機能と、前記文字列データを読み取った寸法表記に対応する図形要素の算出寸法値を算出し、前記算出した算出寸法値を所定の記憶領域に記憶する寸法値算出機能と、前記記憶した表記寸法値と、前記記憶した算出寸法値と、を比較する比較機能と、前記比較機能による比較結果を出力する比較結果出力機能と、をコンピュータで実現するCADプログラム。
In order to achieve the above object, according to the first aspect of the present invention, in the invention described in
In the invention according to
In the invention according to
According to a fourth aspect of the present invention, there is provided a scale calculating means for calculating a scale from the generated notation dimension value and a calculated dimension value corresponding to the notation dimension value, and storing the calculated scale in a predetermined storage area. The CAD device according to
The invention according to
According to the sixth aspect of the present invention, the dimension notation reading for reading the character string data constituting the dimension notation from the CAD data constituted by using the graphic element associated with the dimension notation and storing it in a predetermined storage area. A function, a notation dimension value generation function for converting the stored character string data to generate a notation dimension value represented by the dimension notation, and storing the generated notation dimension value in a predetermined storage area, and the character string data. The calculated dimension value of the graphic element corresponding to the dimension notation read is calculated, the calculated dimension value is stored in a predetermined storage area, the stored notation dimension value, and the stored calculation A CAD program for realizing a comparison function for comparing dimension values and a comparison result output function for outputting a comparison result by the comparison function by a computer.
本発明によると、寸法値として表記されている文字列を数値として認識し、寸法表記が示す箇所の計算値と比較することができる。 According to the present invention, a character string described as a dimension value can be recognized as a numerical value and compared with a calculated value indicated by a dimension notation.
[実施の形態の概要]
本実施の形態のCAD装置は、寸法表記を構成する文字列のパターンを用いて寸法値を表す文字・文字列を抽出する。そして、これを数値データに変換し、表記寸法値を生成する。
また、CAD装置は、寸法線や寸法補助線などを用いて寸法線が指し示す箇所の寸法値を計算し、これによって計算寸法値を生成する。
[Outline of the embodiment]
The CAD device according to the present embodiment extracts a character / character string representing a dimension value using a character string pattern constituting a dimension notation. Then, this is converted into numerical data to generate a notation dimension value.
Further, the CAD device calculates a dimension value of a location indicated by the dimension line using a dimension line, a dimension auxiliary line, or the like, thereby generating a calculated dimension value.
CAD装置は、このようにして生成した表記寸法値と計算寸法値が、予め定められた誤差範囲内で一致するか否かを確認し、確認結果をユーザに提示する。
これによって、設計図面(CAD図面)で表記されている寸法値に誤りがあった場合に、ユーザは、これを自動的に確認することができる。
The CAD device confirms whether the notation dimension value thus generated matches the calculated dimension value within a predetermined error range, and presents the confirmation result to the user.
As a result, when there is an error in the dimensional value described in the design drawing (CAD drawing), the user can automatically confirm this.
[実施の形態の詳細]
まず、CAD装置1のハードウェア的な構成について説明する。
図1は、CAD装置1のハードウェアの構成の一例を示した図である。図1は、CAD装置1をパーソナルコンピュータなどで構成し、スタンドアローン的に使用する場合を想定している。
CAD装置1は、制御部11に、バスライン18を介して入力装置15、出力装置16、通信制御装置17、記憶装置23、記憶媒体駆動装置20、入出力インターフェース19などが接続して構成されている。
[Details of the embodiment]
First, the hardware configuration of the
FIG. 1 is a diagram illustrating an example of a hardware configuration of the
The
制御部11は、CPU(Central Processing Unit)13、ROM(Read Only Memory)12、RAM(Random Access Memory)14などから構成されている。
制御部11は、OS(Operating System)やCADプログラムなどの各種プログラムに従って動作し、プログラムで規定された所定の演算や画面の表示といったCAD装置1全体の制御を行う。本実施の形態では、CAD装置1として建築図面の設計支援処理を行う。
The control unit 11 includes a CPU (Central Processing Unit) 13, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 14, and the like.
The control unit 11 operates in accordance with various programs such as an OS (Operating System) and a CAD program, and controls the
CPU13は、制御部11の中心的なデバイスであって、ROM12や記憶装置23、又は記憶媒体駆動装置20によって駆動される記憶媒体などからプログラムをロードし、プログラムに従って制御部11を制御する。
また、CPU13は、内部にレジスタなどと呼ばれる内部記憶媒体(記憶領域)を複数内蔵している。CPU13は、外部の記憶媒体などから内部記憶媒体にデータを一時的に記憶し、これを演算処理する。演算結果はレジスタに出力され、更にレジスタから外部の記憶媒体などに出力される。
The
The
ROM12は、CPU13が各種演算や制御を行うための各種プログラム、データ及びパラメータなどを格納したリードオンリーメモリである。ROM12は、不揮発性のメモリであって、ROM12に供給される電力がゼロの状態でも記憶内容は保持される。また、ROM12は、読み込み専用のメモリであるため、通常はデータの書き込みは行われない。
The
RAM14は、CPU13にワーキングメモリとして使用されるランダムアクセスメモリである。CPU13は、RAM14にプログラムやデータなどを書き込んだり消去したりすることができる。本実施の形態では、RAM14には、平面図から立面図を自動生成したりなど、各種の設計支援処理をするための領域が確保可能となっている。
The
入力装置15は、例えばキーボードやマウス、タブレットなどの入力装置から構成されている。
キーボードは、カナや英文字などを入力するためのキーや数字を入力するためのテンキー、各種機能キー、カーソルキー及びその他のキーによって構成されている。
The
The keyboard includes keys for inputting kana and English characters, numeric keys for inputting numbers, various function keys, cursor keys, and other keys.
キーボードからは、CAD装置1に対して文字や数字などの情報を入力することができる他、メニュー画面から図面要素を選択したりすることもできる。
更に、キーボードから、例えばユーザがCAD装置1にログインするためのログインIDやパスワードを入力したり、あるいは各種プログラムを操作したりすることができる。
From the keyboard, information such as letters and numbers can be input to the
Furthermore, for example, the user can input a login ID and password for logging in to the
マウス、及びタブレットは、ポインティングデバイスである。GUI(Graphical User Interface)などを用いてCAD装置1を操作する場合、表示装置上に表示されたボタンやアイコンなどをマウスなどでクリックすることにより、所定の情報の入力を行うことができる。
本実施の形態では、例えば、コマンド実行ボタンをクリックすることにより、各種コマンドを実行して、寸法確認対象ファイルを開いたり、寸法確認を実行したりすることができる。
A mouse and a tablet are pointing devices. When the
In the present embodiment, for example, by clicking a command execution button, various commands can be executed to open a dimension check target file or execute dimension check.
また、入力装置15として、CAD装置1専用の入力ボタン群から成るデバイスを用いることもできる。これは、例えば、円弧を描くボタン、直線を描くボタン、寸法確認を行うボタンなど、各描画機能を設定するためのボタン群から成るデバイスであって、これを用いると、メニュー画面から描画機能を選択する場合に比べて作業の高速化、省力化をすることができる。
Further, as the
出力装置16は、例えば表示装置、印刷装置、プロッタなどから構成されている。
表示装置は、例えばCRT(Cathode Ray Tube)ディスプレイ、液晶ディスプレイ、プラズマディスプレイなどで構成され、設計図面を表示したり、寸法確認結果を用いて、表記寸法値と算出寸法値が一致しない図形要素を、表記寸法値と算出寸法値が一致する図形要素から識別可能に表示したりする。
The
The display device is composed of, for example, a CRT (Cathode Ray Tube) display, a liquid crystal display, a plasma display, and the like, and displays a design drawing or uses a dimensional confirmation result to display a graphic element whose notation dimension value does not match the calculated dimension value. In addition, the displayed dimension value and the calculated dimension value are displayed so as to be identifiable from a graphic element.
印刷装置は、プログラムの実行結果などを紙などの印刷媒体に印刷する装置である。
印刷装置は、例えば、インクジェットプリンタ、レーザプリンタ、熱転写プリンタ、ドットプリンタなどの各種プリンタ装置によって構成されている。
本実施の形態では、設計図面を印刷する他、寸法確認結果を用いて表記寸法値と算出寸法値が一致しない図形要素を識別可能に印刷することも可能である。
The printing apparatus is an apparatus that prints a program execution result or the like on a print medium such as paper.
The printing apparatus includes various printer apparatuses such as an ink jet printer, a laser printer, a thermal transfer printer, and a dot printer.
In the present embodiment, in addition to printing a design drawing, it is also possible to print a graphic element whose notation dimension value and calculated dimension value do not coincide with each other by using a dimension confirmation result.
通信制御装置17は、図示しない通信回線を介してCAD装置1をインターネットなどのネットワークに接続するための装置であって、モデム、ターミナルアダプタ、その他の装置によって構成されている。
The
通信制御装置17は、例えばインターネットやLAN(Local Area Network)などに接続しており、これらのネットワークに接続したサーバ装置などに対してデータの送受信を行ったり、電子メールの送受信を行うことができる。
通信制御装置17はCPU13によって制御され、所定のプロトコルに従って送受信を行う。
The
The
CAD装置1は、通信制御装置17を用いて、CADプログラム31をアップデートする場合に、現在保持しているCADプログラム31をアップデートするためのプログラムをサーバ装置から受信したり、CADデータを他のコンピュータから受信したりなどすることができる。
更に、CAD装置1は、通信制御装置17を用いて、寸法確認対象のCADデータを外部から受信し、寸法確認結果を外部に送出することが可能である。
When the
Further, the
記憶装置23は、読み書き可能な記憶媒体と、その記憶媒体に対してプログラムやデータを読み書きするための駆動装置とによって構成されている。当該記憶媒体として主にハードディスクが使用されるが、その他に、例えば、光磁気ディスク、磁気ディスク、半導体メモリなどの他の読み書き可能な記憶媒体によって構成することも可能である。
The
記憶装置23には、CADプログラム31、CADデータベース32、OS33、その他のプログラム34、その他のデータベース35などが所定の記憶領域に格納されている。
CADプログラム31は、設計図の作成・保守などを支援するためのプログラムであり、後述するように、設計図面で描画される図形の寸法を計算によって計測し、この算出寸法値が当該図形に対して表記されている表記寸法値と一致するか確認する機能をCPU13に発揮させることができる。
The
The
OS33は、CAD装置1を機能させるための基本的なプログラムであり、ファイルの入出力やCAD装置1に接続されている各デバイスの制御などを行う。
その他のプログラム34は、日本語変換プログラムや通信制御装置17などを制御して通信を確立する通信制御プログラムなど、各種のプログラムから構成されている。
その他のデータベース35は、例えば、CADデータなどCADプログラム31を用いて作成したデータを格納するデータベースなどから構成されている。
The
The
The
記憶媒体駆動装置20は、着脱可能な記憶媒体を駆動してデータの読み書きを行うための駆動装置である。着脱可能な記憶媒体としては、例えば、光磁気ディスク、磁気ディスク、磁気テープ、半導体メモリ、データをパンチした紙テープ、CD−ROMなどがある。
The storage
なお、CD−ROMや紙テープは、読み込みのみ可能である。記憶媒体駆動装置20を介して記憶媒体からアプリケーションソフトをインストールしたり、CADデータをバックアップするための記憶媒体にバックアップ用のデータを記憶媒体に書き込んだり、記憶媒体に書き込まれているバックアップデータを読み込んだりすることもできる。
Note that CD-ROMs and paper tapes can only be read. Install application software from the storage medium via the storage
入出力I/F(インターフェース)19は、例えば、シリアルインターフェースやその他の規格のインターフェースにより構成されている。入出力インターフェース19に当該インターフェースに対応した外部機器を接続することにより、CAD装置1の機能を拡張することができる。このような外部機器として例えば、ハードディスクなどの記憶装置、スピーカなどがある。
The input / output I / F (interface) 19 is constituted by, for example, a serial interface or another standard interface. The function of the
ユーザは、以上のようにして構成されたCAD装置1を用いて、各種の設計図面をコンピュータ上で作成することができる。
なお、設計図面には、建築図面、機械図面、土木図面など、各種のものがあり、また、CAD装置も、これらの種類に特化したものが使用されている。
以下では、一例として建築図面を用いて説明するが、以下で説明する技術内容は、機械図面などのその他の種類のCADデータに適用することができる。
The user can create various design drawings on the computer by using the
There are various types of design drawings such as architectural drawings, mechanical drawings, and civil engineering drawings, and CAD devices specialized for these types are also used.
In the following, description will be made using architectural drawings as an example, but the technical contents described below can be applied to other types of CAD data such as mechanical drawings.
次に、図2の各図を用いて、CADデータの構成を説明する。このCADデータは、例えば、CADデータベース32(図1)に格納されており、寸法確認の対象となるものである。 Next, the configuration of CAD data will be described with reference to each drawing of FIG. This CAD data is stored in, for example, the CAD database 32 (FIG. 1), and is a target for dimension confirmation.
図2(a)は、CADデータのデータ構造を説明するための図である。
CAD装置1では、コンピュータ上での製図用紙に該当する概念である用紙図面の上に、線分、円などの図形要素や、寸法線、寸法補助線などの寸法要素を配置していくことによりCADデータ41を作成していく。
FIG. 2A is a diagram for explaining the data structure of CAD data.
In the
CADデータ41は、この用紙図面を表示するための用紙図面データ42に加えて複数の縮尺図面データ(縮尺図面データ43a、縮尺図面データ43b、・・・)から構成されている。
なお、以下では、これら縮尺図面データを特に区別しない場合は単に縮尺図面データ43と記す。
The
In the following description, the scale drawing data 43 will be simply referred to as scale drawing data 43 unless particularly distinguished.
縮尺図面データ43は、レイヤなどと呼ばれる複数の層を構成しており、ユーザは、縮尺図面データ43を選択して、その縮尺図面データ43上に設計図面を描くことができる。 The scale drawing data 43 includes a plurality of layers called layers, and the user can select the scale drawing data 43 and draw a design drawing on the scale drawing data 43.
CADデータ41では、後述の付属情報を設定することにより、縮尺図面データ43ごとに座標系の位置・角度や縮尺を設定することができる。また、例えば、縮尺図面データ43aを非表示にし、他の縮尺図面データ43を表示させるといったように、縮尺図面データ43ごとに表示・非表示を設定することもできる。
In the
図2(b)は、縮尺図面データ43が有する属性情報の論理的な構成を示した図である。属性情報45は、縮尺図面データ43ごとに設けられ、各縮尺図面データ43の属性を設定する。属性情報45は、ユーザが設定値を変更することが可能である。
属性情報45は、「図面情報」、「名称」、「X軸方向縮尺」、「Y軸方向縮尺」、「配置角度」、「表示オン・オフ」や図示しないその他の項目から構成されている。
FIG. 2B is a diagram illustrating a logical configuration of attribute information included in the scale drawing data 43. The
The
「図面情報」は、例えば、図面番号、作成日時、作成者といった縮尺図面データ43に関する情報を記録する項目である。
「名称」は、例えば「間取り」など、縮尺図面データ43に対してユーザが設定した図面名称を記録する項目である。
“Drawing information” is an item for recording information about the scale drawing data 43 such as a drawing number, a creation date, and a creator.
The “name” is an item for recording a drawing name set by the user with respect to the scale drawing data 43 such as “floor layout”.
「X軸方向縮尺」は、縮尺図面データ43のX軸方向の縮尺を記録する項目である。この縮尺により、用紙図面データ42で用いられている図形要素の座標値から、この図形で表された設計対象物の実際の寸法を計算することができる。
「Y軸方向縮尺」は、「X軸方向の縮尺」と同様に、縮尺図面データ43のY軸方向の縮尺を記録する項目である。
“X-axis direction scale” is an item for recording the scale in the X-axis direction of the scale drawing data 43. With this scale, the actual dimensions of the design object represented by this graphic can be calculated from the coordinate values of the graphic elements used in the
The “scale in the Y-axis direction” is an item for recording the scale in the Y-axis direction of the scale drawing data 43 in the same manner as the “scale in the X-axis direction”.
「配置角度」は、縮尺図面データ43に設定された座標系の配置角度を記憶する項目であって、例えば、用紙図面データ42の座標系を基準とした配置角度が設定される。
また、図示しないが、縮尺図面データ43の座標系の原点の座標値を記録する項目を設け、縮尺図面データ43の原点の位置を設定できるように構成することも可能である。
“Arrangement angle” is an item for storing the arrangement angle of the coordinate system set in the scale drawing data 43. For example, an arrangement angle based on the coordinate system of the
Although not shown, it is possible to provide an item for recording the coordinate value of the origin of the coordinate system of the scale drawing data 43 so that the position of the origin of the scale drawing data 43 can be set.
「表示オン・オフ」は、縮尺図面データ43をディスプレイ上に表示するか否かを設定する項目である。
この項目をオンに設定すると、当該縮尺図面データ43がディスプレイ上に表示され、オフに設定すると表示されない。
“Display ON / OFF” is an item for setting whether or not to display the scale drawing data 43 on the display.
When this item is set to ON, the scale drawing data 43 is displayed on the display, and when this item is set to OFF, it is not displayed.
図3の各図は、CADデータ41の描画イメージを説明するための概念図である。
図3(a)は、CADデータ41をCAD装置1のディスプレイ上に表示した設計図面画面を模式的に示している。
設計図面画面47での表示内容は、用紙図面データ42と、縮尺図面データ43a、縮尺図面データ43b、縮尺図面データ43cを用いて生成されている。
Each drawing in FIG. 3 is a conceptual diagram for explaining a drawing image of the
FIG. 3A schematically shows a design drawing screen in which
The display contents on the
縮尺図面データ43aは、縮尺が1/50に設定されており、縮尺図面データ43b、縮尺図面データ43cでは、それぞれ1/30、1/10に設定されており、設計図面画面47では、これらの縮尺にて各縮尺図面データ43の表示がなされる。なお、一般に、用紙図面データ42の縮尺は1/1に固定されている。
The
また、縮尺図面データ43cの座標系は、用紙図面データ42の座標系に対して時計回り方向に傾けて設定されており、設計図面画面47では、縮尺図面データ43cによる表示内容をこの角度だけ傾けて表示している。
Further, the coordinate system of the
図3(b)は、設計図面画面47の層構造を示した図である。
図3(b)に示したように、設計図面画面47は、用紙図面データ42による表示と、縮尺図面データ43a、縮尺図面データ43b、縮尺図面データ43cによる表示を重畳して表示し、1枚の設計図面を構成している。
このように、CAD装置1は、複数の図面を重ねて、ユーザから見て1枚の設計図面となるように設計図面画面47を表示する。
FIG. 3B is a diagram showing the layer structure of the
As shown in FIG. 3B, the
In this way, the
CADデータは、縮尺図面データ43の上に図面要素(図形要素、寸法要素など)を配置していくことにより作成される。そこで、次に、CADデータで使用される主な図面要素について説明する。 The CAD data is created by arranging drawing elements (graphic elements, dimension elements, etc.) on the reduced scale drawing data 43. Thus, next, main drawing elements used in the CAD data will be described.
図4は、CAD装置1で使用する図面要素と、これら図面要素の属性を一覧した表である。
図4に示したように、図面要素は、直線、円弧などの図形類を描画するための図形要素や、文字、直線寸法、角度寸法、弧長寸法、直径寸法、半径寸法といった寸法要素などから構成されている。
FIG. 4 is a table listing the drawing elements used in the
As shown in FIG. 4, drawing elements include graphic elements for drawing graphics such as straight lines and arcs, and dimension elements such as characters, linear dimensions, angular dimensions, arc length dimensions, diameter dimensions, and radial dimensions. It is configured.
各図面要素は、図面要素を配置する座標値など、縮尺図面データ43において図面要素を規定する属性が付随しており、ユーザは、これらの属性を設定していくことにより縮尺図面データ43上に図面要素を配置していくことができる。 Each drawing element is accompanied by attributes defining the drawing element in the scale drawing data 43, such as coordinate values for arranging the drawing elements, and the user sets these attributes on the scale drawing data 43. Drawing elements can be arranged.
以下に、図4の表を用いて各図面要素ごとの属性について説明する。
なお、何れの図面要素においても、属性1は配置される縮尺図面データ43を特定する配置図面番号を示しているので他の属性について説明する。
また、以下では、直線に係る図面要素を直線要素、直線寸法に係る図面要素を直線寸法要素などと略記することにする。
Below, the attribute for each drawing element will be described using the table of FIG.
Note that in any drawing element,
In the following, a drawing element related to a straight line is abbreviated as a linear element, and a drawing element related to a linear dimension is abbreviated as a linear dimension element.
直線要素は、例えば、設計対象の直線部分を表現するための図形要素であり、属性1〜属性3により規定される。属性2は直線要素の始点の座標値を規定し、属性3は直線要素の終点の座標値を規定している。
図5に直線要素の一例を図示する。図5に示したように、直線要素119は、始点110、終点111によって規定される。
属性2は、始点110の座標値を規定しており、属性3は、終点111の座標値を規定している。
The straight line element is, for example, a graphic element for expressing a straight line part to be designed, and is defined by
FIG. 5 shows an example of a linear element. As shown in FIG. 5, the
The
円弧要素(図4)は、例えば、設計対象の円・円弧部分を表現するための図形要素であり、属性1〜属性5によって規定される。属性2は円弧要素の中心点の座標値を規定し、属性3は円弧要素の半径を規定している。そして、属性4は円弧要素の開始角、属性5は円弧要素の終了角を規定している。
The arc element (FIG. 4) is, for example, a graphic element for expressing a circle / arc part to be designed, and is defined by
図6に円弧要素の一例を図示する。図6に示したように、円弧要素129は、中心点120(属性2)、半径121(属性3)、開始角122(属性4)、及び終了角123(属性5)によって規定される。
FIG. 6 shows an example of the arc element. As shown in FIG. 6, the
円弧要素129を規定する角度は、所定の基準線と、円弧要素129の両端点と中心点120を結んだ線分が反時計方向に成す角度を用いる。そして、角度が小さい方を開始角122とし、角度が大きい方を終了角123とする。また、円弧要素129が円を表す場合は開始角122は例えば0°に設定され、終了角123は360°に設定される。
The angle that defines the
文字要素(図4)は、属性1〜属性5によって規定される。属性2は文字要素の基準位置の座標値を規定しており、属性3は文字の大きさを規定している。また、属性4は文字要素の配置角度を規定し、属性5は文字列の内容(文字列データ)を規定している。
The character element (FIG. 4) is defined by
図7に文字要素の一例を図示する。
図7に示したように、文字要素139は、文字要素の表示基準点130の座標値(属性2)、大きさ131(属性3)、表示角132(属性4)、及び文字列133(属性5)によって規定される。
FIG. 7 illustrates an example of a character element.
As shown in FIG. 7, the
大きさ131は、文字列133の大きさを規定している。
表示角132は、所定の基準線に対して文字列133が反時計方向に成す角度である。
また、文字列133は、文字列データ(文字コードにより寸法文字などを規定したデータ、即ちテキストデータ)にて構成されている。
The size 131 defines the size of the character string 133.
The display angle 132 is an angle formed by the character string 133 counterclockwise with respect to a predetermined reference line.
The character string 133 is composed of character string data (data defining dimension characters by character codes, that is, text data).
直線寸法要素(図4)は、属性1〜属性7によって規定される。属性2は寸法線の始点の座標値を規定し、属性3は寸法線の終点の座標値を規定している。
また、属性4は図形要素において寸法線が指す箇所の始点の座標値を規定しており、属性5は同様に寸法線が指す箇所の終点の座標値を規定している。
そして、属性6は寸法文字の表示基準位置の座標値を規定し、属性7は寸法文字を構成する文字列データを規定している。
The linear dimension element (FIG. 4) is defined by
The
The
図8(a)に直線寸法要素の一例を図示する。
図8(a)に示したように、直線寸法要素は、直線状の寸法線149と、その両端の寸法補助線148、148、及び文字列145などから構成されている。
属性2は寸法線149の始点140の座標値を規定しており、属性3は寸法線149の終点141の座標値を規定している。
FIG. 8A shows an example of a linear dimension element.
As shown in FIG. 8A, the linear dimension element includes a
The
また、属性4は寸法線149が指し示す箇所(図示せず)の始点142の座標値を規定しており、属性5は寸法線149が指し示す箇所(図示せず)の終点143の座標値を規定している。
更に、属性6は文字列145の表示基準点144の座標値を規定しており、属性7は文字列145を構成する文字列データを規定している。
なお、以下では寸法線が指し示す箇所を単に寸法指示箇所と記す。
The
Further, the
In the following, the location indicated by the dimension line is simply referred to as a dimension indicating location.
図8(b)に直線寸法要素の使用例を図示する。
図8(b)に示したように、直線寸法要素は、寸法対象物240を構成する図形要素の寸法指示箇所に始点142と終点143を設定して生成される。
そのため、始点142と終点143の距離(寸法線149に平行な方向)により寸法線の示す距離を計測することができる。
FIG. 8B shows an example of using linear dimension elements.
As shown in FIG. 8B, the linear dimension element is generated by setting the
Therefore, the distance indicated by the dimension line can be measured by the distance (direction parallel to the dimension line 149) between the
角度寸法要素(図4)は、属性1〜属性6によって規定される。属性2は寸法線の始点の座標値を規定し、属性3は寸法線の終点の座標値を規定している。
また、属性4は寸法が示す角度の中心点の座標値を規定している。
更に、属性5は寸法文字の表示基準点の座標値を規定しており、属性6は寸法文字を構成する文字列データを規定している。
The angular dimension element (FIG. 4) is defined by
The
Furthermore, the
図9(a)に角度寸法要素の一例を図示する。角度寸法要素は、円弧状の寸法線159と、その両端の寸法補助線158、158、及び文字列154などから構成されている。
属性2は寸法線159の始点150の座標値を規定しており、属性3は寸法線159の終点151の座標値を規定している。
FIG. 9A shows an example of an angular dimension element. The angle dimension element includes an arc-shaped
The
また、属性4は角度寸法要素が示す角度の中心点152の座標値を規定している。
更に、属性5は文字列154の表示基準位置153の座標値を規定し、属性6は文字列154を構成する文字列データを規定している。
なお、以下では、角度寸法要素が示す角度の中心点を単に中心点と記す。
The
Further, the
In the following, the center point of the angle indicated by the angle dimension element is simply referred to as the center point.
図9(b)に角度寸法要素の使用例を図示する。図9(b)に示したように、角度寸法要素は、寸法対象物250における角度中心に中心点152を設定して生成される。
そのため、寸法補助線158、158の成す角度により寸法線の示す角度を計測することができる。
FIG. 9B shows an example of use of the angular dimension element. As shown in FIG. 9B, the angle dimension element is generated by setting the
Therefore, the angle indicated by the dimension line can be measured by the angle formed by the dimension
弧長寸法要素(図4)は、属性1〜属性7によって規定される。
属性2は、寸法線の始点の座標値を規定し、属性3は寸法線の終点の座標値を規定している。
また、属性4は寸法指示箇所の始点の座標値を規定し、属性5は寸法指示箇所の終点の座標値を規定している。
更に、属性6は寸法文字の表示基準点の座標値を規定しており、属性7は寸法文字を構成する文字列データを規定している。
The arc length dimension element (FIG. 4) is defined by
The
The
Further,
図10(a)に弧長寸法要素の一例を図示する。弧長寸法要素は、円弧状の寸法線169と、その両端の寸法補助線168、168、及び文字列164などから構成されている。
属性2は寸法線169の始点160の座標値を規定しており、属性3は寸法線169の終点161の座標値を規定している。
FIG. 10A shows an example of the arc length dimension element. The arc length dimension element includes an arc-shaped
The
また、属性4は寸法指示箇所の始点162の座標値を規定し、属性5は寸法指示箇所の終点163の座標値を規定する。
更に、属性6は文字列164の表示基準位置163の座標値を規定し、属性7は文字列164を構成する文字列データを規定している。
The
Further, the
図10(b)に弧長寸法要素の使用例を図示する。図10(b)に示したように、弧長寸法要素は、寸法対象物260を構成する円弧要素261の寸法指示箇所に始点162と終点163を設定して生成される。また、寸法補助線168、168は、円弧要素261の接線に対して垂直になるように設定される。
FIG. 10B shows an example of use of the arc length dimension element. As shown in FIG. 10B, the arc length dimension element is generated by setting the
このように寸法補助線168、168を設定すると、寸法補助線168、168の交点166が円弧要素261の中心点となる。そのため、交点166と終点163(又は始点162)から成る線分(線分166−163などと記す)の長さが円弧261の半径となるため、この半径と補助寸法線168、168の成す角度から円弧261の弧長を求めることができる。
When the dimension extension lines 168 and 168 are set in this way, the
直径寸法要素(図4)は、属性1〜属性5によって規定される。属性2は寸法線の始点の座標値を規定し、属性3は寸法線の終点の座標値を規定している。
また、属性4は寸法文字の表示基準点の座標値を規定しており、属性5は寸法文字を構成する文字列データを規定している。
直径寸法要素は、円弧や円の直径などを示すのに用いられる。
The diameter dimension element (FIG. 4) is defined by
The
The diameter dimension element is used to indicate the diameter of an arc or a circle.
図11(a)に直径寸法要素の一例を図示する。図11(a)に示したように、直径寸法要素は、寸法線179と、文字列173などから構成されている。
属性2は寸法線179の始点170の座標値を規定しており、属性3は寸法線179の終点171の座標値を規定している。
更に、属性4は文字列173の表示基準位置172の座標値を規定し、属性5は文字列173を構成する文字列データを規定している。
FIG. 11A shows an example of a diameter dimension element. As shown in FIG. 11A, the diameter dimension element includes a
The
Further, the
図11(b)に直径寸法の使用例を図示する。図11(b)に示したように、直径寸法要素は、寸法対象物270を構成する円要素の寸法指示箇所(円の直径上の2点)に始点170と終点171を設定して生成される。
そのため、始点170と終点171の距離から寸法指示箇所の直径を求めることができる。
FIG. 11B shows an example of using the diameter dimension. As shown in FIG. 11B, the diameter dimension element is generated by setting the
Therefore, the diameter of the dimension indicating location can be obtained from the distance between the
半径寸法要素(図4)は、属性1〜属性5によって規定される。属性2は寸法線の始点の座標値を規定し、属性3は寸法線の終点の座標値を規定している。
また、属性4は寸法文字の表示基準点の座標値を規定しており、属性5は寸法文字を構成する文字列データを規定している。
半径寸法要素は、円弧や円の半径などを示すのに用いられる。
The radial dimension element (FIG. 4) is defined by
The
The radial dimension element is used to indicate the radius of an arc or a circle.
図12(a)に半径寸法要素の一例を図示する。図12(a)に示したように、半径寸法要素は、寸法線189と、文字列183などから構成されている。
属性2は寸法線189の始点180の座標値を規定しており、属性3は寸法線189の終点181の座標値を規定している。
更に、属性4は文字列183の表示基準位置182の座標値を規定し、属性5は文字列183を構成する文字列データを規定している。
FIG. 12A shows an example of the radial dimension element. As shown in FIG. 12A, the radial dimension element is composed of a
The
Further, the
図11(b)に半径寸法の使用例を図示する。図11(b)に示したように、半径寸法要素は、寸法対象物280を構成する円弧要素の中心点に始点180を設定し、寸法指示箇所に終点181を設定して生成される。
そのため、始点180と終点181の距離から寸法指示箇所の半径を計測することができる。
FIG. 11B shows an example of using the radial dimension. As shown in FIG. 11B, the radial dimension element is generated by setting the
Therefore, the radius of the dimension indicating location can be measured from the distance between the
以上説明したように、図面要素は複数の属性を持っている。そのため、CAD装置1は、図面要素に含まれる属性を確認し、これを図4の表に照会することにより、当該図面要素の種類を特定することができる。
例えば、ある図面要素が属性1〜属性3を備えており、属性2と属性3が何れも座標値である場合、この図面要素は図4の表より直線要素であることがわかる。
As described above, the drawing element has a plurality of attributes. Therefore, the
For example, when a certain drawing element has
また、直径寸法要素と半径寸法要素は属性の構成が同じであるため、属性の構成からこれらを判別することはできないが、何れの場合も矢線の長さを求めてこれを算出寸法値とし、表記寸法と比較するため、これらを区別する必要はない。
また、図面要素の種類を特定する属性を設け、CAD装置1がこの属性を用いて図面要素の種類を判別するように構成してもよい。
In addition, the diameter dimension element and the radial dimension element have the same attribute configuration, so they cannot be distinguished from the attribute configuration, but in either case, the length of the arrow line is obtained and used as the calculated dimension value. It is not necessary to distinguish these for comparison with the notation dimensions.
Further, an attribute for specifying the type of the drawing element may be provided, and the
以上に、CADデータの構成と、作図に用いられる図面要素の構成について説明したが、次に、図面要素を用いて寸法線が指し示す箇所の寸法値(算出寸法値)を計算する方法について説明する。 The configuration of CAD data and the configuration of drawing elements used for drawing have been described above. Next, a method for calculating the dimension value (calculated dimension value) of the location indicated by the dimension line using the drawing elements will be described. .
図13は、直線寸法要素で指し示す部分の長さを計測する方法を説明するための図である。
図13に示したように、直線寸法要素が指し示す部分の長さは、始点142と終点143の寸法線149方向における距離を計算すればよい。
図13の例では、終点143を通り、寸法線149に平行な直線と、この直線に始点142から下ろした垂線との交点142aを計算し、更に、交点142aと終点143を端点とする線分149aの長さAを求めればよい。
FIG. 13 is a diagram for explaining a method of measuring the length of a portion indicated by a linear dimension element.
As shown in FIG. 13, the length of the portion pointed to by the linear dimension element may be calculated by calculating the distance between the
In the example of FIG. 13, an
図14は角度寸法要素が指し示す角度を計測する方法を説明するための図である。
角度寸法要素が指し示す角度は、始点150と中心点152を通る直線と、終点151と中心点152を通る直線の成す角度Aを算出すればよい。
FIG. 14 is a diagram for explaining a method of measuring the angle indicated by the angle dimension element.
As the angle indicated by the angle dimension element, an angle A formed by a straight line passing through the
図15は、弧長寸法要素が指し示す弧長の長さを計測する方法を説明するための図である。
弧長を算出するためには、まず、始点160と指示箇所の始点162を通る直線と、終点161と指示箇所の終点163を通る直線の交点165を計算する。そして、これらの直線の成す角度Tを計算し、更に、終点163と交点165を結ぶ線分の長さRを求める。
このようにして求めた角度Tと長さRを用いて弧長寸法要素が指し示す弧長Aを求めることができる。
FIG. 15 is a diagram for explaining a method of measuring the length of the arc length indicated by the arc length dimension element.
In order to calculate the arc length, first, an
The arc length A indicated by the arc length dimension element can be obtained using the angle T and the length R thus obtained.
直径寸法要素、及び半径寸法要素の指し示す長さを計測するためには、寸法線の始点と終点の距離を計算すればよい。
以上のようにして、寸法線などの図面要素を用いて、図形要素の寸法表記が指し示す寸法値を計算することができる。
In order to measure the lengths indicated by the diameter dimension element and the radial dimension element, the distance between the start point and the end point of the dimension line may be calculated.
As described above, the dimension value indicated by the dimension notation of the graphic element can be calculated using the drawing element such as the dimension line.
次に、寸法文字を構成する文字列データを数値に変換して表記寸法値を生成する方法について説明する。
この処理を行うために、CAD装置1は、寸法表記の寸法文字から文字列データを抽出し、これを予め用意してある文字列パターンとマッチングして比較する。以下に具体的なマッチング方法について説明する。
Next, a method for generating the notation dimension value by converting the character string data constituting the dimension character into a numerical value will be described.
In order to perform this processing, the
抽出した文字列データには、寸法を表す数字のほか、記号や注意書きなど数値を表さない文字も含まれる。そのため、CAD装置1は、文字列データから値を表す文字(”0”〜”9”、”+”、”−”、”,”、”.”、空白文字)が連続した部分があるか否かを判断し、連続した範囲別に文字列データを抜き出す。これによって、数値を表す数値文字から成る文字列が抽出される。
The extracted character string data includes characters that do not represent numerical values such as symbols and cautions in addition to numbers that represent dimensions. Therefore, the
各寸法要素が角度の寸法を表すものでない場合(直線寸法要素、弧長寸法要素、直径寸法要素、半径寸法要素など、長さを表す寸法要素の場合)、CAD装置1は、抜き出した数値文字の集まりを実数値として数値データに変換する。
When each dimension element does not represent an angle dimension (in the case of a dimension element representing a length, such as a linear dimension element, an arc length dimension element, a diameter dimension element, or a radius dimension element), the
数値文字の集まりの次に距離の単位を表す文字がある場合、CAD装置1は、その数値文字の単位として認識し、記憶する。
寸法値の表記では、寸法の指し示す意味、”=”、数値文字、単位の順序で記述することが多いので、寸法文字列に”=”が含まれていた場合、CAD装置1は、”=”より後ろの数値文字を数値データに変換する。
If there is a character representing a unit of distance next to a set of numerical characters, the
In the description of the dimension value, the meaning of the dimension, “=”, numerical characters, and units are often described in the order of the units. Therefore, if the dimension character string includes “=”, the
一方、寸法要素が角度を表すものである場合(角度寸法要素など)、CAD装置1は、抜き出した数値文字の集まりを先頭から順番に検索して、「集まりと集まりの間に1文字のみ存在する」かつ「1文字の次に数値文字の集まりが存在する」という条件を満たす1文字がある場合、その1文字を抜き出す。この条件は、数値文字の間に存在する角度単位を抽出するものである。
On the other hand, when the dimension element represents an angle (such as an angle dimension element), the
CAD装置1は、このようにして数値文字間の1文字を抽出した場合、この1文字を”°”などの角度の単位を表す文字列と比較する。両者が一致した場合は、数値文字と抽出した角度単位を表す文字を、抽出前の順序にて結合する。
When the
この結合の処理を、角度を示す文字列が現れる個数分(例えば度、分、秒の3回)繰り返して角度数値とする。
繰り返し作業中に、単位文字や数値文字の抽出に失敗した場合は、その時点で角度数値として認識する。
以上のようにして寸法文字列を数値に変換して表記寸法値を生成することができる。
This combining process is repeated for the number of times the character string indicating the angle appears (for example, three times of degrees, minutes, and seconds) to obtain an angle numerical value.
If extraction of unit characters or numerical characters fails during repetitive work, it is recognized as an angle numerical value at that time.
As described above, the dimension character string can be converted into a numerical value to generate a notation dimension value.
次に、表記寸法値と算出寸法値の比較方法について説明する。
CAD装置1は、CADデータで寸法表記されている寸法値が改変されていないか確認するため、算出寸法値を正しい値とし、これを基準に表記寸法値が正しいか否かを判断する。
Next, a method for comparing the notation dimension value and the calculated dimension value will be described.
The
CAD装置1は、表記寸法値と算出寸法値の一致を判断するために、予め単位ごとに許容誤差を記憶しており、この許容誤差内で両者が一致するか否かを判断する。
例えば、単位が「m」である場合、許容誤差が0.1[m]に設定されているものとする。そして、比較対象の表記寸法値が3[m]で、算出寸法値が3.05[m]であったとする。この場合、両者の誤差は0.05[m]であり、許容誤差の範囲であるため、CAD装置1は、表記寸法値と算出寸法値が一致するものと判断する。なお、これら許容誤差はユーザが設定することも可能である。
The
For example, when the unit is “m”, it is assumed that the allowable error is set to 0.1 [m]. Then, it is assumed that the written dimension value to be compared is 3 [m] and the calculated dimension value is 3.05 [m]. In this case, since the error between the two is 0.05 [m], which is within the allowable error range, the
算出寸法値は、CADデータの図形要素を計測して算出するため、例えば、数値計算に伴う打切誤差などの影響を受け、設計値と微妙に異なる場合がある。
そのため、表記寸法値と算出寸法値の完全一致を一致の条件とすると条件が厳しすぎ、表記寸法値と算出寸法値が実質的に一致しているにもかかわらず一致していないと判断される場合が考えられる。
そのため、本実施の形態では、表記寸法値と算出寸法値の一致を判断するに当たり、許容誤差を設定し、両者の実質一致を判定することにした。
Since the calculated dimension value is calculated by measuring a graphic element of CAD data, the calculated dimension value may be slightly different from the design value due to the influence of a truncation error accompanying numerical calculation, for example.
For this reason, if the matching condition is the exact match between the written dimension value and the calculated dimension value, the condition is too strict, and it is determined that the written dimension value and the calculated dimension value do not match even though they are substantially matched. There are cases.
For this reason, in the present embodiment, in determining the coincidence between the written dimension value and the calculated dimension value, an allowable error is set, and the substantial coincidence between the two is determined.
まず、CAD装置1は、縮尺図面データ43の縮尺と、算出寸法値とを用いて寸法対象物の実寸の値を計算し、これを各単位にて表す。例えば、算出寸法値が距離や弧長を表す数値である場合、これをキロメートル・メートル・センチメートル・ミリメートルなどの各単位で表す。角度を表す数値である場合は、10進法(「123.45度」など)・60進法(「123°35’46”」)などの単位で表す。
First, the
一方、表記寸法値は何れかの単位で表された値であるため、もし表記寸法値と算出寸法値が等しいならば、表記寸法値が、各単位で表した算出寸法値の何れかに一致するはずである。
このように、算出寸法値を各単位にて表すことにより、表記寸法値が何れの単位にて表されていても比較を行うことができる。
On the other hand, since the indicated dimension value is a value expressed in any unit, if the indicated dimension value and the calculated dimension value are equal, the indicated dimension value matches one of the calculated dimension values expressed in each unit. Should do.
As described above, by expressing the calculated dimension value in each unit, the comparison can be performed regardless of which unit the expressed dimension value is expressed.
そこで、CAD装置1は、表記寸法値と算出寸法値の比較を、算出寸法値の全ての単位に渡って行い(表記寸法値と、各単位で表した算出寸法値の全ての組み合わせに対して行い)、1つでも数値が一致した場合は、表記寸法が正しいものと判断する。
Therefore, the
一方、一致するものがなかった場合、CAD装置1は、表記寸法値が誤っているものと判断し、比較した数値の差が最も少ない算出寸法値と単位を正しい表記寸法値の候補としてユーザに提示する。
比較した数値と単位を表示することにより、ユーザは、表記寸法値と算出寸法値の差を確認することができる。
On the other hand, if there is no match, the
By displaying the compared numerical value and unit, the user can check the difference between the written dimension value and the calculated dimension value.
なお、CAD装置1は、比較対象が角度である場合は、10進法角度と60進法角度での比較は行わない。
このように表記寸法値と算出寸法値の角度単位が異なる場合、CAD装置1は、何れか一方の単位を他方の単位に変換して両者の単位を揃え、比較を行うことができる。
Note that the
In this way, when the angle unit of the notation dimension value and the calculated dimension value is different, the
ところで、縮尺図面データ43に縮尺情報が存在しない場合がある。この場合、CAD装置1は次のように処理を行う。
まず、CAD装置1は、表記寸法値と算出寸法値を用いて縮尺を計算する。CAD装置1は、この縮尺の計算を全ての寸法要素に対して行う。
そして、求めた縮尺が同じ寸法要素の個数を数え、一番多い縮尺を当該縮尺図面データ43の縮尺として採用する。
Incidentally, there is a case where scale information does not exist in the scale drawing data 43. In this case, the
First, the
Then, the number of dimension elements having the same scale is counted, and the largest scale is adopted as the scale of the scale drawing data 43.
より詳細には、CAD装置1は、表記寸法値と当該表記寸法値に対応する算出寸法値とから縮尺を算出し、前記算出した算出縮尺を例えばRAM14内の所定の記憶領域に記憶する。CAD装置1はこの記憶した縮尺を縮尺図面データ43の縮尺として採用する。このようにCAD装置1は縮尺算出手段を備えている。
More specifically, the
次に、CAD装置1は、採用した縮尺値を使い、先に説明した縮尺のある寸法と同じように一致・不一致を比較する。
ここで、縮尺情報とはアプリケーション固有の縮尺もしくは、縮尺を持つ図面フォーマットでの縮尺などを表す(例えば、SXF(Scadec data eXchange Format)における部分図など)。
Next, the
Here, the scale information represents an application-specific scale or a scale in a drawing format having a scale (for example, a partial view in SXF (Scadec data eXchange Format)).
CAD装置1は、以上のようにして表記寸法値と算出寸法値を比較した後、例えば、比較結果を一覧にしたり、あるいは、図面中に出力したりなどして、比較結果をユーザに識別可能に提供する。
After the
次に、図16を用いてCAD装置1が表記寸法値と算出寸法値の一致・不一致を比較する手順について説明する。
以下の手順は、CPU13がCADプログラムに従って行うものである。
Next, a procedure in which the
The following procedure is performed by the
まず、CAD装置1は、縮尺図面データ43から直線寸法要素や角度寸法要素など、寸法に係る図面要素を抽出する(ステップ5)。
次に、CAD装置1は、抽出した図面要素から寸法表記に係る文字列を抽出し、これを数値に変換する(ステップ10)。
First, the
Next, the
より詳細には、CAD装置1は、寸法表記を構成する文字列データを読み取って、例えば、RAM14内の所定の記憶領域にこれを記憶する。このようにCAD装置1は、寸法表記読取手段を備えている。
More specifically, the
そして、CAD装置1は、この記憶領域に記憶した文字列データを変換して寸法表記が表す表記寸法値を生成し、これを例えばRAM14内の所定の記憶領域に記憶する。このようにCAD装置1は、表記寸法値生成手段を備えている。
Then, the
次に、CAD装置1は、当該寸法に係る図面要素が指し示す寸法値を寸法線、寸法補助線などの情報を用いて計算し、算出寸法値を生成する(ステップ15)。
次に、CAD装置1は、表記寸法値と算出寸法値を比較し(ステップ20)、比較結果を記憶する(ステップ25)。
Next, the
Next, the
より詳細には、CAD装置1は、文字列データを読み取った寸法表記に対応する図形要素の寸法値を寸法線や寸法補助線などを用いて算出し、算出した算出寸法値を例えばRAM14内の所定の記憶領域に記憶する。このようにCAD装置1は寸法値算出手段を具備している。
そして、CAD装置1は、先に記憶した表記寸法値と、この記憶した算出寸法値と、を比較する。このようにCAD装置1は比較手段を備えている。
More specifically, the
Then, the
次に、CAD装置1は、寸法に係る全ての図面要素(寸法要素)に対して寸法確認を行ったかどうかを判断し、まだ寸法確認を行っていない図面要素がある場合はステップ5に戻って確認処理を続行する(ステップ30;N)。
Next, the
寸法に係る全ての図面要素に対して寸法確認を行った場合は(ステップ30;Y)、比較結果をユーザに提示し(ステップ40)、処理を終了する。
このようにCAD装置1は比較結果を出力する比較結果出力手段を備えている。
When the dimension confirmation is performed for all the drawing elements related to the dimension (step 30; Y), the comparison result is presented to the user (step 40), and the process is terminated.
As described above, the
図17(a)は、比較結果の提示例を示した図であり、CAD装置1のディスプレイに表示されたものである。
画面左側には、表記寸法値(寸法文字)と算出寸法値(計測値)が一致しなかった図面要素が一覧にて表示される。
FIG. 17A is a diagram showing a presentation example of the comparison result, which is displayed on the display of the
On the left side of the screen, a list of drawing elements whose written dimension values (dimension characters) and calculated dimension values (measurement values) did not match is displayed.
また、画面右側には、値が一致しなかった寸法線、寸法補助線、及び寸法文字が色を変えて(図示せず)表示される。
更に、左側の一覧表でエラーになった図面要素をマウスでクリックするなどして選択すると、右側の画面で対応する図面要素の色が変わったり、その部分の部分拡大図が表示されるように構成することもできる。
On the right side of the screen, dimension lines, dimension auxiliary lines, and dimension characters whose values do not match are displayed in different colors (not shown).
In addition, if you select a drawing element with an error in the list on the left by clicking with the mouse, the color of the corresponding drawing element changes on the right screen, or a partial enlarged view of that part is displayed. It can also be configured.
このほか、一覧には、出力可否、比較単位、寸法の縮尺情報などを表示してもよい。
また、一覧の結果を一度に出力することもできる。一度に出力する際には、一覧の項目「出力可否」を設定することにより、出力する寸法を選択することが可能である。
In addition, the list may display output availability, comparison units, scale information of dimensions, and the like.
You can also output the list results at once. When outputting at one time, it is possible to select the size to be output by setting the item “output availability” in the list.
また、図17(b)に示したように、表記寸法値と計測寸法値が一致しなかった場合、設計図面中に表記寸法値と併記して、計測寸法値を表示することもできる。
図17(b)では、表記寸法値「0.520」に対して計測寸法値「0.505」が併記されており、表記寸法値「0.200」に対して計測寸法値「10.000」が併記されている。
Further, as shown in FIG. 17B, when the notation dimension value and the measurement dimension value do not match, the measurement dimension value can be displayed together with the notation dimension value in the design drawing.
In FIG. 17B, the measured dimension value “0.505” is written together with the written dimension value “0.520”, and the measured dimension value “10.000” is plotted against the written dimension value “0.200”. "Is also written.
更に、一覧表示をテキストフォーマットのファイルに出力することもでき、同時に図面をデータファイルに出力したり、出力したファイルを電子メールなどで送信することもできる。
これらの確認・出力機能を使用することで、ユーザに修正が必要な箇所を示すことが容易になる。
Further, the list display can be output to a text format file, and at the same time, the drawing can be output to a data file, or the output file can be transmitted by e-mail or the like.
By using these confirmation / output functions, it becomes easy for the user to indicate a portion that needs to be corrected.
以上に説明した本実施の形態により次のような効果を得ることができる。
(1)寸法文字列から数値を抽出し、前後の文字列から、マイナス符号や角度単位の記号を識別して数値を認識できる。
(2)寸法の形状に応じた寸法値の算出を行うことで、寸法の指す箇所の図面上の数値を計算できる。
(3)単位を考慮した数値比較を行うことで、単位が記入されていなくても、寸法文字列の数値と、寸法の指す箇所の算出値が一致するかどうかを判断できる。
(4)縮尺情報がない図面に描かれた寸法においても、縮尺を算定し、縮尺情報を持つ寸法と同じように確認することができる。
The following effects can be obtained by the present embodiment described above.
(1) A numerical value can be extracted from a size character string, and a numerical value can be recognized by identifying a minus sign or a symbol of an angle unit from the preceding and following character strings.
(2) By calculating the dimension value according to the shape of the dimension, the numerical value on the drawing of the location indicated by the dimension can be calculated.
(3) By comparing the numerical values in consideration of the units, it is possible to determine whether or not the numerical value of the dimension character string matches the calculated value of the location indicated by the dimension even if no unit is entered.
(4) Even in a dimension drawn in a drawing without scale information, the scale can be calculated and confirmed in the same manner as a dimension having scale information.
なお、本実施の形態では、寸法線や寸法補助線の座標値を用いて図形要素の寸法値を計算したが、算出寸法値の計測方法はこれに限定するものではなく、図形要素の座標値から直接求めることも可能である。
例えば、ある寸法要素に対応する直線要素の長さを算出する場合、CAD装置1は、まず、この寸法要素に対応する直線要素を認識し、次いでこの直線要素の両端の座標値からこの直線要素の算出寸法を算出することができる。
In the present embodiment, the dimension value of the graphic element is calculated using the coordinate value of the dimension line or the auxiliary dimension line, but the measurement method of the calculated dimension value is not limited to this, and the coordinate value of the graphic element is not limited to this. It is also possible to ask directly from
For example, when calculating the length of a linear element corresponding to a certain dimension element, the
1 CAD装置
11 制御部
12 ROM
13 CPU
14 RAM
15 入力装置
16 出力装置
17 通信制御装置
18 バスライン
19 入出力インターフェース
20 記憶媒体駆動装置
23 記憶装置
1 CAD device 11
13 CPU
14 RAM
DESCRIPTION OF
Claims (6)
前記記憶した文字列データを変換して前記寸法表記が表す表記寸法値を生成し、前記生成した表記寸法値を所定の記憶領域に記憶する表記寸法値生成手段と、
前記文字列データを読み取った寸法表記に対応する図形要素の算出寸法値を算出し、前記算出した算出寸法値を所定の記憶領域に記憶する寸法値算出手段と、
前記記憶した表記寸法値と、前記記憶した算出寸法値と、を比較する比較手段と、
前記比較手段による比較結果を出力する比較結果出力手段と、
を具備したことを特徴とするCAD装置。 Dimension notation reading means for reading character string data constituting the dimension notation from CAD data configured using graphic elements associated with dimension notations and storing them in a predetermined storage area;
Converting the stored character string data to generate a notation dimension value represented by the dimension notation, and storing the generated notation dimension value in a predetermined storage area;
Dimension value calculating means for calculating a calculated dimension value of a graphic element corresponding to the dimension notation obtained by reading the character string data, and storing the calculated calculated dimension value in a predetermined storage area;
Comparison means for comparing the stored notation dimension value with the stored calculated dimension value;
Comparison result output means for outputting a comparison result by the comparison means;
A CAD apparatus comprising:
前記記憶した文字列データを変換して前記寸法表記が表す表記寸法値を生成し、前記生成した表記寸法値を所定の記憶領域に記憶する表記寸法値生成機能と、
前記文字列データを読み取った寸法表記に対応する図形要素の算出寸法値を算出し、前記算出した算出寸法値を所定の記憶領域に記憶する寸法値算出機能と、
前記記憶した表記寸法値と、前記記憶した算出寸法値と、を比較する比較機能と、
前記比較機能による比較結果を出力する比較結果出力機能と、
をコンピュータで実現するCADプログラム。 A dimension notation reading function for reading character string data constituting the dimension notation from CAD data configured using graphic elements associated with dimension notations and storing them in a predetermined storage area;
A notation dimension value generation function for converting the stored character string data to generate a notation dimension value represented by the dimension notation, and storing the generated notation dimension value in a predetermined storage area;
A dimension value calculating function for calculating a calculated dimension value of a graphic element corresponding to the dimension notation obtained by reading the character string data, and storing the calculated calculated dimension value in a predetermined storage area;
A comparison function for comparing the stored notation dimension value and the stored calculated dimension value;
A comparison result output function for outputting a comparison result by the comparison function;
CAD program that realizes the above on a computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005042127A JP2006227988A (en) | 2005-02-18 | 2005-02-18 | Cad device and cad program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005042127A JP2006227988A (en) | 2005-02-18 | 2005-02-18 | Cad device and cad program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006227988A true JP2006227988A (en) | 2006-08-31 |
Family
ID=36989313
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005042127A Pending JP2006227988A (en) | 2005-02-18 | 2005-02-18 | Cad device and cad program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006227988A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101270646B1 (en) | 2011-09-06 | 2013-06-03 | 강구만 | A auto error revision method for drawing program |
JP2018055375A (en) * | 2016-09-28 | 2018-04-05 | 大和ハウス工業株式会社 | Design support device |
CN109241569A (en) * | 2018-08-03 | 2019-01-18 | 东莞市燕秀信息技术有限公司 | A kind of size marking method, apparatus, terminal device and readable storage medium storing program for executing |
JP2020184267A (en) * | 2019-05-09 | 2020-11-12 | 福井コンピュータホールディングス株式会社 | Three-dimensional cad device and three-dimensional cad program |
JP7396574B2 (en) | 2019-11-19 | 2023-12-12 | 前田建設工業株式会社 | Drawing scale estimation device, drawing scale estimation method, and program |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01281570A (en) * | 1988-05-07 | 1989-11-13 | Fujitsu Ltd | Dimension checking system for cad system |
JPH03240878A (en) * | 1990-02-19 | 1991-10-28 | Matsushita Electric Ind Co Ltd | Method for detecting dimension and shape different spot |
JPH10269259A (en) * | 1997-03-24 | 1998-10-09 | Mitsubishi Electric Corp | Computer system |
JPH10293777A (en) * | 1997-04-21 | 1998-11-04 | Hitachi Plant Eng & Constr Co Ltd | Operation management support system |
-
2005
- 2005-02-18 JP JP2005042127A patent/JP2006227988A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01281570A (en) * | 1988-05-07 | 1989-11-13 | Fujitsu Ltd | Dimension checking system for cad system |
JPH03240878A (en) * | 1990-02-19 | 1991-10-28 | Matsushita Electric Ind Co Ltd | Method for detecting dimension and shape different spot |
JPH10269259A (en) * | 1997-03-24 | 1998-10-09 | Mitsubishi Electric Corp | Computer system |
JPH10293777A (en) * | 1997-04-21 | 1998-11-04 | Hitachi Plant Eng & Constr Co Ltd | Operation management support system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101270646B1 (en) | 2011-09-06 | 2013-06-03 | 강구만 | A auto error revision method for drawing program |
JP2018055375A (en) * | 2016-09-28 | 2018-04-05 | 大和ハウス工業株式会社 | Design support device |
CN109241569A (en) * | 2018-08-03 | 2019-01-18 | 东莞市燕秀信息技术有限公司 | A kind of size marking method, apparatus, terminal device and readable storage medium storing program for executing |
CN109241569B (en) * | 2018-08-03 | 2023-07-04 | 东莞市燕秀信息技术有限公司 | Dimension marking method and device, terminal equipment and readable storage medium |
JP2020184267A (en) * | 2019-05-09 | 2020-11-12 | 福井コンピュータホールディングス株式会社 | Three-dimensional cad device and three-dimensional cad program |
JP7262296B2 (en) | 2019-05-09 | 2023-04-21 | 福井コンピュータホールディングス株式会社 | 3D CAD device and 3D CAD program |
JP7396574B2 (en) | 2019-11-19 | 2023-12-12 | 前田建設工業株式会社 | Drawing scale estimation device, drawing scale estimation method, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6868359B2 (en) | Method and system for CAD engine independence | |
US7650565B2 (en) | Method for managing annotations in a computer-aided design drawing | |
CN102598002B (en) | System and method for producing editable three-dimensional models | |
JP2007140597A (en) | Print control program | |
JP2006227988A (en) | Cad device and cad program | |
Ryan | Computer-aided graphics and design | |
JP2002083017A (en) | Structure state change research support system | |
MXPA06013949A (en) | Computer aided design interface . | |
JP4921103B2 (en) | Apparatus, method and program for visualizing Boolean expressions | |
JP2005085077A (en) | Cad data conversion device, cad data conversion method, and cad data conversion program | |
JP4139249B2 (en) | CAD data identity verification apparatus, CAD data identity verification method, and CAD data identity verification program | |
JP3898485B2 (en) | Drawing drawing display device, drawing drawing display method, and recording medium | |
JP2005070373A (en) | Program and device for map coordinate conversion | |
JP2010191889A (en) | Device for editing map data, and server for the same | |
JP4860272B2 (en) | CAD data identity verification device | |
JP4405604B2 (en) | Information processing apparatus and definition method | |
JP4302102B2 (en) | 3D design support program | |
WO2019055952A1 (en) | Integrated document editor | |
CN115146356B (en) | Method and device for dynamically associating beam Ping Fa reinforcement characters with beam Duan Xinxi | |
JP4006113B2 (en) | Graphic processing method and apparatus | |
JP2005107769A (en) | Survey information processing apparatus, cad device, survey information processing method, and its program | |
JP4508264B2 (en) | Database construction apparatus, database construction method, database construction program, recording medium | |
JP2000048220A (en) | Device and method for document preparation and storage medium | |
JP4208659B2 (en) | Graphic editing device | |
JP2006004107A (en) | Cad change management system, and method and program therefor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080212 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20101019 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20101029 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110408 |