PartDesign FormBinder

From FreeCAD Documentation
Revision as of 10:15, 13 July 2019 by FuzzyBot (talk | contribs) (Updating to match new version of source page)

PartDesign ShapeBinder

Menüeintrag
Part Design → Referenzobjekt erstellen
Arbeitsbereich
PartDesign
Standardtastenkürzel
Keiner
Eingeführt in Version
0.17
Siehe auch
PartDesign Klon

Beschreibung

Bildet einen Bezug durch ein Referenzobjekt zu einem ausgewählten Körper innerhalb des aktiven Körpers (Bodys). Ein Referenzobjekt bildet Bezüge zu Kanten oder Flächen oder Vertexe zu einem anderen Körper. Zum Beispiel kann man das Referenzobjekt benutzen, um ein Gehäuse mit einem passenden Deckel mit zwei Körpern zu konstruieren. Das Referenzobjekt wird in der 3D-Ansicht als gelbes durchscheinendes Objekt angezeigt.

eingeführt mit Version 0.17 File:Shapebinder tree.png

Zwei Formelemente aus dem Body.Pad004 wurden ausgewählt und ihre Bezüge stehen nun dem Body001.Sketch005 als externe Geometrie mittels Body001.ShapeBinder zur Verfügung.

Anwendung

  1. Aktiviere den Zielkörper (den Körper, auf den das Referenzobjekt (ShapeBinder) zeigen soll).
  2. Klicke auf die Schaltfläche Erstellen eines Referenzobjektes.
  3. Klicke entweder auf die Schaltfläche Objekt oder Geometrie hinzufügen.
  4. Wähle in der 3D-Ansicht das Objekt oder die Geometrie zum Kopieren aus. Mit Objekt wird der gesamte Körper ausgewählt; Mit Geometrie hinzufügen kann jedes Element wie ein Vertex, eine Kante oder eine Fläche ausgewählt werden.
  5. Um eine ausgwählte Geometrie zu entfernen, ist die Schaltfläche Geometrie entfernen zu klicken und wähle die entsprechende Geometrie in der 3D-Ansicht aus. Zum Beenden des Enfernens klicke nochmals auf die Schaltfläche.
  6. Alternativ kann der Körper ausgewählt werden, bevor das Referenzobjekt-Kommando ausgeführt wird.
  7. Klicke OK.


Example

The example uses the ShapeBinder feature to make a hole (with or without threads) through more than one body. Normally the Hole function of the Part Design workbench is limited to a single body. The example uses two cubes facing each other but misaligned in an arbitrary way. The holes are created with sketches containing a circle for every hole (the diameter is ignored by the hole function). When you copy the sketch to the other cube it will be at the same position in the local cube coordinate system. In the image this is shown by the white circle on the back cube. This is not what we want, because the hole at that position would not be aligned to the hole in the front cube.


Example setup for showing HowTo make holes through different bodies. The white circle shows that copying sketches is not enough


Here is how you use the ShapeBinder Feature to achieve it:

  1. Prepare a scene as per the above image. If you use the cubes from the Part workbench, remember that you must put them into a "body" container. Each one in a single body container. Otherwise the PartDesign functions would not work. If you build them from sketches the system should create body containers by default.
  2. select the PropertiesDialog/Data Tab to move the second cube to touch the first cube with a side displacement.
  3. select the PartDesign workbench
  4. create a sketch on the front face of the first cube and place a circle anywhere and close the sketch
  5. select the sketch in the tree and press Hole function button. Before make sure the first body is the active body (double click).
  6. select a hole of appropriate size. The image above had also counterbore selected. Close the Hole function.
    Now the image should look as above. When you hide the first cube (select and press space) you can see that the hole does not reach the second cube. It will not, even when you select "Through All" or a really large distance in the Hole dialog. The hole dialog is always limited to a single body.
    Here is where our ShapeBinder comes in.
  7. First select the back cube. This is the target where the ShapeBinder will be added. It must be activated, so be sure it has been double-clicked.
  8. In the tree select the sketch we used for the hole. Its important to not activae the first body.
  9. Select the shapeBinder function.
    A dialog should open. In the line "Object" the name of our sketch should be visible. If you had selected the function without selecting the sketch, you could press "Object" and then select the sketch from the list. Its recommended to select it first in order to get the right one, especially if you have many skeches with automatically generated names Sketch001,.. The "Add Geometry" is not usefule for us, because we do not select part of a body geometry but a Sketch. Its not possible to select part of a sketch.
  10. Press OK to close the sketch function and check that a new item has been added to the tree if the second cube.
    When you toggle the visibilty of the ShapeBinder it is shown yellow in the 3D view. However its on the wrong position, just as the white circle in the image abobe. That is because of the default setting for the Trace parameter.
  11. In the PropertyView of the ShapeBinder in the Data tab set the Trace Support parameter to true. The default was false.
    With Trace Support true, the ShapeBinder in not affected by local transformations of the target body, e.g. our translations. The shape remains exacly where the original front object shape has been. Try moving the front object around and you can see that the ShapeBinder always follows to the new position.
    Unfortunately we can not select the ShapeBinder for a Hole. Therefore we create a local sketch and use that for our hole in the second cube.
  12. Select the front face of the back cube and create a new sketch (slick OK for the suggestion in the dialog)
  13. Make all geometry invisible and the ShapeBinder visible. Now you can use the external geometry function and select the circle in the shape binder. We need to center point of that circle.
  14. create a new circle and put it at the center point of the ShapeBinders circle. The radius is not important. The Hole function only uses the center points of the circles (note: single points are ignored by the Hole function, we must use circles)
  15. close the sketch and click Hole. Set the dialog to the same values as the initial hold and press OK.

Done.

Now you have two linked holes in two different bodies. If you change the geometry or the positions of the holes both holes will adapt. Only when you add a new hole, you need to update the sketch in the second cube for the second hole.


Notes
that there is another way to create a ShapeBinder: with the back cube activated click the front face of the front cube and create a new sketch. A dialog will pop up where you select "Dependent sketch". This will actually create a shape binder. You can see the Trace Support parameter in the property window. Its a few clicks less that our procedure.
Also note that working with ShapeBinder with Sketches is only a subset of its capabilities. Its also possible to use parts of 3D geometry as seen in the example above.

Optionen

Zum Bearbeiten der Eigenschaften des Referenzobjektes kann das Referenzobjekt (ShapeBinder) in der Baumstruktur doppelt geklickt werden oder durch Rechtsklick im Kontextmenü und Auswahl von Referenzobjekt bearbeiten in den Bearbeitunsmodus versetzt werden.

Eigenschaften

  • DatenLabel: Eine Bezeichnung für das Objekt. Diese Bezeichnung kann bei Bedarf geändert werden.

Limitierungen

  • Eine Mehrfachselektion wird nicht unterstützt. Die Schaltflächen Geometrie hinzufügen und Geometrie entfernen müssen für jede einzelne Auswahl geklickt werden. Zur Umgehung des Problems können die entsprechenden Elemente vor der Erzeugung des Referenzobjekts ausgewählt werden. Sie werden dann in die Liste übernommen.
  • Ein Referenzobjekt kann nicht als Basis-Feature genutzt werden.
  • Die ausgewählte Geometrie auf einem Körper muss zusammenhängend sein.
  • Wenn der zu referenzierende Körper vor dem Ausführen des Kommandos ausgewählt wird, oder wenn die Schaltfläche Objekt benutzt wurde, ist es nicht mehr möglich spezifische Geometrie-Elemente auszuwählen.
  • Die relative Platzierung (Placement) von dem Zielkörper und dem referenzierten Körper wird nicht herangezogen. Das Referenzobjekt hat die gleichen internen Koordinaten wie der referenzierte Körper.