Assembly 4 workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Assembly 4 workbench
I did tried with spreadsheet but something was doing wrong and it kept crushing. Thanks for the file with variables, need to research that.
Re: Assembly 4 workbench
How did you added that object labeled variables in the tree of the model? In the list of addons there is one that probably can do this, dynamic data, but i'm not sure.
Re: Assembly 4 workbench
Code: Select all
part = App.ActiveDocument.addObject('App::Part', 'MyPart')
vars = part.newObject('App::FeaturePython','Variables')
vars.addProperty( 'App::PropertyFloat', 'Height', 'Variables' )
vars.Height = 10.0
Re: Assembly 4 workbench
Thank you, I know almost nothing about programming and scripts, but somehow managed to understand how to use your code.) Hope maybe some similar functionality will be added to assembly4 )
Re: Assembly 4 workbench
It is in the next release
Re: Assembly 4 workbench
Hello,
there is a new version of Assembly4, 0.7. It's a very big update, there are 2 new features:
there is a new version of Assembly4, 0.7. It's a very big update, there are 2 new features:
- intergration of the Fasteners Workbench, it is now possible to insert a screw, nut or washer from the fasteners workbench, retaining the dynamic behaviour (type and size can be modified after assembly), and the placements are native Assembly4 attachments.
- inclusion of a Variables FeaturePython object, that allows to easily set variables in the entire document. This should help built parametric assemblies in a single file.
-
- Posts: 18
- Joined: Sat Nov 09, 2019 9:18 pm
Re: Assembly 4 workbench
Hello Zolko,
I have tested your assembly and I must admit it is great, and you are on the right path, when we are talking about assembling. There are a few issues I have with assembling with your Assembly 4. These issues are maybe already resolved, but I was unable to find anything about them here in a FreeCAD forum. It is possible that I wasn't looking careful enough, and if that is the case, I apologize for bothering you.
I was trying to use Assembly 4 for assembling cabinet furniture. Like in the picture1, I have created one part named "Panel". Then I linked that part four times to create left, right, bottom and top side of a Model named Box. I have used Variables to set dimensions of those panels. So far everything worked as expected. My next step was to assemble several Boxes in one ParentAssembly. My intention was to use Box assembly similar to the usage of the Panel part in the Box assembly. I simply link Box assembly several times to get a ParentAssembly with lets say four boxes. I managed to do that, but not like I was expecting. Box was linked, but Variables were empty. Like in the picture2. Everything was there except for Variables. My questions are as following:
I have tested your assembly and I must admit it is great, and you are on the right path, when we are talking about assembling. There are a few issues I have with assembling with your Assembly 4. These issues are maybe already resolved, but I was unable to find anything about them here in a FreeCAD forum. It is possible that I wasn't looking careful enough, and if that is the case, I apologize for bothering you.
I was trying to use Assembly 4 for assembling cabinet furniture. Like in the picture1, I have created one part named "Panel". Then I linked that part four times to create left, right, bottom and top side of a Model named Box. I have used Variables to set dimensions of those panels. So far everything worked as expected. My next step was to assemble several Boxes in one ParentAssembly. My intention was to use Box assembly similar to the usage of the Panel part in the Box assembly. I simply link Box assembly several times to get a ParentAssembly with lets say four boxes. I managed to do that, but not like I was expecting. Box was linked, but Variables were empty. Like in the picture2. Everything was there except for Variables. My questions are as following:
- Is it possible to "transfer" Variables with a link to an Assembly Model?
- Is it possible to "detach" link after linking, but to keep all the properties of a linked part? I would like to link my Box and then "detach" it and change Variables so my Box will have some specific dimensions. Then I would like to link my Box second time, but this time with different dimensions. That way, I will have two Boxes with all the properties of an original Box, but with different values.
Re: Assembly 4 workbench
Variables: Tumbs up, Zolko!
This is a feature I was looking for. Previously I used a Spreadsheet object for hosting project-variables, but the spreadsheet seems to slow down significantly with the project size, because every cell change causes a model recalculation. Then I turned to use a Part Design Body with dedicated Sketches. Works, but is not perfect because for instance, one cannot use calculated (Reference) values from the same sketch in a formula. Furthermore, A sketch cannot be annotated, which is quite important for this kind of abstract, definition or skeleton sketches.
This is a feature I was looking for. Previously I used a Spreadsheet object for hosting project-variables, but the spreadsheet seems to slow down significantly with the project size, because every cell change causes a model recalculation. Then I turned to use a Part Design Body with dedicated Sketches. Works, but is not perfect because for instance, one cannot use calculated (Reference) values from the same sketch in a formula. Furthermore, A sketch cannot be annotated, which is quite important for this kind of abstract, definition or skeleton sketches.