Back to Blog
Freecad cross section5/10/2023 ![]() # by Chris_G : exlude App.Part from the list of input objects + many code style fixes (PEP8) * License along with this macro if not, write to the Free Software * * You should have received a copy of the GNU Library General Public * * GNU Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * but WITHOUT ANY WARRANTY without even the implied warranty of * * This software is distributed in the hope that it will be useful, * * the License, or (at your option) any later version. * as published by the Free Software Foundation either version 2 of * * it under the terms of the GNU Lesser General Public License (LGPL) * * This program is free software you can redistribute it and/or modify * * This file is a supplement to the FreeCAD CAx development system. * restore the scene to its previous state before the macro was * * a default cross-section and pop up a window to enable you to set * * your list of macros and double-click on this one. * install it in your macros directory, then use the menu to call up * To run the macro, first download it from this site and * * show the cross-section either as an outline or a view of the sliced * * section can be moved along that normal using a slider bar. * cross-sectioning plane is specified by its normal, and the cross- * * currently visible objects in the currently active document. * This widget makes an interactively moveable cross-section of the * Macro cross section.FCMacro # -*- coding: utf-8 -*. Siehe rechts unten: "Speichern des Schnitt-Ergebnisses" (Keep the sectional view). Wahlweises "Speichern des Schnitt-Ergebnisses " (Keep the sectional view) erfolgt beim Schließen des Dialogfeldes "Körper-Schnitt" (Cross section, Kreuz rechts oben).Wahl des gewünschten Schnittbildes durch Anklicken von "Durchdringungsfigur" (Outline, ist voreingestellt) oder "Geschnittener Körper-Rest" (Cut Objects).Den blauen Schieber "Position des Schnittes entlang der Schnittflächen-Normale" (Position along axis) nach Wahl zwischen 0% und 100% einstellen (grün blinkende Skala, Anfangswert 50%).Wahl der Schnittebenen-Normale durch einsetzen von Werten für die Vektorlängen "x, y und/oder z".Über dem "Dialog-Fenster" (Combo-Ansicht) erscheint das oben abgebildete Dialogfeld "Körper-Schnitt" (Cross section ).Der/die zu schneidender/n Körper wird/werden bereits geschnitten dargestellt.Aufruf des Makros : "Makro > Makros > Schnitt.FCMacro > Ausführen ". ![]() mit dem Namen "Schnitt" in den Dateiordner. Der unten stehende Programm-Code ist als Text-Datei mit der Endung.
0 Comments
Read More
Leave a Reply. |