Problem Importing Part into Assembly

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!
Post Reply
tsopkow
Posts: 13
Joined: Thu Nov 29, 2018 2:54 pm

Problem Importing Part into Assembly

Post by tsopkow »

I am trying to create an assembly hardware using .stp files I downloaded from a vendors site. Some items import in with no problems and I am able to create constraints. Others however give me the attached error message.

I do notice that if I import the files through the file menu the files that work have a blue box icon in treeview and the ones that don't have a part icon.

Could somebody explain to me what I need to do to get these parts usable in an assembly?

Thanks
Attachments
InputMessage.JPG
InputMessage.JPG (19.19 KiB) Viewed 2037 times
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Problem Importing Part into Assembly

Post by PrzemoF »

Welcome to the forum! Please read the IMPORTANT: Please click here and read this first, before asking for help post (top of the page). Also can you share the step file or link to the vendor page?
tsopkow
Posts: 13
Joined: Thu Nov 29, 2018 2:54 pm

Re: Problem Importing Part into Assembly

Post by tsopkow »

My apologies.

Here is my FreeCAD info

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: Release
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)

Below is the link to a file that is giving me troubles;

https://drive.google.com/file/d/1lX3vqu ... sp=sharing

Below is a link to a file that works;

https://drive.google.com/file/d/1ezZkBO ... sp=sharing

Thanks
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Problem Importing Part into Assembly

Post by PrzemoF »

Try a newer FreeCAD. I tested the first file and that's what I got:
phpBB [video]

Does it work the same for you? I see the Part icons in the tree, but there are blue blocks inside :)
The "good" file has a flat structure in the tree. Almost for sure there was a change in step import since v0.17. My version is:
OS: "Fedora release 28 (Twenty Eight)"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15263 (Git)
Build type: Unknown
Python version: 2.7.15
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1.oce-0.18
Locale: Polish/Poland (pl_PL)

P.S. I don't remember anyone using FreeCAD to put together I/O panels - would be great if you could share some details of your work (no pressure, I understand not everything can be shared).
Bance
Veteran
Posts: 4274
Joined: Wed Feb 11, 2015 3:00 pm
Location: London

Re: Problem Importing Part into Assembly

Post by Bance »

The error is self explanatory, Przemov's video shows the problem file contains more than one visible part.

You can do one of two things, make all but one part invisible, and make visible and import each part in turn.

Or create a sub-Assembly using the method above and import that.

Not sure if it is possible to create a part compound for import into assembly, you could try!

HTH Steve.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Problem Importing Part into Assembly

Post by NormandC »

Actually, the real issue here is not with FreeCAD, it's with the Assembly2 add-on which AFAIK has not been updated to recognize the Part container (yellow step icon) introduced in v0.17. This container is used to organize STEP assemblies.

Assembly2 is no longer actively developed, you should have a look at A2Plus, a fork which is in active development. I believe it supports the Part container, but I'm not 100% certain.
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Problem Importing Part into Assembly

Post by kbwbe »

NormandC wrote: Thu Nov 29, 2018 6:43 pm Assembly2 is no longer actively developed, you should have a look at A2Plus, a fork which is in active development. I believe it supports the Part container, but I'm not 100% certain.
Hi @NormandC,
A2plus supports Part- and Body-Containers. Edit: During importing parts /Edit Also it is able to import more than one visible object.

@tsopkow: It is worth to try A2plus. But it is unfortunately not compatible anymore with Assembly2. So your assemblies have to be done completely new, starting with an empty file and new imports.
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
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Problem Importing Part into Assembly

Post by NormandC »

Thanks for the confirmation kbwbe! I've briefly tested your workbench some time ago but my time was limited. I hope to spend more time testing it over the coming Holidays.
Post Reply