2010年10月31日日曜日

テキストを自由自在にします。(4)


http://www.ted-cad.co.jp/
テキストを自由自在にします。(4)q091130
文字「自由自在」のアスペクト値や文字高さやフォントを自由自在に扱えます。
《学生の方に、[Grain CAD System]と[QuickLeaf]の製品版を無償で提供いたします!》

イメージをテキスト形式にすると次のようになります。(参考)
 /Layer "自由自在"
  .PenColor  2 Red
  .PenColor  3 Blue
  .PenColor  4 Green
  .PenColor  5 DCyan
  .PenColor  6 DYellow
  .Pen  2  0.3000 Round
  .Text   17.8823   7.3796 3.0000  15.0000
      "自由自在"
  .Pen  3  0.0000 Round
  .TextAspectGap  0.12  0.00
  .Text    6.6197  17.6011 20.3549   0.0000
      "自由自在"
  .Pen  4  0.0000 Round
  .TextAspectGap  0.34  0.00
  .Text   30.4269  23.9343 13.7396   0.0000
      "自由自在"
  .Pen  6  0.0000 Round
  .TextAspectGap  0.05  0.00
  .Text    2.6803  -3.6411 24.7871   0.0000
      "自由自在"
  .Pen  5  0.0000 Round
  .TextAspectGap  0.10  0.00
  .Text   35.2564  -4.3127 33.6342   0.0000
      "自由自在"
 /End

フォーマットは次の通りです。
「ペン色指定」
 .PenColor pen_number color_name
  pen_number ペン番号(1~1024)
  color_name 色名称
「ペン指定」
 .Pen pen_number pen_size shape
  pen_number ペン番号(1~1024)
  pen_size  ペンサイズ
  shape   Round または Square
 .TextAspectGap aspect gap
  aspect アスペクト比(文字高さに対する文字幅 の比)
  gap   間隔比   (文字高さに対する文字間隔の比)
.TextAspectGap Default
   アスペクト比と間隔比を実行時のディフォルト
「図形 文字列」
 .Text x y height angle
  string
    x、y  文字列の開始位置
    height 文字高さ
    angle 角度(単位=度)
    string .Text 文字列を指定
「終了」
 /End
  コマンドで終了 このコマンド以降のデータすべて無視

2010年10月8日金曜日

基本はライブラリです。(4)


http://www.ted-cad.co.jp/
基本はライブラリです。(4)g091127
直径0.0003mmのスポットを一辺が0.0990mmの正方形に、横100個、縦100個並べました。スポットの総数は10,000個で、全てのスポット各々にネットデータや座標データ、名称データ等を付帯できます。
《学生の方に、[Grain CAD System]と[QuickLeaf]の製品版を無償で提供いたします!》

イメージをテキスト形式にすると次のようになります。(参考)
 /Module_def
  //Module 10000Pin Smd 2.54 "" "" "" "" ""
  ///Outline
   .Poly P1 -0.0495 0.0605 P1 -0.0595 0.0505 P1 -0.0595 -0.0495
      P1 -0.0495 -0.0595 P1 0.0505 -0.0595 P1 0.0605 -0.0495
      P1 0.0605 0.0505 P1 0.0505 0.0605 :
  ///Pin
   ?1   A0003P P1 -0.0495 -0.0495 P1 0.1505 -0.0495
   ?2   A0003P P1 -0.0485 -0.0495 P1 0.1515 -0.0495
   ?3   A0003P P1 -0.0475 -0.0495 P1 0.1525 -0.0495

   ?9997 A0003P P1 0.0495 0.0465 P1 0.2495 0.0465
   ?9998 A0003P P1 0.0495 0.0475 P1 0.2495 0.0475
   ?9999 A0003P P1 0.0495 0.0485 P1 0.2495 0.0485
   ?10000 A0003P P1 0.0495 0.0495 P1 0.2495 0.0495

フォーマットは次の通りです。
「モジュール定義」
 /MODULE_DEF
  //MODULE module_name DIPSMD default_length
        [["id1"[ "id2"[ "id3"[ "id4"[ "id5"]]]]] height]
      module_name   20バイト以内のモジュールの名称
      DIPSMD     DIP 挿入部品 SMD 表面実装部品
      default_length ディフォルトのP1-P2間の長さ
      height     部品高さ(省略時=0.0)
    ///PIN
      pin_name mland_name [c1] x1 y1 [c2] x2 y2
        pin_name  20バイト以内のピン名称
        mland_name マクロランド名
        c1     ピンの第1ポイントの座標値の基準位置
        x1,y1    ピンの第1ポイントの座標値
        c2     ピンの第2ポイントの座標値の基準位置
        x2,y2    ピンの第2ポイントの座標値