JPH03105677A - automatic drafting device - Google Patents
automatic drafting deviceInfo
- Publication number
- JPH03105677A JPH03105677A JP1244597A JP24459789A JPH03105677A JP H03105677 A JPH03105677 A JP H03105677A JP 1244597 A JP1244597 A JP 1244597A JP 24459789 A JP24459789 A JP 24459789A JP H03105677 A JPH03105677 A JP H03105677A
- Authority
- JP
- Japan
- Prior art keywords
- dimension
- intersection
- output position
- dimensions
- reference line
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、図形に対して寸法を自動書込みできる自動製
図装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an automatic drafting device that can automatically write dimensions on figures.
従来、自動製図装置であるCADシステムでは、寸法作
或用のコマンドを使用して寸法値を求めるための図形要
素を1回又は2回選択操作し、さらに寸法値を表示する
位置を決める指示を1回行い、合計で2〜3回の操作を
行って閃形に゛1′)の寸法線を書込むようになってい
た。従って図面に対して各種寸法線を書込むにはかなり
の数の操作を行う必要があった。Conventionally, in a CAD system, which is an automatic drafting device, a dimension creation command is used to select a graphical element to obtain dimension values once or twice, and then an instruction is given to determine the position where the dimension value is to be displayed. This was done once, and the operation was repeated two to three times in total to write the dimension line "1'" on the flash shape. Therefore, it was necessary to perform a considerable number of operations to draw various dimension lines on the drawing.
このように従来においては図形に対して寸法線を書込む
にはかなりの数の外部操作が必要となり、寸法書込み作
業が面倒となる問題があった。As described above, in the past, writing dimension lines on a figure required a considerable number of external operations, which posed the problem of making the dimension writing task troublesome.
そこで本発明は、図形に対して基準線を指示するのみで
多数の寸法線を自動作成でき、作業性を向上できる自動
製図装置を提供しようとするものである。SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide an automatic drafting apparatus that can automatically create a large number of dimension lines by simply specifying a reference line for a figure, thereby improving work efficiency.
請求項(1)対応の発明は、寸法を書込むべき図形内の
要素により作られる複数の交点を求める交点算出手段と
、設定された基準線を検索する基準線検索手段と、交点
算出手段で求められた各交点からスタート交点を検索す
るスタート点検索手段と、このスタート点検索手段にて
検索されたスタート交点から各交点を図形に対して一定
の回りとなるように順次ベクトルで結ぶ図形ベクトル化
手段と、交点算出手段で求められた各交点、基準線検索
手段で検索された基準線及びベクトル方向に基づいて図
形に書き込むべき外形寸法の出力位置を決める外形寸法
出力位置決定手段と、この外形寸法出力位置決定手段に
より決められた外形寸法の出力位置の出力位置に外形寸
法を書込む水平垂直寸法書込み手段を設けたものである
。The invention corresponding to claim (1) comprises: an intersection calculation means for finding a plurality of intersections formed by elements in a figure whose dimensions are to be written; a reference line search means for searching for a set reference line; and an intersection calculation means. A start point search means for searching a start intersection from each intersection found, and a figure vector that sequentially connects each intersection from the start intersection found by the start point search means in a constant rotation with respect to the figure. external dimension output position determining means for determining the output position of external dimensions to be written on the figure based on each intersection found by the intersection calculating means, the reference line and vector direction searched by the reference line searching means; Horizontal and vertical dimension writing means are provided for writing external dimensions at the output positions of the external dimensions determined by the external dimension output position determining means.
また請求項(2)対応の発明は、請求項(1)対応の発
明に、さらに図形から円を検索し円寸法の出力位置を決
める円寸法出力位置決定手段と、この円寸法出力位置決
定手段により決められた円寸法の出力位置に円寸法を書
込む円寸法書込み手段を設けたものである。Further, the invention corresponding to claim (2) is the invention corresponding to claim (1), further comprising a circle dimension output position determining means for searching a circle from a figure and determining the output position of the circle dimension, and this circle dimension output position determining means. A circular dimension writing means is provided for writing a circular dimension at a circular dimension output position determined by.
また請求項(3)対応の発明は、請求項{1}対応の発
明に、さらに図形から中心線を検索し中心線寸法の出力
位置を決める中心線寸法出力位置決定手段と、外形寸法
出力位置決定手段により決められた外形寸法の出力位置
及び中心線寸法出力位置決定手段により決められた中心
線寸法の出力位置にそれぞれ外形寸法及び中心線寸法を
書込む水゛平′垂゜直寸法書込み手段を設けたものであ
る。The invention corresponding to claim (3) is the invention corresponding to claim {1}, and further includes a center line dimension output position determining means for searching a center line from a figure and determining an output position of the center line dimension, and an outer dimension output position. Horizontal and vertical dimension writing means for writing external dimensions and center line dimensions at the output position of the outer dimensions determined by the determining means and the output position of the center line dimensions determined by the center line dimension output position determining means, respectively. It has been established.
さらに請求項(4)対応の発明は、請求項(1)対応の
発明に、さらに図形から円を検索し円寸法の出力位置を
決める円寸法出力位置決定手段と、図形から中心線を検
索し中心線寸法の出力位置を決める中心線寸法出力位置
決定手段と、外形寸法出力位置決定手段により決められ
た外形寸法の出力位置及び中心線寸法出力位置決定手段
により決められた中心線寸法の出力位置にそれぞれ外形
寸法及び中心線寸法を書込む水平垂直寸法書込み手段と
、円寸法出力位置決定手段により決められた円寸法の出
力位置に円寸法を書込む円寸法書込み手段を設けたもの
である。Furthermore, the invention corresponding to claim (4) adds to the invention corresponding to claim (1) further a circle dimension output position determining means for searching a circle from a figure and determining the output position of the circle dimension, and a means for searching a center line from the figure. A centerline dimension output position determination means for determining the output position of the centerline dimension, an output position of the outer dimension determined by the outer dimension output position determination means, and an output position of the centerline dimension determined by the centerline dimension output position determination means. horizontal and vertical dimension writing means for writing external dimensions and centerline dimensions, respectively, and circular dimension writing means for writing the circular dimension at the circular dimension output position determined by the circular dimension output position determining means.
請求項(1》対応の発明においては、図形内の要素によ
り蝮数の交点が求められ、かつ図形における基準線が検
索される。さらに複数の交点からスタート交点が検索さ
れる。そして検索されたスタート交点から各交点を図形
に対して一定の回りとなるように順次ベクトルで結ぶ。In the invention corresponding to claim (1), the intersection point of the number of vipers is obtained from the elements in the figure, and the reference line in the figure is searched.Furthermore, the start intersection point is searched from a plurality of intersection points. Starting from the starting intersection, each intersection is sequentially connected by vectors in a constant rotation around the figure.
その後各交点、基準線及びベクトル方向に基づいて図形
に書き込むべき外形寸法の出力位置を決める。Thereafter, the output position of the external dimensions to be written on the figure is determined based on each intersection, the reference line, and the vector direction.
こうして外形寸法の出力位置が決められるとその位置に
外形寸法を図形に対して水平及び垂直方向にして書き込
む。Once the output position of the external dimensions is determined in this way, the external dimensions are written at that position in horizontal and vertical directions with respect to the figure.
請求項(2)対応の発明においては、図形から円を検索
して円寸法の出力位置を決める。そしてその出力位置に
円寸法を書き込む。In the invention corresponding to claim (2), a circle is searched from the figure and the output position of the circle dimension is determined. Then, write the circular dimension at that output position.
請求項{3}対応の発明は、図形から中心線を検索し中
心線寸法の出力位置を決める。そしてその位置に中心線
寸法を書き込む。The invention corresponding to claim {3} searches for a centerline from a figure and determines the output position of the centerline dimension. Then write the centerline dimension at that position.
請求項(4)対応の発明は、外形寸法、円寸法及び中心
線寸法をそれぞれの位置に書き込む。The invention corresponding to claim (4) writes the external dimensions, circular dimensions, and centerline dimensions at respective positions.
以下、本発明の実施例を図面を参照して説明する。 Embodiments of the present invention will be described below with reference to the drawings.
第1図は自動製図装置のブロック図で、1は制御部本体
を構成するマイクロプロセッサ、2はメモリ部、3はチ
ャネル装置である。前記マイクロプロセッサ1とメモリ
部2及びチャネル装゛置゛3とはバスライン4によって
電気的に接続されている。FIG. 1 is a block diagram of an automatic drafting apparatus, in which 1 is a microprocessor constituting the main body of a control section, 2 is a memory section, and 3 is a channel device. The microprocessor 1, memory section 2 and channel device 3 are electrically connected by a bus line 4.
前記チャネル装置3には磁気ディスク装置5、磁気テー
プ装置6及びグラフィックシステム7がそれぞれ接続さ
れている。A magnetic disk device 5, a magnetic tape device 6, and a graphic system 7 are connected to the channel device 3, respectively.
前記磁気ディスク装置5及び磁気テープ装置6には各種
の図形データが格納されている。前記グラフィックシス
テム7は図形データの作或及び変更専を行うもので、グ
ラフィック処理装置8を設け、この処理装置8に表示装
置9、タブレット装置10、カーソル装ii!11、キ
ーボード装置12等を接続している。Various types of graphic data are stored in the magnetic disk device 5 and magnetic tape device 6. The graphic system 7 is dedicated to creating and changing graphic data, and is equipped with a graphic processing device 8, which is equipped with a display device 9, a tablet device 10, a cursor device ii! 11, a keyboard device 12, etc. are connected.
前記マイクロプロセッサ1は第2図に示す自動寸法作成
処理を行うようにプログラム設定されている。The microprocessor 1 is programmed to carry out the automatic dimension creation process shown in FIG.
すなわちステップS1で初期処理を行いメモリ部2等の
各部を自動寸法作成処理に待機させる。That is, initial processing is performed in step S1, and each section such as the memory section 2 is placed on standby for automatic dimension creation processing.
続いてステップS2で図形読込み処理を行う。Subsequently, in step S2, figure reading processing is performed.
この処理はチャネル装置3を制御し前記磁気ディスク装
ii!5や磁気テープ装置6から図形をメモリ部2に読
込む。This process controls the channel device 3 and the magnetic disk device ii! 5 or a magnetic tape device 6 into the memory section 2.
続いてステップS3で寸法書込み処理の指定を行う。こ
の処理ではメモリ部2に読込んだ図形に寸法を書き込む
指定を行う。Subsequently, in step S3, dimension writing processing is specified. In this process, a designation is made to write dimensions into the figure read into the memory section 2.
続いて変更するVIEW、すなわち寸法を書き込むべき
部品図があるか否かをチェックし有ればステップS4で
V I EW変更処理を行う。Next, it is checked whether or not there is a view to be changed, that is, a part diagram in which dimensions should be written, and if there is, a view change process is performed in step S4.
この処理は寸法を書き込むべき部品図を別のメモリに格
納する。例えば第3図に示す部品図を別のメモリに格納
する。This process stores the part drawing whose dimensions are to be written in another memory. For example, the parts diagram shown in FIG. 3 is stored in another memory.
続いてステップS,で寸法線間隔決定処理を行う。Subsequently, in step S, dimension line interval determination processing is performed.
この処理は部品図のスケールを読取り1/スケルにより
寸法間倍率を求め、さらに寸法線間隔を求める。This process reads the scale of the parts drawing, calculates the magnification between dimensions using 1/scale, and then calculates the dimension line spacing.
続いてステップS6で円結合処理を行う。Subsequently, in step S6, a circular connection process is performed.
この処理は寸法を書き込むべき部品図上のすべての円デ
ータを検索し、中心点座標、半径、円周角の開始角度、
終了角度を出力する。またすべての円情報を比較し中心
点座標と半径の同じものがあった場合には、a)中心点
座標及び半径はそのまま、b)開始角度と終了角度のう
ち等しいものがあった場合は等しくない角度のものを新
たな開始角度及び終了角度として出力する、として新た
な円情報を作り元の円情報は消去する。すなわちこの場
合には複数の円情報を1つにまとめることになる。This process searches all the circle data on the part drawing for which dimensions should be written, and calculates the center point coordinates, radius, starting angle of the circumference angle,
Output the end angle. Also, when comparing all circle information, if there is one with the same center point coordinates and radius, a) the center point coordinates and radius remain the same, b) if there are equal starting angles and ending angles, they are the same. New circle information is created by outputting angles that do not exist as new starting and ending angles, and the original circle information is deleted. That is, in this case, multiple pieces of yen information are combined into one.
続いてステップS7で交点算出処理を行う。Subsequently, in step S7, intersection calculation processing is performed.
(交点算出手段)
この処理は図形のすべての交点を求める。すなわち部品
図の直線と゛円から交点胤と座標値を求める。これによ
り第4図に示すように×印で示すような交点座標が求め
られることになる。(Intersection Point Calculation Means) This process calculates all the intersection points of the figure. In other words, the intersection point and coordinate values are found from the straight line and circle in the parts diagram. As a result, as shown in FIG. 4, the coordinates of the intersection points as indicated by the x marks are determined.
続いてステップS8で基準線検索処理を行う。Subsequently, in step S8, a reference line search process is performed.
(基準線検索手段)
これは例えば外部指定操作により属性の付いている要素
を検索し基準を求める。例えば第4図のAライン及びB
ラインを基準線として検索する。(Reference Line Search Means) This searches for elements with attributes by, for example, an external specification operation to obtain a reference. For example, line A and B in Figure 4
Search a line as a reference line.
続いてステップS,でスタート交点検索処理を行う。(
スタート点検索手段)
この処理は各交点のうち寸法を入れるときにどの交点か
ら始めるかを決める。例えばX座標が最小でY座標が最
小のものにする。Subsequently, in step S, a start intersection search process is performed. (
Starting point search means) This process determines which intersection point to start from when entering dimensions among each intersection point. For example, the X coordinate is the minimum and the Y coordinate is the minimum.
続いてステップSsoで図形ベクトル化処理を行う。(
図形ベクトル化手段)
この処理は各交点を以下の条件となるようにベクトルで
結ぶ。Subsequently, in step Sso, graphic vectorization processing is performed. (
Figure vectorization means) This process connects each intersection with a vector so that the following conditions are met.
a)ベクトルは点と点とを結ぶ要素がある場合に発生さ
せる。a) A vector is generated when there is an element connecting points.
b)閉ループになるように点と点を結ぶ。b) Connect the points to form a closed loop.
C)閉ループは交点の最大値と最小値を必ず通る。C) A closed loop always passes through the maximum and minimum values of the intersection points.
d)ベクトルの向きは時計回り、反時計回りのどちらか
の一定方向とする。d) The direction of the vector is either clockwise or counterclockwise.
こうして例えば第5図に示すように反時計回りに各交点
をベクトルで結ぶ。In this way, for example, as shown in FIG. 5, each intersection point is connected by a vector in a counterclockwise direction.
続いてステップS 11で外形寸法出力位置決定処理を
行う。(外形寸法出力位置決定手段)この処理は各交点
、基準線及びベクトル方向に基づいて外形寸法の出力位
置を決める。そして寸法が図形とできるだけ重ならない
ようにす゛る゛た”め図形の外側に書くようにする。こ
のために求めたベクトルにより図形の外側を求める。ベ
クトルが時計回りであればベクトルの左側が外側となり
、またベクトルが反時計回りであればベクトルの右側が
外側となる。例えば第5図の場合は反時計回りであるの
でベクトルの右側に外形寸法を書くことになる。Subsequently, in step S11, external dimension output position determination processing is performed. (External Dimension Output Position Determining Means) This process determines the output position of the external dimension based on each intersection, reference line, and vector direction. Then, to prevent the dimensions from overlapping the shape as much as possible, write it on the outside of the shape.For this purpose, use the obtained vector to find the outside of the shape.If the vector is clockwise, the left side of the vector is the outside. Also, if the vector is counterclockwise, the right side of the vector will be the outside.For example, in the case of FIG. 5, since the vector is counterclockwise, the external dimensions will be written on the right side of the vector.
またすべての交点のうちX座標が最小でY座標が最小、
X座標が最大でY座標が最小、X座標が最大でY座標が
最大、X座標が最小でY座標が最大の4つの点を反時計
回りとなるベクトルで結び、このベクトルで囲まれる四
角形の内側には寸法を書き込まないようにする。Also, among all the intersection points, the X coordinate is the smallest, the Y coordinate is the smallest,
Connect the four points with the maximum X coordinate and the minimum Y coordinate, the maximum X coordinate and the maximum Y coordinate, the minimum X coordinate and the maximum Y coordinate with a counterclockwise vector, and create a rectangle surrounded by this vector. Do not write dimensions on the inside.
また寸法位置はまずX座標が最小でY座標が最小の交点
を選び、その交点よりベクトルに沿ってそれぞれ交点を
検索し、各交点に対して基準線との間に寸法を発生させ
る。寸法表示位置は図形の上か下かの2通りあるが、X
座標値が最大になるまでは下側に、それ以降は上側に寸
法データとして格納する。そして格納された寸法データ
は寸法値で昇順で並び換えし書込み時には図形に近い方
から寸法を出力させるようにしている。以上はX方向の
寸法についてであるがY方向の寸法についても図形の右
か左かの違いはあっても同様の方法で寸法データの位置
を決定している。As for the dimension position, first select the intersection point with the minimum X coordinate and the minimum Y coordinate, search for each intersection point along the vector from the intersection point, and generate a dimension between each intersection point and the reference line. There are two dimensions display positions: above or below the figure, but
It is stored as dimension data at the bottom until the coordinate value reaches the maximum, and thereafter at the top. The stored dimension data is sorted in ascending order by dimension value, and when writing, the dimensions are output from the side closest to the figure. The above is about the dimension in the X direction, but the position of the dimension data is determined in the same way even if the dimension in the Y direction is on the right or left side of the figure.
続いてステップS12で中心線寸法出力位置決定処理を
行う。(中心線寸法出力位置決定手段)この処理は図形
から水平及び垂直方向の1点鎖線のすべてを検索し、中
心線データを読込み両端点を求める。このとき中心線は
水平、垂直のものだけとする。Subsequently, in step S12, centerline dimension output position determination processing is performed. (Centerline dimension output position determining means) This process searches for all horizontal and vertical one-dot chain lines from the figure, reads the centerline data, and finds both end points. At this time, the center lines are only horizontal and vertical.
条件により寸法の記入位置を決め、寸法値、基準アドレ
ス、要素アドレスを出力する。例えば条件としてはX座
標の最大XMAx及び最小XM.,に対して中心線の両
端点の座標P 1 + P 2(但し、P1〉P2)
がPl≧X MAX及びP2≦X MINであれば寸法
は下部に、またptaxMAx及びP2>XMINであ
れば寸法は上部に、またP,<X.Ax及びP2≦XM
INであれば寸法は下部に、さらにPi<XMAX及び
P 2 > X M+sであれば寸法は、IPI −X
MAX l>lP2 一XMIN lのときは下部、l
Pt −XMAX l< IP2 XMIN l
のときは上部、IPI−XMAX””IP2 XMI
N+のときは下部に書込むようになっている。Determine the position to write the dimension according to the conditions and output the dimension value, reference address, and element address. For example, the conditions are maximum XMAXx and minimum XM. , the coordinates of both end points of the center line P 1 + P 2 (however, P1>P2)
If Pl≧X MAX and P2≦X MIN, then the dimension is at the bottom; if ptaxMAX and P2>XMIN, the dimension is at the top; Ax and P2≦XM
If it is IN, the dimensions are at the bottom, and if Pi<XMAX and P 2 > X M+s, the dimensions are IPI -X
MAX l>lP2 -XMIN When l, lower part, l
Pt −XMAX l< IP2 XMIN l
, upper part, IPI-XMAX””IP2 XMI
When it is N+, it is written at the bottom.
続いてステップS 13で水平垂直寸法書込み処理を行
う。(水平垂直寸法書込み手段)
この処理は外形寸法を求められた外形寸法出力位置に基
づいて第6図に示すように水平方向及び垂直方向に外形
寸法を書き込む。そしてこの場合の寸法距離はすべて基
準線と各交点との距離になる。Subsequently, in step S13, horizontal and vertical dimension writing processing is performed. (Horizontal/Vertical Dimension Writing Means) This process writes the external dimensions in the horizontal and vertical directions as shown in FIG. 6 based on the external dimension output position from which the external dimensions have been determined. All dimensional distances in this case are the distances between the reference line and each intersection.
またこの処理は中心線寸法を求められた中心線寸法出力
位置に基づいて第7図に示すように水平方向及び垂直方
向に外形寸法を書き込む。This process also writes external dimensions in the horizontal and vertical directions as shown in FIG. 7 based on the centerline dimension output position from which the centerline dimension has been determined.
従ってこの処理で書込まれる寸法は第6図と第7図を合
わせた内容となる。Therefore, the dimensions written in this process are the combination of FIGS. 6 and 7.
続いてステップS 14で円寸法出力位置決定処理を行
う。(円寸法出力位置決定手段)
この処理はすべての円を検索し円のアドレス、両端点の
座標値、半径、円周角を出力する。同一座標となる端点
座標がある場合には半径を比較しそれも同じ場合は2つ
のデータを1つにする。そして1つにする方法としては
円周角の大きい方の円のアドレスを新たな円のアドレス
とし、同一とならない2つの座標値を新たな端点座標と
し、半径はそのままとし、2つの円の円周角の合計を新
たな円周角とする。Subsequently, in step S14, circular dimension output position determination processing is performed. (Circle dimension output position determination means) This process searches for all circles and outputs the address of the circle, the coordinate values of both end points, the radius, and the circumferential angle. If there are end point coordinates that are the same, the radii are compared, and if they are the same, the two data are combined into one. Then, to combine the two circles into one, set the address of the circle with the larger circumference angle as the address of the new circle, set the two coordinate values that are not the same as the new end point coordinates, leave the radius as it is, and combine the two circles. Let the sum of circumferential angles be the new circumferential angle.
また書込む寸法が直径か半径かを判断する。これは0゜
く円周角5180’であれば半径寸法を書込み、また1
80@<円周角≦360゜であれば直径寸法を書込む決
定を行う。Also, determine whether the dimension to be written is a diameter or a radius. If this is 0° and the circumference angle is 5180', write the radius dimension, and 1
If 80@<circumferential angle≦360°, a decision is made to write the diameter dimension.
続いてステップS 15で円寸法書込み処理・を行う。Subsequently, in step S15, a circular dimension writing process is performed.
(円寸法書込み手段)
この処理は円寸法出力位置決定処理で求められた各種の
円寸法を図形に書込む。すなわち第8図に示すように円
寸法を書込むことになる。(Circle dimension writing means) This process writes various circular dimensions obtained in the circular dimension output position determining process into the figure. That is, the circular dimensions are written as shown in FIG.
従ってこの円寸法の書込みが終了すると図形には第9図
に示すように外形寸法、中心線寸法及び円寸法がそれぞ
れ書込まれることになる。Therefore, when writing of this circular dimension is completed, the external dimension, center line dimension, and circular dimension are respectively written on the figure as shown in FIG.
こうして寸法の書込みがすべて終了すると続いて同一寸
法値のものがあるか否かをチェックし、もしあればステ
ップS 16で寸法着色処理を行う。When all the dimensions have been written in this way, it is then checked whether there are any dimensions having the same value, and if so, dimension coloring processing is performed in step S16.
この処理は同一寸法値のものを着色アドレスに格納しす
べてに赤色を着ける。This process stores items with the same size value in the colored address and colors them all red.
続いてステップS 17でモデル書込み処理を行う。Subsequently, in step S17, model writing processing is performed.
この処理はメモリ部2に記憶されている寸法の書込み処
理を終了した図形データをチャネル装置3を介して磁気
ディスク装置5又は磁気テープ装置6に記憶させる。In this process, the graphic data whose dimensions have been written and which are stored in the memory section 2 are stored in the magnetic disk device 5 or the magnetic tape device 6 via the channel device 3.
そして最後にステップS 18にて終了処理を行う。Finally, in step S18, termination processing is performed.
この処理は例えば最大座標値及び最小座標値を磁気ディ
スク装置5又は磁気テープ装置6西に形成された中間フ
ァイルに格納させる。In this process, for example, the maximum coordinate value and the minimum coordinate value are stored in an intermediate file formed on the west side of the magnetic disk device 5 or magnetic tape device 6.
このような構成の本実施例においては、最初に磁気ディ
スク装置5又は磁気テープ装置6に記憶されている寸法
の記載されていない部品図を読出してメモリ部2に格納
させる。そして寸法書込み処理を指定することにより、
寸法線間隔決定処理にて寸法線間隔が決められ、また円
結合処理にて円の結合処理が行われる。そして図形の各
交点が算出される。In this embodiment having such a configuration, first, a part diagram with no dimensions recorded stored in the magnetic disk device 5 or magnetic tape device 6 is read out and stored in the memory section 2. Then, by specifying the dimension writing process,
The dimension line spacing is determined in the dimension line spacing determination process, and the circles are joined in the circle joining process. Then, each intersection of the figures is calculated.
この状態で基準線を外部指定することにより基準線の検
索が行われ、さらにスタート交点の検索が行われる。In this state, by specifying the reference line externally, a search for the reference line is performed, and further a search for the start intersection is performed.
そして寸法線を書込む図形の各交点をベクトルで結合し
、外形寸法出力位置の決定処理が行われる。このときの
出力位置決定は基準線、各交点、ベクトル方向によって
決められる。Then, each intersection point of the figure on which the dimension line is written is connected by a vector, and the external dimension output position is determined. The output position at this time is determined by the reference line, each intersection, and the vector direction.
続いて図形に対する外形寸法位置が決められると続いて
中心線寸法の出力位置の決定処理が行われる。Subsequently, after the external dimensions and positions for the figure are determined, a process for determining the output position of the centerline dimensions is subsequently performed.
こうして図形に対する外形寸法の出力位置及び中心線寸
法の出力位置が決定されると、寸法の書込みが行われる
。これにより図形に対して第6図に示すような外形寸法
の書込みと第7図に示すような中心線寸法の書込みが行
われる。Once the output position of the external dimensions and the output position of the centerline dimension for the figure are determined in this way, the dimensions are written. As a result, external dimensions as shown in FIG. 6 and center line dimensions as shown in FIG. 7 are written for the figure.
続いて図形に対する円寸法の出力位置の決定処理が行わ
れる。そして第8図に示すような円寸法の書込みが行わ
れる。Subsequently, a process for determining the output position of the circular dimension with respect to the figure is performed. Then, writing of circular dimensions as shown in FIG. 8 is performed.
こうして部品図図形に対して最終的には第9図に示すよ
うに寸法の書込みが為されることになる。In this way, dimensions are finally written on the parts diagram figure as shown in FIG.
このように各種寸法の書込みが基準線を指定する簡単な
操作を行うのみで後は自動的に行われるので作業が極め
て簡単となり作業の負担の軽減化が図れる。しかも短時
間で寸法の書込みができる。In this way, various dimensions can be written by simply specifying a reference line, and the rest is done automatically, making the work extremely simple and reducing the burden of work. Moreover, dimensions can be written in a short time.
従って作業性を向上できる。Therefore, work efficiency can be improved.
また誰が寸法の書込み処理を行っても常に同一の寸法書
込みができ規格化された見易い寸法作成ができる。Furthermore, no matter who writes the dimensions, the same dimensions can always be written, and standardized and easily visible dimensions can be created.
また同一寸法のものがある場合には赤色で着色できるの
で同一寸法の見分けが極めて簡単となる。Furthermore, if there are items of the same size, they can be colored red, making it extremely easy to distinguish between items of the same size.
以上詳述したように本発明によれば、図形に対して基準
線を指示するのみで、多数の寸法線を自動作戊でき、作
業性を向上できる自動製図装置を提供できるものである
。As described in detail above, according to the present invention, it is possible to provide an automatic drafting apparatus that can automatically draw a large number of dimension lines by simply specifying a reference line for a figure, thereby improving work efficiency.
【図面の簡単な説明】
図は本発明の実施例を示すもので、第1図はブロック図
、第2図は自動寸法作成処理を示す流れ図、第3図乃至
第9図は寸法作成の過程を説明するための図である。
1・・・マイクロプロセッサ、2・・・メモリ部、7・
・・グラフィックシステム、8・・・グラフィック処理
装置。[Brief Description of the Drawings] The figures show an embodiment of the present invention, in which Fig. 1 is a block diagram, Fig. 2 is a flowchart showing automatic dimension creation processing, and Figs. 3 to 9 are dimension creation processes. FIG. 1...Microprocessor, 2...Memory section, 7.
...Graphic system, 8...Graphic processing device.
Claims (4)
複数の交点を求める交点算出手段と、設定された基準線
を検索する基準線検索手段と、前記交点算出手段で求め
られた各交点からスタート交点を検索するスタート点検
索手段と、このスタート点検索手段にて検索されたスタ
ート交点から各交点を図形に対して一定の回りとなるよ
うに順次ベクトルで結ぶ図形ベクトル化手段と、前記交
点算出手段で求められた各交点、前記基準線検索手段で
検索された基準線及びベクトル方向に基づいて図形に書
き込むべき外形寸法の出力位置を決める外形寸法出力位
置決定手段と、この外形寸法出力位置決定手段により決
められた外形寸法の出力位置に外形寸法を書込む水平垂
直寸法書込み手段を設けたことを特徴とする自動製図装
置。(1) Intersection calculation means for finding multiple intersections made by elements in the figure whose dimensions are to be written, reference line search means for searching for a set reference line, and starting from each intersection found by the intersection calculation means. a start point search means for searching for an intersection; a figure vectorization means for sequentially connecting each intersection with a vector from the start intersection searched by the start point search means so as to make a constant rotation with respect to the figure; and a figure vectorization means for calculating the intersection point. external dimension output position determining means for determining an output position of an external dimension to be written on a figure based on each intersection found by the reference line searching means, the reference line and vector direction searched by the reference line searching means; and this external dimension output position determining means. 1. An automatic drafting device characterized by being provided with horizontal and vertical dimension writing means for writing external dimensions at the output position of the external dimensions determined by the means.
複数の交点を求める交点算出手段と、設定された基準線
を検索する基準線検索手段と、前記交点算出手段で求め
られた各交点からスタート交点を検索するスタート点検
索手段と、このスタート点検索手段にて検索されたスタ
ート交点から各交点を図形に対して一定の回りとなるよ
うに順次ベクトルで結ぶ図形ベクトル化手段と、前記交
点算出手段で求められた各交点、前記基準線検索手段で
検索された基準線及びベクトル方向に基づいて図形に書
き込むべき外形寸法の出力位置を決める外形寸法出力位
置決定手段と、この外形寸法出力位置決定手段により決
められた外形寸法の出力位置に外形寸法を書込む水平垂
直寸法書込み手段と、図形から円を検索し円寸法の出力
位置を決める円寸法出力位置決定手段と、この円寸法出
力位置決定手段により決められた円寸法の出力位置に円
寸法を書込む円寸法書込み手段を設けたことを特徴とす
る自動製図装置。(2) Intersection calculation means for finding multiple intersections made by elements in the figure whose dimensions are to be written, reference line search means for searching for a set reference line, and starting from each intersection found by the intersection calculation means. a start point search means for searching for an intersection; a figure vectorization means for sequentially connecting each intersection with a vector from the start intersection searched by the start point search means so as to make a constant rotation with respect to the figure; and a figure vectorization means for calculating the intersection point. external dimension output position determining means for determining an output position of an external dimension to be written on a figure based on each intersection found by the reference line searching means, the reference line and vector direction searched by the reference line searching means; and this external dimension output position determining means. horizontal and vertical dimension writing means for writing external dimensions at the output position of the external dimensions determined by the means; circle dimension output position determining means for searching for a circle from a figure and determining the output position of the circular dimension; and determining the circular dimension output position. 1. An automatic drafting device comprising a circle dimension writing means for writing a circle dimension at an output position of the circle dimension determined by the means.
複数の交点を求める交点算出手段と、設定された基準線
を検索する基準線検索手段と、前記交点算出手段で求め
られた各交点からスタート交点を検索するスタート点検
索手段と、このスタート点検索手段にて検索されたスタ
ート交点から各交点を図形に対して一定の回りとなるよ
うに順次ベクトルで結ぶ図形ベクトル化手段と、前記交
点算出手段で求められた各交点、前記基準線検索手段で
検索された基準線及びベクトル方向に基づいて図形に書
き込むべき外形寸法の出力位置を決める外形寸法位置決
定手段と、図形から中心線を検索し中心線寸法の出力位
置を決める中心線寸法出力位置決定手段と、前記外形寸
法出力位置決定手段により決められた外形寸法の出力位
置及び前記中心線寸法出力位置決定手段により決められ
た中心線寸法の出力位置にそれぞれ外形寸法及び中心線
寸法を書込む水平垂直寸法書込み手段を設けたことを特
徴とする自動製図装置。(3) Intersection point calculation means for finding multiple intersections made by elements in the figure whose dimensions are to be written, reference line search means for searching for a set reference line, and starting from each intersection found by the intersection point calculation means. a start point search means for searching for an intersection; a figure vectorization means for sequentially connecting each intersection with a vector from the start intersection searched by the start point search means so as to make a constant rotation with respect to the figure; and a figure vectorization means for calculating the intersection point. external dimension position determining means for determining the output position of external dimensions to be written on the figure based on each intersection obtained by the means, the reference line and vector direction searched by the reference line searching means; a centerline dimension output position determining means for determining the output position of the centerline dimension; an output position of the outer dimension determined by the outer dimension output position determining means; and a centerline dimension output position determined by the centerline dimension output position determining means. An automatic drafting device characterized in that it is provided with horizontal and vertical dimension writing means for writing external dimensions and centerline dimensions at output positions, respectively.
複数の交点を求める交点算出手段と、設定された基準線
を検索する基準線検索手段と、前記交点算出手段で求め
られた各交点からスタート交点を検索するスタート点検
索手段と、このスタート点検索手段にて検索されたスタ
ート交点から各交点を図形に対して一定の回りとなるよ
うに順次ベクトルで結ぶ図形ベクトル化手段と、前記交
点算出手段で求められた各交点、前記基準線検索手段で
検索された基準線及びベクトル方向に基づいて図形に書
き込むべき外形寸法の出力位置を決める外形寸法出力位
置決定手段と、図形から円を検索し円寸法の出力位置を
決める円寸法出力位置決定手段と、図形から中心線を検
索し中心線寸法の出力位置を決める中心線寸法出力位置
決定手段と、前記外形寸法出力位置決定手段により決め
られた外形寸法の出力位置及び前記中心線寸法出力位置
決定手段により決められた中心線寸法の出力位置にそれ
ぞれ外形寸法及び中心線寸法を書込む水平垂直書込み手
段と、前記円寸法出力位置決定手段により決められた円
寸法の出力位置に円寸法を書込む円寸法書込み手段を設
けたことを特徴とする自動製図装置。(4) Intersection calculation means for finding multiple intersections made by elements in the figure whose dimensions are to be written, reference line search means for searching for a set reference line, and starting from each intersection found by the intersection calculation means. a start point search means for searching for an intersection; a figure vectorization means for sequentially connecting each intersection with a vector from the start intersection searched by the start point search means so as to make a constant rotation with respect to the figure; and a figure vectorization means for calculating the intersection point. external dimension output position determining means for determining the output position of external dimensions to be written on the figure based on each intersection obtained by the means, the reference line and vector direction searched by the reference line searching means; A circle dimension output position determining means for determining the output position of the circular dimension, a center line dimension output position determining means for searching for a center line from the figure and determining the output position of the center line dimension, and a position determined by the external dimension output position determining means. horizontal and vertical writing means for writing external dimensions and center line dimensions at output positions of the outer dimensions and center line dimensions determined by the output position of the outer dimensions and the center line dimension output position determining means, respectively; 1. An automatic drafting device comprising a circle dimension writing means for writing a circle dimension at an output position of the circle dimension.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1244597A JPH03105677A (en) | 1989-09-20 | 1989-09-20 | automatic drafting device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1244597A JPH03105677A (en) | 1989-09-20 | 1989-09-20 | automatic drafting device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03105677A true JPH03105677A (en) | 1991-05-02 |
Family
ID=17121092
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1244597A Pending JPH03105677A (en) | 1989-09-20 | 1989-09-20 | automatic drafting device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03105677A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0675620A (en) * | 1992-07-21 | 1994-03-18 | Internatl Business Mach Corp <Ibm> | Method and apparatus for graphic inspection |
| JP2012018517A (en) * | 2010-07-07 | 2012-01-26 | Nsk Ltd | Drawing creation support device |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6385870A (en) * | 1986-09-29 | 1988-04-16 | Hitachi Seiki Co Ltd | Automatic drawing device for displaying dimension of parts drawing |
| JPS63147266A (en) * | 1986-12-11 | 1988-06-20 | Fujitsu Ltd | Automatic production system for detailed chart |
-
1989
- 1989-09-20 JP JP1244597A patent/JPH03105677A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6385870A (en) * | 1986-09-29 | 1988-04-16 | Hitachi Seiki Co Ltd | Automatic drawing device for displaying dimension of parts drawing |
| JPS63147266A (en) * | 1986-12-11 | 1988-06-20 | Fujitsu Ltd | Automatic production system for detailed chart |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0675620A (en) * | 1992-07-21 | 1994-03-18 | Internatl Business Mach Corp <Ibm> | Method and apparatus for graphic inspection |
| JP2012018517A (en) * | 2010-07-07 | 2012-01-26 | Nsk Ltd | Drawing creation support device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6246417B1 (en) | Map editing apparatus enabling simplified editing through provision of user-selectable automatic editing functions | |
| EP0306989A2 (en) | 3D dimensioning in computer aided drafting | |
| JP2618145B2 (en) | Figure creation method and creation apparatus using figure icons | |
| US5821941A (en) | Geometric constraints between related elements in different 2-dimensional views | |
| JPH0962850A (en) | Axial symmetry graphic shaping device and method for generating axial symmetry graphic for entirety of arbitrary number of symmetry axes | |
| US5784063A (en) | Geometric constraint condition displaying apparatus | |
| JPH0765057A (en) | Dimensional line writing system | |
| JP2801208B2 (en) | Method of storing a topological mathematical network in a memory, and method and device for finding 2-cells in the network | |
| JP3305395B2 (en) | Figure division device | |
| US5469537A (en) | Method of tracing a drawing and apparatus for embodying the method | |
| JPS61131171A (en) | Graphic element selecting device | |
| JP3332502B2 (en) | Offset figure creation method and apparatus | |
| JPH06282619A (en) | Graphic drawing device | |
| JP2747997B2 (en) | Embroidery data creation device | |
| JP2815269B2 (en) | CAD system with dimension line editing function | |
| JPS6334668A (en) | Automatic layout design support device | |
| JPH07109627B2 (en) | Closed area automatic recognition device | |
| JP2575636B2 (en) | Graphic display device | |
| JPS61265521A (en) | Apparatus for automatically measuring shape of figure | |
| JP2519782B2 (en) | Character separation method | |
| JPS6391778A (en) | Input system for appearance model of diagram | |
| JPH02110777A (en) | Graphic selecting system | |
| JPH04348479A (en) | Method and device for modelling shape | |
| JPH02100766A (en) | diagram editing device | |
| JPH03225563A (en) | Graphic selecting system |