Macro Center Align Objects with Faces or Edges

From FreeCAD Documentation
Jump to navigation Jump to search
This page is a translated version of the page Macro Center Align Objects with Faces or Edges and the translation is 65% complete.
Outdated translations are marked like this.
Other languages:
English • ‎français • ‎hrvatski • ‎italiano
Ovi su alati sada uključeni u Manipulator Workbench. Instalirajte ovu radnu površinu za najnovija ažuriranja tih alata.

Macro Center Align Objects with Faces or Edges.png Središnja lica dijelova

Opis
Ova makronaredba poravnava objekte preko ograničenja lica ili rubova. Ovi su alati sada uključeni u Manipulator Workbench. Instalirajte ovu radnu površinu za najnovija ažuriranja tih alata.

Makronaredba verzije : 1.5.3
Datum zadnje izmjene : 2017-10-01
Verzija FreeCAD : All
Preuzimanje datoteka : ToolBar Icon
Mover-ico
Caliper-ico
Autor : easyw-fc
Autor
easyw-fc
Preuzimanje datoteka
ToolBar Icon
Mover-ico
Caliper-ico
Linkovi
Verzija
1.5.3
Datum zadnje izmjene
2017-10-01
Verzije FreeCAD-a
All
Zadani prečac
None
Vidi također
None

Opis

Temporary code for external macro link. Do not use this code. This code is used exclusively by Addon Manager.


# This code is copied instead of the original macro code
# to guide the user to the online download page.
# Use it if the code of the macro is larger than 64 KB and cannot be included in the wiki
# or if the RAW code URL is somewhere else in the wiki.

from PySide import QtGui, QtCore

diag = QtGui.QMessageBox(QtGui.QMessageBox.Information,
    "Information",
    "This macro must be downloaded from this link\n"
    "\n"
    "https://raw.githubusercontent.com/easyw/FreeCAD_Macros/master/Align%20Objects/CenterAlignObjectswFacesEdges.py" + "\n"
    "\n"
    "Quit this window to access the download page")

diag.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
diag.setWindowModality(QtCore.Qt.ApplicationModal)
diag.exec_()

import webbrowser 
webbrowser.open("https://raw.githubusercontent.com/easyw/FreeCAD_Macros/master/Align%20Objects/CenterAlignObjectswFacesEdges.py")
<class="rawcodeurl"><a href="https://raw.githubusercontent.com/easyw/FreeCAD_Macros/master/Align%20Objects/CenterAlignObjectswFacesEdges.py">raw code</a>


Alati

Aligner Aligner-ico.png: skup alata za pomicanje i poravnavanje 3D dijelova

Mover Mover-ico.png: skup alata za pomicanje i okretanje 3D dijelova na različitim osima

Measure Caliper-ico.png: skup alata za mjerenje 3D dijelova, s nekim mjerama Snap i Radius, Length, Angle.

Ovi pomoćnici rade s Part, App :: Part i Body objektima. Svaki Alat može biti Plutajući ili Usidren lijevo ili desno.


OLD Reference

Ovaj makronaredba pokriva sljedeća ograničenja:

  • Koncentrično ograničenje među necilindričnim dijelovima;
  • Ograničenje na središnja lica and/or rubove.
  • Radi i sa novim Body i App :: Part kontejnerima, kao i sa STEP hijerarhijom.

Center-align-faces.png

Center-align-faces-in-action.gif

Center-align-Body-objects.gif

Utube-alignment-tool-tutorial.png

Aligning tool video tutorial

Utube-alignment-STEP-models.png

Aligning STEP models video tutorial


koristite

Lica ili rubovi ograničavaju se među necilindričnim dijelovima: Samo otvorite FC dokument, pokrenite Macro i odaberite dva ili više Faces/Edges koje želite poravnati. Kliknite na gumb Align i to je to!

Skripta

Ikona za vašu alatnu trakuMacro Center Align Objects with Faces or Edges.png

CenterAlignObjectswFacesEdges.py

After downloading the file here
GitHub page
https://github.com/easyw/FreeCAD_Macros/tree/master/Align%20Objects
code:
https://github.com/easyw/FreeCAD_Macros/raw/master/Align%20Objects/CenterAlignObjectswFacesEdges.py
you need to copy the file to your macro directory.
How to install macros

Link

Forum : Faces or Edges constraint among non cylindrical parts Macro