FreeCAD Logo FreeCAD 1.0
  • Английский Африкаанс Арабский Белорусский Каталанский Чешский Немецкий Греческий Испанский Испанский Баскский Финский Филиппинский Французский Галисийский Хорватский Венгерский Индонезийский Итальянский Японский Кабильский Корейский Литовский Нидерландский Норвежская букмол Польский Португальский Португальский Румынский Русский Словацкий Словенский Сербский Шведский Турецкий Украинский Валенсианский Вьетнамский Китайский Китайский
  • Возможности
  • Скачать
  • Блог
  • Документация
    Индекс документации Приступая к работе Пользовательская документация Руководство по FreeCAD Документация верстаков Документация по кодированию на Python Документация по коду C++ Уроки Часто задаваемые вопросы Политика конфиденциальности О программе FreeCAD
  • Внести вклад
    Как помочь Sponsor Сообщить об ошибке Сделать запрос Задачи и финансирование Руководство по участию в разработке Руководство для разработчиков Переводы
  • Сообщество
    Кодекс поведения Форум The FPA GitHub GitLab Codeberg Mastodon Matrix IRC IRC via Webchat Gitter Discord Reddit Twitter Facebook LinkedIn Календарь
  • ♥ Donate

Donate

$
Информация о SEPA
Пожалуйста, настройте банковский перевод SEPA:
Beneficiary: The FreeCAD project association
IBAN: BE04 0019 2896 4531
BIC/SWIFT: GEBABEBBXXX
Банковское агентство: BNP Paribas Fortis
Адрес: Rue de la Station 64, 1360 Perwez, Belgium

While Stripe doesn't support monthly donations, you can still become a sponsor! Simply make a one-time donation equivalent to 12 months of support, and you'll gain access to the corresponding sponsoring tier. It's an easy and flexible way to contribute.

If you are not sure or not able to commit to a regular donation, but still want to help the project, you can do a one-time donation, of any amount.

Choose freely the amount you wish to donate one time only.

You can support FreeCAD by sponsoring it as an individual or organization through various platforms. Sponsorship provides a steady income for developers, allowing the FPA to plan ahead and enabling greater investment in FreeCAD. To encourage sponsorship, we offer different tiers, and unless you choose to remain anonymous, your name or company logo will be featured on our website accordingly.

from 1 USD / 1 EUR per month. You will not have your name displayed here, but you will have helped the project a lot anyway. Together, normal sponsors maintain the project on its feet as much as the bigger sponsors.

from 25 USD / 25 EUR per month. Your name or company name is displayed on this page.

from 100 USD / 100 EUR per month. Your name or company name is displayed on this page, with a link to your website, and a one-line description text.

from 200 USD / 200 EUR per month. Your name or company name and logo displayed on this page, with a link to your website and a custom description text. Companies that have helped FreeCAD early on also appear under Gold sponsors.

Instead of donating each month, you might find it more comfortable to make a one-time donation that, when divided by twelve, would give you right to enter a sponsoring tier. Don't hesitate to do so!

Choose freely the amount you wish to donate each month.

Please inform your forum name or twitter handle as a notein your transfer, or reach to us, so we can give you proper credits!

Tutorial
Topic
Assembly3, a kinematic skeleton
Level
Basic knowledge of Assembly3 and Sketcher tools is helpful
Time to complete
40 minutes
Authors
FBXL5
FreeCAD version
0.20 and later
Example files
None
See also
Tutorial KinematicAssembly, Tutorial KinematicController

Введение

This tutorial is about how to set up a simple 2D mechanism and attach 3D objects, mainly with the tools from the external Assembly3 Workbench.

This tutorial does not use the skeleton sketch principle (see Assembly3 Create-Skeleton-Sketch on GitHub).

Instead we will use PartDesign Bodies containing only one Sketch each, to build a 2D mechanism, a multi sketch skeleton.

The dimensions, and the colours as well, are taken from the SolveSpace tutorial which is referred to on the Assembly3 GitHub page (see above).

Multi sketch skeleton

This so-called multi sketch skeleton consists of several individual Bodies and an Assembly container. To be able to attach further objects each body is put into a separate Assembly container.

2D Body objects

The bodies, and their sketches, that are used in this assembly:

  • A base plate (green)
  • A crank (blue)
  • Two movable plates (red and grey)
  • Four connecting rods (white, yellow, purple, and brown)

All eight sketches individually coloured and manually positioned by moving their parent bodies

The shape can deviate from that of the real part, but the position of the joint defining geometry must be accurate.

Assembly containers

Parent assembly

To fix or control the positions of all bodies we need an Assembly object. It adds an assembly branch to the Tree view.

  • Press the Create assembly button to create an assembly branch in the Tree view.

Sub-assemblies

Repeat above action to create an Assembly object for each Body and drag the Body into its Parts container. Then fix the Body to its Assembly:

  1. Activate the Assembly object (double-click).
  2. Select a circle/arc belonging the Body object.
  3. Press the Create "Locked" constraint button to fix the Body in its sub-assembly.

The Crank-Assembly, for example, should look like this:

The Crank's sub-assembly branch in the Tree view and the Crank with its locked Element in the 3D view

Assembly tree

In the Tree view drag all sub-assembly branches into the Parts container of the parent Assembly object.

Assembly branch in the Tree view

Now they are ready to be arranged.

Fixed base plate

First we need a fixed part. To fix the Base completely we would usually select a face, but in this case a circle will do as well.

  1. Select a circle of the Base.
  2. Press the Create "Locked" constraint button to fix the Base.

Selected circle → Fixed Base with the created Element object and element coordinate system (ECS) displayed (green)

Joints

For hinge-like joints we select one circle of each sketch and use the Plane Coincidence constraint. It not only sets both Element's XY planes coplanar, but sets their Z axes colinear, too.

  1. Select a circle of each object to connect.
  2. Press the Create "Plane Coincidence" constraint button.

Base - Crank

Circles on Base and Crank selected → Relocated Crank with the created Element objects and ECSs displayed (green)

Base - Upper Plate

Circles on Base and Upper Plate selected → Relocated Upper Plate

Previously created joints can be identified by their constraint representations (red).

Crank - Rod 1

Circles on Crank and Rod 1 selected → Relocated Rod 1 and tilted Crank

Upper Plate - Rod 1

The last link in this kinematic chain connects two Elements whose Z directions are already defined and a Point on line constraint is all we need.

  1. Select a circle of each object to connect.
  2. Press the Create "PointOnLine" constraint button.

Circles on Upper Plate and Rod 1 selected → Relocated Rod 1, and tilted Crank and Upper Plate

If the Z axes of three elements or joints are parallel and lie on the same virtual plane, the solver may fail to rearrange them in a following step because it is unable to decide in which direction the middle joint should be rotated. This can occur for the Rod 1 element, the Crank - Rod 1 joint, and the Base - Crank joint we have here. If this happens we need to help the solver and rotate one object (e.g. the Crank) manually using the Axial move tool.

Upper Plate - Rod 2

Another kinematic (sub-)chain starts with Plane Coincidence constraints.

Circles on Upper Plate (or Base) and Rod 2 selected → Relocated Rod 2

Rod 2 - Lower Plate

Circles on Rod 2 and Lower Plate selected → Relocated Lower Plate and tilted Rod 2

Upper Plate - Rod 3

Circles on Upper Plate and Rod 3 selected → Relocated Rod 3 and rearranged upper kinematic sub-chain

Lower Plate - Rod 3

And this kinematic (sub-)chain ends with a Point on line constraint, too.

Circles on Lower Plate and Rod 3 selected → Relocated Rod 3 and rearranged ukinematic sub-chains

To connect both kinematic sub-chains we use Rod 4 with a Plane Coincidence constraint on one end and a Point on line constraint on the other.

Crank - Rod 4

Circles on Crank and Rod 4 selected → Relocated Rod 4

Lower Plate - Rod 4

Circles on Lower Plate and Rod 4 selected → Relocated Rod 4 and final layout of kinematic assembly

Actuator

Since Assembly3 doesn't provide any means to control kinematic assemblies, we need external assistance such as this kinematic controller. To use this controller we need to mark one constraint's label with the suffix "Driver" to make it a driving constraint. It may be separated by a "." or "-" for clarity, as the controller will only check if the label ends with "Driver".

We therefore change the label of the Base-Crank joint to Base-Crank.Driver.

Finished skeleton

The finished kinematic assembly with deactivated representation of Elements and Constraints should look like this:

Finished assembly in the Tree view and the 3D view

GIF animation made from an image sequence from this kinematic controller

Attaching 3D geometry

My expectations about attaching a new object to a base object belonging to a kinematic assembly were something like:

  • Put the new object into the base object's Parts container.
  • Position the new object in relation to the base object.
  • Fix the relative offset and orientation using the Attachment constraint.

But that would have been too easy.


The Assembly3 ConstraintAttachment tool, like any Assembly3 constraint tool, relies on the use of Element objects and their element coordinate systems (ECSs) for positioning tasks.

And so attaching objects is just another way of adding objects to a (sub-)assembly.


Let's attach Rod 4-3D to Rod 4 for example:

The objects have a different orientation and the 3D object should have an offset from the 2D object.

  1. Put the new object into the base object's Parts container.
  2. Select two corresponding circles or arcs.
  3. Press the Create "Attachment" constraint button.

Rod 4 (locked) and Rod 4-3D → Selected arcs → Relocated Rod 4-3D (both ECSs are in the same place with identical orientation)

It is now plain to see that the Assembly3 ConstraintAttachment tool ignores the offset and orientation between both objects.

However the position is already defined as we wanted and so we only need to adapt the angle manually and define the desired offset:

  • Set the ДанныеOffset, Angle of the first Element in the Attachment container to match the orientation.
  • Set the ДанныеOffset, Position, z of the same Element to apply an offset.

In case we set the properties of the second Element, the movement of angle and offset would go in the opposite direction.

As attached → Angle adapted → Offset defined

If there is a 3D object attached to each 2D object, it could look like this:

Notes

The section Attaching 3D geometry just scratches the surface of extending a sub-assembly, and other constraints or combinations of constraints may be more suitable than the attachment constraint.

It is important to move such a kinematic assembly in tiny steps or the solver will give up and fail. It is almost impossible to use Move part or Axial move for this task.

The Assembly3_ConstraintCoincidence constraint is used to drive the kinematic assembly, its property ДанныеAngle (enabled by the property ДанныеLock Angle) accepts positive or negative floating point numbers greater than 360 and so could do several full turns.

Эта страница получена от https://wiki.freecad.org/Tutorial_KinematicSkeleton

Свяжитесь с нами!
Forum GitHub Mastodon Matrix IRC Gitter.im Discord Reddit Twitter Facebook LinkedIn

©Команда FreeCAD. Авторы изображений (сверху вниз): ppemawm, r-frank, epileftric, regis, regis, rider_mortagnais, bejant.

Этот проект поддерживается: , KiCad Services Corp. и другие спонсоры

GitHubУлучшить эту страницу на GitHub