Search found 70 matches

Go to advanced search

by Chri1
Sat Apr 17, 2021 11:31 am
Forum: Forum in Deutsch
Topic: Flächenneigung ändern.
Replies: 6
Views: 236

Re: Flächenneigung ändern.

Sorry, aber ich find dort nichts passendes
by Chri1
Fri Apr 16, 2021 3:30 pm
Forum: Forum in Deutsch
Topic: Flächenneigung ändern.
Replies: 6
Views: 236

Flächenneigung ändern.

Hi

In ACAD kann man eine Fläche eines Körpers wählen und die Flächenneigung dieser Fläche ändern.
(Angabe der Drehachse und Winkel)
Geht das auch in FreeCad?

LG
chr1
by Chri1
Thu May 21, 2020 10:44 am
Forum: Python scripting and macros
Topic: manipulate svg-grafic in QDialog
Replies: 4
Views: 389

Re: manipulate svg-grafic in QDialog

Trying to achieve: I have a Dialog with some buttons. Every Button should show an explaining picture (always in the same label). On the whole, the pictures are relative similar. the differences I lied on different layers and can be shown by switching the layers. This works now by manipulating the sv...
by Chri1
Wed May 20, 2020 1:20 pm
Forum: Python scripting and macros
Topic: manipulate svg-grafic in QDialog
Replies: 4
Views: 389

Re: manipulate svg-grafic in QDialog

Firstly the code to manipulate the svg-file: import xml.etree.ElementTree as ET what = ..... svg # Path and filename tree=ET.parse(what) #Also possible: tree=ET.fromstring(svg - code) root=tree.getroot() for ding in root.iter('{http://www.w3.org/2000/svg}g'): #print(ding.attrib, ding.get('style')) d...
by Chri1
Sun May 17, 2020 3:56 pm
Forum: Python scripting and macros
Topic: manipulate svg-grafic in QDialog
Replies: 4
Views: 389

manipulate svg-grafic in QDialog

Hi I have a dialog (created with QT) with svg graphics (created with Inkscape), the grahics are integrated by styleSheet-property of an label. Pressing various buttons in the dialog box also changes the used SVG files. But: I don't want to use a lot of SVG files, I want to draw everything in one fil...
by Chri1
Sun May 03, 2020 11:40 am
Forum: Python scripting and macros
Topic: QDialog should only be visible in one document
Replies: 1
Views: 150

QDialog should only be visible in one document

Hi I have a non-modal dialog, made with QT. When I run it, it appears as I wanted it, but when I switch to another document, the dialog is still visible (also if I switch to the macro-Editor). It should only be visible in the document, where I called it. import PySide from PySide import QtGui ,QtCor...
by Chri1
Sat Apr 18, 2020 1:10 pm
Forum: Python scripting and macros
Topic: crash by removeObject in combination wih snapper
Replies: 3
Views: 608

Re: crash by removeObject in combination wih snapper

Joel_graff wrote:
Sat Apr 18, 2020 1:35 am

Code: Select all

todo.delay(my_fn, None)
I don't know if this will solve your problem, but by the description, it sounds like a job for todo.delay() :)
Thank you very very much, this was it!
todo.delay(sg.removeChild, sp) # sg is the sceneGraph, sp is the SoSeparator


Kind regards
Chri1
by Chri1
Fri Apr 17, 2020 3:55 pm
Forum: Python scripting and macros
Topic: crash by removeObject in combination wih snapper
Replies: 3
Views: 608

Re: crash by removeObject in combination wih snapper

I tried same, but instead of AnnotationLabel this: sg = Gui.ActiveDocument.ActiveView.getSceneGraph() ... te = coin.SoText2() ... Same result, it crashed And the error is a little different: Unhandled Base::Exception caught in GUIApplication::notify. The error message is: Access violation Unhandled ...
by Chri1
Sat Apr 11, 2020 1:58 pm
Forum: Python scripting and macros
Topic: crash by removeObject in combination wih snapper
Replies: 3
Views: 608

crash by removeObject in combination wih snapper

Hi Following code causes crash of FreeCAD(0.18), when line with removeObject is executed - Therefore I have it commented: (This is not the "real" code - I extracted it to show the problem.) objectAnn=None import DraftSnap class Ui_Dialog: def start(): snapit(0) def cb(point): print("cb called by Sna...
by Chri1
Wed Feb 12, 2020 1:09 pm
Forum: Python scripting and macros
Topic: Split a window - createViewer(2)
Replies: 1
Views: 172

Split a window - createViewer(2)

Hi For example: I have two cubes (grey, red) and want to draw a line(red) from an vertex of the first cube to a vertex of the second cube. To do this, I want to split the view into two parts, in the left part should be shown the first cube, in the right part the second cube. The start of the line sh...

Go to advanced search