Bird
Raised Fist0
AutoCADbi_tool~10 mins

Geometric constraints (coincident, parallel, perpendicular) 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 apply a coincident constraint between two points.

AutoCAD
ApplyConstraint('coincident', [1])
Drag options to blanks, or click blank then click option'
Apoint1, point2
Bpoint1 point2
C[point1, point2]
Dpoint1; point2
Attempts:
3 left
💡 Hint
Common Mistakes
Using space instead of comma to separate points.
Passing points as a list or string instead of separate arguments.
2fill in blank
medium

Complete the code to apply a parallel constraint between two lines.

AutoCAD
ApplyConstraint('parallel', [1])
Drag options to blanks, or click blank then click option'
Aline1 line2
Bline1; line2
Cline1, line2
D[line1, line2]
Attempts:
3 left
💡 Hint
Common Mistakes
Using space or semicolon instead of comma to separate lines.
Passing lines as a list or string.
3fill in blank
hard

Fix the error in the code to apply a perpendicular constraint between two lines.

AutoCAD
ApplyConstraint('perpendicular', [1])
Drag options to blanks, or click blank then click option'
Aline1 line2
Bline1, line2
C[line1, line2]
Dline1; line2
Attempts:
3 left
💡 Hint
Common Mistakes
Using space or semicolon instead of comma.
Passing lines as a list or string.
4fill in blank
hard

Fill both blanks to create a dictionary mapping constraint types to their function calls.

AutoCAD
constraints = {'coincident': ApplyConstraint([1]), 'parallel': ApplyConstraint([2])}
Drag options to blanks, or click blank then click option'
A'coincident', point1, point2
B'coincident', line1, line2
D'parallel', line1, line2
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing points and lines for constraints.
Not separating arguments with commas.
5fill in blank
hard

Fill all three blanks to define a function that applies a given constraint type to two elements.

AutoCAD
def apply_constraint([1], [2], [3]):
    return ApplyConstraint([1], [2], [3])
Drag options to blanks, or click blank then click option'
Aconstraint_type
Belement1
Celement2
Delements
Attempts:
3 left
💡 Hint
Common Mistakes
Using a single parameter for multiple elements.
Mismatching parameter names and arguments.

Practice

(1/5)
1. Which geometric constraint in AutoCAD ensures two points stay exactly on top of each other?
easy
A. TANGENT
B. PARALLEL
C. PERPENDICULAR
D. COINCIDENT

Solution

  1. Step 1: Understand COINCIDENT constraint

    The COINCIDENT constraint locks two points so they share the same location.
  2. Step 2: Compare with other constraints

    PARALLEL keeps lines side by side, PERPENDICULAR sets right angles, TANGENT applies to curves touching at one point.
  3. Final Answer:

    COINCIDENT -> Option D
  4. Quick Check:

    Points locked together = COINCIDENT [OK]
Hint: Points stacked? Use COINCIDENT constraint [OK]
Common Mistakes:
  • Confusing PARALLEL with COINCIDENT
  • Thinking PERPENDICULAR locks points
  • Mixing TANGENT with point constraints
2. Which of the following is the correct syntax to apply a PARALLEL constraint between two lines in AutoCAD's command line?
easy
A. CONSTRAINT PARALLEL line1 line2
B. PARALLEL line1, line2
C. CONSTRAINTS PARALLEL(line1 line2)
D. PARALLEL_CONSTRAINT line1 line2

Solution

  1. Step 1: Recall AutoCAD constraint command format

    The correct command starts with CONSTRAINT followed by the constraint type and then the objects.
  2. Step 2: Check each option

    CONSTRAINT PARALLEL line1 line2 matches the correct syntax: CONSTRAINT PARALLEL line1 line2. Others have wrong keywords or punctuation.
  3. Final Answer:

    CONSTRAINT PARALLEL line1 line2 -> Option A
  4. Quick Check:

    Correct command format = CONSTRAINT PARALLEL [OK]
Hint: Use CONSTRAINT + type + objects for syntax [OK]
Common Mistakes:
  • Using commas instead of spaces
  • Wrong command keyword like PARALLEL_CONSTRAINT
  • Adding parentheses incorrectly
3. Given two lines constrained as PERPENDICULAR in AutoCAD, what will happen if you try to rotate one line by 30 degrees?
medium
A. The other line automatically rotates to maintain the right angle.
B. The rotated line ignores the constraint and moves freely.
C. Both lines become parallel after rotation.
D. AutoCAD shows an error and prevents rotation.

Solution

  1. Step 1: Understand PERPENDICULAR constraint behavior

    PERPENDICULAR keeps two lines at 90 degrees. Changing one line's angle adjusts the other to keep this.
  2. Step 2: Analyze rotation effect

    Rotating one line by 30 degrees triggers AutoCAD to rotate the other line automatically to maintain perpendicularity.
  3. Final Answer:

    The other line automatically rotates to maintain the right angle. -> Option A
  4. Quick Check:

    PERPENDICULAR keeps 90° angle [OK]
Hint: PERPENDICULAR lines adjust together on rotation [OK]
Common Mistakes:
  • Thinking constraints are ignored on rotation
  • Assuming lines become parallel
  • Expecting error message on rotation
4. You applied a COINCIDENT constraint between two points, but they still move independently. What is the most likely cause?
medium
A. AutoCAD does not support COINCIDENT constraints.
B. The constraint was applied to wrong objects, not points.
C. The points are on different layers and cannot be constrained.
D. The constraint needs to be manually activated after applying.

Solution

  1. Step 1: Verify constraint target objects

    COINCIDENT constraints only work between points. Applying it to other objects won't lock points together.
  2. Step 2: Check other options

    AutoCAD supports COINCIDENT constraints, layers do not block constraints, and constraints apply immediately without manual activation.
  3. Final Answer:

    The constraint was applied to wrong objects, not points. -> Option B
  4. Quick Check:

    Constraint target must be points [OK]
Hint: Apply COINCIDENT only to points, not lines or curves [OK]
Common Mistakes:
  • Assuming constraints need activation
  • Blaming layers for constraint failure
  • Ignoring object types when applying constraints
5. You want to design a rectangle in AutoCAD where opposite sides are parallel and adjacent sides are perpendicular. Which combination of constraints should you apply to ensure this?
hard
A. Apply COINCIDENT to all corners and PARALLEL to all sides.
B. Apply PERPENDICULAR to opposite sides and COINCIDENT to adjacent sides.
C. Apply PARALLEL to opposite sides and PERPENDICULAR to adjacent sides.
D. Apply only COINCIDENT constraints to all points.

Solution

  1. Step 1: Identify rectangle side relationships

    Opposite sides of a rectangle are parallel; adjacent sides meet at right angles (perpendicular).
  2. Step 2: Match constraints to relationships

    Use PARALLEL constraint for opposite sides and PERPENDICULAR constraint for adjacent sides to maintain rectangle shape.
  3. Final Answer:

    Apply PARALLEL to opposite sides and PERPENDICULAR to adjacent sides. -> Option C
  4. Quick Check:

    Rectangle = PARALLEL + PERPENDICULAR constraints [OK]
Hint: Rectangle = PARALLEL opposite + PERPENDICULAR adjacent sides [OK]
Common Mistakes:
  • Using COINCIDENT for side relationships
  • Mixing PERPENDICULAR with opposite sides
  • Applying only COINCIDENT constraints
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