STEP files

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!
jmaustpc
Posts: 9999
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: STEP files

Postby jmaustpc » Sat Jul 25, 2020 8:11 am

This example in done with FreeCAD 0.19, it will be a little different if done in 0.18

Step by step instructions for Part WB Boolean Cut, to get the desired cross section with face view.

1) to import STEP, just open FreeCAD, go to Part WB, then "File" menu ...open, select your STEP file

Screenshot_20200725_145042.png
Screenshot_20200725_145042.png (55.34 KiB) Viewed 239 times

comments, STEP import has been improved in FreeCAD 0.19, you can import an assembly as different items grouped in a "part" object. You can also import colours. FreeCAD 0.18 will import all the solids in a STEP file as one object. There are various options in the preferences.


2) go to the Cube solid on the tool bar in Part WB, click on that Cube, you get a default Part Cube which is only 10mm, now just change its placement and dimension properties so that it is larger than the model and intersects it half way through (which it will by default).

In this first screen shot, I have selected the Cube (either in the top part of Combi view, the panel on the left, or by clicking on the cube in the 3d window). Then lower in Combi view you have the property editor, I expanded the Placement properties, then expanded the Position properties that were under Placement, then adjust the Y and Z into negative numbers so that the cube moves forward and down so that it is in front of your model and covers the half that you want to hide. Then Adjust the size properties of the cube, Length and height to make the cube the size you see in the picture or bigger. Only after that do you adjust the Width property as that will expand the cube along the full length of you STEP file model, after which you will have a Cube like the second picture below.
Screenshot_20200725_145235.png
Screenshot_20200725_145235.png (96.67 KiB) Viewed 239 times
I changed he View orientation in this second picture just so that you can see what it looks like, you are not effecting the model by doing that, you are just looking at it from a different direction. You do not need to do this, I just did it for demonstration purposes.
Screenshot_20200725_145934.png
Screenshot_20200725_145934.png (140.71 KiB) Viewed 239 times



3) Select the yellow "Part" group object, and then hold Ctrl key down on you keyboard while clicking on Cube, then click on Part WB Cut number 3 in this next picture.
Screenshot_20200725_175232.png
Screenshot_20200725_175232.png (98.39 KiB) Viewed 239 times

and you should end up with this
Screenshot_20200725_181051.png
Screenshot_20200725_181051.png (37.94 KiB) Viewed 239 times
OS: Ubuntu 18.04.4 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: 6ab4bb5a18f9e01075e95e234d87ea83f254f057
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
User avatar
easyw-fc
Posts: 2889
Joined: Thu Jul 09, 2015 9:34 am

Re: STEP files

Postby easyw-fc » Sat Jul 25, 2020 9:15 am

https://wiki.freecadweb.org/Macro_cross_section
(you need to remove the Part container because cross-section isfailing with Part)
.
cross-section.png
cross-section.png (126.26 KiB) Viewed 232 times
Jenjack
Posts: 26
Joined: Mon Jul 20, 2020 3:52 pm

Re: STEP files

Postby Jenjack » Wed Aug 05, 2020 9:37 am

Hi Jim,
I now get replies automatically.
Here is a screen shot of what I see when follow step 1. Iooks very bare compared to yours!
FreeCAD 1.jpg
FreeCAD 1.jpg (625.18 KiB) Viewed 177 times
Jenjack
Posts: 26
Joined: Mon Jul 20, 2020 3:52 pm

Re: STEP files

Postby Jenjack » Wed Aug 05, 2020 10:12 am

Hi Jim,
Ignore previous messages as I am now at a view that shows the whole STEP assembly but the left hand hand window does show the assembly as separate parts like in your screen shot.

The screen shot had been attached by mistake and I have now deleted it.
Attachments
Jack email-2.pdf
(155.33 KiB) Downloaded 8 times
Last edited by Jenjack on Wed Aug 05, 2020 10:24 am, edited 1 time in total.
Jenjack
Posts: 26
Joined: Mon Jul 20, 2020 3:52 pm

Re: STEP files

Postby Jenjack » Wed Aug 05, 2020 10:23 am

Hi Jim,
Ignore previous messages as I am now at a view that shows the whole STEP assembly but the left hand hand window does show the assembly as separate parts like in your screen shot.
FreeCAD 2.jpg
FreeCAD 2.jpg (606.34 KiB) Viewed 161 times
jmaustpc
Posts: 9999
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: STEP files

Postby jmaustpc » Wed Aug 05, 2020 10:24 am

Jenjack wrote:
Wed Aug 05, 2020 10:12 am
as I am now at a view that shows the whole STEP assembly
I suggest you edit your last post and delete the PDF as I think you have posted the wrong one. Secondly if you want to post screen shots please just post an image file like jpeg or png etc. and not PDF files which will not display within your post.
Jenjack wrote:
Wed Aug 05, 2020 9:37 am
ooks very bare compared to yours!
Also you will not get the colours if you use the different importer that is in the Part WB Part Menu "import CAD", if that is what you did. Also if you just opened your old FCstd file where you had previously imported the STEP, you will not get the advantages of FreeCAD 0.19. You have to go to the file menu in FreeCAD and either "import" into your existing document or "open" the STEP file which will open it in a new document, in order to get any advantage from using FreeCAD 0.19.
jmaustpc
Posts: 9999
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: STEP files

Postby jmaustpc » Wed Aug 05, 2020 10:29 am

Also if you want to get what easyw-fc said in his previous post quoted below
easyw-fc wrote:
Sat Jul 25, 2020 9:15 am
https://wiki.freecadweb.org/Macro_cross_section
(you need to remove the Part container because cross-section isfailing with Part)
.
cross-section.png
You need to install the macro he is talking about. I think it is in the add-ons manager but I have not checked. My suggestion will remove all the colours in the final output, but will work with a default FreeCAD. Note that it is possible to edit the colours of the results, even on a face by face basis, if needed, or if you want something different to the default behaviour.
Jenjack
Posts: 26
Joined: Mon Jul 20, 2020 3:52 pm

Re: STEP files

Postby Jenjack » Wed Aug 05, 2020 10:36 am

OK. I reopened FreeCAD and 'OPENED' the STEP file. This is not the same coloured STEP file you have seen before. I was able to use FreeCAD to change the colours to white.

Do I have to install the macro, that I had been given the link for, before taking the next step?
Jenjack
Posts: 26
Joined: Mon Jul 20, 2020 3:52 pm

Re: STEP files

Postby Jenjack » Wed Aug 05, 2020 10:46 am

This link takes me to a place where it says I can download the macro but I can't see where.
https://wiki.freecadweb.org/Macro_cross_section
chrisb
Posts: 27025
Joined: Tue Mar 17, 2015 9:14 am

Re: STEP files

Postby chrisb » Wed Aug 05, 2020 11:04 am

You can install it with the Addon manager.