Search found 4692 matches

by mario52
Wed Nov 15, 2017 1:55 pm
Forum: Python scripting and macros
Topic: Shape2View in Makro
Replies: 6
Views: 1060

Re: Shape2View in Makro

hi I do not understand ! (ps: use the Code button for your code) # -*- coding: utf-8 -*- # Set the current view perpendicular to the selected face # Place la vue perpendiculairement à la face selectionnee # 2013 Jonathan Wiedemann, 2016 Werner Mayer import FreeCAD,Draft from pivy import coin def poi...
by mario52
Wed Nov 15, 2017 1:12 pm
Forum: Forum français
Topic: [Assembly 2] Faire pivoter sur 360°
Replies: 13
Views: 2869

Re: [Assembly 2] Faire pivoter sur 360°

Bonjour j'ai modifié votre script pour qu'il fonctionne avec deux objets sélectionnés (et non spécifiques comme dans votre macro) j'ai inversé les lignes pour avoir la rotation avec la première sélection , ainsi la macro (qui fera la rotation 360 degrés sur une sélection) peut être utilisée par Dens...
by mario52
Mon Nov 13, 2017 9:26 am
Forum: Python scripting and macros
Topic: Shape2View in Makro
Replies: 6
Views: 1060

Re: Shape2View in Makro

hi

try:

Code: Select all

import FreeCAD,Draft
App = FreeCAD

sel = FreeCADGui.Selection.getSelection()	# objects selected
Draft.makeShape2DView(sel[0]) 			# sel[0] first object selected

App.ActiveDocument.recompute()
mario
by mario52
Sat Nov 11, 2017 2:41 pm
Forum: Forum in Deutsch
Topic: Non Planar Surface in Workfeatures WB
Replies: 21
Views: 3130

Re: Non Planar Surface in Workfeatures WB

hi want to test this version unzip the file WF_2015.7z and copy the file in the WorkFeature insteat the original file and delete all files ".pyc" and start FreeCAD i modify the search font directly in the preference Draft font and correctly the rotation "Placement instead Rotate"...
by mario52
Fri Nov 10, 2017 10:18 am
Forum: Forum in Deutsch
Topic: Non Planar Surface in Workfeatures WB
Replies: 21
Views: 3130

Re: Non Planar Surface in Workfeatures WB

hi i have tray the feature and the result, the panel "Non Planar Surface" is displayed and the Report view display ... NonPlanarFace00.png here the error is Font file not found and not cause with face or surface what does your "Report view " display ? PS:I do not know how to chan...
by mario52
Fri Nov 03, 2017 5:22 pm
Forum: Python scripting and macros
Topic: Add widget - top area
Replies: 2
Views: 715

Re: Add widget - top area

hi adapt this snippet (QtGui.QDockWidget()) myNewFreeCADWidget = QtGui.QDockWidget() # create a new dckwidget myNewFreeCADWidget.ui = Ui_MainWindow() # myWidget_Ui() # load the Ui script myNewFreeCADWidget.ui.setupUi(myNewFreeCADWidget) # setup the ui FCmw = FreeCADGui.getMainWindow() # PySide # the...
by mario52
Wed Nov 01, 2017 8:37 pm
Forum: Open discussion
Topic: Should invest in FreeCad...?
Replies: 5
Views: 1603

Re: Should invest in FreeCad...?

hi
good idea instead white color
all in black background and objects , lines white and invert with Gimp
BlWh002.png
BlWh002.png (6.24 KiB) Viewed 1371 times
BlWh012.png
BlWh012.png (6.24 KiB) Viewed 1371 times
mario
by mario52
Wed Nov 01, 2017 8:14 pm
Forum: Python scripting and macros
Topic: Save image for printing
Replies: 45
Views: 13294

Re: Save image for printing

hi mangtronix

one suggestion for you, adding one option for adapt your macro for this view (without color B/W) Should invest in FreeCad...?

thanks
mario
by mario52
Wed Nov 01, 2017 7:35 pm
Forum: Python scripting and macros
Topic: Determine opened "Document" Type Using Python
Replies: 1
Views: 485

Re: Determine opened "Document" Type Using Python

hi list the open windows ( https://forum.freecadweb.org/viewtopic.php?f=22&t=8900 ) from PySide import QtGui mw=FreeCADGui.getMainWindow() dws=mw.findChildren(QtGui.QDockWidget) for i in dws: print i.objectName() the activeWorkbench ( https://forum.freecadweb.org/viewtopic.php?t=5638 ) w=Gui.act...
by mario52
Tue Oct 31, 2017 11:29 am
Forum: Open discussion
Topic: Should invest in FreeCad...?
Replies: 5
Views: 1603

Re: Should invest in FreeCad...?

hi
little example
BlWh00.png
BlWh00.png (11.13 KiB) Viewed 1493 times
BlWh01.png
BlWh01.png (20.61 KiB) Viewed 1493 times
BlWh02.png
BlWh02.png (14.02 KiB) Viewed 1493 times
mario