Creating Custom Blocks (Dynamic) in CAD: A Step-by-Step Guide

Creating Custom Blocks (Dynamic) in CAD: A Step-by-Step Guide

Custom blocks (Known as Dynamic Blocks) are enhanced block definitions that allow for more flexible and interactive behaviour compared to standard blocks. Instead of creating multiple blocks for similar objects (like doors of different sizes or arrows pointing in different directions), you can use one Custom block with adjustable properties.

Custom blocks include Elements and Activities can allow users to:

  • Stretch parts of a block (e.g., stretch a table or wall).
  • Flip (mirror) elements with a flip action.
  • Pattern elements based on user input.
  • Rotate elements within the block.
  • Scale the block non-uniformly.
  • Move elements based on user input.
  • Visibility states: Switch between different views (e.g., open/closed door).

Creating Custom Block

In this custom block, we create circles of different radii with mirroring capability.

Step 1: Create Geometry

Draw the objects you want in your block. For example, a simple Circle.

Step 2: Define the Block

  • Select the circle and use the MakeBlock (MB) command.
  • Name the block (e.g., Circle)
  • Specify the base point (e.g., center of the circle), then click OK.
  • The geometry is now converted into a block.
Custom Blocks in CAD: A Step-by-Step Guide

Step 3: Open Block Editor

Double click the circle or use EditBlock (BE) command will open the block editor.

Custom Blocks

Step 4: Add Elements

  • Select the appropriate Element from the list. In this case, choose Mirror.
  • Select the base point and end point of the mirror axis, then specify the label location.

Step 5: Add Activities

  • From Activities, select Mirror option.
  • Then specify the element, followed by selecting the circle.

Step 6: Add Visibility Set

Visibility Set is added to switch between different views. Here, we can change the size of the circle. 

  • From Element Sets, select Visibility Set and specify element position.
  • Select the circle and press Enter.
  • Open Visibility State, then rename and add new state as required.
  • From the Visibility State drop down, select a size and draw the new geometry.
  • Add that geometry to that specified size by selecting “Select entities” from Visibility state followed by selecting geometry.
  • Hide the previously drawn circle.
  • Repeat Step 5 for each additional size.

Step 6: Save and Use Custom Block

  • Save the block and use Test Block option to check it.
  • The test block will open on a new drawing page.
  • When you select the circle, the Visibility Set and Mirror (Small arrow on the circle) icons will appear.
  • By clicking these icons, you can change the size and location of the circle.

Summary

Custom blocks in CAD provide flexible, interactive features like stretching, mirroring, rotating, and visibility states, allowing a single block to represent multiple object variations. This reduces the need for creating separate blocks for similar items. Creating a custom block involves drawing the geometry, defining the block, adding elements and activities, and setting up visibility states. These settings enable users to adjust the block's size, orientation, or appearance dynamically. Once saved, the block can be tested and used with customizable options in a drawing.

Mastering Image Tracer in DraftSight: From Raster to Vector with Ease

DraftSight is a professional grade 2D and 3D CAD software developed by Dassault Systèmes. Designed for architects, engineers, and designers, it features a user-friendly interface and supports industry-standard file formats, making it a powerful tool for precision drawing and design.

What Is an Image Tracer?

Image Tracer is a built-in tool in DraftSight that converts raster images (JPG, PNG, BMP) into vector geometry. It automatically detects outlines in scanned images, logos, or sketches and traces them into editable CAD elements like lines, arcs, and polylines.

Key Benefits:

  • Converts non-CAD images into usable vector drawings
  • Eliminates the need for manual tracing
  • Saves time and improves accuracy
  • Ideal for logos, floor plans, mechanical drawings, and sketches

What If Image Tracer Isn’t Available?

Before tools like Image Tracer, converting raster images to vector drawings was a manual and time-consuming process:

  1. Insert the Image: Import the raster image into DraftSight as a reference.
  2. Scale and Position: Resize and move the image to fit your intended design area.
  3. Manual Tracing: Use Line, Polyline, Arc, and Spline tools to trace over the image.
  4. Layering and Cleanup: Work on dedicated layers for organization and delete or hide the original image afterward.
  5. Precision Techniques: Use object snaps (OSNAP), grids, and guides for accurate tracing.

This method, while effective, required patience and a good eye for detail.

How to Use Image Tracer in DraftSight

Using Image Tracer is straightforward and is supported across all DraftSight variants:

Step 1: Insert the Image

  • Navigate to the Insert tab → Click Attach Image
  • Choose a raster file (JPG, PNG, BMP), place it in the workspace, and scale it as needed

Step 2: Launch Image Tracer and Configure Settings

  • Go to the Image Tracer tab or the Home tab and select Image Tracer
  • A settings window will appear
    • Choose the Image Type: Logo, Sketch, Mechanical, or Floor Plan
    • Adjust parameters like Detail Level, Threshold, and Noise Reduction
    • Preview the trace before applying

Step 3: Apply and Edit the Trace

  • Click Apply or OK to generate vector geometry
  • Edit the resulting lines, arcs, or polylines as needed
  • Delete or hide the original raster image to clean up the drawing

Summary

Image Tracer in DraftSight is a powerful feature that streamlines the conversion of raster images into precise vector geometry. By automating the tracing process, it saves time, improves accuracy, and makes it easier to incorporate sketches, logos, and scanned documents into professional CAD workflows.

Back to Top
Product has been added to your cart