Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6565552B2 - Drawing creation device and drawing creation program - Google Patents
[go: Go Back, main page]

JP6565552B2 - Drawing creation device and drawing creation program - Google Patents

Drawing creation device and drawing creation program Download PDF

Info

Publication number
JP6565552B2
JP6565552B2 JP2015192419A JP2015192419A JP6565552B2 JP 6565552 B2 JP6565552 B2 JP 6565552B2 JP 2015192419 A JP2015192419 A JP 2015192419A JP 2015192419 A JP2015192419 A JP 2015192419A JP 6565552 B2 JP6565552 B2 JP 6565552B2
Authority
JP
Japan
Prior art keywords
arrangement pattern
drawing element
cell
area
elements
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
Application number
JP2015192419A
Other languages
Japanese (ja)
Other versions
JP2017068526A (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.)
NSK Ltd
Original Assignee
NSK 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 NSK Ltd filed Critical NSK Ltd
Priority to JP2015192419A priority Critical patent/JP6565552B2/en
Publication of JP2017068526A publication Critical patent/JP2017068526A/en
Application granted granted Critical
Publication of JP6565552B2 publication Critical patent/JP6565552B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Description

本発明は、図面作成装置及び図面作成プログラムに関する。   The present invention relates to a drawing creation apparatus and a drawing creation program.

機械図面等を作成する場合、投影図の他に注記情報や詳細図等といった2D(二次元)図面を構成する様々な図面情報が、印刷領域を表す図枠内に共に表示される。そして、この図枠内に表示される投影図や注記情報、詳細図等の各種の図面情報が、指定された用紙サイズの一枚の用紙に印刷されることにより、投影図や注記情報、詳細図等の各種の図面情報が一つの図枠内に配置された機械図面が得られるようになっている。
ここで、機械図面等に含まれる各種図面情報には、例えば機械部品の製造に必要な情報として、投影図や、部品の一部の形状や寸法を部分拡大図や部分断面図で示した詳細図、部品の製造に係る特記事項が書かれた注記情報等を含む。これら図面情報は、例えば、3D(三次元)CADシステムにより作成した3Dオブジェクトをもとに個別に作成される。また、詳細図や注記情報などは、特に使用頻度の高いものは、予め作成されたものを用意しておき、適宜流用するようになっている。これら図面情報を所定の用紙サイズに対応した図枠内に配置することで、用紙サイズに対応した図面サイズで、機械部品の製造に必要な2D図面が作成される。
When creating a mechanical drawing or the like, various drawing information constituting a 2D (two-dimensional) drawing such as annotation information and detailed drawing in addition to the projection drawing are displayed together in a picture frame representing a printing area. Then, various drawing information such as projection drawing, annotation information, and detailed drawing displayed in this figure frame is printed on one sheet of the specified paper size, so that the projection drawing, annotation information, and details are printed. A mechanical drawing in which various kinds of drawing information such as figures are arranged in one picture frame can be obtained.
Here, the various drawing information included in the machine drawings and the like includes, for example, a projection diagram and details showing the shape and dimensions of a part of the part in a partially enlarged view and a partial sectional view as information necessary for manufacturing the machine part. Includes notes, notes, etc., with drawings and special notes related to parts manufacturing. Such drawing information is individually created based on a 3D object created by, for example, a 3D (three-dimensional) CAD system. In addition, detailed drawings and annotation information that are frequently used are prepared in advance and appropriately used. By arranging these pieces of drawing information in a figure frame corresponding to a predetermined paper size, a 2D drawing necessary for manufacturing a mechanical part is created with a drawing size corresponding to the paper size.

ところで、投影図のサイズは部品毎に異なり、必要な注記情報や詳細図は部品の形状等の仕様によって異なる。そのため、機械図面等に含まれる各種の図面情報を図枠内に配置する際の、配置パターンは多岐にわたる。
図枠内に各種の図面情報を配置する場合、図面情報どうしが重ならずに、且つ全ての図面情報が図面枠内に収まるように配置する必要がある。そのため、特に、図面枠内における図面情報の占有面積や図面枠内に配置すべき図面情報の数に対して図面枠、つまり印刷領域が比較的小さいときほど、手作業による配置作業には時間がかかる。
By the way, the size of the projection drawing differs for each part, and necessary note information and detailed drawing differ depending on specifications such as the shape of the part. For this reason, there are a wide variety of arrangement patterns when various pieces of drawing information included in mechanical drawings and the like are arranged in the frame.
When various kinds of drawing information are arranged in the drawing frame, it is necessary to arrange the drawing information so that they do not overlap with each other and all the drawing information is contained in the drawing frame. For this reason, in particular, as the drawing frame, that is, the print area is relatively small with respect 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, the manual arrangement work takes time. Take it.

複数の図面情報を図面枠内に自動で配置する装置等も提案されており、このような装置では、複数の図面情報が図面枠内に収まる配置パターンを予め記憶しておくことにより、複数の図面情報を配置するようにしている。
しかしながら、詳細図や注記情報等は定期的にメンテナンスされるため、メンテナンスに伴って詳細図や注記情報が変更され、その結果、配置パターンで規定される領域内に収まらなくなる可能性がある。その場合には配置パターンを再度設定し直す必要があり、装置側のメンテナンスロードが大きくなる。
An apparatus that automatically arranges a plurality of drawing information in a drawing frame has also been proposed. In such an apparatus, a plurality of drawing information can be stored in advance in a plurality of pieces of drawing information by storing a plurality of drawing information within the drawing frame. Drawing information is arranged.
However, since detailed drawings, annotation information, and the like are regularly maintained, the detailed drawings and annotation information are changed with the maintenance, and as a result, there is a possibility that they will not fit within the area defined by the arrangement pattern. In that case, it is necessary to reset the arrangement pattern again, which increases the maintenance load on the apparatus side.

また、所定の図面情報を図枠内に配置することができない場合には、印刷領域を広くする必要がある。一般に、図面は用紙に印刷することが多いため、少しでも小さい用紙サイズの印刷用紙に印刷することは省資源活動となる。また、用紙サイズがA2以上となると、専用プリンタが必要になることが多い。また、モニタ上で図面を閲覧する場合、用紙サイズが大きくなるほど、図面枠内に表示される図面情報がより縮小されるため、詳細図等、比較的細かい図面の場合には、表示された情報を確認しづらい。つまり、モニタ上での図面の見易さの点からも印刷領域は狭い方が好ましく、そのためには、複数の図面情報が重ならずに小さくまとまって配置されることが好ましい。   Further, when the predetermined drawing information cannot be arranged in the picture frame, it is necessary to widen the print area. In general, since drawings are often printed on paper, printing on printing paper having a small paper size is a resource saving activity. When the paper size is A2 or more, a dedicated printer is often required. In addition, when viewing drawings on a monitor, the larger the paper size, the smaller the drawing information displayed in the drawing frame. Therefore, in the case of relatively detailed drawings such as detailed drawings, the displayed information It is difficult to confirm. That is, it is preferable that the printing area is narrow from the viewpoint of easy viewing of the drawing on the monitor. For this purpose, it is preferable that a plurality of pieces of drawing information are arranged in a small size without overlapping.

このような問題を解決するために、一つの印刷領域内に配置されている、投影図、注記情報等の図面上に配置される各種の複数の図面情報を、図面情報毎に分割し、図形や寸法線の干渉を検知して、これらが重ならないように自動で修正する装置が提案されている(例えば、特許文献1参照)。また、プレス金型に配置する単位形状の部材について、回転角度毎の材料取り面積を算出し、面積が最小となる回転角度を求めることにより、材料の歩留りが最小となるレイアウトを検出する方法等も提案されている(例えば、特許文献2参照)。   In order to solve such a problem, a plurality of various pieces of drawing information arranged on a drawing such as a projection drawing and annotation information arranged in one printing area are divided for each drawing information to obtain a figure. There has been proposed a device that detects interference between dimensional lines and automatically corrects them so that they do not overlap (for example, see Patent Document 1). In addition, for a unit-shaped member arranged in a press die, a method for detecting a layout that minimizes material yield by calculating a material removal area for each rotation angle and obtaining a rotation angle that minimizes the area, etc. Has also been proposed (see, for example, Patent Document 2).

特開2011−43934号公報JP 2011-43934 A 特開平4−60875号公報Japanese Patent Laid-Open No. 4-60875

しかしながら、上述のように図形や寸法線の干渉を検知して配置を修正する方法は、予め一つの印刷領域内に配置されている投影図、注記情報等といった各種の図面情報どうしの干渉を修正するものであって、人手によって、予め各種の図面情報を配置しておく必要がある。
また、回転角度毎の材料取り面積を算出することで材料の歩留りが最小となるレイアウトを検出する方法は、単一形の部材を配置対象とし、単位形状の部材を回転させるものであるため、機械図面等のように様々な形状の投影図や、注記情報等の図面情報を有し、かつ回転させることのできない図面情報を含む図面の場合には、適用することが困難である。
However, as described above, the method of correcting the arrangement by detecting the interference of figures and dimension lines corrects the interference between various drawing information such as projection drawings and annotation information arranged in advance in one printing area. Therefore, it is necessary to arrange various drawing information in advance by hand.
In addition, the method of detecting the layout that minimizes the material yield by calculating the material removal area for each rotation angle is intended to rotate a unit-shaped member with a single-shaped member as an arrangement target. It is difficult to apply to a drawing having various shapes such as a mechanical drawing and drawing information including drawing information such as annotation information and non-rotatable drawing information.

本発明は、様々な形状を有する、投影図や注記情報等といった複数の図面情報を、より狭い範囲に効率よく自動配置することの可能な図面作成装置及び図面作成プログラムを提供することを目的としている。   It is an object of the present invention to provide a drawing creation apparatus and a drawing creation program capable of automatically and efficiently arranging a plurality of drawing information having various shapes such as projection views and annotation information in a narrower range. Yes.

本発明の一態様によれば、複数の図面を一枚の用紙に対応した一つの印刷領域内に配置する図面作成装置であって、前記複数の図面それぞれにおいて、前記図面間で同一ピッチの縦及び横のグリッド線を、表示されている情報全てを覆うように重畳させ、前記グリッド線で区切られるセルのうち前記図面に表示されている情報と重なる全てのセルを含む連続した領域を図面要素とし、前記連続した領域の外枠をなすセルを図面要素の外枠のセルとするグリッド処理部と、複数の前記図面要素のうちの一の図面要素を基準図面要素として設定する基準図面要素設定部と、前記複数の図面要素のうちの二つの図面要素を第一の図面要素及び第二の図面要素として初期設定する初期設定部と、前記第二の図面要素の前記外枠のセルのうち頂点となるセルを頂点セルとして検出する頂点セル検出部と、前記第二の図面要素に含まれる一の頂点セルを移動セルとし、当該移動セルが前記第一の図面要素の前記外枠のセルに外側から沿うように前記第二の図面要素を移動させながら、前記第二の図面要素が前記第一の図面要素と重ならない領域に配置される配置パターンを検索し、一の頂点セルについて前記配置パターンを検出した後、前記移動セルを他の頂点セルに切り替えて再度前記配置パターンを検索する処理を、前記移動セルとして全ての前記頂点セルが設定されるまで繰り返し行って、前記頂点セル毎に前記配置パターンを検出する配置パターン検出部と、前記配置パターン検出部で検出した前記頂点セル毎の配置パターンのうち、当該配置パターンで配置された前記第一の図面要素と前記第二の図面要素とを含む図形が内接する矩形の面積が最小となる配置パターンを最小配置パターン候補として検出する最小配置パターン候補検出部と、前記最小配置パターン候補で配置された前記第一の図面要素と前記第二の図面要素とからなる図形を新たな前記第一の図面要素とし、前記図面要素のうちの、前記第二の図面要素として既に設定された図面要素を除く一の図面要素を新たな前記第二の図面要素として設定する更新処理を、初期設定されなかった全ての前記図面要素が前記第二の図面要素として設定されるまで繰り返し行う図面要素更新部と、前記第二の図面要素として前記複数の図面要素のうちの最後の図面要素が設定された状態で前記最小配置パターン候補検出部において検出される最小配置パターン候補を、最小配置パターンとする最小配置パターン検出部と、を備え、前記基準図面要素が、前記第二の図面要素の一つとして設定される図面作成装置が提供される。 According to one aspect of the present invention, there is provided a drawing creation apparatus that arranges a plurality of drawings in one printing area corresponding to one sheet of paper, and in each of the plurality of drawings, a vertical pitch of the same pitch between the drawings. And a horizontal grid line so as to cover all the displayed information, and a continuous area including all the cells that overlap the information displayed in the drawing among the cells separated by the grid line is a drawing element. A grid processing unit that uses a cell forming an outer frame of the continuous area as a cell of an outer frame of a drawing element, and a reference drawing element setting that sets one of the drawing elements as a reference drawing element An initial setting unit that initializes two drawing elements of the plurality of drawing elements as a first drawing element and a second drawing element, and among the cells of the outer frame of the second drawing element Be the apex A vertex cell detection unit for detecting a cell as a vertex cell, and one vertex cell included in the second drawing element as a moving cell, and the moving cell from outside the cell of the outer frame of the first drawing element The second drawing element is moved along the second drawing element so as to search for an arrangement pattern arranged in a region where the second drawing element does not overlap the first drawing element, and the arrangement pattern is determined for one vertex cell. After detecting, the process of switching the moving cell to another vertex cell and searching the arrangement pattern again is repeated until all the vertex cells are set as the moving cell, and the arrangement is performed for each vertex cell. Of the arrangement pattern for each vertex cell detected by the arrangement pattern detection unit and the arrangement pattern detection unit for detecting a pattern, the first drawing element arranged in the arrangement pattern A minimum arrangement pattern candidate detecting unit that detects an arrangement pattern that minimizes an area of a rectangle inscribed by a graphic including the second drawing element as a minimum arrangement pattern candidate; and the first arrangement arranged with the minimum arrangement pattern candidate One figure excluding a drawing element that has already been set as the second drawing element among the drawing elements, wherein the figure consisting of the drawing element and the second drawing element is the new first drawing element. A drawing element updating unit for repeatedly performing an update process for setting an element as a new second drawing element until all the drawing elements that have not been initially set are set as the second drawing element; The minimum arrangement pattern candidate detected by the minimum arrangement pattern candidate detection unit in a state where the last drawing element of the plurality of drawing elements is set as There is provided a drawing creation device including a minimum arrangement pattern detection unit as a placement pattern , wherein the reference drawing element is set as one of the second drawing elements .

本発明の一態様によれば、限られた領域内に、図面要素をコンパクトに配置することができ且つ効率よく自動で配置することができる。   According to one embodiment of the present invention, it is possible to arrange drawing elements in a limited area in a compact manner, and to arrange them efficiently and automatically.

本発明の一実施形態に係る図面作成装置の一例を示す構成図である。It is a lineblock diagram showing an example of a drawing creation device concerning one embodiment of the present invention. 個別図面の一例である。It is an example of an individual drawing. 本発明の一実施形態に係る図面作成装置の機能構成の一例を示すブロック図である。It is a block diagram which shows an example of a function structure of the drawing creation apparatus which concerns on one Embodiment of this invention. グリッド線を重畳した個別図面の一例である。It is an example of the separate drawing which superimposed the grid line. 制御装置で実行される処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence performed with a control apparatus. 配置可能領域の設定方法の一例を説明するための説明図である。It is explanatory drawing for demonstrating an example of the setting method of an arrangement | positioning area | region. 図面要素の検出方法の一例を説明するための説明図である。It is explanatory drawing for demonstrating an example of the detection method of drawing element. 頂点セルの検出方法の一例を説明するための説明図である。It is explanatory drawing for demonstrating an example of the detection method of a vertex cell. 配置パターン検索処理の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of an arrangement | positioning pattern search process. 配置パターン検索処理の動作の一例を説明するための説明図である。It is explanatory drawing for demonstrating an example of the operation | movement of arrangement pattern search processing. 配置パターン検索処理の動作の一例を説明するための説明図である。It is explanatory drawing for demonstrating an example of the operation | movement of arrangement pattern search processing. 配置パターン検索処理の動作の一例を説明するための説明図である。It is explanatory drawing for demonstrating an example of the operation | movement of arrangement pattern search processing. 図枠内に配置された最小配置パターンの一例である。It is an example of the minimum arrangement pattern arrange | positioned in a figure frame. 図枠内に配置された最小配置パターンにおいて、図面要素を明示したものである。Drawing elements are clearly shown in a minimum arrangement pattern arranged in a picture frame. 図面要素の外枠のセルの外側に空白セルを設けた場合の一例である。It is an example when a blank cell is provided outside a cell of an outer frame of a drawing element.

以下、本発明の実施の形態を図面に基づいて説明する。
以下の詳細な説明では、本発明の実施形態の完全な理解を提供するように多くの特定の細部について記載される。しかしながら、かかる特定の細部がなくても1つ以上の実施形態が実施できることは明らかである。他にも、図面を簡潔にするために、周知の構造及び装置が略図で示されている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of embodiments of the present invention. It will be apparent, however, that one or more embodiments may be practiced without such specific details. In other instances, well-known structures and devices are schematically shown in order to simplify the drawing.

(構成)
本発明の一実施形態に係る図面作成装置1は、図1に示すように、表示装置2と、入力装置3と、制御装置4と、を備える。
表示装置2は、CRT、液晶ディスプレイ等の画像を表示する装置であって、図面作成装置1での処理を実現するプログラムによるGUI(Graphical User Interface)等を表示する。
入力装置3は、マウス、キーボード等であり、利用者の入力操作、選択操作等を受け付け、入力信号を制御装置4に出力する。
制御装置4は、パーソナルコンピュータ(PC)等であり、入出力インタフェース部、演算処理部(CPU)、ROM、RAM等の記憶部を備える。図面作成装置1での処理を実現するプログラムは記憶部に格納され、演算処理部では、記憶部に格納されたプログラムにしたがって、図面作成装置1に係る機能を実現し、図面データベース5に格納された各種図面データに基づき図面作成を行う。
(Constitution)
As shown in FIG. 1, the drawing creating apparatus 1 according to an embodiment of the present invention includes a display device 2, an input device 3, and a control device 4.
The display device 2 is a device that displays an image such as a CRT or a liquid crystal display, and displays a GUI (Graphical User Interface) or the like by a program that realizes processing in the drawing creation device 1.
The input device 3 is a mouse, a keyboard, or the like, accepts a user's input operation, selection operation, or the like, and outputs an input signal to the control device 4.
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. A program for realizing the processing in the drawing creating apparatus 1 is stored in the storage unit, and the arithmetic processing unit realizes functions related to the drawing creating apparatus 1 according to the program stored in the storing unit, and is stored in the drawing database 5. Create drawings based on the various drawing data.

図面データベース5には、この図面作成装置1によって作成される、複数の個別図面を一枚の用紙に対応した一つの印刷領域内に配置してなる統合図面(例えば2D図面)や、この統合図面に含まれる複数の個別図面等の図面データが格納される。図面データベース5は、制御装置4が有する記憶領域に設けられていてもよく、図面作成装置1の外部に設けられていてもよい。
個別図面としては、例えば図2に示すように、正面図、平面図、側面図、背面図、底面図等の投影図や断面図、各種の注記情報、投影図で表される物体の詳細図等を含む。個別図面は、個別図面単位で作成される。
The drawing database 5 includes an integrated drawing (for example, a 2D drawing) created by the drawing creating apparatus 1 in which a plurality of individual drawings are arranged in one printing area corresponding to one sheet of paper, and the integrated drawing. The drawing data such as a plurality of individual drawings included in is stored. The drawing database 5 may be provided in a storage area of the control device 4 or may be provided outside the drawing creation device 1.
As an individual drawing, for example, as shown in FIG. 2, a front view, a plan view, a side view, a rear view, a bottom view and other projected views and cross-sectional views, various annotation information, and a detailed view of an object represented by the projected view Etc. Individual drawings are created in units of individual drawings.

制御装置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 arrangement possible area setting unit 12, a grid processing unit 13, an arrangement pattern search processing unit 14, and an output processing unit 15.
The reference drawing setting unit 11 reads out the individual drawings included in the integrated drawing to be created from the drawing database 5 and sets any one of these individual drawings as the reference drawing. For example, the individual drawing included in the integrated drawing to be created is displayed on the display device 2, and the individual drawing selected according to the selection operation by the user input device 3 is set as the reference drawing.

配置可能領域設定部12は、基準図面設定部11で設定された基準図面に対して、他の個別図面の配置位置を規定する配置可能領域を設定する。
グリッド処理部13は、作成対象の統合図面に含まれる個別図面のそれぞれについて、図4に示すように、個別図面間で共通ピッチの縦及び横のグリッド線を、個別図面に表示されている情報を全て覆うように重畳させて、各個別図面を縦及び横のグリッド線でセルに区切る。ここでいう個別図面に表示されている情報とは、個別図面に表示される注記情報等の文字情報や、詳細図等の各種図面を構成する線分や符号、等、図面として必要な個別図面に表示されている情報をいう。
そして、個別図面毎に、個別図面に表示されている情報と重なるセル全てを含む連続した領域を図面要素とし、この図面要素としての連続した領域の外周をなす全てのセルを、図面要素の外枠のセルとして検出すると共に、外枠のセルの中から図面要素の頂点となる頂点セルを検出する。
The layoutable area setting unit 12 sets a layoutable area that defines the layout position of other individual drawings with respect to the reference drawing set by the reference drawing setting unit 11.
As shown in FIG. 4, for each individual drawing included in the integrated drawing to be created, the grid processing unit 13 displays information indicating vertical and horizontal grid lines having a common pitch between the individual drawings in the individual drawings. The individual drawings are divided into cells by vertical and horizontal grid lines. The information displayed in the individual drawings here refers to character information such as note information displayed in the individual drawings, line segments and symbols constituting various drawings such as detailed drawings, etc., necessary individual drawings as drawings. Means the information displayed in
Then, for each individual drawing, a continuous area including all the cells overlapping with the information displayed in the individual drawing is used as a drawing element, and all cells forming the outer periphery of the continuous area as this drawing element are excluded from the drawing element. While detecting as a cell of the frame, a vertex cell that is a vertex of the 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 graphic including all drawing elements arranged in this arrangement pattern is inscribed among the arrangement patterns in which the drawing elements included in the individual drawings do not overlap. .) Is searched for an arrangement pattern that minimizes the area, and this is used as the minimum area pattern.
The output processing unit 15 arranges the individual drawings included in the integrated drawing to be created with the arrangement pattern set as the minimum area pattern in the figure frame corresponding to the paper size designated by the user. The figure frame is set in advance to a size corresponding to one of the paper sizes A0 to A4, for example, by setting by the user.

次に、図面作成装置1の制御装置4で実行される処理手順の一例を、図5のフローチャートを伴って説明する。
例えば、図面データベース5に登録されている個別図面の一覧が表示装置2に表示されること等によって、個別図面の一覧の中から利用者によって作成対象の統合図面に含まれる個別図面が選択されると、基準図面設定部11は、選択された個別図面の図面データを図面データベース5から取得する(ステップS2)。
基準図面設定部11は、図面データベース5から取得した図面データをもとに、作成対象の統合図面に含まれる複数の個別図面を、図2に示すように表示装置2に表示する(ステップS4)。
基準図面設定部11は、表示装置2に表示された個別図面のうち、いずれかの個別図面が例えば入力装置3での選択操作に応じて選択されると、この個別図面を基準図面として認識し、基準図面に含まれる図面要素を基準図面要素として設定する。(ステップS6)。
Next, an example of a processing procedure executed by the control device 4 of the drawing creating apparatus 1 will be described with reference to the flowchart of FIG.
For example, when a list of individual drawings registered in the drawing database 5 is displayed on the display device 2, an individual drawing included in the integrated drawing to be created is selected by the user from the list of individual drawings. Then, the reference drawing setting unit 11 acquires the drawing data of the selected individual drawing from the drawing database 5 (step S2).
Based on the drawing data acquired from the drawing database 5, the reference drawing setting unit 11 displays a plurality of individual drawings included in the integrated drawing to be created on the display device 2 as shown in FIG. 2 (step S4). .
When any one of the individual drawings displayed on the display device 2 is selected according to a selection operation on the input device 3, for example, the reference drawing setting unit 11 recognizes the individual drawing as the reference drawing. The drawing element included in the reference drawing is set as the reference drawing element. (Step S6).

配置可能領域設定部12は、利用者による入力装置3の操作に応じて、作成対象の統合図面に含まれる個別図面のうち、基準図面を除く他の個別図面それぞれについて、図6に示すように、これら個別図面を基準図面に対してどの位置に配置するかを表す配置可能領域を設定し所定の記憶領域に記憶する(ステップS8)。例えば、図6に示すように、基準図面としての正面図等に対して、例えばある注記情報は基準図面の上領域又は右上領域に配置するとして設定し、ある詳細図は、基準図面の右上領域、右領域、右下領域のいずれかの領域に配置する等として設定する。また、別の注記情報は下領域に配置するとして設定し、別の詳細図は基準図面の左上領域、左領域、左下領域のいずれかの領域に配置する等として設定する。   As shown in FIG. 6, the dispositionable area setting unit 12 displays each individual drawing excluding the reference drawing among the individual drawings included in the integrated drawing to be created in accordance with the operation of the input device 3 by the user. Then, an arrangementable area indicating where to place these individual drawings with respect to the reference drawing is set and stored in a predetermined storage area (step S8). For example, as shown in FIG. 6, with respect to a front view or the like as a reference drawing, for example, certain note information is set to be arranged in an upper area or an upper right area of the reference drawing, and a detailed view is set in an upper right area of the reference drawing It is set to be arranged in any one of the right region and the lower right region. Further, another annotation information is set to be arranged in the lower area, and another detailed drawing is set to be arranged in any one of the upper left area, the left area, and the lower left area of the reference drawing.

なお、正面図、平面図等の投影図や断面図等、配置位置がJISで定められている図面要素については、JISの規定にしたがった配置領域が設定される。JISで配置位置が定められている図面要素については、例えば、配置位置を対応付ける配置位置情報を個別図面に含めておき、個別図面の図面データに配置位置情報が含まれる図面要素については、配置位置情報により対応付けられた位置関係となるように、図面要素の配置位置を制限するようにすればよい。或いはJISで配置位置が定められている図面については、定められた配置にしたがって配置した一つの図形として取り扱うようにしてもよい。   For drawing elements whose arrangement positions are defined by JIS, such as projection views and cross-sectional views such as front views and plan views, arrangement areas are set according to JIS regulations. For drawing elements whose arrangement positions are defined in JIS, for example, arrangement position information for associating arrangement positions is included in individual drawings, and for drawing elements whose arrangement position information is included in drawing data of individual drawings What is necessary is just to restrict | limit the arrangement position of drawing element so that it may become the positional relationship matched by information. Alternatively, a drawing whose arrangement position is defined in JIS may be handled as one graphic arranged according to the defined arrangement.

一方、グリッド処理部13は、作成対象の統合図面に含まれる個別図面それぞれに対して、図4に示すように個別図面間で共通ピッチの縦及び横のグリッド線を、個別図面に表示されている情報全てを覆うように重畳させて、個別図面を、縦及び横のグリッド線でセルに区切る(ステップS10)。
なお、個別図面の縮尺は、個別図面間で同一である必要はなく個別に設定されていてもよく、統合図面として図枠内に表示する際の各図面要素の縮尺に合わせて設定すればよい。
縦及び横のグリッド線のピッチは、予め設定した所定のピッチを設定してもよく、注記情報に含まれる文字のフォント等に基づき設定してもよい。また、縦及び横のグリッド線で区切られるセルを最小単位として図面要素どうしが組み合わせられるため、例えば、図面要素の形状等に基づいて利用者が縦及び横のグリッド線のピッチを設定するようにしてもよい。
On the other hand, for each individual drawing included in the integrated drawing to be created, the grid processing unit 13 displays vertical and horizontal grid lines having a common pitch between the individual drawings as shown in FIG. The individual drawings are divided into cells by vertical and horizontal grid lines so as to cover all the existing information (step S10).
Note that the scales of the individual drawings do not have to be the same among the individual drawings, and may be set individually, and may be set according to the scale of each drawing element when displayed in the drawing frame as an integrated drawing. .
The pitch of the vertical and horizontal grid lines may be set to a predetermined pitch set in advance, or may be set based on a font of characters included in the note information. In addition, since the drawing elements can be combined with each other as a minimum unit of cells separated by vertical and horizontal grid lines, for example, the user can set the pitch of the vertical and horizontal grid lines based on the shape of the drawing elements. May be.

次に、グリッド処理部13は、表示されている情報と重なる全てのセルを含む領域を図面要素として検出する。具体的には、個別図面毎に、図7に示すように個別図面に表示されている情報と重なるセルを全て検出し、検出されたセル全てを含む連続した領域を設定する。例えば、環状部材の詳細図等、個別図面の、情報が表示されている領域の内側に、情報が表示されていない領域が存在する場合には、個別図面に表示されている情報と重なるセルに囲まれた情報と重ならないセルも含めて、個別図面に表示されている情報と重なるセル全てを含む連続した領域を図面要素とする。   Next, the grid processing unit 13 detects, as a drawing element, an area including all cells that overlap the displayed information. Specifically, for each individual drawing, as shown in FIG. 7, all the cells that overlap the information displayed in the individual drawing are detected, and a continuous area including all the detected cells is set. For example, if there is an area where information is not displayed inside the area where information is displayed, such as a detailed drawing of an annular member, the cell overlaps the information displayed in the individual drawing. A continuous area including all the cells overlapping with the information displayed in the individual drawings, including cells that do not overlap the enclosed information, is a drawing element.

この検出されたセル全てを含む連続した図面要素としての領域は、例えば、個別図面に表示されている情報と重なるセル全てのみを含む領域であってよい。或いは、図面要素として、個別図面に表示されている情報と重なるセル全てのみを含む領域とした場合、この図面要素としての領域の外周に凸凹とが生じるような場合には、凹んでいるセルも個別図面に表示されている情報と重なるセルとみなして、図面要素としての領域の外周の形状を簡略化するようにしてもよい。図面要素としての領域は、少なくとも、個別図面に表示されている情報と重なる全てのセルを含んでいればよい。   The area as a continuous drawing element including all the detected cells may be, for example, an area including only all the cells overlapping with the information displayed in the individual drawings. Alternatively, if the drawing element is an area that includes only all the cells that overlap the information displayed in the individual drawing, and if the outer periphery of the area as the drawing element is uneven, the recessed cell may be The shape of the outer periphery of the area as a drawing element may be simplified by regarding the cell as overlapping with the information displayed in the individual drawing. A region as a drawing element only needs to include at least all cells overlapping with information displayed in the individual drawings.

グリッド処理部13は、このようにして設定した図面要素としての領域の外枠に対応するセルを、図面要素の外枠のセルc1として検出する(ステップS12)。
さらに、グリッド処理部13は、頂点セルを検出し所定の記憶領域に記憶する(ステップS14)。頂点セルは、図面要素に重ならないセルを空白セルとしたとき、例えば図8(a)に示すように、図面要素の外枠のセルのうち、2辺以上に空白セルが接しているセルc11、c12をいう。図8(b)の場合、6個の頂点セル(c11〜c16)を有している。
The grid processing unit 13 detects the cell corresponding to the outer frame of the region as the drawing element set as described above as the cell c1 of the outer frame of the drawing element (step S12).
Furthermore, the grid processing unit 13 detects vertex cells and stores them in a predetermined storage area (step S14). When a cell that does not overlap a drawing element is a blank cell, the vertex cell is a cell c11 in which blank cells are in contact with two or more sides among cells in the outer frame of the drawing element, for example, as shown in FIG. , C12. In the case of FIG.8 (b), it has six vertex cells (c11-c16).

配置パターン検索処理部14は、後述の配置パターン検索処理を行う(ステップS16)。
そして、出力処理部15は、配置パターン検索処理で検出した配置パターンを面積最小パターンとし、この面積最小パターンの配置にしたがって、利用者によって指定された用紙サイズに対応する図枠内に個別図面を配置し、例えば表示装置2に表示する(ステップS18)。
次に、ステップS16における配置パターン検索処理の処理手順の一例を、図9に示すフローチャートを伴って説明する。
The arrangement pattern search processing unit 14 performs an arrangement pattern search process described later (step S16).
Then, the output processing unit 15 sets the arrangement pattern detected by the arrangement pattern search process as the minimum area pattern, and according to the arrangement of the minimum area pattern, the individual drawing is displayed in the figure frame corresponding to the paper size designated by the user. Arranged and displayed on the display device 2, for example (step S18).
Next, an example of the processing procedure of the arrangement 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)/2 通りの順列で表される、n個の図面要素の並びを検索パターンとし、検索パターンにおける図面要素の並び順にしたがって、検索対象の図面要素として順に設定する。
As shown in FIG. 9, the arrangement pattern search processing unit 14 first assigns an identification number to each drawing element (step S22).
In step S24, a loop A variable update process is performed. In loop A, a search pattern is determined, and a fixed figure and a moving figure to be searched are set according to this search pattern.
As a drawing element to be searched, n is extracted from the total number n of drawing elements (nPn) / 2. The search pattern is a sequence of n drawing elements represented by two permutations. In accordance with the arrangement order of the drawing elements in FIG.

例えば図面要素の識別番号を1〜nとしたとき、n個の図面要素の並びのパターンが検索パターンとなる。例えば、基準図面要素を含む図面要素の個数の合計が4つであり、識別番号を「基準」、「要素1」、「要素2」、「要素3」としたとき、検索パターンは、「基準」「要素1」「要素2」「要素3」、「基準」「要素1」「要素3」「要素2」、「基準」「要素2」「要素1」「要素3」、「基準」「要素2」「要素3」「要素1」、「基準」「要素3」「要素1」「要素2」、「基準」「要素3」「要素2」「要素1」、要素1」「要素2」「基準」「要素3」、「要素1」「要素2」「要素3」「基準」、「要素1」「要素3」「基準」「要素2」、「要素1」「要素3」「要素2」「基準」、「要素2」「要素3」「基準」「要素1」、「要素2」「要素3」「要素1」「基準」、の12パターンである。この各パターンが検索パターンとなる。ここで、上記の検索パターンについて、図面要素4個の内から4個を取り出す順列組合せは24パターンであるが、その内、1番目の要素と2番目の要素との配置パターンは、配置の順序が入れ替わっても変わらないため、そのような検索パターンは半分に省略される。例えば、検索パターン「基準」「要素1」「要素2」「要素3」に対して、検索パターン「要素1」「基準」「要素3」「要素2」は省略される。 For example, when the identification numbers of the drawing elements are 1 to n, a pattern in which n drawing elements are arranged becomes a search pattern. For example, when the total number of drawing elements including the reference drawing element is four and the identification numbers are “reference”, “element 1”, “element 2”, and “element 3”, the search pattern is “reference “Element 1” “Element 2” “Element 3” “Reference” “Element 1” “Element 3” “Element 2” “Reference” “Element 2” “Element 1” “Element 3” “Reference” “ “Element 2” “Element 3” “Element 1” “Reference” “Element 3” “Element 1” “Element 2” “Reference” “Element 3” “Element 2” “Element 1” Element 1” “Element” “2” “reference” “element 3” “element 1” “element 2” “element 3” “reference” “element 1” “element 3” “reference” “element 2” “element 1” “element 3” There are 12 patterns of “element 2” “reference”, “element 2” “element 3” “reference” “element 1”, “element 2” “element 3” “element 1” “reference”. Each pattern becomes a search pattern. Here, with respect to the search pattern, there are 24 permutation combinations for extracting four of the four drawing elements. Of these, the arrangement pattern of the first element and the second element is the arrangement order. Such a search pattern is omitted in half. For example, the search patterns “element 1”, “reference”, “element 3”, and “element 2” are omitted for the search patterns “reference”, “element 1”, “element 2”, and “element 3”.

そして、まず、1番目の検索パターン(「基準」「要素1」「要素2」「要素3」)にしたがって、検索対象の固定図形として「基準」、移動図形として「要素1」を設定する。固定図形「基準」と移動図形「要素1」とからなる図形について、後述のステップS42までの処理が行われ、固定図形と移動図形とからなる図形の内接矩形が面積最小となる配置パターンが検出されて後述の最小面積記憶領域に記憶されたならば、配置パターン検索処理部14は、最小面積記憶領域に記憶された面積最小となる配置パターンを読み出し、この配置パターンで配置された固定図形「基準」の図面要素と移動図形「要素1」とからなる図形を新たな固定図形(「基準」+「要素1」の図面要素)とし、次に、「要素2」を検索対象の移動図形とする。そして、同様にして、内接矩形が面積最小となる配置パターンが検出されると、最小面積記憶領域に記憶された面積最小となる配置パターンで配置された「要素2」と固定図形とからなる図形を新たな固定図形((「基準」+「要素1」の図面要素)+「要素2」の図面要素)とし、次に、「要素3」を検索対象の移動図形とする。同様にして、内接矩形が面積最小となる配置パターンが検出され、このときの配置パターン、つまり、 “((「基準」+「要素1」の図面要素)+「要素2」の図面要素)+「要素3」の図面要素)”からなる図形の内接矩形が面積最小となる配置パターンが最小配置パターンとして検出されると、1番目の検索パターンに対する処理が終了する。   Then, according to the first search pattern (“reference”, “element 1”, “element 2”, “element 3”), “reference” is set as a fixed figure to be searched and “element 1” is set as a moving figure. For the figure composed of the fixed figure “reference” and the moving figure “element 1”, the processing up to step S42 described later is performed, and an arrangement pattern in which the inscribed rectangle of the figure consisting of the fixed figure and the moving figure has a minimum area is obtained. If it is detected and stored in the minimum area storage area described later, the arrangement pattern search processing unit 14 reads out the arrangement pattern having the minimum area stored in the minimum area storage area, and the fixed figure arranged in this arrangement pattern. The figure composed of the "reference" drawing element and the moving figure "element 1" is set as a new fixed figure ("reference" + "element 1" drawing element), and then "element 2" is the moving figure to be searched. And Similarly, when an arrangement pattern in which the inscribed rectangle has the smallest area is detected, “element 2” arranged in the arrangement pattern having the smallest area stored in the minimum area storage area and the fixed figure are included. The figure is a new fixed figure (("reference" + "element 1" drawing element) + "element 2" drawing element), and then "element 3" is the moving figure to be searched. Similarly, an arrangement pattern in which the inscribed rectangle has the smallest area is detected, and the arrangement pattern at this time, that is, “((“ reference ”+“ element 1 ”drawing element) +“ element 2 ”drawing element) When the arrangement pattern in which the inscribed rectangle of the figure “(element 3)”) has the smallest area is detected as the minimum arrangement pattern, the processing for the first search pattern ends.

配置パターン検索処理部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 the process for the second search pattern (“reference”, “element 1”, “element 3”, “element 2”) in the same procedure. First, “reference” is set as a fixed figure, and “element 1” is set as a moving figure to be searched. Then, with respect to a graphic composed of the moving graphic “element 1” and a fixed graphic (reference drawing element), if a layout pattern in which the inscribed rectangle has a minimum area is detected and stored in the minimum area storage area, a layout pattern search process is performed. The unit 14 reads out the arrangement pattern in which the inscribed rectangle stored in the minimum area storage area has the smallest area, and converts the figure composed of the moving figure “element 1” arranged in this arrangement pattern and the fixed figure into a new fixed figure. (Fixed figure consisting of [reference] + “element 1”), and then “element 3” as a moving figure to be searched. Similarly, when an arrangement pattern in which the inscribed rectangle has the smallest area is detected, the moving figure “element 3” and the fixed figure arranged with the arrangement pattern having the smallest area stored in the minimum area storage area are detected. The graphic consisting of is a new fixed graphic (fixed graphic consisting of “reference” + “element 1” + “element 3”), and then “element 2” is the moving graphic to be searched. Similarly, an arrangement pattern that minimizes the area of the inscribed rectangle, that is, a fixed figure composed of ““ reference ”+“ element 1 ”+“ element 3 ”and a figure composed of the moving figure“ element 2 ””. When the arrangement pattern in which the tangent rectangle has the smallest area is detected as the minimum arrangement pattern, the processing for the second search pattern ends.

配置パターン検索処理部14は、同様にして他の検索パターンに対する処理を行い、検索パターンを変更する毎に、固定図形を検索パターンで指定される一番目の要素に更新し、検索対象の移動図形を検索パターンで指定される二番目の図面要素に更新する。そして、検索対象の移動図形を検索パターンにしたがって順次更新すると共に、固定図形に検索対象の移動図形を加えた図形を新たな固定図形として更新し、固定図形と検索対象の移動図形とを順に更新して検索パターン毎に最小配置パターンを検索する。
なお、配置パターン検索処理部14は、最小面積記憶領域に、内接矩形が面積最小となる配置パターンが複数記憶されているときには、それぞれの配置パターンで配置された図形を固定図形とする。これによって、内接矩形が面積最小となる配置パターンが複数記憶されている場合には、各配置パターンで配置された固定図形それぞれについて、固定図形と新たな移動図形とについて面積最小となる配置パターンが行われることになる。
Similarly, the arrangement pattern search processing unit 14 processes other search patterns and updates the fixed figure to the first element specified by the search pattern every time the search pattern is changed. Is updated to the second drawing element specified by the search pattern. Then, the moving figure to be searched is sequentially updated according to the search pattern, and the figure obtained by adding the moving figure to be searched to the fixed figure is updated as a new fixed figure, and the fixed figure and the moving figure to be searched are sequentially updated. The minimum arrangement pattern is searched for each search pattern.
Note that when a plurality of arrangement patterns whose inscribed rectangles have the smallest area are stored in the minimum area storage area, the arrangement pattern search processing unit 14 sets the figures arranged in the respective arrangement patterns as fixed figures. As a result, when a plurality of arrangement patterns in which the inscribed rectangle has the smallest area is stored, the arrangement pattern having the smallest area for the fixed figure and the new moving figure for each of the fixed figures arranged in each arrangement 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 the arrangement pattern in which the inscribed rectangle of the figure composed of ““ reference ”+“ element 1 ”” has the smallest area, ““ reference ”arranged in the pattern p1 The graphic composed of + “element 1” ”is set as the first fixed graphic, and the graphic composed of“ “reference” + “element 1” ”arranged in the pattern p2 is defined as the second fixed graphic.
Then, an arrangement pattern in which the inscribed rectangle of the figure composed of the first fixed figure and the moving figure “element 2” has the smallest area is searched, and finally “the“ reference ”arranged in the pattern p1 + the“ element ” An arrangement pattern in which the inscribed rectangle of the figure consisting of “1” drawing element, “element 2” drawing element, and “element 3” drawing element ”has the smallest area is detected as the minimum arrangement pattern. An arrangement pattern in which the inscribed rectangle of the figure consisting of the second fixed figure and the moving figure “element 2” has the smallest area is searched, and finally “reference” arranged in the pattern p2 + “element 1” If an arrangement pattern in which the inscribed rectangle of the figure consisting of the drawing element of “No. 2” and the drawing element of “Element 2” and “The drawing element of“ Element 3 ”” has the smallest area is detected as the minimum arrangement pattern, The process for the search pattern ends.

このとき、例えば第一の固定図形と移動図形「要素2」とからなる図形の内接矩形が面積最小となる配置パターンが複数(例えばパターンp11とパターンp12の2つ)ある場合には、複数の配置パターンを記憶しておき、第一の固定図形と移動図形「要素2」とが第一のパターンp11で配置された場合と、第二のパターンp12で配置された場合のそれぞれについて、新たな固定図形を設定し、各固定図形について上記と同様の手順で配置パターンの検索を行う。
ステップS26では、ループBの変数更新処理を行う。具体的には、ステップS24で設定された検索対象の移動図形が有する頂点セルを、検索対象の頂点セルとして順に設定する。
At this time, for example, when there are a plurality of arrangement patterns (for example, two patterns p11 and p12) in which the inscribed rectangle of the graphic composed of the first fixed graphic and the moving graphic “element 2” has a minimum area, a plurality of patterns are used. For each of the case where the first fixed figure and the moving figure “element 2” are arranged in the first pattern p11 and the case where the first figure p12 is arranged in the second pattern p12. A fixed figure is set, and an arrangement pattern is searched for each fixed figure in the same procedure as described above.
In step S26, loop B variable update processing is performed. Specifically, the vertex cells included in the search target moving figure set in step S24 are sequentially set as the search target vertex cells.

ステップS28では、ループCの変数更新処理を行う。具体的には、固定図形の外周となる固定図形に含まれる基準図面要素又は複数の図面要素の外枠のセルに対して、外側から接する空白セルを、外接セルとして検索する。図10(a)に示すように、例えば固定図形m11について、固定図形m11の外枠のセルc21それぞれに対し、図10(b)に示すように、その外側から接する全てのセルを外接セルc22として検出する。そして、外接セルc22を、検索対象の外接セルとして順に設定する。
ステップS30では、図10(c)に示すように、ステップS28で設定された検索対象の外接セルc22と、ステップS26で設定された検索対象の頂点セルc23とが重なるように、向きはそのままで検索対象の移動図面要素m12を配置する。
In step S28, a loop C variable update process is performed. Specifically, a blank cell that is in contact with the reference drawing element or the outer frame cell of a plurality of drawing elements included in the fixed figure that is the outer periphery of the fixed figure is searched as a circumscribed cell. As shown in FIG. 10A, for example, with respect to the fixed figure m11, for each cell c21 of the outer frame of the fixed figure m11, as shown in FIG. Detect as. Then, the circumscribed cell c22 is sequentially set as a circumscribed cell to be searched.
In step S30, as shown in FIG. 10C, the orientation remains the same so that the search target circumscribed cell c22 set in step S28 and the search target vertex cell c23 set in step S26 overlap. A moving drawing element m12 to be searched is arranged.

このとき、検索対象の移動図形と固定図形とが、例えば図10(c)に示すように重なる場合には、ステップS32からステップS40に移行し、重ならない場合には、ステップS34に移行する。
ステップS34では、検索対象の移動図形が、配置可能領域として設定された領域内に位置するかどうかを判断し、配置可能領域内に位置するときにはステップS36に移行して、このときの検索対象の移動図形と固定図形との配置状態において、固定図形と検索対象の移動図形とからなる図形が内接する矩形(内接矩形)を求める。そして、内接矩形の縦及び横の長さが予め設定されたしきい値以下である内接矩形について、その面積を求める。そして、求めた面積が、最小面積記憶領域に記憶されている、最小面積以下であるとき、求めた面積を新たな最小面積として、このときの固定図形と検索対象の移動図形との配置パターンとを対応付けて、最小面積記憶領域に更新記憶する(ステップS38)。なお、内接矩形が最小面積となるときの固定図形と検索対象の移動図形との配置パターン及び最小面積は、検索パターン毎に、最小面積記憶領域に記憶されるようになっている。
At this time, if the moving figure and the fixed figure to be searched overlap as shown in FIG. 10C, for example, the process proceeds from step S32 to step S40, and if not, the process proceeds to step S34.
In step S34, it is determined whether or not the moving figure to be searched is located within the area set as the placeable area. When the moving figure is located within the placeable area, the process proceeds to step S36. In the arrangement state of the moving figure and the fixed figure, a rectangle (inscribed rectangle) in which the figure composed of the fixed figure and the moving figure to be searched is inscribed is obtained. Then, the area of the inscribed rectangle in which the vertical and horizontal lengths of the inscribed rectangle are equal to or less than a preset threshold value is obtained. Then, when the calculated area is less than or equal to the minimum area stored in the minimum area storage area, the determined area is set as a new minimum area, and the arrangement pattern of the fixed figure and the moving figure to be searched at this time Are associated and 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 figure to be searched when the inscribed rectangle has the minimum area are stored in the minimum area storage area for each search pattern.

内接矩形の縦及び横の長さのしきい値は、内接矩形が用紙サイズに応じた図枠内に収まるか否かを判定するためのしきい値であって、利用者によって指定される用紙サイズの縦及び横の長さに応じて設定される。
内接矩形の縦及び横の長さがしきい値を上回るときには、内接矩形すなわち固定図形と検索対象の移動図形とからなる図形が図枠内に収まらないため、しきい値以内を満足する内接矩形についてのみ、その面積を演算する。
なお、内接矩形の面積が、最小面積記憶領域に格納されている最小面積と等しい場合には、最小面積記憶領域に格納されている最小面積及びこれに対応する、固定図形と検索対象の移動図形との配置パターンと共に、今回演算した内接矩形の面積とこれに対応する固定図形と検索対象の移動図形との配置パターンも最小面積記憶領域に記憶する。
The vertical and horizontal length threshold values of the inscribed rectangle are threshold values for determining whether or not the inscribed rectangle fits within the frame according to the paper size, and are specified by the user. It is set according to the vertical and horizontal lengths of the paper size.
When the vertical and horizontal lengths of the inscribed rectangle exceed the threshold value, the inscribed rectangle, that is, the figure consisting of the fixed figure and the moving figure to be searched, does not fit in the picture frame. The area is calculated only for the rectangle.
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 corresponding fixed figure and movement of the search target Along with the arrangement pattern with the graphic, the area of the inscribed rectangle calculated this time and the arrangement pattern of the corresponding fixed figure and the moving figure 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 figure to be searched is located outside the area set as the placeable area in step S34, that is, for example, as shown in FIG. When the upper left area, the left area, the lower left area, the upper area, and the lower area of the reference drawing element are set, as shown in FIG. 11B, the moving figure to be searched is changed to the upper right area of the reference drawing element, The right region and the lower right region are not arranged in this region, and the process proceeds to step S40.
Further, when the area of the inscribed rectangle obtained in step S36 is larger than the minimum area stored in the minimum area storage area, the stored minimum area and arrangement pattern are not updated, and the process proceeds to step S40 as it is. To do.

ステップS40では、固定図形について外接セルとして検出した全てのセルについて、検索対象の頂点セルと重ね合わせる処理を行ったか否かを判断し、全ての外接セルについて処理を行っていない場合には、ステップS28に移行し、検索対象の外接セルを更新し、全ての外接セルについて処理を行った場合にはステップS42に移行する。
ステップS42では、検索対象の移動図形が有する頂点セル全てを検索対象の頂点セルとして設定したかを判断し、検索対象の頂点セルとして全ての頂点セルを設定していない場合には、ステップS26に戻り、検索対象の頂点セルとして次の頂点セルに更新する。
In step S40, it is determined whether or not all cells detected as circumscribed cells with respect to the fixed figure have been subjected to the process of overlapping with the vertex cells to be searched. If all the circumscribed cells have not been processed, step S40 is performed. When the process proceeds to S28, the circumscribed cell to be searched is updated, and all the circumscribed cells are processed, the process proceeds to step S42.
In step S42, it is determined whether all the vertex cells included in the search target moving figure are set as the search target vertex cells. If all the vertex cells are not set as the search target vertex cells, the process proceeds to step S26. Return to the next vertex cell as the vertex cell to be searched.

そして、ステップS42で、検索対象の頂点セルとして全ての頂点セルを設定したならばステップS44に移行し、検索パターンで設定されている順に各図面移動要素を検索対象の図面移動要素として設定していないと判断されるとき、又は検索パターンで設定されている順に、各図面移動要素を検索対象の図面移動要素として設定する処理を、全ての検索パターンについて行っていないときには、ステップS24に戻って、現在の検索パターンにしたがって、検索対象の移動図形として次の移動図形を設定するか、又は次の検索パターンにしたがって、検索対象の移動図形を設定する。
ステップS44で、全ての検索パターンについて移動図形を、検索対象の移動図形として設定したならばステップS46に移行し、ステップS38の処理で最小面積及び配置パターンを記憶した最小面積記憶領域に記憶されている、検索パターン毎の、配置パターンのうち、面積最小の配置パターンを最小配置パターンとして設定する。
In step S42, if all the vertex cells are set as the search target vertex cells, the process proceeds 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 the process of setting each drawing moving element as a drawing moving element to be searched in the order set in the search pattern is not performed for all the search patterns, the process returns to step S24, The next moving figure is set as the moving figure to be searched according to the current search pattern, or the moving figure to be searched is set according to the next searching pattern.
In step S44, if the moving figure is set as a moving figure to be searched for all the search patterns, the process proceeds to step S46, and is stored in the minimum area storage area storing the minimum area and the arrangement pattern in the process of 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 figure m12 is sequentially shifted so that the vertex cell c23 included in the moving figure m12 to be searched and the circumscribed cell c22 of the fixed figure m11 overlap. As is, the moving figure m12 is moved so that the vertex cell c23 goes around the fixed figure m11 along the outer periphery of the fixed figure m11. As a result, the moving figure m12 and the fixed figure m11 when the vertex figure c23 of the moving figure m12 and the circumscribing cell c22 of the fixed figure m11 overlap and the moving figure m12 itself and the fixed figure m11 itself do not overlap each other. When the vertical and horizontal lengths of the inscribed rectangle (indicated by a broken line in FIG. 12A) inscribed in the figure satisfy the threshold value, the area of the inscribed rectangle is calculated, An arrangement pattern having the smallest area is detected.
In the loop B, by executing the processing in the loop C for all the vertex cells included in the moving figure m12, all the vertex cells of the moving figure m12 and the circumscribed cell c22 of the fixed figure m11 overlap each other. When the moving figure m12 itself and the fixed figure m11 itself do not overlap with each other, the vertical and horizontal lengths of the inscribed rectangle among the inscribed rectangles inscribed by the figure made up of the moving figure m12 and the fixed figure m11 have a threshold value. The arrangement pattern which is satisfactory and has the smallest area is detected.

つまり、図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 figure m12, the moving figure m12 is moved so as to move the vertex cell c31 along the outer periphery of the fixed figure m11. For a figure composed of the moving figure m12 and the fixed figure m11 when the fixed figure m11 does not overlap, the inscribed rectangle s1 when the length and width of the inscribed rectangle s1 inscribed by the figure satisfy the threshold value To calculate the area. For the vertex cell c31, when the moving figure m12 and the fixed figure m11 do not overlap each other, the vertex cell c31 is calculated while sequentially calculating the area of the inscribed rectangle s1 with respect to the figure composed of the moving figure m12 and the fixed figure m11. Moves the moving figure m12 so as to go around the fixed figure m11. Next, the same processing is performed for the vertex cell c32 of the moving figure m12, and the area of the inscribed rectangle s2 inscribed by the figure made up of the moving figure m12 and the fixed figure m11 is calculated. For c33, c34, c35, and c36, the inscribed rectangle area is calculated for each of the figures composed of the moving figure m12 and the fixed figure m11 when the moving figure m12 and the fixed figure m11 do not overlap.
Then, as shown in FIG. 12C, a figure formed by combining the moving figure m12 and the fixed figure m11 in the arrangement pattern of the moving figure m12 and the fixed figure m11 when the area of the inscribed rectangle is minimized. As a new fixed figure m111, an arrangement pattern that minimizes the area of the inscribed rectangle is searched for the new fixed figure m111 and the next moving figure m121.

つまり、ループAでは、ループB及びループCにより検索された、一の移動図形と一の固定図形との配置パターンのうち、面積最小となる配置パターンで配置された移動図形と固定図形とからなる図形を新たな固定図形とし、この固定図形と次の移動図形とについて、面積最小となる配置パターンを検索することによって、一の検索パターンに基づいて所定の順番で、固定図形に対して移動図形を加えていったときの面積最小となる配置パターンを検出する。さらに、検索パターンを更新して、nPn通りの順列に基づき設定される全ての検索パターンについて、検索パターンに基づいて所定の順番で、固定図形に対して移動図形を加えていったときの面積最小となる配置パターンを検出する。これにより、検索パターン毎に、固定図形に移動図形を順に加えていったときの面積最小となる配置パターンを検出する。そして、検出した検索パターン毎の面積最小となる配置パターンのうち、最も面積が小さい配置パターンを、最小配置パターンとする。つまり、各移動図形を固定図形に加えていくときの順番、また、移動図形と固定図形とがどの辺どうしで接するか等、を考慮して、面積最小となる、作成対象の統合図面に含まれる図面要素全てを含む配置パターンを検出する。   That is, in the loop A, of the arrangement patterns of one moving figure and one fixed figure retrieved by the loop B and the loop C, the moving figure and the fixed figure arranged with the arrangement pattern having the smallest area are included. By making a figure a new fixed figure and searching for the arrangement pattern that minimizes the area for this fixed figure and the next moving figure, the figure that moves with respect to the fixed figure in a predetermined order based on one search pattern An arrangement pattern that minimizes the area when adding is detected. Further, by updating the search pattern, for all search patterns set based on the nPn permutations, the area when the moving figure is added to the fixed figure in a predetermined order based on the search pattern Is detected. Thus, for each search pattern, an arrangement pattern that minimizes the area when moving figures are sequentially added to the fixed figure is detected. The arrangement pattern having the smallest area among the arrangement patterns having the smallest area for each detected search pattern is set as the minimum arrangement pattern. In other words, considering the order in which each moving figure is added to the fixed figure, and which side the moving figure and the fixed figure touch each other, etc. An arrangement pattern including all drawing elements to be detected is detected.

図13は、例えば表示装置2に表示される、図枠内に配置された最小配置パターンの一例、図14は、図13において、図面要素を網かけで示したものである。なお、図中の破線は、個別図面の枠を表す。
このように、本実施形態における図面作成装置1では、個別図面から図面要素を抽出し、図面要素どうしが重ならないように図面要素を配置している。つまり、個別図面の余白部分は重なるが、図面要素どうしは重ならないようにしているため、限られた領域内に、図面要素をコンパクトに配置することができ且つ効率よく自動で配置することができる。
FIG. 13 shows an example of the minimum arrangement pattern arranged in the figure frame displayed on the display device 2, for example. FIG. 14 shows the drawing elements in FIG. 13 by shading. In addition, the broken line in a figure represents the frame of an individual drawing.
As described above, in the drawing creating apparatus 1 according to the present embodiment, drawing elements are extracted from individual drawings, and the drawing elements are arranged so that the drawing elements do not overlap each other. In other words, the margins of the individual drawings overlap, but the drawing elements do not overlap, so that the drawing elements can be arranged compactly and efficiently and automatically in a limited area. .

また複数の図面を、より占有面積が小さくなるように図枠内に配置する方法として、例えば、図枠内の領域全てを対象として、図面要素を配置したときに取り得る全ての配置パターンについて検討する方法等も考えられるが、本実施形態における図面作成装置1では、移動図形の頂点セルが、固定図形の図面要素の外周に沿って移動するように移動図形を移動させ、固定図形と移動図形とからなる図形が図枠内に収まる配置パターンの中から、固定図形と移動図形とからなる図形の内接矩形の面積が最小となる配置パターンを検出するようにし、面積最小となる可能性があり且つ取り得る可能性のある配置パターンを対象として面積最小となる配置パターンを検索しているため、上述の従来の方法に比較して検討すべき配置パターンを削減することができ、配置パターンの検討を効率的に行うことができる。   In addition, as a method of arranging multiple drawings in the figure frame so that the occupied area becomes smaller, for example, consider all arrangement patterns that can be taken when drawing elements are arranged for all regions in the figure frame However, in the drawing creating apparatus 1 according to the present embodiment, the fixed figure and the moving figure are moved by moving the moving figure so that the vertex cell of the moving figure moves along the outer periphery of the drawing element of the fixed figure. From the arrangement pattern in which the figure consisting of and within the figure frame, the arrangement pattern that minimizes the area of the inscribed rectangle of the figure consisting of the fixed figure and the moving figure may be detected, and the area may be minimized. Since the layout pattern having the smallest area is searched for possible and possible layout patterns, the layout pattern to be examined is reduced compared to the conventional method described above. It is possible, it is possible to examine the arrangement pattern efficiently.

また、内接矩形の面積が最小となる配置パターンを検出する方法として、移動図形の外枠のセル全てについて、外枠のセル毎に、固定図形の図面要素の外周に沿って移動させる方法も考えられる。
しかしながら、外枠のセルが直線上に配置されている場合等には、直線上の複数のセル間で、内接矩形の面積が同一となる場合が多い。また、外枠のセルが一つの空白セルの二辺と接する場合、すなわち、頂点セルとは逆に、移動図形の外周が凹んだ部分に相当する外枠のセル及びその近傍のセルの場合には、このセルを固定図形の図面要素の外周に沿わせたとしても、移動図形と固定図形の図面要素とが重なる場合が多い。
In addition, as a method of detecting an arrangement pattern that minimizes the area of the inscribed rectangle, a method of moving all the cells of the outer frame of the moving figure along the outer periphery of the fixed figure drawing element for each cell of the outer frame. Conceivable.
However, when the cells of the outer frame are arranged on a straight line, the area of the inscribed rectangle is often the same among a plurality of cells on the straight line. In addition, when the cell of the outer frame touches two sides of one blank cell, that is, in the case of the cell of the outer frame corresponding to the recessed part of the outer periphery of the moving figure and the cell in the vicinity thereof, contrary to the vertex cell. In many cases, even when this cell is placed along the outer periphery of a fixed figure drawing element, the moving figure and the fixed figure drawing element overlap each other.

したがって、上述のように、移動図形の頂点セルを設定し、頂点セルについてのみを配置パターンの検討対象とすることによって、内接矩形の面積が同一となる配置パターンや、移動図形と固定図形の図面要素とが重なる配置パターン等について検討を行うことを省くことができ、内接矩形の面積が最小となる配置パターンの検出効率を向上させると共に、検出に要する処理時間の短縮、処理負荷の軽減を図ることができる。
また、固定図形と移動図形との配置パターンとして想定される全てのパターンについて、例えば、固定図形「基準」に、3つの移動図形「要素1」〜「要素3」のうち、「要素1」、「要素2」、「要素3」の順に加えるか、「要素2」、「要素1」、「要素3」の順に加えるか、「要素3」、「要素1」、「要素2」等のどの順に加えていくかという、移動図形を加えていく順番も考慮し、生じ得る全ての順番を考慮して内接矩形が面積最小となる配置パターンを検索し、さらに、各検索パターンにしたがって、基準図面要素に移動図形を加えたときに、内接矩形が面積最小となる配置パターンが複数存在する場合には、複数の配置パターンそれぞれについて固定図形を設定し、設定した固定図形それぞれについて、面積最小となる配置パターンを検索している。
Therefore, as described above, by setting the vertex cell of the moving figure and considering only the vertex cell as the arrangement pattern, the arrangement pattern in which the area of the inscribed rectangle is the same or the moving figure and the fixed figure It is possible to eliminate the need to study arrangement patterns that overlap with drawing elements, improve the detection efficiency of arrangement patterns that minimize the area of the inscribed rectangle, reduce the processing time required for detection, and reduce the processing load. Can be achieved.
Further, for all patterns assumed as the arrangement pattern of the fixed figure and the moving figure, for example, the fixed figure “reference” includes “element 1” among the three moving figures “element 1” to “element 3”, “Element 2”, “Element 3” are added in this order, “Element 2”, “Element 1”, “Element 3” are added in this order, “Element 3”, “Element 1”, “Element 2”, etc. Considering the order of adding moving figures, whether to add in order, searching for the arrangement pattern with the smallest area of the inscribed rectangle in consideration of all possible orders, and further, according to each search pattern, the reference If there are multiple placement patterns that have a minimum area for the inscribed rectangle when a moving figure is added to the drawing element, a fixed figure is set for each of the multiple placement patterns, and a minimum area is set for each of the set fixed figures. Placement Looking for over emissions.

そのため、面積最小となる可能性のある配置パターンを排除することなく面積最小となる配置パターンを検索することができ、より高精度な検索結果を得ることができる。また、配置パターンの検索は比較的単純な計算であり、また、各配置パターンで配置した場合の状況を表示装置2に実際に表示する必要はなく制御装置4での演算処理として行っているため、制御装置4の負荷の増大を抑制しつつ、比較的短時間で演算することができる。なお、最終的に得られる最小配置パターンが複数存在する場合には、各最小配置パターンを提示し、利用者が選択できるようにすればよい。   Therefore, it is possible to search for an arrangement pattern that minimizes the area without eliminating an arrangement pattern that may minimize the area, and to obtain a more accurate search result. In addition, the retrieval of the arrangement pattern is a relatively simple calculation, and the situation when the arrangement pattern is arranged in each arrangement pattern does not need to be actually displayed on the display device 2 and is performed as a calculation process in the control device 4. The calculation can be performed in a relatively short time while suppressing an increase in the load on the control device 4. In addition, when there are a plurality of finally obtained minimum arrangement patterns, each minimum arrangement pattern may be presented so that the user can select it.

また、移動図面要素毎に配置可能領域を設定しているため、例えば、関連のある基準図面要素と移動図形とを近傍に配置することができる。注記情報等が図枠内の比較的中央部分に配置されたりすることを回避することができ、利用者の各図面要素の配置位置の希望を反映させつつ、図面要素を自動で配置することができる。
また、注記情報は基準図面要素の上領域に配置し、ある特定の部分を表す詳細図等の特定図面については基準図面要素に対して右下領域に配置する、等のルールを設定しておき、各利用者がこのルールにしたがって配置可能領域を設定することによって、どの利用者が作成したとしてもある程度の統一感のある統合図面を作成することができる。
In addition, since an arrangementable area is set for each moving drawing element, for example, related reference drawing elements and moving figures can be arranged in the vicinity. It is possible to avoid placing annotation information etc. in a relatively central part of the figure frame, and automatically arranging drawing elements while reflecting the user's desire for the arrangement position of each drawing element. it can.
Also, set rules such as placing annotation information in the upper area of the reference drawing element, and placing specific drawings such as detailed drawings representing a specific part in the lower right area with respect to the reference drawing element. Each user can set an arrangementable area according to this rule, so that any user can create an integrated drawing with a certain degree of unity.

(変形例)
(1)上記実施形態においては、基準図面要素に対して設定可能な移動図形の配置可能領域を設定する場合について説明したが、これに限るものではなく、配置不可領域を設定するようにしてもよく、配置可能領域及び配置不可領域のいずれも設定できるようにしてもよい。
(Modification)
(1) In the above-described embodiment, the case has been described in which the movable figure layoutable area that can be set for the reference drawing element is set. However, the present invention is not limited to this, and the non-placeable area may be set. Of course, both the placeable area and the non-placeable area may be set.

(2)上記実施形態においては、基準図面要素を利用者が設定する場合について説明したが、これに限るものではない。例えば、面積の一番大きい図面要素を基準図面要素として、図面作成装置1側で自動的に設定してもよい。或いは、正面図を基準図面要素とする等というように、基準図面要素とする図面要素の種類及び優先順を予め設定しておき、作成対象の統合図面に含まれる個別図面が有する図面要素のうち、優先順の最も高い図面要素を図面作成装置1側で自動的に基準図面要素として設定するようにしてもよい。 (2) In the above embodiment, the case where the user sets the reference drawing element has been described. However, the present invention is not limited to this. For example, the drawing element having the largest area may be automatically set as the reference drawing element on the drawing creating apparatus 1 side. Alternatively, among the drawing elements of the individual drawings included in the integrated drawing to be created, the type and priority order of the drawing elements to be used as the reference drawing elements are set in advance, such as using the front view as the reference drawing element. The drawing element with the highest priority may be automatically set as the reference drawing element on the drawing creating apparatus 1 side.

(3)上記実施形態においては、各個別図面において、個別図面上に表示されている情報と重なる全てのセルを含む一つの連続した領域において、その最も外側に位置するセルを図面要素の外枠のセルとし、この図面要素の外枠のセルに外側から接するように図面要素どうしを配置する場合について説明したが、これに限るものではない。
例えば、個別図面上に表示されている情報と重なる全てのセルを含む一つの連続した領域において、図15に示すように、その最も外側に位置するセルである図面要素の外枠のセルc41のさらに外側に、この外枠のセルc41に沿って予め1つ分の空白セルc42を設けておき、この空白セルc42も含めて図面要素として処理を行うようにしてもよい。
(3) In the above embodiment, in each individual drawing, in one continuous area including all cells that overlap information displayed on the individual drawing, the outermost cell is defined as the outer frame of the drawing element. The case where the drawing elements are arranged so as to be in contact with the cells of the outer frame of the drawing element from the outside has been described, but the present invention is not limited to this.
For example, in one continuous area including all the cells that overlap the information displayed on the individual drawing, as shown in FIG. 15, the 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 on the outer side along the cell c41 of the outer frame, and processing may be performed as a drawing element including the blank cell c42.

つまり、図面要素の周囲に隙間を設けるための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 the drawing elements are not displayed. The drawing elements can be prevented from being arranged close to each other, and the drawing elements can be arranged with 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, the scale of the drawing element, etc. Thus, the drawing elements may be arranged at an appropriate interval.
In addition, depending on the shape of the drawing element, a certain amount of space may be generated between the drawing elements without providing a space. Therefore, a blank cell for forming a gap is not provided or provided for the drawing element. It may be possible to select either.

例えば、個別図面に、平坦部を有する機械部品の外観図が表示されている場合、或いは、比較的長い引き出し線が表示されている場合等には、これら平坦部や引き出し線に相当する部分において、図面要素の外枠の形状が比較的直線的となる。このように、図面要素の外枠の形状が比較的直線的であり、他の図面要素と接するように配置した場合に図面要素間に生じる隙間が小さいと予測されるときには、図面要素に対して隙間形成用の空白セルを設けておけば、他の図面要素の形状に関係なく他の図面要素との間に間隔を形成することができる。逆に、個別図面に、複雑な形状を有する機械部品の外観図が表示されている場合には、図面要素の外枠の形状が凹凸を繰り返す形状となる。このように、図面要素の外枠の形状が凹凸を有し、他の図面要素の形状に関係なく図面要素間に間隔が生じると予測されるときには、隙間形成用の空白セルを設ける必要はない。したがって、図面要素の外枠の形状に応じて隙間形成用の空白セルを設けるか否かを利用者が設定するか、または図面作成装置1側で図面要素の外枠の形状を判断すること等により、図面要素に応じて隙間形成用の空白セルを設けるようにしてもよい。   For example, when an external view of a machine part having a flat part is displayed on an individual drawing, or when a relatively long lead line is displayed, the portion corresponding to the flat part or the lead line is displayed. The shape of the outer frame of the drawing element is relatively linear. In this way, when the shape of the outer frame of a drawing element is relatively linear and the gap between the drawing elements is expected to be small when arranged so as to be in contact with other drawing elements, If a blank cell for forming a gap is provided, a gap can be formed between the other drawing elements regardless of the shape of the other drawing elements. Conversely, when an external view of a machine part having a complicated shape is displayed in the individual drawing, the shape of the outer frame of the drawing element has a shape with unevenness. As described above, when the shape of the outer frame of the drawing element is uneven, and it is predicted that a gap will be generated between the drawing elements regardless of the shape of other drawing elements, it is not necessary to provide a blank cell for forming a gap. . Accordingly, the user sets whether or not to provide a blank cell for forming a gap according to the shape of the outer frame of the drawing element, or the shape of the outer frame of the drawing element is determined on the drawing creating apparatus 1 side, etc. Thus, a blank cell for forming a gap may be provided according to the drawing element.

また、図面要素どうしの間に間隔を設ける方法として、例えば、個別図面において、図面上に表示されている情報と重なる全てのセルを含む一つの連続した領域において、その最も外側に位置するセルを図面要素の外枠のセルとし、配置パターンの検索を行うときに、固定図形及び移動図形の外枠のセルの外側それぞれに隙間形成用の空白セルを設け、この空白セルを含む固定図形と空白セルを含む移動図形とについて、配置パターンの検索を行うようにしてもよく、固定図形又は移動図形のいずれか一方にのみ空白セルを設けて配置パターンの検索を行うようにしてもよい。
また、空白セルを設ける場合に限らず、図面要素どうしの間に間隔が生じるように、縦及び横のグリッド線のピッチを設定するようにしてもよい。
In addition, as a method of providing an interval between drawing elements, for example, in an individual drawing, in one continuous area including all cells overlapping with information displayed on the drawing, a cell located on the outermost side is determined. When searching for an arrangement pattern for the outer frame cell of a drawing element, a blank cell for gap formation is provided outside each cell of the outer frame of the fixed figure and the moving figure, and the fixed figure and the blank containing this blank cell are provided. An arrangement pattern may be searched for a moving figure including a cell, or an arrangement pattern may be searched for by providing a blank cell only in either a fixed figure or a moving figure.
Further, the pitch of the vertical and horizontal grid lines may be set so that a space is generated between the drawing elements, not limited to providing blank cells.

(4)上記実施形態においては、面積最小パターンを検索する際に、個別図面に含まれる図面要素を組み合わせてなる図形が、利用者により指定された用紙サイズ内に収まるパターンのみ、面積最小パターンとして検出する場合について説明したが、単に、内接矩形の面積が最小となる面積最小パターンを検出し、検出した面積最小パターンで配置された図形が、図枠内に収まり切らないときには、用紙サイズを調整すること等により対応するようにしてもよい。 (4) In the above embodiment, when searching for a minimum area pattern, only a pattern in which a figure formed by combining drawing elements included in an individual drawing falls within the paper size designated by the user is used as the minimum area pattern. In the case of detection, the minimum area pattern where the area of the inscribed rectangle is minimum is detected, and when the figure arranged in the detected minimum area pattern does not fit in the figure frame, the paper size is set. You may make it respond | correspond by adjusting etc.

(5)上記実施形態において、例えば、固定図形の外側から固定図形に沿って移動図形の頂点セルを移動させる場合、移動図形の頂点セルが移動図形の左端側にあり頂点セルを固定図形の左端側の外枠のセルに沿って移動させるときには、移動図形と固定図形とは重なる傾向にある。同様に、頂点セルが移動図形の右端側にあり、固定図形の右端側の外枠に沿って移動させるとき、また、頂点セルが移動図形の上端側にあり、固定図形の上端側の外枠に沿って移動させるとき、さらに頂点セルが移動図形の下端側にあり、固定図形の下端側の外枠に沿って移動させるときに、移動図形と固定図形とは重なる傾向にある。したがって、移動図形の検索対象の頂点セルと、固定図形の検索対象の外接セルとの位置関係について、配置パターンの検索を行う際に移動図形と固定図形とが重なる傾向にある位置関係を予め検出しておき、移動図形と固定図形とが、検出した位置関係となる領域については、配置パターンの検索を行わないようにすることによって、面積最小パターンの検索処理の処理時間の短縮を図るようにしてもよい。 (5) In the above embodiment, for example, when moving the vertex cell of the moving figure along the fixed figure from the outside of the fixed figure, the vertex cell of the moving figure is on the left end side of the moving figure and the vertex cell is the left end of the fixed figure. When moving along the cell of the outer frame on the side, the moving figure and the fixed figure tend to overlap. Similarly, when the vertex cell is on the right edge of the moving figure and is moved along the outer frame on the right edge of the fixed figure, the vertex cell is on the upper edge of the moving figure, and the outer frame on the upper edge of the fixed figure. When moving along the, the vertex cell is further on the lower end side of the moving figure, and when moving along the outer frame on the lower end side of the fixed figure, the moving figure and the fixed figure tend to overlap. Therefore, for the positional relationship between the vertex cell that is the search target for the moving graphic and the circumscribed cell that is the search target for the fixed graphic, the positional relationship that tends to overlap the moving graphic and the fixed graphic is detected in advance. In addition, in the area where the moving figure and the fixed figure are in the detected positional relationship, the search time of the minimum area pattern search process is shortened by not searching the arrangement pattern. May be.

(6)上記実施形態において、関連性のある図面要素について、配置位置関係を設定できるように構成し、配置位置関係が設定された図面要素については、その配置位置関係にしたがって組み合わせてなる複数の図面要素を一つの図面要素として取り扱うようにしてもよい。 (6) In the above-described embodiment, the arrangement positional relationship can be set for related drawing elements, and the drawing elements for which the arrangement positional relationship is set are combined in accordance with the arrangement positional relationship. A drawing element 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, the reference drawing setting unit 11 displays a plurality of individual drawings included in the integrated drawing to be created on the display device 2 and selects a reference drawing from the displayed individual drawings. However, when selecting an individual drawing included in the integrated drawing to be created, the reference drawing may be specified. In short, the reference drawing is selected from the individual drawings included in the integrated drawing to be created. Can be set.
In the above embodiment, the process in step S6 in FIG. 5 corresponds to the reference drawing element setting unit, the processes in step S10 and step S12 correspond to the grid processing unit, and the process in step S14 corresponds to the vertex cell detection unit. 9 corresponds to the initial setting unit, the moving figure update unit, and the search pattern setting unit, the processing from step S26 to step S42 corresponds to the arrangement pattern detection unit, and the processing of step S36 and step S38. 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 processing in step S8 in FIG. 5 corresponds to the arrangement possible area setting unit.

以上、特定の実施形態を参照して本発明を説明したが、これら説明によって発明を限定するものではない。本発明の説明を参照することにより、当業者には、開示された実施形態の種々の変形例とともに本発明の別の実施形態も明らかである。従って、特許請求の範囲は、本発明の範囲及び要旨に含まれるこれらの変形例又は実施形態も網羅すると解すべきである。   Although the present invention has been described above with reference to specific embodiments, the present invention is not limited to these descriptions. From the description of the invention, other embodiments of the invention will be apparent to persons skilled in the art, along with various variations of the disclosed embodiments. Therefore, it is to be understood that the claims encompass these modifications and embodiments that fall within the scope and spirit of the present invention.

1 図面作成装置
2 表示装置
3 入力装置
4 制御装置
5 図面データベース
11 基準図面設定部
12 配置可能領域設定部
13 グリッド処理部
14 配置パターン検索処理部
15 出力処理部

DESCRIPTION OF SYMBOLS 1 Drawing creation apparatus 2 Display apparatus 3 Input apparatus 4 Control apparatus 5 Drawing database 11 Reference | standard drawing setting part 12 Arrangeable area setting part 13 Grid processing part 14 Arrangement pattern search processing part 15 Output processing part

Claims (4)

複数の図面を一枚の用紙に対応した一つの印刷領域内に配置する図面作成装置であって、
前記複数の図面それぞれにおいて、前記図面間で同一ピッチの縦及び横のグリッド線を、表示されている情報全てを覆うように重畳させ、
前記グリッド線で区切られるセルのうち前記図面に表示されている情報と重なる全てのセルを含む連続した領域を図面要素とし、前記連続した領域の外枠をなすセルを図面要素の外枠のセルとするグリッド処理部と、
複数の前記図面要素のうちの一の図面要素を基準図面要素として設定する基準図面要素設定部と、
前記複数の図面要素のうちの二つの図面要素を第一の図面要素及び第二の図面要素として初期設定する初期設定部と、
前記第二の図面要素の前記外枠のセルのうち頂点となるセルを頂点セルとして検出する頂点セル検出部と、
前記第二の図面要素に含まれる一の頂点セルを移動セルとし、当該移動セルが前記第一の図面要素の前記外枠のセルに外側から沿うように前記第二の図面要素を移動させながら、前記第二の図面要素が前記第一の図面要素と重ならない領域に配置される配置パターンを検索し、一の頂点セルについて前記配置パターンを検出した後、前記移動セルを他の頂点セルに切り替えて再度前記配置パターンを検索する処理を、前記移動セルとして全ての前記頂点セルが設定されるまで繰り返し行って、前記頂点セル毎に前記配置パターンを検出する配置パターン検出部と、
前記配置パターン検出部で検出した前記頂点セル毎の配置パターンのうち、当該配置パターンで配置された前記第一の図面要素と前記第二の図面要素とを含む図形が内接する矩形の面積が最小となる配置パターンを最小配置パターン候補として検出する最小配置パターン候補検出部と、
前記最小配置パターン候補で配置された前記第一の図面要素と前記第二の図面要素とからなる図形を新たな前記第一の図面要素とし、前記図面要素のうちの、前記第二の図面要素として既に設定された図面要素を除く一の図面要素を新たな前記第二の図面要素として設定する更新処理を、初期設定されなかった全ての前記図面要素が前記第二の図面要素として設定されるまで繰り返し行う図面要素更新部と、
前記第二の図面要素として前記複数の図面要素のうちの最後の図面要素が設定された状態で前記最小配置パターン候補検出部において検出される最小配置パターン候補を、最小配置パターンとする最小配置パターン検出部と、
を備え、
前記基準図面要素が、前記第二の図面要素の一つとして設定されることを特徴とする図面作成装置。
A drawing creation device that arranges a plurality of drawings in one printing area corresponding to one sheet of paper,
In each of the plurality of drawings, vertical and horizontal grid lines having the same pitch between the drawings are superimposed so as to cover all displayed information,
Among the cells separated by the grid lines, a continuous area including all the cells overlapping with the information displayed in the drawing 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 grid processing unit, and
A reference drawing element setting unit that sets one drawing element of the plurality of drawing elements as a reference drawing element;
An initial setting unit that initially sets two drawing elements of the plurality of drawing elements as a first drawing element and a second drawing element;
A vertex cell detection unit for detecting a cell as a vertex among the cells of the outer frame of the second drawing element as a vertex cell;
One vertex cell included in the second drawing element is a moving cell, and the second drawing element is moved so that the moving cell follows the cell of the outer frame of the first drawing element from the outside. The second drawing element is searched for an arrangement pattern arranged in an area that does not overlap the first drawing element, and after detecting the arrangement pattern for one vertex cell, the moving cell is changed to another vertex cell. A process of switching and searching for the arrangement pattern again is repeated until all the vertex cells are set as the moving cell, and an arrangement pattern detection unit that detects the arrangement pattern for each vertex cell;
Of the arrangement patterns for each vertex cell detected by the arrangement pattern detection unit, the area of the rectangle inscribed by the graphic including the first drawing element and the second drawing element arranged in the arrangement pattern is the smallest A minimum arrangement pattern candidate detection unit that detects the arrangement pattern as a minimum arrangement pattern candidate;
A graphic composed of the first drawing element and the second drawing element arranged with the minimum arrangement pattern candidate is set as a new first drawing element, and the second drawing element among the drawing elements. Update processing for setting one drawing element as a new second drawing element, excluding drawing elements that have already been set as , all the drawing elements that were not initially set are set as the second drawing element A drawing element update unit that repeats until
The minimum arrangement pattern in which the minimum arrangement pattern candidate detected by the minimum arrangement pattern candidate detection unit in the state where the last drawing element of the plurality of drawing elements is set as the second drawing element is the minimum arrangement pattern A detection unit;
With
The drawing creating apparatus , wherein the reference drawing element is set as one of the second drawing elements .
前記複数の図面要素の個数をn(nは正の整数)とするとき
前記n個の図面要素の中からn個の図面要素を取り出す順列のパターンを検索パターンとして一つずつ順に設定する検索パターン設定部をさらに備え、
前記初期設定部は、前記検索パターンの順列で一番目の図面要素を前記第一の図面要素とし、二番目の図面要素を前記第二の図面要素として初期設定し、
前記図面要素更新部は、前記検索パターンの二番目の図面要素以降の順列にしたがって前記第二の図面要素更新設定し、
前記最小配置パターン検出部は、前記検索パターン毎の前記最小配置パターン候補のうち、最も面積が小さい最小配置パターン候補を、前記最小配置パターンとすることを特徴とする請求項1に記載の図面作成装置。
When the number of the plurality of drawing elements to be n (n is a positive integer),
A search pattern setting unit for sequentially setting a permutation pattern for extracting n drawing elements from the n drawing elements as a search pattern one by one;
The initial setting unit , the first drawing element in the permutation of the search pattern as the first drawing element, the second drawing element is initially set as the second drawing element,
The drawing elements updating unit, the second drawing elements updated set according the second drawing elements after permutation of the search pattern,
The drawing creation according to claim 1, wherein the minimum arrangement pattern detection unit sets the smallest arrangement pattern candidate having the smallest area among the minimum arrangement pattern candidates for each of the search patterns as the minimum arrangement pattern. apparatus.
前記基準図面要素に対して、その他の非基準図面要素を配置することの可能な配置可能領域を前記非基準図面要素毎に設定する配置可能領域設定部を有し、
前記配置パターン検出部は、前記非基準図面要素が、当該非基準図面要素毎に設定された前記配置可能領域に存在するパターンのみ前記配置パターンとして検出することを特徴とする請求項1又は請求項2に記載の図面作成装置。
A dispositionable area setting unit for setting a dispositionable area where other non-reference drawing elements can be arranged for each of the non-reference drawing elements with respect to the reference drawing element;
The arrangement pattern detection unit, the non-reference drawing element, according to claim 1 or claim and detects as the arrangement pattern only the pattern present in the allocable area that is set for each said non-reference drawing elements The drawing creation apparatus according to 2.
複数の図面を一枚の用紙に対応した一つの印刷領域内に配置する処理をコンピュータに実行させる図面作成プログラムであって、
前記複数の図面それぞれにおいて、前記図面間で同一ピッチの縦及び横のグリッド線を、表示されている情報全てを覆うように重畳させ、前記グリッド線で区切られるセルのうち前記図面に表示されている情報と重なる全てのセルを含む連続した領域を図面要素とし、前記連続した領域の外枠をなすセルを図面要素の外枠のセルとするグリッド処理ステップと、
複数の前記図面要素のうちの一の図面要素を基準図面要素として設定する基準図面要素設定ステップと、
前記複数の図面要素のうち二つの図面要素を第一の図面要素及び第二の図面要素として初期設定する初期設定ステップと、
前記外枠のセルのうち頂点となるセルを頂点セルとして検出する頂点セル検出ステップと、
前記第二の図面要素に含まれる一の頂点セルを移動セルとし、当該移動セルが前記第一の図面要素の前記外枠のセルに外側から沿うように前記第二の図面要素を移動させながら、前記第二の図面要素が前記第一の図面要素と重ならない領域に配置される配置パターンを検索し、一の頂点セルについて前記配置パターンを検出した後、前記移動セルを他の頂点セルに切り替えて再度前記配置パターンを検索する処理を、前記移動セルとして全ての前記頂点セルが設定されるまで繰り返し行って、前記頂点セル毎に前記配置パターンを検出する配置パターン検出ステップと、
前記配置パターン検出ステップで検出した前記頂点セル毎の配置パターンのうち、当該配置パターンで配置された前記第一の図面要素と前記第二の図面要素とを含む図形が内接する矩形の面積が最小となる配置パターンを最小配置パターン候補として検出する最小配置パターン候補検出ステップと、
前記最小配置パターン候補で配置された前記第一の図面要素と前記第二の図面要素とからなる図形を新たな前記第一の図面要素とし、前記図面要素のうちの、前記第二の図面要素として既に設定された図面要素を除く一の図面要素を新たな前記第二の図面要素として設定する更新処理を、初期設定されなかった全ての前記図面要素が前記第二の図面要素として設定されるまで繰り返し行う図面要素更新ステップと、
前記第二の図面要素として前記複数の図面要素のうちの最後の図面要素が設定された状態で前記最小配置パターン候補検出ステップにおいて検出される最小配置パターン候補を、最小配置パターンとする最小配置パターン検出ステップと、
を含み、前記基準図面要素が前記第二の図面要素の一つとして設定される処理をコンピュータに実行させるプログラムを含むことを特徴とする図面作成プログラム。
A drawing creation program for causing a computer to execute a process of arranging a plurality of drawings in one printing area corresponding to one sheet of paper,
In each of the plurality of drawings, vertical and horizontal grid lines having the same pitch between the drawings are overlapped so as to cover all displayed information, and are displayed in the drawings among cells separated by the grid lines. A grid processing step including a continuous area including all cells overlapping with existing information as a drawing element, and a cell forming an outer frame of the continuous area as a cell of an outer frame of the drawing element;
A reference drawing element setting step for setting one of the drawing elements as a reference drawing element;
And initialization step of initializing the two drawing elements first drawing elements and the second drawing element of the plurality of drawing elements,
A vertex cell detection step of detecting a cell 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 second drawing element is moved so that the moving cell follows the cell of the outer frame of the first drawing element from the outside. The second drawing element is searched for an arrangement pattern arranged in an area that does not overlap the first drawing element, and after detecting the arrangement pattern for one vertex cell, the moving cell is changed to another vertex cell. The process of switching and searching the arrangement pattern again is repeated until all the vertex cells are set as the moving cell, and the arrangement pattern detection step of detecting the arrangement pattern for each of the vertex cells;
Of the arrangement patterns for each vertex cell detected in the arrangement pattern detection step, the area of the rectangle inscribed by the graphic including the first drawing element and the second drawing element arranged in the arrangement pattern is the smallest A minimum arrangement pattern candidate detection step for detecting the arrangement pattern to be a minimum arrangement pattern candidate;
A graphic composed of the first drawing element and the second drawing element arranged with the minimum arrangement pattern candidate is set as a new first drawing element, and the second drawing element among the drawing elements. Update processing for setting one drawing element as a new second drawing element, excluding drawing elements that have already been set as , all the drawing elements that were not initially set are set as the second drawing element Drawing element update step that is repeated until
The minimum arrangement pattern in which the minimum arrangement pattern candidate detected in the minimum arrangement pattern candidate detection step with the last drawing element of the plurality of drawing elements set as the second drawing element is the minimum arrangement pattern A detection step;
Only including, drawing generation program the reference drawing element, characterized in that it comprises a program for executing processing is set as one of the second drawing elements on the computer.
JP2015192419A 2015-09-30 2015-09-30 Drawing creation device and drawing creation program Active JP6565552B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015192419A JP6565552B2 (en) 2015-09-30 2015-09-30 Drawing creation device and drawing creation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015192419A JP6565552B2 (en) 2015-09-30 2015-09-30 Drawing creation device and drawing creation program

Publications (2)

Publication Number Publication Date
JP2017068526A JP2017068526A (en) 2017-04-06
JP6565552B2 true JP6565552B2 (en) 2019-08-28

Family

ID=58494801

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015192419A Active JP6565552B2 (en) 2015-09-30 2015-09-30 Drawing creation device and drawing creation program

Country Status (1)

Country Link
JP (1) JP6565552B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002366593A (en) * 2001-06-06 2002-12-20 Fujitsu Ltd Drawing editing device and drawing editing program
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
JP6536247B2 (en) * 2015-07-17 2019-07-03 日本精工株式会社 Drawing creation device and drawing creation program

Also Published As

Publication number Publication date
JP2017068526A (en) 2017-04-06

Similar Documents

Publication Publication Date Title
JP6419421B2 (en) Image display device, image display method, and program
US20180324314A1 (en) Image forming apparatus and control method thereof
CN110929071A (en) Information processing device and storage medium
US9606649B2 (en) Electronic device, information processing apparatus and control method therefor
JP6536247B2 (en) Drawing creation device and drawing creation program
US20160035116A1 (en) Image processing device, image processing method, information storage medium, and program
JP6558219B2 (en) Drawing creation device and drawing creation program
JP6565552B2 (en) Drawing creation device and drawing creation program
US20210076765A1 (en) Pattern Filling in Garment Pieces
JP5287384B2 (en) Image processing method, image processing apparatus, program, and storage medium
JP2009230260A (en) Media creation system
EP1927923A2 (en) Document edit support device, document edit device, program and computer-readable storage medium
JP2017084029A (en) Drawing creation device and drawing creation program
JP2017076247A (en) Drawing creation device and drawing creation program
JP6365694B2 (en) Image forming apparatus
JP6646006B2 (en) Information presentation apparatus, information presentation method, and program
JP4992399B2 (en) Document editing apparatus and program
JP4619851B2 (en) Design support apparatus and design support method
KR20150012921A (en) A method of designing a ship
JP5028980B2 (en) Document editing apparatus and program
JP2012234342A (en) Information input device
JP7363235B2 (en) Information processing device and information processing program
JP5203690B2 (en) Graphic element arrangement apparatus and program
WO2016194940A1 (en) Cutting device and cutting data generating program
US20240242420A1 (en) Information processing apparatus and non-transitory computer readable medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180720

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20180720

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190415

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A132

Effective date: 20190507

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190620

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: 20190702

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190715

R150 Certificate of patent or registration of utility model

Ref document number: 6565552

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150