知野好男|CAD・BIM Works

AutoCAD 2025:ダイナミックブロックで四角形を縦方向にストレッチする方法

直線状パラメータとストレッチアクションを使い、四角形の高さをグリップで変更する基本設定をまとめます。

AutoCAD 2025:ダイナミックブロックで四角形を縦方向にストレッチする方法

AutoCAD 2025で四角形を縦方向にストレッチするダイナミックブロックの設定例
2026-09-30

今回は、AutoCADのダイナミックブロック機能を使用して、100×100の四角形に縦方向へストレッチできるグリップを追加する、シンプルなダイナミックブロックの作成方法を記録します。

基本的な構成は、直線状パラメータ(Linear Parameter)にストレッチアクション(Stretch Action)を関連付けるものです。

使用する主なコマンド

RECTANG
@100,100
BLOCK
BTESTBLOCK

手順

  1. RECTANG コマンドで四角形を作成します。今回は @100,100 と入力し、100×100の四角形を作成します。
  2. BLOCK コマンドで四角形をブロック化し、ブロックエディタを開きます。
  3. [パラメータ]→[直線状]を選択し、高さ方向に下側→上側の順でパラメータを配置します。
  4. 作成された「距離1」を選択し、[プロパティ]でグリップの数を「1」に設定します。
  5. [アクション]→[ストレッチ]を選択します。
  6. 「パラメータを選択」で「距離1」を選択します。
  7. 「パラメータ点を指定」で上側の点を選択します。今回の設定では「2点目」です。
  8. ストレッチ枠を指定します。上側の2頂点を含み、左右の縦辺を横切るように枠を指定します。
  9. 「ストレッチするオブジェクトを選択」で四角形を選択します。RECTANG で作成した四角形であれば、「認識された数: 1」と表示されれば問題ありません。
  10. BTESTBLOCK または[ブロックをテスト]を使用し、上側のグリップを移動して動作を確認します。下辺が固定されたまま、四角形の高さだけが変化すれば完成です。

Windows版とMac版について

Windows版とMac版ではユーザーインターフェースや操作方法に違いがありますが、今回確認したダイナミックブロックの基本的な流れは共通しています。

今回の例では、次の流れになります。
  • 直線状パラメータを作成する
  • 可変側のグリップを指定する
  • ストレッチアクションを関連付ける
  • ストレッチ範囲と対象オブジェクトを指定する
  • グリップを動かして結果を確認する
UI上の見え方が異なっていても、「パラメータで変化量や方向を定義し、アクションで図形の動きを関連付ける」という考え方は同じです。

確認環境:AutoCAD 2025 Windows版 / AutoCAD 2025 Mac版

English

AutoCAD 2025: How to Create a Dynamic Block That Stretches a Rectangle Vertically

September 30, 2026

This article records a simple method for creating an AutoCAD Dynamic Block that adds a grip to a 100 × 100 rectangle, allowing the rectangle to be stretched vertically.

The basic structure consists of a Linear Parameter associated with a Stretch Action.

Main Commands

RECTANG
@100,100
BLOCK
BTESTBLOCK

Procedure

  1. Use the RECTANG command to create a rectangle. In this example, enter @100,100 to create a 100 × 100 rectangle.
  2. Use the BLOCK command to convert the rectangle into a block, and then open it in the Block Editor.
  3. Select Parameters → Linear, and place the parameter vertically from the bottom to the top of the rectangle.
  4. Select the created parameter, such as “Distance1,” and set Number of Grips to 1 in the Properties palette.
  5. Select Actions → Stretch.
  6. When prompted to select a parameter, select “Distance1.”
  7. When prompted to specify the parameter point, select the upper point. In this example, this is the second point.
  8. Specify the stretch frame so that it includes the two upper vertices and crosses the left and right vertical edges of the rectangle.
  9. When prompted to select the objects to stretch, select the rectangle. If the rectangle was created with RECTANG, AutoCAD should recognize it as one object.
  10. Use BTESTBLOCK or Test Block to verify the behavior. Move the upper grip and confirm that only the height of the rectangle changes while the bottom edge remains fixed.

Windows and Mac Versions

The Windows and Mac versions of AutoCAD have different user interfaces and operation methods, but the basic Dynamic Block workflow confirmed in this example is the same.

The workflow is:
  • create a Linear Parameter,
  • specify the adjustable grip,
  • associate a Stretch Action,
  • define the stretch frame and affected objects, and
  • move the grip to verify the result.
Even when the interface looks different, the underlying idea is the same: the parameter defines the direction or amount of change, and the action defines how the geometry responds.

Tested with: AutoCAD 2025 for Windows / AutoCAD 2025 for Mac
Navigation

この記事は「知野好男|CAD・BIM Works」の技術記事です。 / This article is part of Yoshio Chino CAD / BIM Works.