Search

2D Drafting

2D Parametric constraints

By Rose Barfield 6 min February 11, 2019
2D Parametric constraints

2D parametric constraints are used to maintain relationships and control dimensions of 2D geometry. Here at Bricsys we're mad about Parametrics! You can find out more. 2D parametric constraints can be used to make multiple versions of a design without redrawing the object from scratch. This is super useful when working with blocks. Be sure to check back to the blog as we'll be covering this topic soon!

It's best practice to first apply geometric constraints, then dimensional constraints. But, don't panic if you don't, it (almost) always works out OK if you forget or change your mind about a constraint here or there. I do it all the time!

Geometric Constraints

Geometric constraints control the relationships between items.

2D Parametric constraints- 01 28 Parallel ButtonParallel constraints are used to ensure that the sides remain parallel when one point is moved.

2D Parametric constraints- parrale

Here parallel constraints are used.

Adding more constraints further dictates how the object behaves.

Adding a 2D Parametric constraints- 01 28 Perpendicular Button perpendicular constraint maintains the perpendicular relationship between sides. This changes the behavior of the object when a point is manipulated.

2D Parametric constraints- perpendicular

A perpendicular constraint has been added.

There is often more than one way of constraining a drawing to get the same results so you might want to try a few things.

2D Parametric constraints- options

Left: constrained with sides parallel and the bottom left corner perpendicular. Right: constrained to opposite, equal side lengths with the top right corner at 90°, both these constraints maintain the rectangular shape. However, the way they can be manipulated varies.

Coincidences control how separate items (for example polylines) remain connected at the same points. With BricsCAD it's possible to automatically create coincident constraints. Select 2D Parametric constraints- 01 28 Coincident Button Coincidences -- Auto Constrain -- select all entities or choose specific ones and click Enter. This can be super useful when creating more complex objects. It's best to use Auto Constrain first, before adding other constraints, that way it's easier to check that everything connected the way you expected it to.

Dimensional constraints

Dimensional constraints are used to control the dimensions of an entity, such as length, angle, radius or diameter. They are my favorites because they don't just control length, they can control a whole load of things.

2D Parametric constraints- 01 28 Linear Button Linear constraints keep things parallel, whilst 2D Parametric constraints- 01 28 HorizontalDim Button horizontal and 2D Parametric constraints- 01 28 VerticalDim Button vertical constraints keep constraints horizontal and vertical respectively, all whilst maintaining distance.

2D Parametric constraints- 01 28 Aligned Button Aligned constraints are useful for lines that are drawn on a non-standard angle or for which a more specific relationship is not needed.

Dimensional constraints can be set as dependant on other constraints. This means that when you change the value of one constraint, other constraints change proportionally automatically.

2D Parametric constraints- range

Here the circle remains in the center of the box because the constraints applied from the side of the rectangle to the center of the circle are length/2 and width/2.

2D Parametric constraints- 01 28 Angular Button Angle constraints are useful for things like doorways and rotating objects.

2D Parametric constraints- animated door

This door was created as a dynamic block and can be resized and re-oriented to fit the drawing requirements.

At times constraints might look a little overwhelming, but they're pretty simple. In the example below I used Auto Constrain to maintain the connections at the endpoints of the polylines, then constrained the arm and leg joints to be the same length on both sides, and finally, made all distances proportionate to the head's radius.

2D Parametric constraints- stick man constraints

The constraints here mean is that the head arms and legs remain in proportion regardless of the position and size.

Editing Constraints

Use the Properties and Mechanical Browser panels to edit and manage your constraints.

In the Properties panel you can rename constraints to something more meaningful. E.g. "length", or "left corner". You can also change the value numerically or formulaically. For example: length = 20, or length = width/2. The later would mean that if the width was changed to 20 the length would automatically become 10.

2D Parametric constraints- set up

to the right: the properties panel, click the small, grey fx box to show the formula. To the left, the constraint values in the browser panel, use the table to the bottom left to edit the values.

You can also change the value to a variable such as "x". Right click on the Mechanical Browser panel -- Add new parameter. You can then set the value of "x" for example radius+20 This can be useful for polar arrays. Who knew that high-school algebra would turn out to be useful after all?

2D Parametric constraints- table chairs

By adjusting the radius, I can change the number of seats around the table automatically using parametric blocks.

You can also automatically clean-up constraints with Delete Unused Parameter or delete all constraints with Delete 2D Constraints.

Lost in Constraints

2D Parametric constraints- 01 28-2 ConstraintBar Button Geometric and 2D Parametric constraints- 01 28-1 DcDisplay Button dimensional constraints can be toggled to view 2D Parametric constraints- mcad show on and 2D Parametric constraints- mcad hide off independently with the show/hide commands. You can also choose to hide specific constraints if they are getting in the way. When you select an object the constraints applied to it will appear, even when all constraints are hidden.

Don't forget: You can always use Tab to switch between selections whilst hovering over layered objects.

If you need to see what constraints are applied to a given object, hover over the square, constraint icon, on the drawing. It will turn blue. A small white cross illustrates the constraint point, whilst the constrained items are displayed as dotted lines.

2D Parametric constraints- lost

Hover over a constraint box to visualize the constraint.

And maybe best of all, you can animate the constraints to see how it affects the object. Right click on the constraint in the Mechanical Browser panel and select Animate.

2D Parametric constraints- stick jump

He's so happy about constraints he's jumping for joy.

We're only scratching the surface here. For a complete list of all constraints and what they do, check the help pages.

Ready to get drawing?

Easy to try, easy to buy, easy to own. That's BricsCAD. Try all of our products, for free for 30 days at www.bricsys.com. Freedom of choice, plus perpetual (permanent) product licenses that work with all languages, in all places. You'll love what we've built for you with the BricsCAD product family.

Rose Barfield

by Rose Barfield - CAD User Experience & Interface Design Specialist

LinkedIn logo (b&w)

Rose is responsible for taking user feedback and improving the BricsCAD product. Before coming to BricsCAD, she was a CAD user and worked in the Automotive, Aerospace, and Defense industries as a Technical Illustrator. She loves finding out how things work, taking them apart, and (hopefully) putting them back together again.

November 6, 2024 4 min

On-site document management made easy with Bricsys® 24/7 & LB Aproplan

The construction industry faces several challenges regarding document management. To deliver projects on time and within budget, project managers must easily maintain document version control, manage user access to documents, and streamline approval processes. Poor document management inevitably leads to complications, delays, efficiency loss and increased costs down the line.

September 17, 2024 3 min

Customizing Line Types in BricsCAD

Creating custom line types in BricsCAD can significantly enhance the detail and clarity of your drawings. Whether you’re working on complex engineering plans or simple layout designs, understanding how to create your own line types can give your projects a professional edge. Follow this step-by-step guide to learn how to create both simple and complex line types in BricsCAD.

September 10, 2024 3 min

BricsCAD Partner Apps for Civil and Survey Workflows

At Bricsys, we provide a solid foundation for our specialist survey and civil app developers to create specialist civil and survey tools that deliver robust and efficient workflows for BricsCAD users. Let’s see what updates and improvements our various developer partners have made to complement BricsCAD V24's civil and survey workflows.

These civil and survey applications are among multiple third-party applications supported by BricsCAD, with our developers working to improve their functionality and remain on pace with our new features introduced with every release.

Follow us on social media