V0.19 Benchmarking--2019 Monthly Challenges #1,#2,#3,#4,#5,#6,#7a,#7b
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: V0.19 Benchmarking--2019 Monthly Challenges #1,#2,#3,#4,#5
Well... looks like I got my next exercise delivered on a plate
Thank you very much indeed!
That looks perfect. I particularly like you introducing Assembly 4 (my goal)
I shall enjoy it
Thank you very much indeed!
That looks perfect. I particularly like you introducing Assembly 4 (my goal)
I shall enjoy it
Re: V0.19 Benchmarking--2019 Monthly Challenges #6
This seemingly innocuous looking object is a bit difficult to envision how one should model it at first look. I have to admit I could not find a simple way to model this solely in PartDesign and had to resort to the 'Connect' tool in the Part workbench to complete it. Any port in a storm.
In any event, it is a good example of using sketch attachment to align bodies and the Part > Connect* to join them as shown in the following images:
.
*Ref. https://wiki.freecadweb.org/Part_JoinConnect
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22474 (Git)
Build type: Release
Branch: master
Hash: a44f8ffd427fa9b23b1f00dbf62d66cd152cd774
Python version: 3.8.5
Qt version: 5.12.6
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)
In any event, it is a good example of using sketch attachment to align bodies and the Part > Connect* to join them as shown in the following images:
.
*Ref. https://wiki.freecadweb.org/Part_JoinConnect
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22474 (Git)
Build type: Release
Branch: master
Hash: a44f8ffd427fa9b23b1f00dbf62d66cd152cd774
Python version: 3.8.5
Qt version: 5.12.6
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)
"It is a poor workman who blames his tools..."
Re: V0.19 Benchmarking--2019 Monthly Challenges #5
I am following this exercise (#5) and have a question about variables, please.
- what type of variable should I use for these formulas?
(some are obvious and easy to understand) I have used "Float" ?
- whichever type I choose I am unable to enter formula into value window?
(the only thing I can do is to leave value with random number and then edit formula using formula editor)
BTW if you'd rather I didn't "mess up" your thread with these questions,
just let me know, please and I will try elsewhere (e.g. Help on using FreeCAD)
Last edited by bambuko on Wed Sep 30, 2020 6:44 pm, edited 1 time in total.
Re: V0.19 Benchmarking--2019 Monthly Challenges #1,#2,#3,#4,#5,#6
Yes, if it is to be a decimal value ( as opposed to an integer or a string). I have no idea what the other choices mean since I am not a programmer.
Yes, again. It is not so intuitive, but now you know.
You have learned by doing. Bravo.
Your questions are quite appropriate for the thread and so they add value. Thank you.
"It is a poor workman who blames his tools..."
Re: V0.19 Benchmarking--2019 Monthly Challenges #7a
This assembly example can be modeled, assembled, and animated using Assembly4 (Asm4) and the PartDesign workbench in a single file, in-context. The process starts with adding an assembly Model in the Asm4 workbench and a Body for each component: base, disc, and slider in the Part folder.
A few details regarding the work process are presented in the captions of the following images:
.
This assembly can also be created without a master sketch and animated by varying the attachment offset or LCS links of the disc and slider bodies. This is my preferred approach especially with more complex mechanisms. A simple expression can be used to calculate the attachment offset of the slider as a function of the crank_angle. I will leave this alternative approach for the next post, #7b.
Please stay tuned.
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22261 (Git)
Build type: Release
Branch: master
Hash: 1c432fd6170b7904592a224194e42d3c566707a6
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
A few details regarding the work process are presented in the captions of the following images:
.
This assembly can also be created without a master sketch and animated by varying the attachment offset or LCS links of the disc and slider bodies. This is my preferred approach especially with more complex mechanisms. A simple expression can be used to calculate the attachment offset of the slider as a function of the crank_angle. I will leave this alternative approach for the next post, #7b.
Please stay tuned.
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22261 (Git)
Build type: Release
Branch: master
Hash: 1c432fd6170b7904592a224194e42d3c566707a6
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
"It is a poor workman who blames his tools..."
Re: V0.19 Benchmarking--2019 Monthly Challenges #1,#2,#3,#4,#5,#6,#7a
One more comment on exercise #5 and using variables.
at this point I couldn't remember the names and was unable to find a way to display a list of variables in a separate panel while editing the sketch
(perhaps it can be done?)
So my trick was to prefix all the variable names with a common letter (I have used "v" for variables)
and now when entering the formula I have a dropdown list of available variables to choose from:
OK maybe it is over complicated for just three variables but anymore and I think it could be useful?
at this point I couldn't remember the names and was unable to find a way to display a list of variables in a separate panel while editing the sketch
(perhaps it can be done?)
So my trick was to prefix all the variable names with a common letter (I have used "v" for variables)
and now when entering the formula I have a dropdown list of available variables to choose from:
OK maybe it is over complicated for just three variables but anymore and I think it could be useful?
Re: V0.19 Benchmarking--2019 Monthly Challenges #1,#2,#3,#4,#5,#6,#7a
Switch to the Model View and select 'Variables' and all the variables should show up in the Combo property view or a separate Property panel as in my example (see the 1st image in Challenge #5). That is why I like to have the left and right panels available at all times even though it uses some real estate...saves a lot of cycling back and forth.
Good choice. Note that the DynamicData workbench uses the prefix 'dd_' for the same purpose.
I sometimes enter the variables with an alphabet prefix so that they show up in the property panel in a logical sequence (the list is always sorted alphabetically). It is most useful when having several calculated dependent variables as in this example: https://forum.freecadweb.org/viewtopic.php?f=24&t=43250. I rarely need to use a spreadsheet anymore.
"It is a poor workman who blames his tools..."
Re: V0.19 Benchmarking--2019 Monthly Challenges #1,#2,#3,#4,#5,#6,#7a
You are absolutely correct, but it is my fault for not being precise enough...
What I meant, is that as soon as you select the feature in the sketch to add dimension to (using variable) and "insert dimension" window appears the variables disapear and you cannot do anything about it
It is at this point I am beginning to think "oh **** which variable was I meant to use"
Blame it on my advanced years and decrepitude
I have noticed it and would like to try it, but I still have to find way to do it...
I am sure I will discover it eventually
FreeCAD seems to be quite powerful with things like this!ppemawm wrote: ↑Thu Oct 01, 2020 3:05 pm...I sometimes enter the variables with an alphabet prefix so that they show up in the property panel in a logical sequence (the list is always sorted alphabetically). It is most useful when having several calculated dependent variables as in this example: https://forum.freecadweb.org/viewtopic.php?f=24&t=43250. I rarely need to use a spreadsheet anymore.
That looks like another useful thread - thank you.
Feels like I am trying to run before I can walk... but that's OK - I am making reasonable progress.
Re: V0.19 Benchmarking--2019 Monthly Challenges #1,#2,#3,#4,#5,#6,#7a,#7b
You can model each body in a separate file and then assemble them with Assembly4* (Asm4) while maintaining a link with the original body file that you can update. This is quite useful for bottom-up assembly but also handy for top-down design if you want each body saved in its own file for reuse at another time.ppemawm wrote: ↑Wed Sep 30, 2020 5:05 pm This assembly can also be created without a master sketch and animated by varying the attachment offset of the Body or LCS links of the disc and slider bodies. This is my preferred approach especially with more complex mechanisms. A simple expression can be used to calculate the attachment offset of the slider as a function of the crank_angle. I will leave this alternative approach for the next post, #7b.
The first steps are to create an assembly file and each body file using the Asm4 workbench. When you create the body file note that you can place the body directly in the Model container rather than the Parts folder. Save each file and open all those that you want to have in the assembly. Before beginning modeling of the body assemble them in the assembly. In that way they will be 'in-context' as they are created since you can actually model in the body link in the assembly file.
.
The use of expressions to constrain and 'solve' the assembly in this manner provides a lot of flexibility especially for more complicated movements. E.g. conditionals can be used to control sequential movements as shown in this example: https://forum.freecadweb.org/viewtopic. ... 20#p370133
Of course you have to be comfortable with math and trigonometry as well.
**In this example, expressions are used for the attachment offset of the LCS's in order to animate the assembly:
https://forum.freecadweb.org/viewtopic. ... 60#p402648
*see also this documentation for excellent Assembly4 tutorials by zolko: https://github.com/Zolko-123/FreeCAD_As ... HMANUAL.md
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22474 (Git)
Build type: Release
Branch: master
Hash: a44f8ffd427fa9b23b1f00dbf62d66cd152cd774
Python version: 3.8.5
Qt version: 5.12.6
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)
"It is a poor workman who blames his tools..."
Re: V0.19 Benchmarking--2019 Monthly Challenges #1,#2,#3,#4,#5,#6,#7a
Ahh, Ok now I see what you mean. Perhaps we need a separate Variables View panel instead of having to share the Property panel.
Nice word...we greybeards need to stick together
"It is a poor workman who blames his tools..."