JP6536247B2 - Drawing creation device and drawing creation program - Google Patents
Drawing creation device and drawing creation program Download PDFInfo
- Publication number
- JP6536247B2 JP6536247B2 JP2015143003A JP2015143003A JP6536247B2 JP 6536247 B2 JP6536247 B2 JP 6536247B2 JP 2015143003 A JP2015143003 A JP 2015143003A JP 2015143003 A JP2015143003 A JP 2015143003A JP 6536247 B2 JP6536247 B2 JP 6536247B2
- Authority
- JP
- Japan
- Prior art keywords
- drawing element
- moving
- arrangement pattern
- cell
- area
- 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.)
- Active
Links
Images
Description
本発明は、図面作成装置及び図面作成プログラムに関する。 The present invention relates to a drawing creation apparatus and a drawing creation program.
機械図面等を作成する場合、投影図の他に注記情報や詳細図等といった2D(二次元)図面を構成する様々な図面情報が、印刷領域を表す図枠内に共に表示される。そして、この図枠内に表示される投影図や注記情報、詳細図等の各種の図面情報が、指定された用紙サイズの一枚の用紙に印刷されることにより、投影図や注記情報、詳細図等の各種の図面情報が一つの図枠内に配置された機械図面が得られるようになっている。
ここで、機械図面等に含まれる各種図面情報には、例えば機械部品の製造に必要な情報として、投影図や、部品の一部の形状や寸法を部分拡大図や部分断面図で示した詳細図、部品の製造に係る特記事項が書かれた注記情報等を含む。これら図面情報は、例えば、3D(三次元)CADシステムにより作成した3Dオブジェクトをもとに個別に作成される。また、詳細図や注記情報などは、特に使用頻度の高いものは、予め作成されたものを用意しておき、適宜流用するようになっている。これら図面情報を所定の用紙サイズに対応した図枠内に配置することで、用紙サイズに対応した図面サイズで、機械部品の製造に必要な2D図面が作成される。
When creating a machine drawing or the like, various drawing information constituting a 2D (two-dimensional) drawing such as annotation information and a detailed drawing as well as the projection drawing are displayed together in a drawing frame representing a print area. Then, various kinds of drawing information such as the projection drawing, the note information, and the detailed drawing displayed in the drawing frame are printed on one sheet of the specified sheet size, thereby the projection drawing and the note information, the details A machine drawing in which various drawing information such as drawings are arranged in one drawing frame can be obtained.
Here, various drawing information included in the machine drawing etc. is, for example, information necessary for manufacturing the machine part, a projection drawing, and a detail showing the shape or size of part of the part in a partially enlarged view or a partial sectional view It includes figures, notes on which special notes on the manufacture of parts are written, etc. These pieces of drawing information are individually created based on, for example, 3D objects created by a 3D (three-dimensional) CAD system. In addition, as for the detailed drawing and the note information, the one with particularly high use frequency is prepared in advance and used appropriately. By arranging these pieces of drawing information in a drawing frame corresponding to a predetermined sheet size, a 2D drawing necessary for manufacturing a machine component is created with the drawing size corresponding to the sheet size.
ところで、投影図のサイズは部品毎に異なり、必要な注記情報や詳細図は部品の形状等の仕様によって異なる。そのため、機械図面等に含まれる各種の図面情報を図枠内に配置する際の、配置パターンは多岐にわたる。
図枠内に各種の図面情報を配置する場合、図面情報どうしが重ならずに、且つ全ての図面情報が図面枠内に収まるように配置する必要がある。そのため、特に、図面枠内における図面情報の占有面積や図面枠内に配置すべき図面情報の数に対して図面枠、つまり印刷領域が比較的小さいときほど、手作業による配置作業には時間がかかる。
By the way, the size of the projection varies from part to part, and the necessary annotation information and the detailed view depend on specifications such as the shape of the part. Therefore, the arrangement pattern at the time of arranging various drawing information included in a machine drawing or the like in a drawing frame is diverse.
When arranging various kinds of drawing information in the drawing frame, it is necessary to arrange so that the drawing information does not overlap and all the drawing information can be contained in the drawing frame. Therefore, especially when the drawing frame, that is, the printing area is relatively small relative to the occupied area of the drawing information in the drawing frame and the number of drawing information to be arranged in the drawing frame, time is required for manual placement operation. It takes.
複数の図面情報を図面枠内に自動で配置する装置等も提案されており、このような装置では、複数の図面情報が図面枠内に収まる配置パターンを予め記憶しておくことにより、複数の図面情報を配置するようにしている。
しかしながら、詳細図や注記情報等は定期的にメンテナンスされるため、メンテナンスに伴って詳細図や注記情報が変更され、その結果、配置パターンで規定される領域内に収まらなくなる可能性がある。その場合には配置パターンを再度設定し直す必要があり、装置側のメンテナンスロードが大きくなる。
An apparatus or the like for automatically arranging a plurality of drawing information in a drawing frame has also been proposed, and such an apparatus previously stores a plurality of arrangement patterns in which a plurality of drawing information fall within the drawing frame. Drawing information is arranged.
However, since the detail drawings and the note information are regularly maintained, the detail drawings and the note information may be changed along with the maintenance, and as a result, they may not fit within the area defined by the arrangement pattern. In that case, it is necessary to set the arrangement pattern again, and the maintenance load on the apparatus side becomes large.
また、所定の図面情報を図枠内に配置することができない場合には、印刷領域を広くする必要がある。一般に、図面は用紙に印刷することが多いため、少しでも小さい用紙サイズの印刷用紙に印刷することは省資源活動となる。また、用紙サイズがA2以上となると、専用プリンタが必要になることが多い。また、モニタ上で図面を閲覧する場合、用紙サイズが大きくなるほど、図面枠内に表示される図面情報がより縮小されるため、詳細図等、比較的細かい図面の場合には、表示された情報を確認しづらい。つまり、モニタ上での図面の見易さの点からも印刷領域は狭い方が好ましく、そのためには、複数の図面情報が重ならずに小さくまとまって配置されることが好ましい。 In addition, when predetermined drawing information can not be arranged within the drawing frame, it is necessary to widen the printing area. Generally, since drawings are often printed on paper, printing on printing paper of even a small paper size is a resource saving activity. When the paper size is A2 or more, a dedicated printer is often required. Also, when viewing a drawing on a monitor, as the paper size increases, the drawing information displayed in the drawing frame is further reduced, so in the case of a relatively fine drawing such as a detailed drawing, the displayed information It is hard to confirm. That is, it is preferable that the printing area be narrow also from the viewpoint of viewability of the drawing on the monitor, and for that purpose, it is preferable that a plurality of pieces of drawing information be arranged in a small size without overlapping.
このような問題を解決するために、一つの印刷領域内に配置されている、投影図、注記情報等の図面上に配置される各種の複数の図面情報を、図面情報毎に分割し、図形や寸法線の干渉を検知して、これらが重ならないように自動で修正する装置が提案されている(例えば、特許文献1参照)。
また、プレス金型に配置する単位形状の部材について、回転角度毎の材料取り面積を算出し、面積が最小となる回転角度を求めることにより、材料の歩留りが最小となるレイアウトを検出する方法等も提案されている(例えば、特許文献2参照)。
In order to solve such problems, a plurality of pieces of drawing information, such as projection drawings and annotation information, arranged in one print area, are divided into pieces of drawing information, An apparatus has been proposed which detects the interference of the dimensional lines and automatically corrects them so that they do not overlap (see, for example, Patent Document 1).
In addition, the method of detecting the layout with the minimum yield of material by calculating the material removal area for each rotation angle and finding the rotation angle that minimizes the area for members of unit shape placed in the press die, etc. Have also been proposed (see, for example, Patent Document 2).
しかしながら、上述のように図形や寸法線の干渉を検知して配置を修正する方法は、予め一つの印刷領域内に配置されている投影図、注記情報等といった各種の図面情報どうしの干渉を修正するものであって、人手によって、予め各種の図面情報を配置しておく必要がある。
また、回転角度毎の材料取り面積を算出することで材料の歩留りが最小となるレイアウトを検出する方法は、単一形の部材を配置対象とし、単位形状の部材を回転させるものであるため、機械図面等のように様々な形状の投影図や、注記情報等の図面情報を有し、かつ回転させることのできない図面情報を含む図面の場合には、適用することが困難である。
However, as described above, the method of detecting the interference of figures and dimension lines and correcting the arrangement corrects the interference between various kinds of drawing information such as projection drawings, annotation information, etc., which are arranged in advance in one print area. It is necessary to manually arrange various kinds of drawing information in advance.
Further, the method of detecting the layout in which the yield of the material is the minimum by calculating the material removal area for each rotation angle is to arrange a single-type member and rotate the unit-shaped member, It is difficult to apply in the case of a drawing including projection information of various shapes such as a machine drawing or the like and drawing information such as annotation information and including drawing information which can not be rotated.
本発明は、様々な形状を有する、投影図や注記情報等といった複数の図面情報を、より狭い範囲に効率よく自動配置することの可能な図面作成装置及び図面作成プログラムを提供することを目的としている。 An object of the present invention is to provide a drawing creating apparatus and a drawing creating program capable of efficiently arranging a plurality of pieces of drawing information, such as projection drawings and annotation information, having various shapes in a narrow range efficiently. There is.
本発明の一態様によれば、複数の図面を一枚の用紙に対応した一つの印刷領域内に配置する図面作成装置であって、前記複数の図面それぞれにおいて、前記図面間で同一ピッチの縦及び横のグリッド線を、表示されている情報全てを覆うように重畳させ、前記グリッド線で区切られるセルのうち前記図面に表示されている情報と重なる全てのセルを含む連続した領域を図面要素とし、前記連続した領域の外枠をなすセルを図面要素の外枠のセルとするグリッド処理部と、複数の前記図面要素のうちの一の図面要素を基準図面要素として設定する基準図面要素設定部と、前記基準図面要素設定部で設定された基準図面要素を第一の図面要素とし、前記複数の図面要素のうちの、前記基準図面要素として設定された図面要素を除く図面要素を移動図面要素とし、当該移動図面要素のうちの一の移動図面要素を第二の図面要素として初期設定する初期設定部と、前記外枠のセルのうち頂点となるセルを頂点セルとして検出する頂点セル検出部と、前記第二の図面要素に含まれる一の頂点セルを移動セルとし、当該移動セルが前記第一の図面要素の前記外枠のセルに外側から沿うように前記第二の図面要素を移動させながら、前記第二の図面要素が前記第一の図面要素と重ならない領域に配置される配置パターンを検索し、一の頂点セルについて前記配置パターンを検出した後、前記移動セルを他の頂点セルに切り替えて再度前記配置パターンを検索する処理を、前記移動セルとして全ての前記頂点セルが設定されるまで繰り返し行って、前記頂点セル毎に前記配置パターンを検出する配置パターン検出部と、前記配置パターン検出部で検出した前記頂点セル毎の配置パターンのうち、当該配置パターンで配置された前記第一の図面要素と前記第二の図面要素とを含む図形が内接する矩形の面積が最小となる配置パターンを最小配置パターン候補として検出する最小配置パターン候補検出部と、前記最小配置パターン候補で配置された前記第一の図面要素と前記第二の図面要素とからなる図形を新たな前記第一の図面要素とし、前記移動図面要素のうちの、前記第二の図面要素として既に設定された移動図面要素を除く一の移動図面要素を新たな前記第二の図面要素として設定する更新処理を、全ての前記移動図面要素が前記第二の図面要素として設定されるまで繰り返し行う移動図面要素更新部と、前記第二の図面要素として前記複数の移動図面要素のうちの最後の移動図面要素が設定された状態で前記最小配置パターン候補検出部において検出される最小配置パターン候補を、最小配置パターンとする最小配置パターン検出部と、を備える図面作成装置が提供される。 According to one aspect of the present invention, there is provided a drawing creation apparatus for arranging a plurality of drawings in one printing area corresponding to a sheet of paper, and in each of the plurality of drawings, a longitudinal direction having the same pitch among the drawings. And a horizontal grid line are superimposed to cover all displayed information, and a continuous area including all cells overlapping the information displayed in the drawing among the cells separated by the grid lines is drawn as a drawing element And a grid processing unit that uses the cells forming the outer frame of the continuous area as the cells of the outer frame of the drawing element, and setting the reference drawing element setting one drawing element of the plurality of drawing elements as the reference drawing element And a reference drawing element set by the reference drawing element setting unit as a first drawing element, and moving a drawing element other than the drawing element set as the reference drawing element among the plurality of drawing elements An initial setting unit which is a plane element and initializes one moving drawing element of the moving drawing elements as a second drawing element, and a vertex cell which detects a cell serving as a vertex of the cells of the outer frame as a vertex cell The second drawing element is arranged such that the detection unit and one vertex cell included in the second drawing element are moving cells, and the moving cell extends from the outside to the cells of the outer frame of the first drawing element. Search for a placement pattern in which the second drawing element is placed in a region not overlapping the first drawing element while moving the second drawing element, and after detecting the placement pattern for one vertex cell, Processing of switching to the vertex cell and searching for the placement pattern again until all the vertex cells are set as the moving cell, and the placement pattern is detected for each of the vertex cells A figure including the first drawing element and the second drawing element arranged in the arrangement pattern among the arrangement pattern for each vertex cell detected by the turn detection unit and the arrangement pattern detection unit is inscribed A minimum arrangement pattern candidate detection unit that detects an arrangement pattern with the smallest rectangular area as a minimum arrangement pattern candidate, and the first drawing element and the second drawing element arranged in the minimum arrangement pattern candidate One moving drawing element except the moving drawing element which is already set as the second drawing element among the moving drawing elements as the new first drawing element, and the new second drawing element As the second drawing element, and the moving drawing element updating unit repeatedly performing the update processing to set as the second drawing element until all the moving drawing elements are set as the second drawing element And a minimum arrangement pattern detection unit for setting the minimum arrangement pattern candidate detected by the minimum arrangement pattern candidate detection unit in a state in which the last movement drawing element of the plurality of movement drawing elements is set as the minimum arrangement pattern. A drawing creation device is provided.
本発明の一態様によれば、限られた領域内に、図面要素をコンパクトに配置することができ且つ効率よく自動で配置することができる。 According to one aspect of the present invention, drawing elements can be compactly arranged within a limited area and can be arranged automatically and efficiently.
以下、本発明の実施の形態を図面に基づいて説明する。
以下の詳細な説明では、本発明の実施形態の完全な理解を提供するように多くの特定の細部について記載される。しかしながら、かかる特定の細部がなくても1つ以上の実施形態が実施できることは明らかである。他にも、図面を簡潔にするために、周知の構造及び装置が略図で示されている。
Hereinafter, embodiments of the present invention will be described based on the drawings.
In the following detailed description, numerous specific details are set forth to provide a thorough understanding of embodiments of the present invention. However, it will be apparent that one or more embodiments may be practiced without such specific details. Besides, well-known structures and devices are illustrated schematically in order to simplify the drawings.
(構成)
本発明の一実施形態に係る図面作成装置1は、図1に示すように、表示装置2と、入力装置3と、制御装置4と、を備える。
表示装置2は、CRT、液晶ディスプレイ等の画像を表示する装置であって、図面作成装置1での処理を実現するプログラムによるGUI(Graphical User Interface)等を表示する。
入力装置3は、マウス、キーボード等であり、利用者の入力操作、選択操作等を受け付け、入力信号を制御装置4に出力する。
制御装置4は、パーソナルコンピュータ(PC)等であり、入出力インタフェース部、演算処理部(CPU)、ROM、RAM等の記憶部を備える。図面作成装置1での処理を実現するプログラムは記憶部に格納され、演算処理部では、記憶部に格納されたプログラムにしたがって、図面作成装置1に係る機能を実現し、図面データベース5に格納された各種図面データに基づき図面作成を行う。
(Constitution)
A
The
The
The control device 4 is a personal computer (PC) or the like, and includes a storage unit such as an input / output interface unit, an arithmetic processing unit (CPU), a ROM, and a RAM. The program for realizing the process in the
図面データベース5には、この図面作成装置1によって作成される、複数の個別図面を一枚の用紙に対応した一つの印刷領域内に配置してなる統合図面(例えば2D図面)や、この統合図面に含まれる複数の個別図面等の図面データが格納される。図面データベース5は、制御装置4が有する記憶領域に設けられていてもよく、図面作成装置1の外部に設けられていてもよい。
個別図面としては、例えば図2に示すように、正面図、平面図、側面図、背面図、底面図等の投影図や断面図、各種の注記情報、投影図で表される物体の詳細図等を含む。個別図面は、個別図面単位で作成される。
In the
As an individual drawing, for example, as shown in FIG. 2, a projection view or a sectional view such as a front view, a plan view, a side view, a rear view, or a bottom view, various annotation information, and a detail view of an object represented by the projection view Etc. Individual drawings are created in individual drawing units.
制御装置4は、図3に示すように、基準図面設定部11と、配置可能領域設定部12と、グリッド処理部13と、配置パターン検索処理部14と、出力処理部15と、を備える。
基準図面設定部11は、作成対象の統合図面に含まれる個別図面を図面データベース5から読み出し、これら個別図面のうちのいずれかの個別図面を基準図面として設定する。例えば作成対象の統合図面に含まれる個別図面を表示装置2に表示し、利用者の入力装置3での選択操作に応じて選択された個別図面を基準図面として設定する。
As shown in FIG. 3, the control device 4 includes a reference drawing setting unit 11, an arrangeable
The reference drawing setting unit 11 reads the individual drawings included in the integrated drawing to be created from the
配置可能領域設定部12は、基準図面設定部11で設定された基準図面に対して、他の個別図面の配置位置を規定する配置可能領域を設定する。
グリッド処理部13は、作成対象の統合図面に含まれる個別図面のそれぞれについて、図4に示すように、個別図面間で共通ピッチの縦及び横のグリッド線を、個別図面に表示されている情報を全て覆うように重畳させて、各個別図面を縦及び横のグリッド線でセルに区切る。ここでいう個別図面に表示されている情報とは、個別図面に表示される注記情報等の文字情報や、詳細図等の各種図面を構成する線分や符号、等、図面として必要な個別図面に表示されている情報をいう。
そして、個別図面毎に、個別図面に表示されている情報と重なるセル全てを含む連続した領域を図面要素とし、この図面要素としての連続した領域の外周をなす全てのセルを、図面要素の外枠のセルとして検出すると共に、外枠のセルの中から図面要素の頂点となる頂点セルを検出する。
The arrangeable
The
Then, for each individual drawing, a continuous area including all the cells overlapping the information displayed in the individual drawing is taken as a drawing element, and all the cells forming the periphery of the continuous area as the drawing element are outside the drawing element. While detecting as a cell of a frame, a vertex cell to be a vertex of a drawing element is detected from the cells of the outer frame.
配置パターン検索処理部14は、個別図面に含まれる図面要素どうしが重ならない配置パターンのうち、この配置パターンで配置された全ての図面要素を含む図形が内接する矩形(以下、内接矩形ともいう。)の面積が最小となる配置パターンを検索し、これを面積最小パターンとする。
出力処理部15は、利用者により指定された用紙サイズに対応する図枠内に、作成対象の統合図面に含まれる個別図面を、面積最小パターンとして設定された配置パターンで配置する。図枠は、利用者が設定すること等によって、例えば用紙サイズA0〜A4のいずれかに対応したサイズに予め設定される。
The arrangement pattern search processing unit 14 is a rectangle (hereinafter also referred to as an inscribed rectangle) in which a figure including all drawing elements arranged in this arrangement pattern is inscribed among arrangement patterns in which the drawing elements included in the individual drawings do not overlap. The layout pattern with the smallest area of.) Is searched, and this is regarded as the area smallest pattern.
The
次に、図面作成装置1の制御装置4で実行される処理手順の一例を、図5のフローチャートを伴って説明する。
例えば、図面データベース5に登録されている個別図面の一覧が表示装置2に表示されること等によって、個別図面の一覧の中から利用者によって作成対象の統合図面に含まれる個別図面が選択されると、基準図面設定部11は、選択された個別図面の図面データを図面データベース5から取得する(ステップS2)。
基準図面設定部11は、図面データベース5から取得した図面データをもとに、作成対象の統合図面に含まれる複数の個別図面を、図2に示すように表示装置2に表示する(ステップS4)。
基準図面設定部11は、表示装置2に表示された個別図面のうち、いずれかの個別図面が例えば入力装置3での選択操作に応じて選択されると、この個別図面を基準図面として認識し、基準図面に含まれる図面要素を基準図面要素として設定する。また、他の個別図面に含まれる図面要素を移動図面要素として設定する(ステップS6)。
Next, an example of the processing procedure executed by the control device 4 of the
For example, when the list of individual drawings registered in the
The reference drawing setting unit 11 displays a plurality of individual drawings included in the integrated drawing to be created on the
The reference drawing setting unit 11 recognizes the individual drawing as a reference drawing when any one of the individual drawings among the individual drawings displayed on the
配置可能領域設定部12は、利用者による入力装置3の操作に応じて、作成対象の統合図面に含まれる個別図面のうち、基準図面を除く他の個別図面それぞれについて、図6に示すように、これら個別図面を基準図面に対してどの位置に配置するかを表す配置可能領域を設定し所定の記憶領域に記憶する(ステップS8)。例えば、図6に示すように、基準図面としての正面図等に対して、例えばある注記情報は基準図面の上領域又は右上領域に配置するとして設定し、ある詳細図は、基準図面の右上領域、右領域、右下領域のいずれかの領域に配置する等として設定する。また、別の注記情報は下領域に配置するとして設定し、別の詳細図は基準図面の左上領域、左領域、左下領域のいずれかの領域に配置する等として設定する。
As shown in FIG. 6, the arrangeable
なお、正面図、平面図等の投影図や断面図等、配置位置がJISで定められている図面要素については、JISの規定にしたがった配置領域が設定される。JISで配置位置が定められている図面要素については、例えば、配置位置を対応付ける配置位置情報を個別図面に含めておき、個別図面の図面データに配置位置情報が含まれる図面要素については、配置位置情報により対応付けられた位置関係となるように、図面要素の配置位置を制限するようにすればよい。或いはJISで配置位置が定められている図面については、定められた配置にしたがって配置した一つの図形として取り扱うようにしてもよい。 In addition, as for a drawing element such as a front view and a plan view such as a plan view, and a cross-sectional view, for the drawing element whose arrangement position is determined by JIS, an arrangement area in accordance with JIS is set. For drawing elements whose arrangement positions are defined in JIS, for example, arrangement position information that associates the arrangement positions is included in the individual drawings, and for drawing elements whose arrangement data is included in the drawing data, the arrangement positions The arrangement positions of the drawing elements may be limited so that the positional relationship associated with the information is obtained. Alternatively, a drawing whose arrangement position is determined in JIS may be handled as one figure arranged according to the determined arrangement.
一方、グリッド処理部13は、作成対象の統合図面に含まれる個別図面それぞれに対して、図4に示すように個別図面間で共通ピッチの縦及び横のグリッド線を、個別図面に表示されている情報全てを覆うように重畳させて、個別図面を、縦及び横のグリッド線でセルに区切る(ステップS10)。
なお、個別図面の縮尺は、個別図面間で同一である必要はなく個別に設定されていてもよく、統合図面として図枠内に表示する際の各図面要素の縮尺に合わせて設定すればよい。
縦及び横のグリッド線のピッチは、予め設定した所定のピッチを設定してもよく、注記情報に含まれる文字のフォント等に基づき設定してもよい。また、縦及び横のグリッド線で区切られるセルを最小単位として図面要素どうしが組み合わせられるため、例えば、図面要素の形状等に基づいて利用者が縦及び横のグリッド線のピッチを設定するようにしてもよい。
On the other hand, for each individual drawing included in the integrated drawing to be created, the
The scales of the individual drawings do not need to be the same between the individual drawings, and may be set individually, and may be set according to the scale of each drawing element when displayed in the figure frame as an integrated drawing. .
The pitch of the grid lines in the vertical and horizontal directions may be set to a predetermined pitch set in advance, or may be set based on the font of characters included in the annotation information. In addition, since drawing elements can be combined with cells separated by vertical and horizontal grid lines as the minimum unit, for example, the user sets the pitch of the vertical and horizontal grid lines based on the shape of the drawing elements, etc. May be
次に、グリッド処理部13は、表示されている情報と重なる全てのセルを含む領域を図面要素として検出する。具体的には、個別図面毎に、図7に示すように個別図面に表示されている情報と重なるセルを全て検出し、検出されたセル全てを含む連続した領域を設定する。例えば、環状部材の詳細図等、個別図面の、情報が表示されている領域の内側に、情報が表示されていない領域が存在する場合には、個別図面に表示されている情報と重なるセルに囲まれた情報と重ならないセルも含めて、個別図面に表示されている情報と重なるセル全てを含む連続した領域を図面要素とする。
Next, the
この検出されたセル全てを含む連続した図面要素としての領域は、例えば、個別図面に表示されている情報と重なるセル全てのみを含む領域であってよい。或いは、図面要素として、個別図面に表示されている情報と重なるセル全てのみを含む領域とした場合、この図面要素としての領域の外周に凸凹とが生じるような場合には、凹んでいるセルも個別図面に表示されている情報と重なるセルとみなして、図面要素としての領域の外周の形状を簡略化するようにしてもよい。図面要素としての領域は、少なくとも、個別図面に表示されている情報と重なる全てのセルを含んでいればよい。 The area as a continuous drawing element including all the detected cells may be, for example, an area including only all cells overlapping information displayed in the individual drawing. Alternatively, in the case where the drawing element is a region including only all the cells overlapping with the information displayed in the individual drawing, in the case where unevenness occurs in the outer periphery of the region as the drawing element, the recessed cell is also included. The shape of the outer periphery of the area as a drawing element may be simplified by regarding it as a cell overlapping with the information displayed in the individual drawing. The area as a drawing element may include at least all cells overlapping information displayed in the individual drawing.
グリッド処理部13は、このようにして設定した図面要素としての領域の外枠に対応するセルを、図面要素の外枠のセルc1として検出する(ステップS12)。
さらに、グリッド処理部13は、頂点セルを検出し所定の記憶領域に記憶する(ステップS14)。頂点セルは、図面要素に重ならないセルを空白セルとしたとき、例えば図8(a)に示すように、図面要素の外枠のセルのうち、2辺以上に空白セルが接しているセルc11、c12をいう。図8(b)の場合、6個の頂点セル(c11〜c16)を有している。
The
Further, the
配置パターン検索処理部14は、後述の配置パターン検索処理を行う(ステップS16)。
そして、出力処理部15は、配置パターン検索処理で検出した配置パターンを面積最小パターンとし、この面積最小パターンの配置にしたがって、利用者によって指定された用紙サイズに対応する図枠内に個別図面を配置し、例えば表示装置2に表示する(ステップS18)。
次に、ステップS16における配置パターン検索処理の処理手順の一例を、図9に示すフローチャートを伴って説明する。
The layout pattern search processing unit 14 performs layout pattern search processing described later (step S16).
Then, the
Next, an example of the processing procedure of the layout pattern search process in step S16 will be described with reference to the flowchart shown in FIG.
配置パターン検索処理部14では、図9に示すように、まず、移動図面要素それぞれに対し、識別番号を付与する(ステップS22)。
ステップS24では、ループAの変数更新処理を行う。ループAでは、検索パターンを決定し、この検索パターンにしたがって、固定図形と、検索対象の移動図面要素とを設定する。
検索対象の移動図面要素としては、n個の中からn個を取り出すnPn通り(nは移動図面要素の数)の順列で表される、n個の移動図面要素の並びを検索パターンとし、検索パターンにおける移動図面要素の並び順にしたがって、検索対象の移動図面要素として順に設定する。固定図形としては初期状態では基準図面要素を設定する。
In the arrangement pattern search processing unit 14, as shown in FIG. 9, first, an identification number is assigned to each of the mobile drawing elements (step S22).
In step S24, variable update processing of loop A is performed. In loop A, a search pattern is determined, and a fixed figure and moving drawing elements to be searched are set according to the search pattern.
As a moving drawing element to be searched, a sequence of n moving drawing elements represented by a sequence of nP n pieces (n is the number of moving drawing elements) for extracting n out of n pieces is used as a search pattern According to the arrangement order of moving drawing elements in the pattern, they are sequentially set as moving drawing elements to be searched. As a fixed figure, a reference drawing element is set in the initial state.
例えば移動図面要素の識別番号を1〜nとしたとき、n個の移動図面要素の並びのパターンが検索パターンとなる。例えば、移動図面要素が3つであり、識別番号を「要素1」、「要素2」、「要素3」としたとき、n個の中からn個を取り出す順列のパターンは、「要素1」「要素2」「要素3」、「要素1」「要素3」「要素2」、「要素2」「要素1」「要素3」、「要素2」「要素3」「要素1」、「要素3」「要素1」「要素2」、「要素3」「要素2」「要素1」の6パターンある。この各パターンが検索パターンとなる。
For example, when the identification numbers of the moving drawing elements are 1 to n, the pattern of the arrangement of n moving drawing elements becomes a search pattern. For example, when there are three moving drawing elements and identification numbers are "
そして、まず、1番目の検索パターン(「要素1」「要素2」「要素3」)にしたがって、検索対象の移動図面要素として「要素1」を設定する。「要素1」の移動図面要素と固定図形(基準図面要素)とからなる図形について、後述のステップS42までの処理が行われ、移動図面要素と固定図形とからなる図形の内接矩形が面積最小となる配置パターンが検出されて後述の最小面積記憶領域に記憶されたならば、配置パターン検索処理部14は、最小面積記憶領域に記憶された面積最小となる配置パターンを読み出し、この配置パターンで配置された「要素1」の移動図面要素と固定図形(基準図面要素)とからなる図形を新たな固定図形(基準図面要素+「要素1」の移動図面要素)とし、次に、「要素2」の移動図面要素を検索対象の移動図面要素とする。そして、同様にして、内接矩形が面積最小となる配置パターンが検出されると、最小面積記憶領域に記憶された面積最小となる配置パターンで配置された「要素2」の移動図面要素と固定図形とからなる図形を新たな固定図形(基準図面要素+「要素1」の移動図面要素+「要素2」の移動図面要素)とし、次に、「要素3」の移動図面要素を検索対象の移動図面要素とする。同様にして、内接矩形が面積最小となる配置パターンが検出され、このときの配置パターン、つまり、“基準図面要素+「要素1」の移動図面要素+「要素2」の移動図面要素+「要素3」の移動図面要素”からなる図形の内接矩形が面積最小となる配置パターンが最小配置パターンとして検出されると、1番目の検索パターンに対する処理が終了する。
Then, first, according to the first search pattern ("
配置パターン検索処理部14は、同様の手順で、2番目の検索パターン(「要素1」「要素3」「要素2」)に対する処理を実行する。まず、固定図形として基準図面要素を設定し、検索対象の移動図面要素として「要素1」を設定する。そして、「要素1」の移動図面要素と固定図形(基準図面要素)とからなる図形について、内接矩形が面積最小となる配置パターンが検出され最小面積記憶領域に記憶されたならば、配置パターン検索処理部14は、最小面積記憶領域に記憶された内接矩形が面積最小となる配置パターンを読み出し、この配置パターンで配置された「要素1」の移動図面要素と固定図形とからなる図形を新たな固定図形(基準図面要素+「要素1」の移動図面要素)とし、次に、「要素3」の移動図面要素を検索対象の移動図面要素とする。そして、同様にして、内接矩形が面積最小となる配置パターンが検出されると、最小面積記憶領域に記憶された面積最小となる配置パターンで配置された「要素3」の移動図面要素と固定図形とからなる図形を新たな固定図形(基準図面要素+「要素1」の移動図面要素+「要素3」の移動図面要素)とし、次に、「要素2」の移動図面要素を検索対象の移動図面要素とする。そして、同様にして内接矩形の面積が最小となる配置パターン、つまり、“基準図面要素+「要素1」の移動図面要素+「要素3」の移動図面要素+「要素2」の移動図面要素”からなる図形の内接矩形が面積最小となる配置パターンが、最小配置パターンとして検出されると、2番目の検索パターンに対する処理が終了する。
The arrangement pattern search processing unit 14 executes processing for the second search pattern (“
配置パターン検索処理部14は、同様にして他の検索パターンに対する処理を行い、検索パターンを変更する毎に、固定図形を基準図面要素に更新し、検索対象の移動図面要素として検索パターンで指定される一番目の移動図面要素に更新する。そして、検索対象の移動図面要素を検索パターンにしたがって順次更新すると共に、固定図形に検索対象の移動図面要素を加えた図形を新たな固定図形として更新し、固定図形と検索対象の移動図面要素とを順に更新して検索パターン毎に最小配置パターンを検索する。
なお、配置パターン検索処理部14は、最小面積記憶領域に、内接矩形が面積最小となる配置パターンが複数記憶されているときには、それぞれの配置パターンで配置された図形を固定図形とする。これによって、内接矩形が面積最小となる配置パターンが複数記憶されている場合には、各配置パターンで配置された固定図形それぞれについて、固定図形と新たな移動図面要素とについて面積最小となる配置パターンが行われることになる。
The arrangement pattern search processing unit 14 similarly performs processing on another search pattern, and updates the fixed figure to the reference drawing element each time the search pattern is changed, and is specified by the search pattern as the moving drawing element to be searched. Update to the first moving drawing element. Then, the moving drawing element to be searched is sequentially updated in accordance with the search pattern, and the figure obtained by adding the moving drawing element to be searched to the fixed figure is updated as a new fixed figure, and the fixed figure and the moving drawing element to be searched Are sequentially updated to search the minimum arrangement pattern for each search pattern.
When a plurality of arrangement patterns in which the inscribed rectangle has the smallest area are stored in the minimum area storage area, the arrangement pattern search processing unit 14 sets the figures arranged by the arrangement patterns as fixed figures. Thus, in the case where a plurality of arrangement patterns in which the inscribed rectangle has the smallest area are stored, the arrangement in which the areas of the fixed figure and the new moving drawing element become the smallest for each of the fixed figures arranged in each arrangement pattern. The pattern will be done.
例えば、“基準図面要素と+「要素1」の移動図面要素”とからなる図形の内接矩形が面積最小となる配置パターンとして2つのパターンp1とp2とがある場合には、パターンp1で配置された“基準図面要素と+「要素1」の移動図面要素”とからなる図形を第一の固定図形とし、さらに、パターンp2で配置された“基準図面要素と+「要素1」の移動図面要素”とからなる図形を第二の固定図形とする。
そして、第一の固定図形と「要素2」の移動図面要素からなる図形の内接矩形が面積最小となる配置パターンが検索され、最終的に、“パターンp1で配置された基準図面要素+「要素1」の移動図面要素と、「要素2」の移動図面要素と、「要素3」の移動図面要素”からなる図形の内接矩形が面積最小となる配置パターンが、最小配置パターンとして検出され、同様に、第二の固定図形と「要素2」の移動図面要素からなる図形の内接矩形が面積最小となる配置パターンが検索され、最終的に、“パターンp2で配置された基準図面要素+「要素1」の移動図面要素と、「要素2」の移動図面要素と、「要素3」の移動図面要素”からなる図形の内接矩形が面積最小となる配置パターンが、最小配置パターンとして検出されると、このときの検索パターンに対する処理が終了する。
For example, when there are two patterns p1 and p2 as arrangement patterns in which the inscribed rectangle of the figure consisting of "the reference drawing element and the moving drawing element of +"
Then, the arrangement pattern in which the inscribed rectangle of the figure consisting of the first fixed figure and the moving drawing element of “
このとき、例えば第一の固定図形と「要素2」の移動図面要素からなる図形の内接矩形が面積最小となる配置パターンが複数(例えば2つ)ある場合には、複数の配置パターンを記憶しておき、第一の固定図形と「要素2」とが第一のパターンp11で配置された場合と、第二のパターンp12で配置された場合のそれぞれについて、新たな固定図形を設定し、各固定図形について上記と同様の手順で配置パターンの検索を行う。
ステップS26では、ループBの変数更新処理を行う。具体的には、ステップS24で設定された検索対象の移動図面要素が有する頂点セルを、検索対象の頂点セルとして順に設定する。
At this time, for example, when there are a plurality of (for example, two) arrangement patterns in which the inscribed rectangle of the first fixed figure and the moving drawing element of “
In step S26, variable update processing of loop B is performed. Specifically, vertex cells included in the moving drawing element to be searched set in step S24 are sequentially set as vertex cells to be searched.
ステップS28では、ループCの変数更新処理を行う。具体的には、固定図形の外周となる固定図形に含まれる基準図面要素又は複数の図面要素の外枠のセルに対して、外側から接する空白セルを、外接セルとして検索する。図10(a)に示すように、例えば固定図形m11が基準図面要素である場合、基準図面要素m11の外枠のセルc21それぞれに対し、図10(b)に示すように、その外側から接する全てのセルを外接セルc22として検出する。そして、外接セルc22を、検索対象の外接セルとして順に設定する。
ステップS30では、図10(c)に示すように、ステップS28で設定された検索対象の外接セルc22と、ステップS26で設定された検索対象の頂点セルc23とが重なるように、向きはそのままで検索対象の移動図面要素m12を配置する。
In step S28, variable update processing of loop C is performed. Specifically, with respect to cells of an outer frame of a reference drawing element or a plurality of drawing elements included in a fixed figure which is an outer periphery of the fixed figure, a blank cell contacting from the outside is searched as a circumscribed cell. As shown to Fig.10 (a), when the fixed figure m11 is a reference | standard drawing element, for example, as shown in FIG.10 (b) with respect to each cell c21 of the outer frame of the reference drawing element m11, it contacts from the outer side. All cells are detected as circumscribing cell c22. Then, the circumscribing cell c22 is sequentially set as a circumscribing cell to be searched.
In step S30, as shown in FIG. 10C, the orientation remains unchanged so that the circumscribing cell c22 set as the search target in step S28 overlaps with the vertex cell c23 set as the search target set in step S26. The moving drawing element m12 to be searched is arranged.
このとき、検索対象の移動図面要素と固定図形とが、例えば図10(c)に示すように重なる場合には、ステップS32からステップS40に移行し、重ならない場合には、ステップS34に移行する。
ステップS34では、検索対象の移動図面要素が、配置可能領域として設定された領域内に位置するかどうかを判断し、配置可能領域内に位置するときにはステップS36に移行して、このときの検索対象の移動図面要素と固定図形との配置状態において、固定図形と検索対象の移動図面要素とからなる図形が内接する矩形(内接矩形)を求める。そして、内接矩形の縦及び横の長さが予め設定されたしきい値以下である内接矩形について、その面積を求める。そして、求めた面積が、最小面積記憶領域に記憶されている、最小面積以下であるとき、求めた面積を新たな最小面積として、このときの固定図形と検索対象の移動図面要素との配置パターンとを対応付けて、最小面積記憶領域に更新記憶する(ステップS38)。なお、内接矩形が最小面積となるときの固定図形と検索対象の移動図面要素との配置パターン及び最小面積は、検索パターン毎に、最小面積記憶領域に記憶されるようになっている。
At this time, when the moving drawing element to be searched and the fixed figure overlap, for example, as shown in FIG. 10C, the process proceeds from step S32 to step S40, and when not overlapping, the process proceeds to step S34. .
In step S34, it is determined whether or not the moving drawing element to be searched is positioned in the area set as the arrangeable area, and if it is positioned in the arrangeable area, the process proceeds to step S36 and the search target at this time In the arrangement state of the moving drawing element of and the fixed figure, a rectangle (inscribed rectangle) inscribed in a figure formed of the fixed figure and the moving drawing element to be searched is determined. Then, the area of the inscribed rectangle whose vertical and horizontal lengths are equal to or less than a predetermined threshold value is determined. When the determined area is equal to or less than the minimum area stored in the minimum area storage area, the determined area is regarded as a new minimum area, and the arrangement pattern of the fixed figure and the moving drawing element to be searched at this time. , And are updated and stored in the minimum area storage area (step S38). The arrangement pattern and the minimum area of the fixed figure and the moving drawing element to be searched when the inscribed rectangle has the minimum area are stored in the minimum area storage area for each search pattern.
内接矩形の縦及び横の長さのしきい値は、内接矩形が用紙サイズに応じた図枠内に収まるか否かを判定するためのしきい値であって、利用者によって指定される用紙サイズの縦及び横の長さに応じて設定される。
内接矩形の縦及び横の長さがしきい値を上回るときには、内接矩形すなわち固定図形と検索対象の移動図面要素とからなる図形が図枠内に収まらないため、しきい値以内を満足する内接矩形についてのみ、その面積を演算する。
なお、内接矩形の面積が、最小面積記憶領域に格納されている最小面積と等しい場合には、最小面積記憶領域に格納されている最小面積及びこれに対応する、固定図形と検索対象の移動図面要素との配置パターンと共に、今回演算した内接矩形の面積とこれに対応する固定図形と検索対象の移動図面要素との配置パターンも最小面積記憶領域に記憶する。
The threshold of the length and width of the inscribed rectangle is a threshold for determining whether or not the inscribed rectangle fits within the picture frame corresponding to the paper size, and is designated by the user. Are set according to the length and width of the paper size.
When the length and width of the inscribed rectangle exceed the threshold, the inscribed rectangle, that is, the figure consisting of the fixed figure and the moving drawing element to be searched does not fit within the figure frame, so the value within the threshold is satisfied. The area of only the tangent rectangle is calculated.
When the area of the inscribed rectangle is equal to the minimum area stored in the minimum area storage area, the minimum area stored in the minimum area storage area and the movement of the fixed figure and the search target corresponding thereto Along with the arrangement pattern with the drawing element, the area of the inscribed rectangle calculated this time and the arrangement pattern of the fixed figure corresponding thereto and the moving drawing element to be searched are also stored in the minimum area storage area.
一方、ステップS34で検索対象の移動図面要素が配置可能領域として設定された領域の外に位置するとき、つまり、例えば、図11(a)に示すように、検索対象の移動図面要素の配置可能領域として、基準図面要素の左上領域、左領域、左下領域、上領域、下領域が設定されている場合、図11(b)に示すように、検索対象の移動図面要素を、基準図面要素の右上領域、右領域、右下領域には、この領域への配置は行わず、ステップS40に移行する。
また、ステップS36で得られた内接矩形の面積が、最小面積記憶領域に記憶されている最小面積よりも大きいときには、記憶されている最小面積や配置パターンの更新は行わずそのままステップS40に移行する。
On the other hand, when the moving drawing element to be searched in step S34 is located outside the area set as the arrangeable area, that is, for example, as shown in FIG. When the upper left area, left area, lower left area, upper area, and lower area of the reference drawing element are set as the area, as shown in FIG. In the upper right area, the right area, and the lower right area, the arrangement in this area is not performed, and the process proceeds to step S40.
When the area of the inscribed rectangle obtained in step S36 is larger than the minimum area stored in the minimum area storage area, updating of the stored minimum area and arrangement pattern is not performed, and the process directly proceeds to step S40. Do.
ステップS40では、固定図形について外接セルとして検出した全てのセルについて、検索対象の頂点セルと重ね合わせる処理を行ったか否かを判断し、全ての外接セルについて処理を行っていない場合には、ステップS28に移行し、検索対象の外接セルを更新し、全ての外接セルについて処理を行った場合にはステップS42に移行する。
ステップS42では、検索対象の移動図面要素が有する頂点セル全てを検索対象の頂点セルとして設定したかを判断し、検索対象の頂点セルとして全ての頂点セルを設定していない場合には、ステップS26に戻り、検索対象の頂点セルとして次の頂点セルに更新する。
In step S40, it is determined whether or not the process of superimposing the fixed figure on the vertex cell of the search target has been performed for all the cells detected as circumscribed cells for the fixed figure, and the process is not performed for all circumscribed cells. The process shifts to S28, the circumscribing cells to be searched are updated, and when processing is performed for all the circumscribed cells, the process shifts to step S42.
In step S42, it is determined whether all vertex cells included in the moving drawing element to be searched have been set as vertex cells to be searched, and if all vertex cells are not set as vertex cells to be searched, step S26. Return to and update to the next vertex cell as the vertex cell to be searched.
そして、ステップS42で、検索対象の頂点セルとして全ての頂点セルを設定したならばステップS44に移行し、検索パターンで設定されている順に各図面移動要素を検索対象の図面移動要素として設定していないと判断されるとき、又は検索パターンで設定されている順に、各図面移動要素を検索対象の図面移動要素として設定する処理を、全ての検索パターンについて行っていないときには、ステップS24に戻って、現在の検索パターンにしたがって、検索対象の移動図面要素として次の移動図面要素を設定するか、又は次の検索パターンにしたがって、検索対象の移動図面要素を設定する。
ステップS44で、全ての検索パターンについて移動図面要素を、検索対象の移動図面要素として設定したならばステップS46に移行し、ステップS38の処理で最小面積及び配置パターンを記憶した最小面積記憶領域に記憶されている、検索パターン毎の、配置パターンのうち、面積最小の配置パターンを最小配置パターンとして設定する。
Then, if all vertex cells are set as the search target vertex cells in step S42, the process shifts to step S44, and each drawing moving element is set as the search target drawing moving element in the order set in the search pattern. If it is determined that there is not, or if the process of setting each drawing moving element as a drawing moving element to be searched is not performed for all the search patterns in the order set in the search pattern, the process returns to step S24. The next moving drawing element is set as the moving drawing element to be searched according to the current search pattern, or the moving drawing element to be searched is set according to the next searching pattern.
In step S44, if moving drawing elements are set as moving drawing elements to be searched for all search patterns, the process proceeds to step S46, and the minimum area and storage pattern are stored in the minimum area storage area storing the arrangement pattern in step S38. Among the arrangement patterns for each search pattern, the arrangement pattern with the smallest area is set as the minimum arrangement pattern.
つまり、ループCでは、図12(a)に示すように、検索対象の移動図面要素m12に含まれる頂点セルc23と、固定図形m11の外接セルc22とが重なるように移動図面要素m12を順にずらし、向きはそのままで移動図面要素m12を頂点セルc23が固定図形m11の外周に沿って固定図形m11を一周するように移動させる。これによって、移動図面要素m12の頂点セルc23と固定図形m11の外接セルc22とが重なる状態で、移動図面要素m12そのものと固定図形m11そのものとが重ならない状態にあるときの、移動図面要素m12と固定図形m11とからなる図形について、この図形が内接する内接矩形(図12(a)に破線で示す)の縦横の長さがしきい値を満足するとき、内接矩形の面積を演算し、内接矩形の面積が最も小さい配置パターンを検出する。
ループBでは、ループCでの処理を、移動図面要素m12に含まれる全ての頂点セルについて実行することによって、移動図面要素m12の全ての頂点セルそれぞれと固定図形m11の外接セルc22とが重なる状態で、移動図面要素m12そのものと固定図形m11そのものとが重ならない状態にあるときの、移動図面要素m12と固定図形m11とからなる図形が内接する内接矩形のうち、内接矩形の縦横の長さがしきい値を満足し且つ最も面積の小さい配置パターンを検出する。
That is, in the loop C, as shown in FIG. 12A, the moving drawing element m12 is sequentially shifted so that the vertex cell c23 included in the moving drawing element m12 to be searched overlaps the circumscribed cell c22 of the fixed figure m11. The moving drawing element m12 is moved as it is, so that the vertex cell c23 makes a round of the fixed figure m11 along the outer periphery of the fixed figure m11. As a result, when the vertex cell c23 of the moving drawing element m12 and the circumscribed cell c22 of the fixed figure m11 overlap, the moving drawing element m12 itself and the fixed figure m11 itself do not overlap, and the moving drawing element m12 and When the vertical and horizontal lengths of the inscribed rectangle (indicated by the broken line in FIG. 12A) inscribed in the figure is a threshold, the area of the inscribed rectangle is calculated for the figure consisting of the fixed figure m11, and A placement pattern having the smallest area of the tangent rectangle is detected.
In the loop B, the processing in the loop C is performed on all the vertex cells included in the moving drawing element m12 so that all the vertex cells of the moving drawing element m12 overlap with the circumscribed cell c22 of the fixed figure m11. If the moving drawing element m12 itself and the fixed figure m11 do not overlap, the length and width of the inscribed rectangle of the inscribed rectangle inscribed in the figure consisting of the moving drawing element m12 and the fixed figure m11 Detects the placement pattern that satisfies the threshold value and has the smallest area.
つまり、図12(b)に示すように、まず、移動図面要素m12の頂点セルc31について、頂点セルc31を固定図形m11の外周に沿って移動するように移動図面要素m12を移動させ、移動図面要素m12と固定図形m11とが重ならない状態にあるときの、移動図面要素m12と固定図形m11とからなる図形について、この図形が内接する内接矩形s1の縦横の長さがしきい値を満足するとき内接矩形s1の面積を演算する。頂点セルc31について、移動図面要素m12と固定図形m11とが重ならない状態にあるときの、移動図面要素m12と固定図形m11とからなる図形について、内接矩形s1の面積を順次演算しつつ、頂点セルc31が固定図形m11の周囲を一周するよう移動図面要素m12を移動させる。次に移動図面要素m12の頂点セルc32についても同様に処理を行って、移動図面要素m12と固定図形m11とからなる図形が内接する内接矩形s2についてその面積を演算し、同様に、他の頂点セルc33、c34、c35、c36についても順に、移動図面要素m12と固定図形m11とが重ならない状態にあるときの、移動図面要素m12と固定図形m11とからなる図形それぞれについて内接矩形の面積を演算する。
そして、図12(c)に示すように、内接矩形の面積が最小となるときの移動図面要素m12と固定図形m11との配置パターンで、移動図面要素m12と固定図形m11とを組み合わせてなる図形を新たな固定図形m111とし、この新たな固定図形m111と次の移動図面要素m121とについて、内接矩形の面積が最小となる配置パターンが検索される。
That is, as shown in FIG. 12B, first, for the vertex cell c31 of the moving drawing element m12, the moving drawing element m12 is moved so as to move the vertex cell c31 along the outer periphery of the fixed figure m11, and the moving drawing When the vertical and horizontal length of the inscribed rectangle s1 inscribed in the figure satisfies the threshold value for the figure composed of the moving drawing element m12 and the fixed figure m11 when the element m12 and the fixed figure m11 do not overlap The area of the inscribed rectangle s1 is calculated. Regarding the vertex cell c31, the vertex of the inscribed rectangle s1 is sequentially calculated for the figure consisting of the moving drawing element m12 and the fixed figure m11 when the moving drawing element m12 and the fixed figure m11 do not overlap. The moving drawing element m12 is moved so that the cell c31 goes around the fixed figure m11. Next, the vertex cell c32 of the moving drawing element m12 is similarly processed to calculate the area of the inscribed rectangle s2 inscribed by the figure consisting of the moving drawing element m12 and the fixed figure m11, and so on. Also for the vertex cells c33, c34, c35, c36, the area of the inscribed rectangle for each figure consisting of the moving drawing element m12 and the fixed figure m11 when the moving drawing element m12 and the fixed figure m11 do not overlap in order Calculate
Then, as shown in FIG. 12C, in the arrangement pattern of the moving drawing element m12 and the fixed figure m11 when the area of the inscribed rectangle is minimum, the moving drawing element m12 and the fixed figure m11 are combined. Assuming that the figure is a new fixed figure m111, a layout pattern that minimizes the area of the inscribed rectangle is searched for the new fixed figure m111 and the next moving drawing element m121.
つまり、ループAでは、ループB及びループCにより検索された、一の移動図面要素と一の固定図形との配置パターンのうち、面積最小となる配置パターンで配置された移動図面要素と固定図形とからなる図形を新たな固定図形とし、この固定図形と次の移動図面要素とについて、面積最小となる配置パターンを検索することによって、一の検索パターンに基づいて所定の順番で、基準図面要素に対して移動図面要素を加えていったときの面積最小となる配置パターンを検出する。さらに、検索パターンを更新して、nPn通りの順列に基づき設定される全ての検索パターンについて、検索パターンに基づいて所定の順番で、基準図面要素に対して移動図面要素を加えていったときの面積最小となる配置パターンを検出する。これにより、検索パターン毎に、基準図面要素に移動図面要素を順に加えていったときの面積最小となる配置パターンを検出する。そして、検出した検索パターン毎の面積最小となる配置パターンのうち、最も面積が小さい配置パターンを、最小配置パターンとする。つまり、各移動図面要素を基準図面要素に加えていくときの順番、また、移動図面要素と固定図形とがどの辺どうしで接するか等、を考慮して、面積最小となる、作成対象の統合図面に含まれる図面要素全てを含む配置パターンを検出する。 That is, in loop A, among the arrangement patterns of one moving drawing element and one fixed figure searched by loop B and loop C, the moving drawing element and fixed figure arranged in the arrangement pattern with the smallest area The new drawing is used as the new fixed figure, and the layout pattern with the smallest area is searched for for the fixed figure and the next moving drawing element to obtain the reference drawing element in a predetermined order based on one search pattern. On the other hand, a placement pattern that minimizes the area when moving drawing elements are added is detected. Furthermore, the search pattern is updated, and the moving drawing element is added to the reference drawing element in a predetermined order based on the search pattern for all the search patterns set based on the nP n permutations. A placement pattern that minimizes the area is detected. As a result, for each search pattern, a layout pattern that minimizes the area when moving drawing elements are sequentially added to the reference drawing element is detected. Then, among the arrangement patterns having the smallest area for each detected search pattern, the arrangement pattern having the smallest area is taken as the minimum arrangement pattern. In other words, the integration of objects to be created with the smallest area in consideration of the order in which each moving drawing element is added to the reference drawing element, and by which side the moving drawing element and the fixed figure contact each other, etc. The arrangement pattern including all drawing elements included in the drawing is detected.
図13は、例えば表示装置2に表示される、図枠内に配置された最小配置パターンの一例、図14は、図13において、図面要素を網かけで示したものである。なお、図中の破線は、個別図面の枠を表す。
このように、本実施形態における図面作成装置1では、個別図面から図面要素を抽出し、図面要素どうしが重ならないように図面要素を配置している。つまり、個別図面の余白部分は重なるが、図面要素どうしは重ならないようにしているため、限られた領域内に、図面要素をコンパクトに配置することができ且つ効率よく自動で配置することができる。
FIG. 13 shows an example of the minimum arrangement pattern arranged in the drawing frame displayed, for example, on the
Thus, in the
また複数の図面を、より占有面積が小さくなるように図枠内に配置する方法として、例えば、図枠内の領域全てを対象として、図面要素を配置したときに取り得る全ての配置パターンについて検討する方法等も考えられるが、本実施形態における図面作成装置1では、移動図面要素の頂点セルが、固定図形の図面要素の外周に沿って移動するように移動図面要素を移動させ、固定図形と移動図面要素とからなる図形が図枠内に収まる配置パターンの中から、固定図形と移動図面要素とからなる図形の内接矩形の面積が最小となる配置パターンを検出するようにし、面積最小となる可能性があり且つ取り得る可能性のある配置パターンを対象として面積最小となる配置パターンを検索しているため、上述の従来の方法に比較して検討すべき配置パターンを削減することができ、配置パターンの検討を効率的に行うことができる。
Also, as a method of arranging a plurality of drawings in a drawing frame so as to reduce the occupied area further, for example, all arrangement patterns that can be taken when drawing elements are arranged for all regions in the drawing frame are examined. In the
また、内接矩形の面積が最小となる配置パターンを検出する方法として、移動図面要素の外枠のセル全てについて、外枠のセル毎に、固定図形の図面要素の外周に沿って移動させる方法も考えられる。
しかしながら、外枠のセルが直線上に配置されている場合等には、直線上の複数のセル間で、内接矩形の面積が同一となる場合が多い。また、外枠のセルが一つの空白セルの二辺と接する場合、すなわち、頂点セルとは逆に、移動図面要素の外周が凹んだ部分に相当する外枠のセル及びその近傍のセルの場合には、このセルを固定図形の図面要素の外周に沿わせたとしても、移動図面要素と固定図形の図面要素とが重なる場合が多い。
In addition, as a method of detecting the arrangement pattern in which the area of the inscribed rectangle is the smallest, the method of moving all the cells of the outer frame of the moving drawing element along the outer periphery of the drawing element of the fixed figure for each cell of the outer frame. Is also conceivable.
However, in the case where the cells of the outer frame are arranged on a straight line, the area of the inscribed rectangle is often the same among the plurality of cells on the straight line. Also, when the cells of the outer frame are in contact with two sides of one blank cell, that is, in the case of the cells of the outer frame corresponding to the recessed portion of the outer periphery of the moving drawing element and the cells in the vicinity thereof In many cases, the moving drawing element overlaps the drawing element of the fixed figure even if the cell is placed along the periphery of the drawing element of the fixed figure.
したがって、上述のように、移動図面要素の頂点セルを設定し、頂点セルについてのみを配置パターンの検討対象とすることによって、内接矩形の面積が同一となる配置パターンや、移動図面要素と固定図形の図面要素とが重なる配置パターン等について検討を行うことを省くことができ、内接矩形の面積が最小となる配置パターンの検出効率を向上させると共に、検出に要する処理時間の短縮、処理負荷の軽減を図ることができる。
また、基準図面要素と移動図面要素との配置パターンとして想定される全てのパターンについて、基準図面要素に、例えば3つの移動図面要素「要素1」〜「要素3」のうち、「要素1」、「要素2」、「要素3」の順に加えるか、「要素2」、「要素1」、「要素3」の順に加えるか、「要素3」、「要素1」、「要素2」等のどの順に加えていくかという、移動図面要素を加えていく順番も考慮し、生じ得る全ての順番を考慮して内接矩形が面積最小となる配置パターンを検索し、さらに、各検索パターンにしたがって、基準図面要素に移動図面要素を加えたときに、内接矩形が面積最小となる配置パターンが複数存在する場合には、複数の配置パターンそれぞれについて固定図形を設定し、設定した固定図形それぞれについて、面積最小となる配置パターンを検索している。
Therefore, as described above, by setting the vertex cell of the moving drawing element and considering only the vertex cell as the layout pattern consideration target, the arrangement pattern having the same area of the inscribed rectangle or the moving drawing element is fixed. It is possible to omit the examination of arrangement patterns etc. where figures overlap with drawing elements, improve the detection efficiency of arrangement patterns with the smallest inscribed rectangle area, shorten the processing time required for detection, and process load Can be reduced.
Also, for all patterns assumed as arrangement patterns of reference drawing elements and moving drawing elements, for example, among the three moving drawing elements “
そのため、面積最小となる可能性のある配置パターンを排除することなく面積最小となる配置パターンを検索することができ、より高精度な検索結果を得ることができる。また、配置パターンの検索は比較的単純な計算であり、また、各配置パターンで配置した場合の状況を表示装置2に実際に表示する必要はなく制御装置4での演算処理として行っているため、制御装置4の負荷の増大を抑制しつつ、比較的短時間で演算することができる。なお、最終的に得られる最小配置パターンが複数存在する場合には、各最小配置パターンを提示し、利用者が選択できるようにすればよい。
Therefore, it is possible to search for a layout pattern that is minimized in area without excluding a layout pattern that is likely to be minimized in area, and to obtain search results with higher accuracy. Further, the search for the arrangement pattern is a relatively simple calculation, and the situation when the arrangement pattern is arranged does not have to be displayed on the
また、移動図面要素毎に配置可能領域を設定しているため、例えば、関連のある基準図面要素と移動図面要素とを近傍に配置することができる。注記情報等が図枠内の比較的中央部分に配置されたりすることを回避することができ、利用者の各図面要素の配置位置の希望を反映させつつ、図面要素を自動で配置することができる。
また、注記情報は基準図面要素の上領域に配置し、ある特定の部分を表す詳細図等の特定図面については基準図面要素に対して右下領域に配置する、等のルールを設定しておき、各利用者がこのルールにしたがって配置可能領域を設定することによって、どの利用者が作成したとしてもある程度の統一感のある統合図面を作成することができる。
Further, since the arrangeable area is set for each moving drawing element, for example, the related reference drawing element and the moving drawing element can be arranged in the vicinity. It is possible to prevent the annotation information etc. from being arranged at a relatively central portion in the drawing frame, and automatically arrange the drawing elements while reflecting the user's desire for the arrangement position of each drawing element. it can.
In addition, note information is placed in the upper area of the reference drawing element, and for specific drawings such as a detail drawing that represents a specific part, rules are set such that they are placed in the lower right area with respect to the reference drawing element. By setting the arrangeable area according to this rule, each user can create an integrated drawing with a certain degree of unity regardless of which user creates it.
(変形例)
(1)上記実施形態においては、基準図面要素に対して設定可能な移動図面要素の配置可能領域を設定する場合について説明したが、これに限るものではなく、配置不可領域を設定するようにしてもよく、配置可能領域及び配置不可領域のいずれも設定できるようにしてもよい。
(Modification)
(1) In the above embodiment, although the case where the settable area of the movable drawing element which can be set to the reference drawing element is set has been described, the present invention is not limited to this. It may be possible to set any of the allocable area and the non-arrangeable area.
(2)上記実施形態においては、基準図面要素を利用者が設定する場合について説明したが、これに限るものではない。例えば、面積の一番大きい図面要素を基準図面要素として、図面作成装置1側で自動的に設定してもよい。或いは、正面図を基準図面要素とする等というように、基準図面要素とする図面要素の種類及び優先順を予め設定しておき、作成対象の統合図面に含まれる個別図面が有する図面要素のうち、優先順の最も高い図面要素を図面作成装置1側で自動的に基準図面要素として設定するようにしてもよい。
また、一つの図面要素を基準図面要素として設定する場合について説明したが、これに限るものではなく、基準図面要素とする図面要素を順に変更し、全ての図面要素が基準図面要素として設定される場合も含めて、全ての配置パターンの中から面積最小パターンを検出するようにしてもよい。
(2) In the above-mentioned embodiment, although a case where a user set a standard drawing element was explained, it does not restrict to this. For example, the drawing element having the largest area may be automatically set as the reference drawing element at the
In addition, although the case where one drawing element is set as a reference drawing element has been described, the present invention is not limited thereto, and drawing elements to be reference drawing elements are sequentially changed and all drawing elements are set as reference drawing elements. The area minimum pattern may be detected from among all the arrangement patterns, including the case.
(3)上記実施形態においては、各個別図面において、個別図面上に表示されている情報と重なる全てのセルを含む一つの連続した領域において、その最も外側に位置するセルを図面要素の外枠のセルとし、この図面要素の外枠のセルに外側から接するように図面要素どうしを配置する場合について説明したが、これに限るものではない。
例えば、個別図面上に表示されている情報と重なる全てのセルを含む一つの連続した領域において、図15に示すように、その最も外側に位置するセルである図面要素の外枠のセルc41のさらに外側に、この外枠のセルc41に沿って予め1つ分の空白セルc42を設けておき、この空白セルc42も含めて図面要素として処理を行うようにしてもよい。
(3) In the above embodiment, in each individual drawing, in one continuous region including all the cells overlapping with the information displayed on the individual drawing, the outermost cell is the outer frame of the drawing element Although the case where the drawing elements are arranged from the outside to the cells of the outer frame of the drawing element is described as a cell of, the invention is not limited thereto.
For example, in one continuous area including all the cells overlapping the information displayed on the individual drawing, as shown in FIG. 15, cell c41 of the outer frame of the drawing element which is the outermost cell. Further, one blank cell c42 may be provided in advance along the cell c41 of the outer frame on the outer side, and the blank cell c42 may be included and processed as a drawing element.
つまり、図面要素の周囲に隙間を設けるための1セル分の余分な領域として、空白セルc42を設けることによって、上述の手順で図面要素どうしを配置した場合、図面要素としての文字や図形どうしが近接して配置されることを防止し、ある程度の間隔をもって図面要素どうしを配置することができる。このとき、図面要素の周囲に隙間を設けるための余分な領域として、1セル分に限らず、2セル分等、図面要素の形状、或いは、図面要素の縮尺等に応じて空白セルc42を設けることで、適度な間隔をもって図面要素どうしを配置するようにしてもよい。
また、図面要素の形状によっては、間隔を設けずとも、図面要素どうしの間にある程度の間隔が生成される場合もあることから、図面要素に対して隙間形成用の空白セルを設けるか設けないかを選択できるようにしてもよい。
That is, by providing the blank cell c42 as an extra area for one cell for providing a gap around the drawing element, when the drawing elements are arranged in the above-described procedure, characters and figures as drawing elements It is possible to prevent close arrangement and arrange drawing elements at a certain distance. At this time, as an extra area for providing a gap around the drawing element, a blank cell c42 is provided according to the shape of the drawing element or the scale of the drawing element, etc. Therefore, the drawing elements may be arranged at an appropriate interval.
Also, depending on the shape of the drawing elements, a certain amount of space may be generated between the drawing elements even if the space is not provided. It may be possible to select one.
例えば、個別図面に、平坦部を有する機械部品の外観図が表示されている場合、或いは、比較的長い引き出し線が表示されている場合等には、これら平坦部や引き出し線に相当する部分において、図面要素の外枠の形状が比較的直線的となる。このように、図面要素の外枠の形状が比較的直線的であり、他の図面要素と接するように配置した場合に図面要素間に生じる隙間が小さいと予測されるときには、図面要素に対して隙間形成用の空白セルを設けておけば、他の図面要素の形状に関係なく他の図面要素との間に間隔を形成することができる。逆に、個別図面に、複雑な形状を有する機械部品の外観図が表示されている場合には、図面要素の外枠の形状が凹凸を繰り返す形状となる。このように、図面要素の外枠の形状が凹凸を有し、他の図面要素の形状に関係なく図面要素間に間隔が生じると予測されるときには、隙間形成用の空白セルを設ける必要はない。したがって、図面要素の外枠の形状に応じて隙間形成用の空白セルを設けるか否かを利用者が設定するか、または図面作成装置1側で図面要素の外枠の形状を判断すること等により、図面要素に応じて隙間形成用の空白セルを設けるようにしてもよい。
For example, when an external view of a machine part having a flat portion is displayed in an individual drawing, or when a relatively long lead line is displayed, etc., in a portion corresponding to the flat portion or the lead line , The shape of the outer frame of the drawing element becomes relatively straight. In this manner, when it is predicted that the shape of the outline of the drawing element is relatively straight and the gap between the drawing elements is small when arranged so as to be in contact with other drawing elements, If blank cells for gap formation are provided, a space can be formed between other drawing elements regardless of the shape of the other drawing elements. On the contrary, when the external view of the machine part having a complicated shape is displayed in the individual drawing, the shape of the outer frame of the drawing element becomes a shape in which the unevenness is repeated. In this way, when it is predicted that the shape of the outline of the drawing element is uneven and that the space between the drawing elements is generated regardless of the shapes of other drawing elements, it is not necessary to provide blank cells for forming the space. . Therefore, depending on the shape of the outer frame of the drawing element, the user sets whether or not to provide a blank cell for forming a gap, or the shape of the outer frame of the drawing element is determined on the
また、図面要素どうしの間に間隔を設ける方法として、例えば、個別図面において、図面上に表示されている情報と重なる全てのセルを含む一つの連続した領域において、その最も外側に位置するセルを図面要素の外枠のセルとし、配置パターンの検索を行うときに、固定図形及び移動図面要素の外枠のセルの外側それぞれに隙間形成用の空白セルを設け、この空白セルを含む固定図形と空白セルを含む移動図面要素とについて、配置パターンの検索を行うようにしてもよく、固定図形又は移動図面要素のいずれか一方にのみ空白セルを設けて配置パターンの検索を行うようにしてもよい。
また、空白セルを設ける場合に限らず、図面要素どうしの間に間隔が生じるように、縦及び横のグリッド線のピッチを設定するようにしてもよい。
In addition, as a method of providing a space between drawing elements, for example, in an individual drawing, in one continuous region including all cells overlapping information displayed on the drawing, the outermost cell is used. When the layout pattern is searched for as a cell of the drawing element outer frame, blank cells for forming a gap are provided on the outer sides of the fixed figure and moving drawing element outer frame cells, and a fixed figure including this blank cell The layout pattern search may be performed on the moving drawing element including the blank cell, or the blank pattern may be provided only on one of the fixed figure and the moving drawing element to search the layout pattern. .
Also, the pitch of the grid lines in the vertical and horizontal directions may be set so as to provide a space between the drawing elements without being limited to the case where blank cells are provided.
(4)上記実施形態においては、面積最小パターンを検索する際に、個別図面に含まれる図面要素を組み合わせてなる図形が、利用者により指定された用紙サイズ内に収まるパターンのみ、面積最小パターンとして検出する場合について説明したが、単に、内接矩形の面積が最小となる面積最小パターンを検出し、検出した面積最小パターンで配置された図形が、図枠内に収まり切らないときには、用紙サイズを調整すること等により対応するようにしてもよい。 (4) In the above embodiment, when searching for the area minimum pattern, only the pattern in which the figure formed by combining the drawing elements included in the individual drawings fits within the sheet size designated by the user is the area minimum pattern. Although the case of detecting is described, simply detecting the area minimum pattern in which the area of the inscribed rectangle is minimum and detecting the figure arranged in the detected area minimum pattern does not fit within the drawing frame, the paper size is set. You may make it respond by adjusting etc.
(5)上記実施形態において、例えば、固定図形の外側から固定図形に沿って移動図面要素の頂点セルを移動させる場合、移動図面要素の頂点セルが移動図面要素の左端側にあり頂点セルを固定図形の左端側の外枠のセルに沿って移動させるときには、移動図面要素と固定図形とは重なる傾向にある。同様に、頂点セルが移動図面要素の右端側にあり、固定図形の右端側の外枠に沿って移動させるとき、また、頂点セルが移動図面要素の上端側にあり、固定図形の上端側の外枠に沿って移動させるとき、さらに頂点セルが移動図面要素の下端側にあり、固定図形の下端側の外枠に沿って移動させるときに、移動図面要素と固定図形とは重なる傾向にある。したがって、移動図面要素の検索対象の頂点セルと、固定図形の検索対象の外接セルとの位置関係について、配置パターンの検索を行う際に移動図面要素と固定図形とが重なる傾向にある位置関係を予め検出しておき、移動図面要素と固定図形とが、検出した位置関係となる領域については、配置パターンの検索を行わないようにすることによって、面積最小パターンの検索処理の処理時間の短縮を図るようにしてもよい。 (5) In the above embodiment, for example, when moving the vertex cell of the moving drawing element from the outside of the fixed figure along the fixed figure, the vertex cell of the moving drawing element is at the left end side of the moving drawing element and the vertex cell is fixed. When moving along the cells of the outer frame on the left end side of the figure, the moving drawing element and the fixed figure tend to overlap. Similarly, when the vertex cell is at the right end of the moving drawing element and is moved along the right frame of the fixed figure, the vertex cell is at the upper end of the moving drawing element and at the upper end of the fixed figure. When moving along the outer frame, the vertex cell is at the lower end side of the moving drawing element, and when moving along the lower frame of the fixed figure, the moving drawing element and the fixed figure tend to overlap . Therefore, regarding the positional relationship between the retrieval target vertex cell of the moving drawing element and the circumscribed cell of the retrieval target of the fixed figure, the positional relationship in which the moving drawing element and the fixed figure tend to overlap when the arrangement pattern is searched. In the area where the moving drawing element and the fixed figure have a detected positional relationship in advance, the arrangement pattern is not searched, thereby shortening the processing time of the area minimum pattern search process. You may make it plan.
(6)上記実施形態において、関連性のある図面要素について、配置位置関係を設定できるように構成し、配置位置関係が設定された図面要素については、その配置位置関係にしたがって組み合わせてなる複数の図面要素を一つの図面要素として取り扱うようにしてもよい。 (6) In the above embodiment, the arrangement position relationship can be set for the related drawing elements, and the drawing elements for which the arrangement position relationship is set are combined according to the arrangement position relationship. Drawing elements may be handled as one drawing element.
(7)上記実施形態においては、基準図面設定部11では、作成対象の統合図面に含まれる複数の個別図面を表示装置2に表示し、表示された個別図面の中から基準図面を選択する場合について説明したが、作成対象の統合図面に含まれる個別図面を選択する際に、基準図面を指定するようにしてもよく、要は、作成対象の統合図面に含まれる個別図面の中から基準図面を設定できればよい。
なお、上記実施形態において、図5のステップS6の処理が基準図面要素設定部に対応し、ステップS10及びステップS12の処理がグリッド処理部に対応し、ステップS14の処理が頂点セル検出部に対応し、図9のステップS24の処理が初期設定部、移動図面要素更新部及び検索パターン設定部に対応し、ステップS26からステップS42の処理が配置パターン検出部に対応し、ステップS36及びステップS38の処理が最小配置パターン候補検出部に対応し、ステップS46の処理が最小配置パターン検出部に対応している。また、図5のステップS8の処理が配置可能領域設定部に対応している。
(7) In the above embodiment, in the case where the reference drawing setting unit 11 displays a plurality of individual drawings included in the integrated drawing to be created on the
In the above embodiment, the process of step S6 in FIG. 5 corresponds to the reference drawing element setting unit, the process of steps S10 and S12 corresponds to the grid processing unit, and the process of step S14 corresponds to the vertex cell detection unit. The process of step S24 in FIG. 9 corresponds to the initial setting unit, the moving drawing element update unit, and the search pattern setting unit, the process from step S26 to step S42 corresponds to the arrangement pattern detection unit, and the processes of steps S36 and S38. The process corresponds to the minimum arrangement pattern candidate detection unit, and the process of step S46 corresponds to the minimum arrangement pattern detection unit. Further, the process of step S8 in FIG. 5 corresponds to the arrangeable area setting unit.
以上、特定の実施形態を参照して本発明を説明したが、これら説明によって発明を限定するものではない。本発明の説明を参照することにより、当業者には、開示された実施形態の種々の変形例とともに本発明の別の実施形態も明らかである。従って、特許請求の範囲は、本発明の範囲及び要旨に含まれるこれらの変形例又は実施形態も網羅すると解すべきである。 Although the present invention has been described with reference to the specific embodiments, the present invention is not limited by these descriptions. Various modifications of the disclosed embodiments, as well as alternative embodiments of the present invention, will be apparent to persons skilled in the art upon reference to the description of the invention. Accordingly, the claims should be construed to cover such variations or embodiments which fall within the scope and spirit of the present invention.
1 図面作成装置
2 表示装置
3 入力装置
4 制御装置
5 図面データベース
11 基準図面設定部
12 配置可能領域設定部
13 グリッド処理部
14 配置パターン検索処理部
15 出力処理部
DESCRIPTION OF
Claims (4)
前記複数の図面それぞれにおいて、前記図面間で同一ピッチの縦及び横のグリッド線を、表示されている情報全てを覆うように重畳させ、
前記グリッド線で区切られるセルのうち前記図面に表示されている情報と重なる全てのセルを含む連続した領域を図面要素とし、前記連続した領域の外枠をなすセルを図面要素の外枠のセルとするグリッド処理部と、
複数の前記図面要素のうちの一の図面要素を基準図面要素として設定する基準図面要素設定部と、
前記基準図面要素設定部で設定された基準図面要素を第一の図面要素とし、前記複数の図面要素のうちの、前記基準図面要素として設定された図面要素を除く図面要素を移動図面要素とし、当該移動図面要素のうちの一の移動図面要素を第二の図面要素として初期設定する初期設定部と、
前記外枠のセルのうち頂点となるセルを頂点セルとして検出する頂点セル検出部と、
前記第二の図面要素に含まれる一の頂点セルを移動セルとし、当該移動セルが前記第一の図面要素の前記外枠のセルに外側から沿うように前記第二の図面要素を移動させながら、前記第二の図面要素が前記第一の図面要素と重ならない領域に配置される配置パターンを検索し、一の頂点セルについて前記配置パターンを検出した後、前記移動セルを他の頂点セルに切り替えて再度前記配置パターンを検索する処理を、前記移動セルとして全ての前記頂点セルが設定されるまで繰り返し行って、前記頂点セル毎に前記配置パターンを検出する配置パターン検出部と、
前記配置パターン検出部で検出した前記頂点セル毎の配置パターンのうち、当該配置パターンで配置された前記第一の図面要素と前記第二の図面要素とを含む図形が内接する矩形の面積が最小となる配置パターンを最小配置パターン候補として検出する最小配置パターン候補検出部と、
前記最小配置パターン候補で配置された前記第一の図面要素と前記第二の図面要素とからなる図形を新たな前記第一の図面要素とし、前記移動図面要素のうちの、前記第二の図面要素として既に設定された移動図面要素を除く一の移動図面要素を新たな前記第二の図面要素として設定する更新処理を、全ての前記移動図面要素が前記第二の図面要素として設定されるまで繰り返し行う移動図面要素更新部と、
前記第二の図面要素として前記複数の移動図面要素のうちの最後の移動図面要素が設定された状態で前記最小配置パターン候補検出部において検出される最小配置パターン候補を、最小配置パターンとする最小配置パターン検出部と、
を備えることを特徴とする図面作成装置。 A drawing creating apparatus for arranging a plurality of drawings in one printing area corresponding to a sheet of paper, wherein
In each of the plurality of drawings, vertical and horizontal grid lines of the same pitch are overlapped so as to cover all the displayed information.
A continuous area including all cells overlapping the information displayed in the drawing among the cells divided by the grid lines is a drawing element, and a cell forming an outer frame of the continuous area is a cell of an outer frame of the drawing element And the grid processing unit
A reference drawing element setting unit that sets one drawing element of the plurality of drawing elements as a reference drawing element;
The reference drawing element set by the reference drawing element setting unit is a first drawing element, and the drawing element excluding the drawing element set as the reference drawing element among the plurality of drawing elements is a moving drawing element. An initialization unit configured to initialize one moving drawing element of the moving drawing elements as a second drawing element;
A vertex cell detection unit that detects a cell serving as a vertex among the cells of the outer frame as a vertex cell;
One vertex cell included in the second drawing element is a moving cell, and the moving cell is moved from the outside to the cell of the outer frame of the first drawing element while moving the second drawing element Searching for an arrangement pattern in which the second drawing element is arranged in a region not overlapping the first drawing element, and detecting the arrangement pattern for one vertex cell, and then moving the moving cell to another vertex cell An arrangement pattern detection unit that repeatedly performs the process of switching and searching for the arrangement pattern again until all the vertex cells are set as the moving cells, and detecting the arrangement pattern for each of the vertex cells;
Among the arrangement patterns for each vertex cell detected by the arrangement pattern detection unit, the area of the rectangle inscribed in the figure including the first drawing element arranged in the arrangement pattern and the second drawing element is the smallest. A minimum arrangement pattern candidate detection unit that detects an arrangement pattern that becomes the minimum arrangement pattern candidate;
The figure consisting of the first drawing element and the second drawing element arranged in the minimum arrangement pattern candidate is used as a new first drawing element, and the second drawing of the mobile drawing elements An update process of setting one moving drawing element except a moving drawing element already set as an element as a new second drawing element until all the moving drawing elements are set as the second drawing element Repetitive moving drawing element updating part,
The minimum arrangement pattern candidate detected in the minimum arrangement pattern candidate detection unit with the last moving drawing element of the plurality of moving drawing elements set as the second drawing element is the minimum arrangement pattern Arrangement pattern detection unit,
A drawing creation apparatus comprising:
前記n個の移動図面要素の中からn個の移動図面要素を取り出す順列のパターンを検索パターンとして一つずつ順に設定する検索パターン設定部をさらに備え、
前記初期設定部は、前記検索パターンが更新される毎に前記基準図面要素を前記第一の図面要素として設定すると共に、前記検索パターンで一番目の移動図面要素を前記第二の図面要素として初期設定し、
前記移動図面要素更新部は、前記検索パターンにしたがった順で前記移動図面要素を前記第二の図面要素として更新設定し、
前記最小配置パターン検出部は、前記検索パターン毎の前記最小配置パターン候補のうち、最も面積が小さい最小配置パターン候補を、前記最小配置パターンとすることを特徴とする請求項1に記載の図面作成装置。 have n (n is a positive integer) moving drawing elements,
The search pattern setting unit is further configured to sequentially set, as a search pattern, patterns of permutations for extracting n moving drawing elements out of the n moving drawing elements,
The initial setting unit sets the reference drawing element as the first drawing element each time the search pattern is updated, and initially sets the first moving drawing element in the search pattern as the second drawing element. Set,
The moving drawing element updating unit updates and sets the moving drawing element as the second drawing element in the order according to the search pattern,
The drawing generation method according to claim 1, wherein the minimum arrangement pattern detection unit sets the minimum arrangement pattern candidate having the smallest area among the minimum arrangement pattern candidates for each search pattern as the minimum arrangement pattern. apparatus.
前記配置パターン検出部は、前記移動図面要素が、当該移動図面要素毎に設定された前記配置可能領域に存在するパターンのみ前記配置パターンとして検出することを特徴とする請求項1又は請求項2に記載の図面作成装置。 And an arrangeable area setting unit configured to set, for each movable drawing element, an arrangeable area in which the movable drawing element can be arranged with respect to the reference drawing element;
The arrangement pattern detection unit detects, as the arrangement pattern, only a pattern in which the movable drawing element is present in the arrangeable area set for each of the movable drawing elements. Drawing creation device described.
前記複数の図面それぞれにおいて、前記図面間で同一ピッチの縦及び横のグリッド線を、表示されている情報全てを覆うように重畳させ、前記グリッド線で区切られるセルのうち前記図面に表示されている情報と重なる全てのセルを含む連続した領域を図面要素とし、前記連続した領域の外枠をなすセルを図面要素の外枠のセルとするグリッド処理ステップと、
複数の前記図面要素のうちの一の図面要素を基準図面要素として設定する基準図面要素設定ステップと、
前記基準図面要素設定ステップで設定された基準図面要素を第一の図面要素とし、前記複数の図面要素のうちの、前記基準図面要素として設定された図面要素を除く図面要素を移動図面要素とし、当該移動図面要素のうちの一の移動図面要素を第二の図面要素として初期設定する初期設定ステップと、
前記外枠のセルのうち頂点となるセルを頂点セルとして検出する頂点セル検出ステップと、
前記第二の図面要素に含まれる一の頂点セルを移動セルとし、当該移動セルが前記第一の図面要素の前記外枠のセルに外側から沿うように前記第二の図面要素を移動させながら、前記第二の図面要素が前記第一の図面要素と重ならない領域に配置される配置パターンを検索し、一の頂点セルについて前記配置パターンを検出した後、前記移動セルを他の頂点セルに切り替えて再度前記配置パターンを検索する処理を、前記移動セルとして全ての前記頂点セルが設定されるまで繰り返し行って、前記頂点セル毎に前記配置パターンを検出する配置パターン検出ステップと、
前記配置パターン検出ステップで検出した前記頂点セル毎の配置パターンのうち、当該配置パターンで配置された前記第一の図面要素と前記第二の図面要素とを含む図形が内接する矩形の面積が最小となる配置パターンを最小配置パターン候補として検出する最小配置パターン候補検出ステップと、
前記最小配置パターン候補で配置された前記第一の図面要素と前記第二の図面要素とからなる図形を新たな前記第一の図面要素とし、前記移動図面要素のうちの、前記第二の図面要素として既に設定された移動図面要素を除く一の移動図面要素を新たな前記第二の図面要素として設定する更新処理を、全ての前記移動図面要素が前記第二の図面要素として設定されるまで繰り返し行う移動図面要素更新ステップと、
前記第二の図面要素として前記複数の移動図面要素のうちの最後の移動図面要素が設定された状態で前記最小配置パターン候補検出ステップにおいて検出される最小配置パターン候補を、最小配置パターンとする最小配置パターン検出ステップと、を含む処理をコンピュータに実行させるプログラムを含むことを特徴とする図面作成プログラム。 A drawing creation program that causes a computer to execute processing for arranging a plurality of drawings in one print area corresponding to a sheet of paper,
In each of the plurality of drawings, vertical and horizontal grid lines of the same pitch are overlapped so as to cover all the displayed information, and the cells divided by the grid lines are displayed in the drawings. A grid processing step in which a continuous area including all cells overlapping with the information is a drawing element, and a cell forming an outer frame of the continuous area is a cell of an outer frame of the drawing element;
A reference drawing element setting step of setting one drawing element of the plurality of drawing elements as a reference drawing element;
The reference drawing element set in the reference drawing element setting step is a first drawing element, and among the plurality of drawing elements, the drawing element excluding the drawing element set as the reference drawing element is a moving drawing element. An initialization step of initializing one of the moving drawing elements as a second drawing element;
A vertex cell detection step of detecting a cell serving as a vertex among the cells of the outer frame as a vertex cell;
One vertex cell included in the second drawing element is a moving cell, and the moving cell is moved from the outside to the cell of the outer frame of the first drawing element while moving the second drawing element Searching for an arrangement pattern in which the second drawing element is arranged in a region not overlapping the first drawing element, and detecting the arrangement pattern for one vertex cell, and then moving the moving cell to another vertex cell An arrangement pattern detection step of detecting the arrangement pattern for each of the vertex cells by repeatedly performing the process of switching and searching for the arrangement pattern again until all the vertex cells are set as the moving cells;
Among the arrangement patterns for each vertex cell detected in the arrangement pattern detecting step, the area of the rectangle inscribed in the figure including the first drawing element arranged in the arrangement pattern and the second drawing element is smallest. A minimum arrangement pattern candidate detection step of detecting an arrangement pattern as the minimum arrangement pattern candidate;
The figure consisting of the first drawing element and the second drawing element arranged in the minimum arrangement pattern candidate is used as a new first drawing element, and the second drawing of the mobile drawing elements An update process of setting one moving drawing element except a moving drawing element already set as an element as a new second drawing element until all the moving drawing elements are set as the second drawing element Repeated moving drawing element update step,
The minimum arrangement pattern candidate detected in the minimum arrangement pattern candidate detection step with the last moving drawing element of the plurality of moving drawing elements set as the second drawing element is the minimum arrangement pattern candidate A program for causing a computer to execute a process including an arrangement pattern detection step.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015143003A JP6536247B2 (en) | 2015-07-17 | 2015-07-17 | Drawing creation device and drawing creation program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015143003A JP6536247B2 (en) | 2015-07-17 | 2015-07-17 | Drawing creation device and drawing creation program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2017027205A JP2017027205A (en) | 2017-02-02 |
| JP6536247B2 true JP6536247B2 (en) | 2019-07-03 |
Family
ID=57949731
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2015143003A Active JP6536247B2 (en) | 2015-07-17 | 2015-07-17 | Drawing creation device and drawing creation program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6536247B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6565552B2 (en) * | 2015-09-30 | 2019-08-28 | 日本精工株式会社 | Drawing creation device and drawing creation program |
| JP6558219B2 (en) * | 2015-11-09 | 2019-08-14 | 日本精工株式会社 | Drawing creation device and drawing creation program |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH031996A (en) * | 1989-05-30 | 1991-01-08 | Fujitsu Ltd | Outputting method of figure |
| JP2001067386A (en) * | 1999-08-26 | 2001-03-16 | Canon Inc | Design apparatus, drawing creation method, and storage medium |
| US7499045B2 (en) * | 2001-08-01 | 2009-03-03 | International Business Machines Corporation | Graphics image generation |
| JP2011043934A (en) * | 2009-08-20 | 2011-03-03 | Fujitsu Ltd | Drawing correction assisting program and drawing correction assisting apparatus |
| JP2014126954A (en) * | 2012-12-25 | 2014-07-07 | Mitsubishi Heavy Ind Ltd | Drawing character arrangement support system |
-
2015
- 2015-07-17 JP JP2015143003A patent/JP6536247B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2017027205A (en) | 2017-02-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6419421B2 (en) | Image display device, image display method, and program | |
| JP6614904B2 (en) | Information processing apparatus, information processing method, and program | |
| US20180324314A1 (en) | Image forming apparatus and control method thereof | |
| JP6536247B2 (en) | Drawing creation device and drawing creation program | |
| US20160035116A1 (en) | Image processing device, image processing method, information storage medium, and program | |
| US9177528B2 (en) | Screen inspection device, screen inspection method, and program | |
| US20210076765A1 (en) | Pattern Filling in Garment Pieces | |
| JP6558219B2 (en) | Drawing creation device and drawing creation program | |
| JP6565552B2 (en) | Drawing creation device and drawing creation program | |
| EP1927923A2 (en) | Document edit support device, document edit device, program and computer-readable storage medium | |
| US20150277676A1 (en) | Creating an interaction area for listing user-selectable items | |
| JP2017076247A (en) | Drawing creation device and drawing creation program | |
| JP2017084029A (en) | Drawing creation device and drawing creation program | |
| JP6646006B2 (en) | Information presentation apparatus, information presentation method, and program | |
| US20140301646A1 (en) | Image processing apparatus and image processing method | |
| JP5080297B2 (en) | Image display device | |
| JP4619851B2 (en) | Design support apparatus and design support method | |
| JP7363235B2 (en) | Information processing device and information processing program | |
| KR20150012921A (en) | A method of designing a ship | |
| US11900612B2 (en) | Three-dimensional element layout visualization method and apparatus | |
| JP4992399B2 (en) | Document editing apparatus and program | |
| CN110334392B (en) | Customized pattern manufacturing method, device, terminal and computer readable medium | |
| JP5028980B2 (en) | Document editing apparatus and program | |
| US9792401B2 (en) | Insulation distance check device | |
| JP6172195B2 (en) | Smoothing processing apparatus and smoothing processing method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180705 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20190415 |
|
| 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: 20190507 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190520 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6536247 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |