Search

2D Drafting

2D Parametric constraints

By Rose Barfield 6 min 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.

nullParallel constraints are used to ensure that the sides remain parallel when one point is moved.

null

Here parallel constraints are used.

Adding more constraints further dictates how the object behaves.

Adding a null perpendicular constraint maintains the perpendicular relationship between sides. This changes the behavior of the object when a point is manipulated.

null

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.

null

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 null 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.

null Linear constraints keep things parallel, whilst null horizontal and null vertical constraints keep constraints horizontal and vertical respectively, all whilst maintaining distance.

null 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.

null

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.

null Angle constraints are useful for things like doorways and rotating objects.

null

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.

null

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.

null

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?

null

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

null Geometric and null dimensional constraints can be toggled to view null on and null 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.

null

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.

null

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.

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.

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.

9 сентября 2024 г. 4 min

Embracing Digital Transformation in the Construction Industry with Bricsys® 24/7

The construction industry continually evolves, and digital transformation is reshaping how teams manage projects, communicate, and handle project documentation. When embracing digital solutions for construction projects, a common data environment (CDE) like Bricsys 24/7 is an excellent place to start. With a significant variance in the level of digital adoption across the industry, embracing and leveraging digital tools can help firms differentiate themselves by elevating operational efficiency and improving project outcomes.

Follow us on social media