JPH0640338B2 - Extraction method of descriptive character information of CAD drawing - Google Patents

Extraction method of descriptive character information of CAD drawing

Info

Publication number
JPH0640338B2
JPH0640338B2 JP62201341A JP20134187A JPH0640338B2 JP H0640338 B2 JPH0640338 B2 JP H0640338B2 JP 62201341 A JP62201341 A JP 62201341A JP 20134187 A JP20134187 A JP 20134187A JP H0640338 B2 JPH0640338 B2 JP H0640338B2
Authority
JP
Japan
Prior art keywords
character information
descriptive character
storage priority
descriptive
priority number
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 - Lifetime
Application number
JP62201341A
Other languages
Japanese (ja)
Other versions
JPS6444579A (en
Inventor
関司 西野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62201341A priority Critical patent/JPH0640338B2/en
Publication of JPS6444579A publication Critical patent/JPS6444579A/en
Publication of JPH0640338B2 publication Critical patent/JPH0640338B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔概要〕 計算機による図形処理システムに関し、 CAD図面データファイルから多数の記述文字情報を読
出して部品表を作成する業務の簡素化を目的とし、 記述文字情報の属性データに格納優先順位番号を付加
し、処理部によりCAD図面データファイルから記述文
字情報を読出し、属性データに付加された格納優先順位
番号をサーチし、格納優先順位番号の示す順番に、記述
文字情報を配置して格納領域に格納する構成とする。
DETAILED DESCRIPTION OF THE INVENTION [Outline] Regarding a graphic processing system using a computer, the attribute data of the descriptive character information is used for the purpose of simplifying the operation of reading a large number of descriptive character information from a CAD drawing data file and creating a parts table. A storage priority number is added, the description character information is read from the CAD drawing data file by the processing unit, the storage priority number added to the attribute data is searched, and the description character information is arranged in the order indicated by the storage priority number. Then, the data is stored in the storage area.

〔産業上の利用分野〕[Industrial application field]

本発明は計算機による図形処理システムに関するもので
ある。
The present invention relates to a graphic processing system using a computer.

〔従来の技術〕[Conventional technology]

最近計算機による図形処理システム(以下単にCADと
云う)が広く使用され、各種装置の設計を行う場合にも
CADが利用されている。
Recently, a computer graphics processing system (hereinafter simply referred to as CAD) is widely used, and CAD is also used when designing various devices.

今CAD画面上に、或る装置の設計図面が表示されてい
る時、CAD画面上に表示されている装置の構成部品に
関する記述文字情報を読取り、当該装置の部品表を自動
作成することが行われている。
When a design drawing of a certain device is displayed on the CAD screen, it is possible to automatically read the descriptive character information about the component parts of the device displayed on the CAD screen and automatically create the parts table of the device. It is being appreciated.

第4図(a)及び(b)は従来の記述文字情報を読取り方式の
説明図である。
4 (a) and 4 (b) are explanatory views of a conventional method for reading descriptive character information.

図中、10はCAD図面データファイル、20、30は夫々格
納領域である。尚以下全図を通じ同一記号は同一対象物
を表す。
In the figure, 10 is a CAD drawing data file, and 20 and 30 are storage areas. The same symbols represent the same objects throughout the drawings.

一般にCAD図面データファイル10(以下単にファイル
10と云う)から記述文字情報を読取って部品表を作成す
る場合、先づ読出しプログラムによりファイル10に格納
されている構成部品の記述文字情報を読取って格納領域
20に格納する。
Generally, CAD drawing data file 10 (hereinafter simply referred to as file
(10)) to read the descriptive character information to create a parts table, the descriptive character information of the component parts stored in the file 10 is first read by the reading program and stored in the storage area.
Store in 20.

此の構成部品の記述文字情報を読取る順序は通常ファイ
ル10に構成部品おの記述文字情報を記述した順序に行
う。
The descriptive character information of the constituent parts is read in the normal order in which the descriptive character information of the constituent parts is described in the file 10.

従って格納領域20に格納された構成部品の記述文字情報
の配列される順序はファイル10から読出した順番であ
り、其の配列に一貫性はない。即ち、其の儘では部品表
とはならない。部品表とするためには、此れ等の記述文
字情報を或る論理に従って配列し直す必要がある。
Therefore, the descriptive character information of the components stored in the storage area 20 is arranged in the order of reading from the file 10, and the arrangement is not consistent. That is, it does not become a parts list. In order to form a parts table, it is necessary to rearrange these descriptive character information according to a certain logic.

従って通常は読出しプログラムによりファイル10から読
出して格納領域20に格納した後、データ編集処理プログ
ラムにより格納領域20に格納されている記述文字情報を
読出して、格納領域30に並び替える必要がある。
Therefore, it is usually necessary to read from the file 10 by the read program and store it in the storage area 20, and then read the descriptive character information stored in the storage area 20 by the data editing processing program and rearrange it in the storage area 30.

此の並び替える方式として次に述べる二つの方式があ
る。
There are two methods described below as methods for rearranging this.

(イ)記述文字の内部コードで昇順、或いは降順にソー
トして読出して格納領域30に格納する。
(A) The internal code of the descriptive character is sorted and read in ascending or descending order and stored in the storage area 30.

(ロ)記述文字の座標位置でソートし、読出して格納領
域30に格納する。
(B) Sort by the coordinate position of the descriptive character, read it out, and store it in the storage area 30.

(イ)記述文字の内部コードによる方式は通常下記の手
順による。例えば、記述文字がアルファベット文字と数
字のみで構成されていると規定した場合、アルファベッ
ト文字は数字に優先し、アルファベット文字同士の時は
A、B、Cの順序とし、数字同士の時は数字の小さい順
序と規定する方式である。
(B) The method using the internal code of the descriptive character is usually as follows. For example, if it is specified that the descriptive characters are composed of only alphabetic characters and numbers, the alphabetical characters have priority over the numbers, and when there are alphabetic characters, the order is A, B, and C, and when there are numbers, the numerical characters It is a method that defines as small order.

今格納領域20に下記のデータが格納されているとする。It is now assumed that the following data is stored in the storage area 20.

イ.D210−1001−X001、 ロ.D210−1001−X002、 ハ.D210−2001−X005、 ニ.D210−2001−X010、 ホ.A210−2001−X003の5つの名前の部品
が使用されている。
I. D210-1001-X001, b. D210-1001-X002, c. D210-2001-X005, d. D210-2001-X010, e. Parts with five names of A210-2001-X003 are used.

上記の例ではホの先頭文字がA、他は総てDであるの
で、最初に読出すデータは、ホのA210−2001−
X003である。
In the above example, since the first character of e is A and all other characters are D, the first data to be read is A210-2001-of e.
It is X003.

次にイ〜ニの先頭文字が総てDであるので、二字目を比
較する。二字目の文字は数字であるので其の数字の小さ
いものから読出す。然し2〜4番目の数字も同じであ
る。5番目の数字がイとロは1、ハとニは2であるの
で、イとロは、ハとニより優先し、イとロでは最後の数
字がイは1、ロは2であるので、イが優先する。同様に
ハとニでは11番目の数字が、ハは0、ニは1であるの
で、ハが優先する。
Next, since the first characters of A to D are all D, the second characters are compared. Since the second letter is a number, read from the smallest number. However, the second to fourth numbers are also the same. Since the fifth number is 1 for i and ro, and 2 for ha and d, i and ro have priority over ha and ni, and the last number in i and ro is 1 for i and 2 for ro , Lee has priority. Similarly, in Ha and D, the 11th number is 0 for C and 1 for D, so C has priority.

従って格納領域20内から、ホ、イ、ロ、ハ、ニの順序で
読出して格納領域30に格納する。
Therefore, the data is read out from the storage area 20 in the order of ho, a, b, c, d and stored in the storage area 30.

(2)記述された座標位置による方式は、記述文字情報の
座標位置により読出し順序を決める方式である。
(2) The method based on the described coordinate position is a method in which the reading order is determined according to the coordinate position of the description character information.

周知の通り、ファイル10に格納されている記述文字情報
毎に、第4図(b)に示す様に、文字列(文字の内容)、
CAD画面上の座標位置、文字長(何文字か)、大きさ
(文字の寸法)、属性データ等のデータが記載され、此
れ等の情報を基にしてCAD画面上に表示される。尚属
性データはCAD画面上に表示されない。
As is well known, for each descriptive character information stored in the file 10, as shown in FIG. 4 (b), a character string (content of character),
Data such as coordinate position on the CAD screen, character length (how many characters), size (character size), and attribute data are described, and displayed on the CAD screen based on these information. The attribute data is not displayed on the CAD screen.

此の座標をキーにして読出し順序を決める方式で、座標
はX軸、Y軸があるので、例えばX軸の値が小さいもの
から読出し、若しX軸の値が同じならばY軸の値が小さ
いものから読出して格納領域30に格納する。
This coordinate is used as a key to determine the reading order. Since there are X-axis and Y-axis coordinates, for example, the one with the smallest X-axis value is read, and if the X-axis value is the same, the Y-axis value is read. Is read out and stored in the storage area 30.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

然しながら記述文字の内部コードによる方式でも座標に
よる方式でも、データ編集処理プログラムにより並び替
えを行うのでプログラムを2回動作させなければならな
いと云う問題点があった。
However, there is a problem that the program must be operated twice because the data editing processing program rearranges both the method using the internal code of the descriptive characters and the method using the coordinates.

〔問題点を解決するための手段〕[Means for solving problems]

上記問題点は第1図の原理図に示す様に、属性データを
有する記述文字情報が格納されているCAD図面データ
ファイル10に於いて、前記属性データに格納優先順位番
号を付加する手段1と、記述文字情報をCAD図面デー
タファイル10から読出し、属性データに付加された格納
優先順位番号をサーチし、格納優先順位番号の示す順番
に、記述文字情報を配置して格納領域20に格納する処理
部2を具備することにより解決される。
As shown in the principle diagram of FIG. 1, the above problem is caused by a means 1 for adding a storage priority number to the attribute data in the CAD drawing data file 10 in which the descriptive character information having the attribute data is stored. A process of reading the descriptive character information from the CAD drawing data file 10, searching the storage priority number added to the attribute data, arranging the descriptive character information in the order indicated by the storage priority number, and storing it in the storage area 20. It is solved by providing the part 2.

〔作用〕[Action]

本発明によると、予め付加手段1によりCAD図面デー
タファイル10に格納されている記述文字情報の属性デー
タに格納優先順位番号を付加して置き、処理部2により
CAD図面データファイル10から記述文字情報を読出し
て記述文字情報の属性データをサーチし、格納優先順位
番号の示す順番に、記述文字情報を配置して格納領域20
に格納する。
According to the present invention, a storage priority number is added to the attribute data of the descriptive character information stored in the CAD drawing data file 10 by the adding means 1 in advance, and the descriptive character information is added from the CAD drawing data file 10 by the processing unit 2. To search the attribute data of the descriptive character information, arrange the descriptive character information in the order indicated by the storage priority number, and store it in the storage area 20.
To store.

〔実施例〕〔Example〕

本発明では記述文字情報毎の属性データに、並び替えを
行う為の格納優先順位番号を格納する。
In the present invention, the storage priority number for sorting is stored in the attribute data for each descriptive character information.

第2図は本発明の一実施例を示す図である。FIG. 2 is a diagram showing an embodiment of the present invention.

第3図は本発明の説明図である。FIG. 3 is an explanatory diagram of the present invention.

以下第3図に従い本発明の動作説明を行う。The operation of the present invention will be described below with reference to FIG.

(i)ファイル10に格納されている記述文字情報の属性
データに格納優先順位番号を付加することにより3種類
に区分する。
(I) The attribute data of the descriptive character information stored in the file 10 is divided into three types by adding a storage priority number.

(1)格納優先順位番号を付加しないもの。(1) Storage priority numbers are not added.

(2)格納優先順位番号を付加しないものより前方に格納
するものには、格納優先順位番号1〜Nを付与する。但
し、Nは整数とする。
(2) The storage priority numbers 1 to N are given to those stored before the storage priority numbers are not added. However, N is an integer.

(3)格納優先順位番号を付加しないものより後方に格納
するものには、格納優先順位番号*1〜*Nを付加す
る。但し、*印は何の記号でも良く、要は(2)と区別す
る記号である。
(3) Storage priority numbers * 1 to * N are added to those stored after the storage priority number is not added. However, the * mark can be any symbol, and the point is to distinguish it from (2).

(4)付加する数字1〜Nは連続番号である必要はない。(4) The added numbers 1 to N do not have to be consecutive numbers.

今仮にファイル10に、下記の様はイ、ロ、ハ、ニの4個
の記述文字情報が格納されているものとする。
Now, it is assumed that the file 10 stores four pieces of descriptive character information of a, b, c, and d as shown below.

イ.ABCDE(格納優先順位番号なし) ロ.HIKHL(格納優先順位番号 1) ハ.OPQE (格納優先順位番号*1) ニ.XYZ (格納優先順位番号*10) 此れ等に対し、上記の括弧内に示す様な格納優先順位番
号を付加する。
I. ABCDE (no storage priority number) b. HIKHL (storage priority number 1) c. OPQE (storage priority number * 1) d. XYZ (storage priority number * 10) The storage priority number as shown in parentheses above is added to these.

(ii)次に従来方式と同じくファイル10から記述文字情
報を記述した順序で読出し、格納領域20に格納する。
(Ii) Next, as in the conventional method, the descriptive character information is read from the file 10 in the described order and stored in the storage area 20.

(iii)次に(1)の格納優先順位番号が付加されていない
ものの格納優先順位番号を1000とし、*印の付加された
格納優先順位番号に+1000する。即ち、*1→1001、*1
0→1010とする。
(Iii) Next, the storage priority number of (1) to which the storage priority number is not added is set to 1000, and the storage priority number to which * is added is incremented by 1000. That is, * 1 → 1001, * 1
Set 0 → 1010.

尚(2)の格納優先順位番号1〜Nは変えない。The storage priority numbers 1 to N in (2) are not changed.

(iv)次に格納領域20に格納されている記述文字情報の
属性データの数字の小さい順番から大きい順番へと並べ
替える。
(Iv) Next, the attribute data of the descriptive character information stored in the storage area 20 is sorted from the smallest number to the largest number.

従って、第3図の右端に示す様に、 ロ.格納優先順位番号1 HIJKL ニ.格納優先順位番号10 XYZ イ.格納優先順位番号1001 ABCDE ハ.格納優先順位番号1010 OPQR の順序に配列す
ることが出来る。
Therefore, as shown in the right end of FIG. Storage priority number 1 HIJKL d. Storage priority number 10 XYZ a. Storage priority number 1001 ABCDE C. They can be arranged in the order of storage priority number 1010 OPQR.

上記の方法に、従来の技術の項の(イ)記述文字の内部
コードによる方式、(ロ)の座標方式を併用することも
可能である。
It is also possible to use the above-mentioned method in combination with (a) the method of using the internal code of the descriptive character and (b) the coordinate method of the prior art.

例えば、従来の技術の項で述べた(イ)記述文字の内部
コードによる方式に於いて、ハに格納優先順位番号1、
ニに格納優先順位番号2を付加し、イ、ロ、ホに格納優
先順位番号を付加しない時は、ハ、ニ、ホ、イ、ロの順
番に配列される。
For example, in the method (a) using the internal code of the descriptive character described in the section of the prior art, the storage priority number 1,
When the storage priority number 2 is added to D, and the storage priority numbers are not added to A, B, and E, they are arranged in the order of C, H, D, E, B, and B.

以下第2図に従って本発明の動作を説明する。The operation of the present invention will be described below with reference to FIG.

図中、1は付加手段、2は処理部、3はCAD画面、3
aはライトペン、3bはキーボード、40は主制御部であ
る。
In the figure, 1 is an addition unit, 2 is a processing unit, 3 is a CAD screen, 3
a is a light pen, 3b is a keyboard, and 40 is a main controller.

主制御部40はCADシステムの主制御部で、今CAD画
面3上に図面が表示されているとする。
The main control unit 40 is the main control unit of the CAD system, and it is assumed that a drawing is currently displayed on the CAD screen 3.

ライトペン3aによりCAD画面3上に表示されている
記述文字情報をヒットし、キーボード3bにより前述の
格納優先順位番号を入力する。
The descriptive character information displayed on the CAD screen 3 is hit by the light pen 3a, and the above-mentioned storage priority number is input by the keyboard 3b.

尚前記付加手段1は前記ライトペン3a、及びキーボー
ド3bのことであり、此の他にキーボード3bを使用せ
ず、ライトペン3aのみで格納優先順位番号を入力する
ことも可能である。
The adding means 1 is the light pen 3a and the keyboard 3b. It is also possible to input the storage priority number only with the light pen 3a without using the keyboard 3b.

対象となっている総ての記述文字情報に対し格納優先順
位番号を入力した後、キーボド3bを操作すると、主制
御部40は処理部2を起動する。
When the keyboard 3b is operated after inputting the storage priority numbers for all the target descriptive character information, the main control unit 40 activates the processing unit 2.

処理部2はファイル10から前記総ての記述文字情報を読
出し、各記述文字情報の属性データをサーチして格納優
先順位番号の示す順番で、記述文字情報を読出し、格納
領域20に順次格納する。
The processing unit 2 reads all the above described descriptive character information from the file 10, searches the attribute data of each descriptive character information, reads out the descriptive character information in the order indicated by the storage priority number, and sequentially stores them in the storage area 20. .

〔発明の効果〕〔The invention's effect〕

以上詳細に説明した様に本発明によれば、CAD図面デ
ータファイルから多数の記述文字情報を読出して部品表
を作成する業務の簡素化を計ることが出来ると云う大き
い効果がある。
As described in detail above, according to the present invention, there is a great effect that the work of reading a large number of descriptive character information from a CAD drawing data file and creating a parts table can be simplified.

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

第1図は本発明の原理図である。 第2図は本発明の一実施例を示す図である。 第3図は本発明の説明図である。 第4図(a)及び(b)は従来の記述文字情報を読取り方式の
説明図である。 図中、1は付加手段、2は処理部、3はCAD画面、3
aはライトペン、3bはキーボード、10はCAD図面デ
ータファイル、20、30は夫々格納領域、40は主制御部で
ある。
FIG. 1 is a principle diagram of the present invention. FIG. 2 is a diagram showing an embodiment of the present invention. FIG. 3 is an explanatory diagram of the present invention. 4 (a) and 4 (b) are explanatory views of a conventional method for reading descriptive character information. In the figure, 1 is an addition unit, 2 is a processing unit, 3 is a CAD screen, 3
a is a light pen, 3b is a keyboard, 10 is a CAD drawing data file, 20 and 30 are storage areas, and 40 is a main control unit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】属性データを有する記述文字情報が格納さ
れているCAD図面データファイル(10)に於いて、 前記属性データに格納優先順位番号を付加する手段(1)
と、 前記記述文字情報を該CAD図面データファイル(10)か
ら読出し、 前記属性データに付加された前記格納優先順位番号をサ
ーチし、 前記格納優先順位番号の示す順番に、前記記述文字情報
を配置して格納領域(20)に格納する処理部(2)を具備す
ることを特徴とするCAD図面の記述文字情報抽出方
式。
1. A CAD drawing data file (10) in which descriptive character information having attribute data is stored, and means (1) for adding a storage priority number to the attribute data.
And reading the descriptive character information from the CAD drawing data file (10), searching the storage priority number added to the attribute data, and arranging the descriptive character information in the order indicated by the storage priority number. A descriptive character information extraction method for a CAD drawing, comprising: a processing unit (2) for storing in a storage area (20).
JP62201341A 1987-08-12 1987-08-12 Extraction method of descriptive character information of CAD drawing Expired - Lifetime JPH0640338B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62201341A JPH0640338B2 (en) 1987-08-12 1987-08-12 Extraction method of descriptive character information of CAD drawing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62201341A JPH0640338B2 (en) 1987-08-12 1987-08-12 Extraction method of descriptive character information of CAD drawing

Publications (2)

Publication Number Publication Date
JPS6444579A JPS6444579A (en) 1989-02-16
JPH0640338B2 true JPH0640338B2 (en) 1994-05-25

Family

ID=16439420

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62201341A Expired - Lifetime JPH0640338B2 (en) 1987-08-12 1987-08-12 Extraction method of descriptive character information of CAD drawing

Country Status (1)

Country Link
JP (1) JPH0640338B2 (en)

Also Published As

Publication number Publication date
JPS6444579A (en) 1989-02-16

Similar Documents

Publication Publication Date Title
JP2726568B2 (en) Character recognition method and device
JP3535624B2 (en) Search device and method
JPH0128980B2 (en)
KR960018993A (en) Information retrieval method and system
JPH0640338B2 (en) Extraction method of descriptive character information of CAD drawing
JP3079844B2 (en) Full-text database system
JP2695784B2 (en) How to search and display sentences
JPS62271048A (en) Index output device
JP2845897B2 (en) Document search / display method and apparatus
JPS63280374A (en) Retrieval/display method for information
JP2831837B2 (en) Document search device
JPS5985532A (en) Designating system for editing range of sentence
JP2001222533A (en) Information retrieving device
JPH05181912A (en) Document retrieving device
JP2773232B2 (en) CAD equipment
JP4256841B2 (en) Information processing apparatus, information processing method, and information processing program
JPH064278A (en) Method for generating flow chart by minicomputer
JPH03210668A (en) Processor for electronic manual having hierarchical form
JPS62271015A (en) Document editing device
JP2000194712A (en) Data processor and recording medium
JPH0469769A (en) Data processor
JPH0756943A (en) Whole sentence data base system
JPS63173163A (en) Information retriever
JPH05143304A (en) Consistency inspecting system
JPH04270450A (en) Document preparing device