A2Plus: error at including file

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
koluna
Posts: 338
Joined: Thu Sep 20, 2018 12:36 pm

A2Plus: error at including file

Post by koluna »

Hi, Dears!

OS: Linux Mint 18.1 Serena
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16093 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 690774c0effe4fd7b8d2b5e2fb2b8c8d145e21ce
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)

I use A2Plus.
The main file is printer.fcstd. Other files are included into the main file with A2Plus.
I want to include endstop1.fcstd into the main file. When I was making this the error was occurred.
What is wrong?
https://yadi.sk/d/W9364ntw0kLUew
A3 not available
Running the Python command 'a2p_ImportPart' failed:
Traceback (most recent call last):
File "/home/koluna/.FreeCAD/Mod/A2plus/a2p_importpart.py", line 344, in Activated
importedObject = importPartFromFile(doc, filename)
File "/home/koluna/.FreeCAD/Mod/A2plus/a2p_importpart.py", line 190, in importPartFromFile
importableObjects.extend(getImpPartsFromDoc(importDoc)) #visible parts only
File "/home/koluna/.FreeCAD/Mod/A2plus/a2p_importpart.py", line 103, in getImpPartsFromDoc
impPartList = filterImpParts(obj)
File "/home/koluna/.FreeCAD/Mod/A2plus/a2p_importpart.py", line 151, in filterImpParts
obj.Placement = plmGlobal

global name 'plmGlobal' is not defined
User avatar
roerich_64
Veteran
Posts: 1465
Joined: Thu May 21, 2015 7:00 pm
Location: Ostfriesland

Re: A2Plus: error at including file

Post by roerich_64 »

Hi,

looks good:
printer.jpg
printer.jpg (191.85 KiB) Viewed 1328 times
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16093 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 690774c0effe4fd7b8d2b5e2fb2b8c8d145e21ce
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)

BR
Walter
Die Liebe wird siegen, denn sie ist unzerstörbar :) ;)
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: A2Plus: error at including file

Post by kbwbe »

koluna wrote: Tue Mar 26, 2019 2:25 pm I want to include endstop1.fcstd into the main file. When I was making this the error was occurred.
What is wrong?
Hi koluna,
also for me the import works fine, see screenshot. Is your A2plus WB up to date ?
.
Endstop1-import.png
Endstop1-import.png (196.45 KiB) Viewed 1318 times
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
koluna
Posts: 338
Joined: Thu Sep 20, 2018 12:36 pm

Re: A2Plus: error at including file

Post by koluna »

It does not work for me! :(
How can I learn a version?
koluna
Posts: 338
Joined: Thu Sep 20, 2018 12:36 pm

Re: A2Plus: error at including file

Post by koluna »

Where I got a model: https://grabcad.com/library/capteur-de- ... -endstop-1
It is in attachments.
It is a ".stp" file. I opened it in FC and saved it in a ".fcstd" file.
Attachments
capteur-de-fin-de-course-mecanique-1.snapshot.8.zip
(574.35 KiB) Downloaded 22 times
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: A2Plus: error at including file

Post by kisolre »

Addon manager -> Check for available updates will show if it is the latest version:
AddonUpdate.JPG
AddonUpdate.JPG (57.98 KiB) Viewed 1301 times
Syres
Veteran
Posts: 2902
Joined: Thu Aug 09, 2018 11:14 am

Re: A2Plus: error at including file

Post by Syres »

I believe the version number has been in the A2P Wb name since version 2.4 as per screenshot:
A2PVersion.jpg
A2PVersion.jpg (13.17 KiB) Viewed 1293 times
koluna
Posts: 338
Joined: Thu Sep 20, 2018 12:36 pm

Re: A2Plus: error at including file

Post by koluna »

kisolre wrote: Tue Mar 26, 2019 5:40 pm Addon manager -> Check for available updates will show if it is the latest version:
What version do You use?
I do not have so a button!
Attachments
wb-0.png
wb-0.png (43.4 KiB) Viewed 1292 times
User avatar
roerich_64
Veteran
Posts: 1465
Joined: Thu May 21, 2015 7:00 pm
Location: Ostfriesland

Re: A2Plus: error at including file

Post by roerich_64 »

koluna wrote: Tue Mar 26, 2019 5:19 pm Where I got a model: https://grabcad.com/library/capteur-de- ... -endstop-1
It is in attachments.
It is a ".stp" file. I opened it in FC and saved it in a ".fcstd" file.
That is the right way ;)

I have tested it with an older version of FreeCad:
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16065 (Git)
Build type: Release
Branch: master
Hash: 8f58abfd4961c645b3b4d7ffeea65fd551b7159b
Python version: 2.7.14 <----------------
Qt version: 4.8.7 <----------------
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: German/Germany (de_DE)

Same:
printer_I.jpg
printer_I.jpg (164.81 KiB) Viewed 1278 times
On which place comes the error? Can you make a screenshot?
Die Liebe wird siegen, denn sie ist unzerstörbar :) ;)
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: A2Plus: error at including file

Post by kisolre »

Syres wrote: Tue Mar 26, 2019 5:55 pm I believe the version number has been in the A2P Wb name since version 2.4 as per screenshot:

A2PVersion.jpg
addon manager sees only 0.4.0 under windows
koluna wrote: Tue Mar 26, 2019 5:57 pm What version do You use?
I do not have so a button!
Latest windows - 0.18.16093
But from your screenshot "This addon is already installed" shows that there is no update.
Post Reply