that's cool. Could you explain a little how we could include this into the existing code ? I'm in no way a specialist of BoM and cut-list, so I don't really know the desired workflow.
that's cool. Could you explain a little how we could include this into the existing code ? I'm in no way a specialist of BoM and cut-list, so I don't really know the desired workflow.
I would have integrated it into the existing code - it's just that I honestly don't understand the entire Python Gui and OO stuff well enough to change the existing BOM file. Let me try to explain how I would envision the workflow:
Code: Select all
a = Partlist(FreeCAD.ActiveDocument.getObject("Model"), 0)
t = dictoarr(a)
fileName = whateverfunctionisusedtogetafilename() # :-)
if fileName:
with open(fileName, 'w') as csvfile:
writer = csv.writer(csvfile, delimiter="\t")
writer.writerows(t)
Instead of a spreadsheet, I added the info directly as property to the Part (works also for Bodies). This is still very early work in progress. I'm really not used to cut-lists and part-lists and BoM-s, so all help and suggestions would be welcome.
Code: Select all
DVP::extractFaces - SectionView -Can't make faces from projected edges
I am clearly not expert when it comes to BOMs. At the end I think it's mainly personal taste if it is a spreadsheet or a property. I think in any case it would be beneficial if a couple of configurable field names (like supplier, product name, price, etc.) would be given as a template. Otherwise there is a risk that "suplier" is not correctly matched and it's just more typing.
The difference is subtle on the small scale of the icons in the toolbar but significant , at least for me, for giving the hint of a active or inactive icon during editing.I'm still not 100% happy with how they look but it seems to work for me for now. I'vd done nothing special, just aded some stroke of color to the icons.Zolko wrote: ↑Tue Jun 16, 2020 3:21 pmIf you can propose something I'd be glad to include it-this is more of a trunk version small usability issue. The Icons for create LCS, datum plane, datum axis etc in part should be more "colorful" when active. There is little to no contrast between states especially when using a dark style sheet.
For my job (strcutural steel elements for buildings) I create BOM like in the example attached.Instead of a spreadsheet, I added the info directly as property to the Part (works also for Bodies). This is still very early work in progress. I'm really not used to cut-lists and part-lists and BoM-s, so all help and suggestions would be welcome.
thank-you, yes that's better. I've updated the workbench with these icons. Also improved the measure toolOficineRobotica wrote: ↑Sat Jun 20, 2020 10:53 pmThe difference is subtle on the small scale of the icons in the toolbar but significant , at least for meZolko wrote: ↑Tue Jun 16, 2020 3:21 pmIf you can propose something I'd be glad to include it-this is more of a trunk version small usability issue. The Icons for create LCS, datum plane, datum axis etc in part should be more "colorful" when active. There is little to no contrast between states especially when using a dark style sheet.