Error message with A2P topology naming

Discussion about the development of the Assembly workbench.
WayofWood
Posts: 17
Joined: Mon Nov 26, 2018 4:59 pm

Error message with A2P topology naming

Postby WayofWood » Tue Jan 01, 2019 7:36 pm

When I try to import the attached file in a new assembly the module throws an error message:

Code: Select all

Running the Python command 'a2p_ImportPart' failed:
Traceback (most recent call last):
  File "/home/olf/.FreeCAD/Mod/A2plus/a2p_importpart.py", line 275, in Activated
    importedObject = importPartFromFile(doc, filename)
  File "/home/olf/.FreeCAD/Mod/A2plus/a2p_importpart.py", line 199, in importPartFromFile
    withColor=True
  File "/home/olf/.FreeCAD/Mod/A2plus/a2p_MuxAssembly.py", line 103, in muxAssemblyWithTopoNames
    newName = "".join((vertexNames[i],obj.Name,';'))

list index out of range
Any help appreciated.

In general should I rather post this kind of error message in the forum or should I post it to the bug tracker?

Best regards
Oliver

Code: Select all

OS: Ubuntu 16.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: None
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
Attachments
tn_base_table_frame_with_supports.fcstd
(378.88 KiB) Downloaded 10 times
Turro75
Posts: 166
Joined: Mon Aug 15, 2016 10:23 pm

Re: Error message with A2P topology naming

Postby Turro75 » Tue Jan 01, 2019 8:15 pm

Hello,

no issues on my side, I tried both opening and importing it in another assembly.

A2plus updated just before the test
my setup:

OS: Ubuntu 18.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.13712 (Git)
Build type: None
Branch: master
Hash: 57b7f3389a846454d01c2abea509b8394099735c
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: Italian/Italy (it_IT)
kbwbe
Posts: 853
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Error message with A2P topology naming

Postby kbwbe » Tue Jan 01, 2019 8:29 pm

WayofWood wrote:
Tue Jan 01, 2019 7:36 pm
When I try to import the attached file in a new assembly the module throws an error message:

Code: Select all

Running the Python command 'a2p_ImportPart' failed:
Traceback (most recent call last):
  File "/home/olf/.FreeCAD/Mod/A2plus/a2p_importpart.py", line 275, in Activated
    importedObject = importPartFromFile(doc, filename)
  File "/home/olf/.FreeCAD/Mod/A2plus/a2p_importpart.py", line 199, in importPartFromFile
    withColor=True
  File "/home/olf/.FreeCAD/Mod/A2plus/a2p_MuxAssembly.py", line 103, in muxAssemblyWithTopoNames
    newName = "".join((vertexNames[i],obj.Name,';'))

list index out of range
I confirm, error occures with toponaming enabled. I will have a look.

P.S. the subassembly "tn_base_table_frame_001" causes this error. Please post the subassembly and sourcefiles for this.
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.26b, installable via FreeCAD's addon manager
Tutorials:
Paul Randall: https://youtu.be/mnkecA9S7kc
anisim (deutsch): https://www.youtube.com/watch?v=vDcaFq6IEJM
WayofWood
Posts: 17
Joined: Mon Nov 26, 2018 4:59 pm

Re: Error message with A2P topology naming

Postby WayofWood » Tue Jan 01, 2019 8:55 pm

kbwbe wrote:
Tue Jan 01, 2019 8:29 pm
I confirm, error occures with toponaming enabled. I will have a look.
P.S. the subassembly "tn_base_table_frame_001" causes this error. Please post the subassembly and sourcefiles for this.
Thanks a lot. Please find the missing file attached. I also attached the sub-sub-assemblies and the parts - although not 100% sure if I got everything.

Best regards
Oliver
Attachments
base_table_y_beam_i_profile_120x40_heavy.fcstd
(153.37 KiB) Downloaded 8 times
base_table_x_support_i_profile_80x40_heavy.fcstd
(243.59 KiB) Downloaded 6 times
base_table_x_beam_i_profile_120x40_heavy.fcstd
(109 KiB) Downloaded 6 times
tn_base_table_half_frame.fcstd
(104.11 KiB) Downloaded 7 times
tn_base_table_frame.fcstd
(211.19 KiB) Downloaded 6 times
kbwbe
Posts: 853
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Error message with A2P topology naming

Postby kbwbe » Tue Jan 01, 2019 9:46 pm

WayofWood wrote:
Tue Jan 01, 2019 8:55 pm
Hi Oliver,
i just assembled the frame and the support newly (toponaming enabled). The resulting assembly can be imported to next level assembly. Very strange.
I worked with recent master version.

Please find my assembly attached and try to import it to next level assembly.
Attachments
assy.FCStd
(349.78 KiB) Downloaded 11 times
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.26b, installable via FreeCAD's addon manager
Tutorials:
Paul Randall: https://youtu.be/mnkecA9S7kc
anisim (deutsch): https://www.youtube.com/watch?v=vDcaFq6IEJM
WayofWood
Posts: 17
Joined: Mon Nov 26, 2018 4:59 pm

Re: Error message with A2P topology naming

Postby WayofWood » Wed Jan 02, 2019 6:58 am

kbwbe wrote:
Tue Jan 01, 2019 9:46 pm
i just assembled the frame and the support newly (toponaming enabled). The resulting assembly can be imported to next level assembly. Very strange.
I worked with recent master version.
Thanks a lot. I will be traveling for a few days and work with with your version as soon as I‘m back.

Best regards
Oliver