Search found 754 matches

Go to advanced search

by keithsloan52
Tue Mar 26, 2019 5:33 pm
Forum: Python scripting and macros
Topic: Not understanding Property LinkList
Replies: 7
Views: 101

Re: Not understanding Property LinkList

Many thanks - will give that a try
by keithsloan52
Tue Mar 26, 2019 4:26 pm
Forum: Python scripting and macros
Topic: Not understanding Property LinkList
Replies: 7
Views: 101

Re: Not understanding Property LinkList

Thanks for all your help Okay I went back to a Group with a sub group and using the standard group the error message I got was Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/freecad/Mod/GDML/importGDML.py", line 79, in open processGDML(filename) File "/usr/lib...
by keithsloan52
Tue Mar 26, 2019 12:23 pm
Forum: Python scripting and macros
Topic: Not understanding Property LinkList
Replies: 7
Views: 101

Re: Not understanding Property LinkList

keithsloan52 wrote: ↑ Tue Mar 26, 2019 9:24 am Code: Select all elementObj.fractions = fractions = fracList Just curious, why aren't you just assigning fracList directly to elementObj.fractions? Why the intermediate variable? No idea why a intermediate variable ended up in there. Typo?Coding whilst...
by keithsloan52
Tue Mar 26, 2019 9:24 am
Forum: Python scripting and macros
Topic: Not understanding Property LinkList
Replies: 7
Views: 101

Re: Not understanding Property LinkList

Thanks and I managed to code something that produces a list, but the solution is not very satisfactory. As part of loading a GDML file into FreeCAD and creating the Graphics elements I am also trying to parse the GDML materials section so that the parameters can be reviewed edit etc. Here is a cut d...
by keithsloan52
Tue Mar 26, 2019 5:00 am
Forum: Python scripting and macros
Topic: Not understanding Property LinkList
Replies: 7
Views: 101

Not understanding Property LinkList

I am trying to add a list of properties to a property. I assumed but I am wrong that I would pass a list. Error Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/freecad/Mod/GDML/importGDML.py", line 79, in open processGDML(filename) File "/usr/lib/freecad/Mod/GD...
by keithsloan52
Tue Mar 26, 2019 3:59 am
Forum: Python scripting and macros
Topic: App::FeaturePython equivalent toPart:: Multi Union/Fuse
Replies: 2
Views: 66

Re: App::FeaturePython equivalent toPart:: Multi Union/Fuse

Okay I tried to use Groups, but seems you cannot add a sub group i.e. Add a group to a group as I get the following error Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/freecad/Mod/GDML/importGDML.py", line 79, in open processGDML(filename) File "/usr/lib/free...
by keithsloan52
Mon Mar 25, 2019 10:53 pm
Forum: Python scripting and macros
Topic: Groups.
Replies: 4
Views: 72

Re: Groups.

On the second question, FreeCAD uses the greyed-out icon to indicate the object has no visual representation in the 3D view. This can be caused by a broken ViewProvider class, on by not assigning a ViewProvider class in the first place. You may assign a view provider if you wish, even if your objec...
by keithsloan52
Mon Mar 25, 2019 9:25 pm
Forum: Python scripting and macros
Topic: Groups.
Replies: 4
Views: 72

Groups.

Okay I am trying to add groups to a document/file. My code looks like def processIsotopes() : from GDMLObjects import GDMLIsotope isotopesGrp = doc.addObject("App::DocumentObjectGroup","Isotopes") for isotope in materials.findall('isotope') : N = int(isotope.get('N')) Z = int(isotope.get('Z')) name ...
by keithsloan52
Mon Mar 25, 2019 5:38 am
Forum: Python scripting and macros
Topic: App::FeaturePython equivalent toPart:: Multi Union/Fuse
Replies: 2
Views: 66

App::FeaturePython equivalent toPart:: Multi Union/Fuse

Part has the option of creating a Multi Union/Fusion of sub Parts. Is an equivalent available with a user defined App::FeaturePython object? Or could such a equivalent be implemented I would like to create a hierarchi of user defined objects which do not have graphics parts but do allow users to set...

Go to advanced search