Search found 86 matches

by Chri1
Mon Jan 20, 2020 11:02 am
Forum: Forum in Deutsch
Topic: numpy und freecad neu installieren
Replies: 6
Views: 935

Re: numpy und freecad neu installieren

Ich verwende win 10
by Chri1
Thu Jan 16, 2020 1:43 pm
Forum: Forum in Deutsch
Topic: numpy und freecad neu installieren
Replies: 6
Views: 935

numpy und freecad neu installieren

Hi Verwende Freecad 0.18 In meinen Makros verwende ich numpy, hat immer funktioniert, doch plötzlich funktioniert das nicht mehr: import numpy -> Fehlermeldung "… older Version..." und ich solle numpy neu installieren. Viel im Internet gesucht wie das geht, nix hat funktioniert. Stimmt es,...
by Chri1
Thu Nov 14, 2019 2:55 pm
Forum: Forum in Deutsch
Topic: Befehle in eigener Symbolleiste verschwinden
Replies: 3
Views: 571

Re: Befehle in eigener Symbolleiste verschwinden

Ah ja! Wenn ich in der neuen FreeCAD-Sitzung zuerst Draft und dann meine Workbench lade, funktioniert es. Wollte noch nachvollziehen, weswegen ich manchmal die Draft-Befehle in meiner Workbench verloren habe: In neuer Sitzung gleich meinen Workbench laden (-> Draft-Befehle werden nicht angezeigt) un...
by Chri1
Thu Nov 14, 2019 8:39 am
Forum: Forum in Deutsch
Topic: Befehle in eigener Symbolleiste verschwinden
Replies: 3
Views: 571

Befehle in eigener Symbolleiste verschwinden

Hi Habe einen eigenen Arbeitsbereich mit Symbolleisten erstellt. In den Symbolleisten habe ich Buttons für die von mir erstellten Makros. Soweit ok. Das Problem: Wenn ich nun z.B. den Draft-Move-Befehl in einer meiner Symbolleisten haben will, funktioniert das auch, doch beim Neustart von FreeCAD (0...
by Chri1
Tue Nov 05, 2019 2:20 pm
Forum: Python scripting and macros
Topic: setPropertyByName
Replies: 3
Views: 556

Re: setPropertyByName

Thanks, this works
by Chri1
Tue Nov 05, 2019 1:17 pm
Forum: Python scripting and macros
Topic: setPropertyByName
Replies: 3
Views: 556

setPropertyByName

Hi I created a python-object and added propérties (w1,w2,w3, w4) I managed to get the value of a property: … wi=["w1","w2","w3","w4"] # i generated by Code before val =bk.Object.getPropertyByName(winkel[i].Value) is there something equivalent to set the value ...
by Chri1
Sat Oct 19, 2019 2:59 pm
Forum: Python scripting and macros
Topic: origin of face of a prism, map rectangle to face
Replies: 3
Views: 853

Re: origin of face of a prism, map rectangle to face

I think I got it! Has nothing to do with the actual workplane obj: circle is already drawn #Before mapped: P0 = obj.Placement.Base ... #After mapped: mi=obj.Placement.toMatrix() mi=mi.inverse() P2=multVec(P0) obj.AttachmentOffset.Base.x=P2.x obj.AttachmentOffset.Base.y=P2.y mp = wp.getLocalCoords(mp...
by Chri1
Fri Oct 18, 2019 12:34 pm
Forum: Python scripting and macros
Topic: origin of face of a prism, map rectangle to face
Replies: 3
Views: 853

Re: origin of face of a prism, map rectangle to face

Ok, I also have to take care about rotation, but not now - first, I take a circle instead of rectangle. I dont' understand it!: The manual workflow would be: I draw a cube (10,10,10) in position(0,0,0) I select the face of the cube, which is parallel to yz and x = 10 and make it to current workingpl...
by Chri1
Tue Oct 15, 2019 8:14 am
Forum: Python scripting and macros
Topic: origin of face of a prism, map rectangle to face
Replies: 3
Views: 853

Re: origin of face of a prism, map rectangle to face

Ok, as I have thought so far, it does not work.
Will have to deal with coordinate system transformations...
by Chri1
Mon Oct 14, 2019 8:39 pm
Forum: Python scripting and macros
Topic: origin of face of a prism, map rectangle to face
Replies: 3
Views: 853

origin of face of a prism, map rectangle to face

Hi I have a prism, select one face of the prism, make the face to actual workingplane and draw a rectangle (-> obj) Now I map the rectangle to the face by code: .... bk = FreeCADGui.Selection.getSelectionEx()[0] #The selected face flae = bk.SubElementNames[0] ... P0 = obj.Placement.Base #The origin ...