A2Plus PARTLIST doesn't read parameters from PARTINFO(s) (bug or not?)

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: A2Plus PARTLIST parameter's linking (bug or not?)

Post by herbk »

Hi Klaus,

crosspost... but i get also not the simple text... nothing what i write to the partsinfos i get at the Partslist.
kbwbe wrote: Wed Oct 23, 2019 8:05 pm
totalcad wrote: Wed Oct 23, 2019 6:56 pm May be the name of the topic was not so clear, so I've renamed it to "A2Plus PARTLIST doesn't read parameter's from PARTINFO(s) (bug or not?)"
Hi guy's,

reading parameters from #partinfo# spreadsheets was never intended within A2plus. The intension was to code a simple algorithm which is "crawling" over all subassemblies and collecting all the parts of an assembly for generating a partslist. Without need to open every file within FreeCAD. Therefore the "document.xml" (which is a part of each .FCStd file) is evaluated directly and the necessary information is extracted from the #partinfo#'s. During these steps there is no expression evaluation possible. (At least with simple XML analysis)

A2plus is reading static text entries within each #partinfo# spreadsheet. You cannot define parameters here. Every entry has to be simple text. Sorry for no better news.
Gruß Herbert
User avatar
totalcad
Posts: 70
Joined: Sun Oct 20, 2019 9:09 pm

Re: A2Plus PARTLIST doesn't read parameters from PARTINFO(s) (bug or not?)

Post by totalcad »

Hello, kbwbe!
As I've known from the discussion here - you're the author of A2+! Pleased to meet! Good job, cool tool - special thanks!
So pity that it's not an easy task to solve my request//..Thanks for clarification!
But anyway it's so good to have some free stuff for making little technical products. May be my post will give some reason for reflection.

Thanks again, Good luck and a lot of free time to everybody!
Last edited by totalcad on Wed Oct 23, 2019 9:09 pm, edited 2 times in total.
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: A2Plus PARTLIST parameter's linking (bug or not?)

Post by kbwbe »

herbk wrote: Wed Oct 23, 2019 8:31 pm crosspost... but i get also not the simple text... nothing what i write to the partsinfos i get at the Partslist.
Hi Herbert,
on my systems, up to now, everything regarding partslist is working. I will check this with recent FC master branch.
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
User avatar
totalcad
Posts: 70
Joined: Sun Oct 20, 2019 9:09 pm

Re: A2Plus PARTLIST doesn't read parameters from PARTINFO(s) (bug or not?)

Post by totalcad »

(and i missunderstood the posts, sorry).
- herbk, thanks anyway for discussion! all ok! :)
User avatar
totalcad
Posts: 70
Joined: Sun Oct 20, 2019 9:09 pm

Re: A2Plus PARTLIST doesn't read parameters from PARTINFO(s) (bug or not?)

Post by totalcad »

@kbwbe! Partlist is working good with simple text (digits) in my case (UBUNTU 18.04.3; FC 0.18.3; A2plus V0.4.27a).
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: A2Plus PARTLIST doesn't read parameters from PARTINFO(s) (bug or not?)

Post by kbwbe »

totalcad wrote: Wed Oct 23, 2019 9:03 pm @kbwbe! Partlist is working good with simple text (digits) in my case (UBUNTU 18.04.3; FC 0.18.3; A2plus V0.4.27a).
Good to hear ! Thank you.
I guess the problem Herbert is reporting about is caused by Py3 or Qt5 changes in FC0.19. But i have to check this...
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: A2Plus PARTLIST parameter's linking (bug or not?)

Post by kbwbe »

PhilCera wrote: Tue Oct 22, 2019 9:27 am the line 130 must be changed in :

Code: Select all

elif not spreadSheetCellsFound and line.startswith(b'<Property name="cells" type="Spreadsheet::PropertySheet"'):
Thank you @PhilCera, that was the bug and i fixed it.
herbk wrote: Wed Oct 23, 2019 8:31 pm ... but i get also not the simple text... nothing what i write to the partsinfos i get at the Partslist.
Hi Herbert,
please update your A2plus to version V0.4.29.
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: A2Plus PARTLIST doesn't read parameters from PARTINFO(s) (bug or not?)

Post by herbk »

Hi Klaus,

works, - thank you.
Gruß Herbert
Post Reply