Dessin 2D

2D Parametric constraints

Par Rose Barfield 6 min 11 février 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

par Rose Barfield - CAD User Experience & Interface Design Specialist

LinkedIn logo (b&w)

Rose est chargée de recueillir les commentaires des utilisateurs et d'améliorer le produit BricsCAD. Avant de venir chez BricsCAD, elle était utilisatrice de CAO et ell a travaillé dans les industries de l'automobile, de l'aérospatiale et de la défense en tant qu'illustratrice technique. Elle adore découvrir comment les mécanismes fonctionnent, les démonter et (avec un peu de chance) les remonter.

15 avril 2024 3 min

BricsCAD® Pro V24.2 - Amélioration des performances

BricsCAD V24.2 est désormais disponible, avec de multiples améliorations des performances qui ne manqueront pas d'accroître votre efficacité et de renforcer la stabilité. Conçue pour les dessinateurs, les concepteurs et les fabricants de tous les secteurs, cette nouvelle version cherche à accélérer la création de la documentation, sans lésiner sur la précision, afin de répondre aux exigences essentielles des processus de construction et de fabrication. Examinons de plus près tous les avantages de la v24.2 pour accélérer votre délai de livraison.

8 avril 2024 4 min

Amélioration de la compatibilité des dessins dans BricsCAD® V24.2

Dans la v24.2, la compatibilité DWG de BricsCAD® gagne du terrain. Créer la documentation de conception devient plus rapide grâce aux flux de travail de Dessin 2D. Pour une collaboration toujours plus fluide, vous pouvez ouvrir et modifier les dessins BricsCAD dans tout autre programme de CAO basé sur le format DWG. Découvrons sans tarder les nouvelles améliorations !

25 mars 2024 4 min

Nouveautés de BricsCAD® Lite and Pro V24.2

Dans sa dernière mise à jour, BricsCAD® V24.2 introduit de nombreuses fonctionnalités innovantes et améliorées pour passer au niveau supérieur en matière de Dessin 2D. Nous avons renforcé l'intuitivité de l'expérience utilisateur, amélioré les performances et la stabilité et ajouté de nouvelles fonctionnalités avancées pour continuer à accroître votre productivité. Cette version livre des flux de travail qui vous offre le niveau de précision et de polyvalence dont vous avez besoin pour exécuter vos projets de dessin et de conception 2D avec efficacité. 

Suivez-nous sur les réseaux sociaux