2D Tips

2D Parametric constraints

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 here and here. 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.

23 november 2022 5 min

How Technology Can Overcome the Top Challenges in Construction

New technology solutions continue to improve productivity and efficiency on construction sites around the world. However, upgraded design software can only push these improvements so far. To truly overcome the construction industry’s top challenges, the sectors’ professionals - architects, engineers, contractors and building owners - must embrace innovative solutions that provide the tools for stronger and better collaboration.

Lees verder

Volg ons op sociale media

blog-facebook-icon
blog-twitter-icon
blog-instagram-icon
blog-youtube-icon
blog-linkedin-icon

Dit is Bricsys

Bricsys, onderdeel van Hexagon, is het wereldwijde technologiebedrijf dat de BricsCAD® familie van computer aided design producten en het Bricsys 24/7 projectsamenwerkingsplatform creëert.

    blog-facebook-iconblog-twitter-iconblog-instagram-iconblog-youtube-iconblog-linkedin-icon

© 2022 Bricsys NV. All rights reserved.

Part of hexagon