Bird
Raised Fist0
AutoCADbi_tool~10 mins

Dynamic blocks with parameters in AutoCAD - Interactive Code Practice

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to add a linear parameter to a dynamic block.

AutoCAD
block.AddParameter('[1]', startPoint, endPoint)
Drag options to blanks, or click blank then click option'
AVisibilityParameter
BRotationParameter
CFlipParameter
DLinearParameter
Attempts:
3 left
💡 Hint
Common Mistakes
Using RotationParameter when a linear control is needed.
Confusing VisibilityParameter with dimension controls.
2fill in blank
medium

Complete the code to set the parameter's property to allow stretching.

AutoCAD
parameter.[1] = True
Drag options to blanks, or click blank then click option'
AIsFlippable
BIsStretchable
CIsRotatable
DIsVisible
Attempts:
3 left
💡 Hint
Common Mistakes
Setting IsRotatable instead of IsStretchable.
Confusing visibility with stretch behavior.
3fill in blank
hard

Fix the error in the code to correctly assign a parameter to a dynamic block.

AutoCAD
dynamicBlock.[1](parameter)
Drag options to blanks, or click blank then click option'
ARemoveParameter
BGetParameter
CAddParameter
DSetParameter
Attempts:
3 left
💡 Hint
Common Mistakes
Using RemoveParameter which deletes parameters.
Using GetParameter which only retrieves parameters.
4fill in blank
hard

Fill both blanks to create a rotation parameter and set its angle.

AutoCAD
param = block.[1](centerPoint)
param.[2] = 45
Drag options to blanks, or click blank then click option'
AAddRotationParameter
BAddLinearParameter
CAngle
DLength
Attempts:
3 left
💡 Hint
Common Mistakes
Using AddLinearParameter for rotation.
Setting Length instead of Angle for rotation.
5fill in blank
hard

Fill all three blanks to create a visibility parameter, set its name, and enable it.

AutoCAD
visParam = block.[1]()
visParam.[2] = 'ShowDetails'
visParam.[3] = True
Drag options to blanks, or click blank then click option'
AAddVisibilityParameter
BName
CIsVisible
DAddFlipParameter
Attempts:
3 left
💡 Hint
Common Mistakes
Using AddFlipParameter instead of AddVisibilityParameter.
Setting IsStretchable instead of IsVisible.

Practice

(1/5)
1.

What is the main purpose of using parameters in AutoCAD dynamic blocks?

easy
A. To add color to the block
B. To control the size, shape, or position of block elements dynamically
C. To convert blocks into images
D. To export blocks to other software

Solution

  1. Step 1: Understand what parameters do in dynamic blocks

    Parameters define how parts of a block can change, like size or rotation.
  2. Step 2: Identify the purpose of parameters

    They allow the block to be flexible and adjustable without redrawing.
  3. Final Answer:

    To control the size, shape, or position of block elements dynamically -> Option B
  4. Quick Check:

    Parameters = control block changes [OK]
Hint: Parameters let you change block parts easily [OK]
Common Mistakes:
  • Thinking parameters add color
  • Confusing parameters with exporting features
  • Believing parameters convert blocks to images
2.

Which of the following is the correct way to add a Linear Parameter in a dynamic block?

1. Select the block
2. Choose Parameters tab
3. Click Linear
4. Click two points to define the parameter
easy
A. Steps 1 to 4 as described are correct
B. You must first explode the block before adding parameters
C. Linear Parameter is added from the Actions tab
D. You add Linear Parameter by typing a command in the command line

Solution

  1. Step 1: Review the process to add a Linear Parameter

    Linear Parameters are added from the Parameters tab by selecting two points.
  2. Step 2: Confirm the steps given match the correct process

    The steps 1 to 4 correctly describe adding a Linear Parameter without exploding the block.
  3. Final Answer:

    Steps 1 to 4 as described are correct -> Option A
  4. Quick Check:

    Linear Parameter steps = correct process [OK]
Hint: Add Linear Parameter from Parameters tab, no explode needed [OK]
Common Mistakes:
  • Trying to explode block before adding parameters
  • Looking for Linear Parameter under Actions tab
  • Using command line instead of Parameters tab
3.

Consider a dynamic block with a Rotation Parameter set at 0 degrees initially. If you use the block and rotate it by 45 degrees, what will be the value of the Rotation Parameter?

medium
A. 0 degrees
B. It will reset to default
C. 45 degrees
D. 90 degrees

Solution

  1. Step 1: Understand how Rotation Parameter works

    The Rotation Parameter tracks the angle the block is rotated from its base position.
  2. Step 2: Apply the rotation of 45 degrees

    Rotating the block by 45 degrees updates the parameter value to 45 degrees.
  3. Final Answer:

    45 degrees -> Option C
  4. Quick Check:

    Rotation Parameter = current rotation angle [OK]
Hint: Rotation Parameter shows actual rotation angle applied [OK]
Common Mistakes:
  • Assuming parameter stays at 0 degrees
  • Thinking it doubles to 90 degrees
  • Believing it resets after rotation
4.

You created a dynamic block with a Linear Parameter but when you try to stretch it, nothing happens. What is the most likely cause?

medium
A. The Linear Parameter is set to zero length
B. The block is not saved
C. The block is exploded
D. No Stretch Action is linked to the Linear Parameter

Solution

  1. Step 1: Check the relationship between parameters and actions

    Parameters define what can change, but actions tell the block how to change.
  2. Step 2: Identify why stretching fails

    If no Stretch Action is linked to the Linear Parameter, the block won't stretch.
  3. Final Answer:

    No Stretch Action is linked to the Linear Parameter -> Option D
  4. Quick Check:

    Stretch needs action linked to parameter [OK]
Hint: Link Stretch Action to Linear Parameter to enable stretching [OK]
Common Mistakes:
  • Forgetting to link Stretch Action
  • Assuming saving fixes stretching
  • Thinking exploding block helps
5.

You want to create a dynamic block for a door that can both rotate and change width. Which combination of parameters and actions should you use?

hard
A. Rotation Parameter with Rotate Action, Linear Parameter with Stretch Action
B. Rotation Parameter with Stretch Action, Linear Parameter with Rotate Action
C. Only Linear Parameter with Move Action
D. Only Rotation Parameter with Scale Action

Solution

  1. Step 1: Identify parameters needed for rotation and width change

    Rotation Parameter controls angle; Linear Parameter controls length or width.
  2. Step 2: Match correct actions to parameters

    Rotate Action works with Rotation Parameter; Stretch Action works with Linear Parameter to change size.
  3. Step 3: Combine parameters and actions correctly

    Use Rotation Parameter + Rotate Action for rotation, Linear Parameter + Stretch Action for width change.
  4. Final Answer:

    Rotation Parameter with Rotate Action, Linear Parameter with Stretch Action -> Option A
  5. Quick Check:

    Rotation + Rotate, Linear + Stretch = correct combo [OK]
Hint: Pair Rotation with Rotate, Linear with Stretch for dynamic changes [OK]
Common Mistakes:
  • Mixing Rotate and Stretch actions incorrectly
  • Using only one parameter for two changes
  • Confusing Move and Scale actions with rotation/stretch
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard