Reverse engineering EV plug

Show off your FreeCAD projects here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
czinehuba
Posts: 160
Joined: Mon Oct 15, 2018 4:59 am
Location: UK
Contact:

Reverse engineering EV plug

Post by czinehuba »

As an extension to the the previously shared model.
I try to keep up with the latest development version, but keep a few older appimage files just in case I encounter an error.
I try to adopt and FOSS workflow whenever I can, but sometimes I have to use MS for other CAD software or 3D printing slicer.

OS: Arch Linux (GNOME/gnome)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19667 (Git) AppImage
Build type: Release
Branch: master
Hash: 97de09ad6f1bc642d1f1e322d07e537c96cdb760
Python version: 3.8.1
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United Kingdom (en_GB)

Describing this particular workflow it's just combination of part design and spreadsheet workbench with a few parameters.
parametres.png
parametres.png (302.62 KiB) Viewed 3648 times
Then tried it on my FFF printer to see it fits, does it require further adjustments to the parameters.
IMG_20200201_132646.jpg
IMG_20200201_132646.jpg (306.04 KiB) Viewed 3648 times
Then printed on SLS printer in Nylon-12
IMG_20200218_120024.jpg
IMG_20200218_120024.jpg (703.84 KiB) Viewed 3648 times
Lessons learned:
- Topo Naming issue (the hard way), had to create datum planes to extrude from or to, but I got it working in the end.
- Coming from other CAD background (Inventor and Fusion360 mainly, but also do Solidworks and SiemensNX) I got used to certain workflows, and sometimes it is hard to loose those habits

- My biggest bugbear currently working with other project is that I can reference values from spreadsheet workbench, but couldn't get it to work with reference other dimensions ie. from different sketches, etc. if anybody can give me hints with that, would be great.

I'll try to answer any further questions if I can.
Last edited by Kunda1 on Mon Feb 24, 2020 6:10 pm, edited 1 time in total.
Reason: Fixed typo on thread title
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Reverse engineering EV plug

Post by DeepSOIC »

wow, this fff printout looks awesome! How did you get the overhangs printed so flawlessly? Dissolvable supports?

czinehuba wrote: Mon Feb 24, 2020 5:58 pm that I can reference values from spreadsheet workbench, but couldn't get it to work with reference other dimensions ie. from different sketches
It's done as "=Sketch008.Constraints.NameOfYourConstraint", NameOfYourConstraint stands for what you type into name field when creating constraints.

You can also reference plain edges, vertices, etc. as "=SomeObject.Shape.Edge15.Length", but it's usually a bad idea because of topological naming issue. It is convenient to explore the available attributes with Py Console: type "App.ActiveDocument.SomeObject.Shape.", and you'll see the list of available attributes ("Edge15"-like attributes are not listed there, but the rest are).
User avatar
czinehuba
Posts: 160
Joined: Mon Oct 15, 2018 4:59 am
Location: UK
Contact:

Re: Reverse engineering EV plug

Post by czinehuba »

DeepSOIC wrote: Wed Mar 04, 2020 1:37 pm wow, this fff printout looks awesome! How did you get the overhangs printed so flawlessly? Dissolvable supports?

czinehuba wrote: Mon Feb 24, 2020 5:58 pm that I can reference values from spreadsheet workbench, but couldn't get it to work with reference other dimensions ie. from different sketches
It's done as "=Sketch008.Constraints.NameOfYourConstraint", NameOfYourConstraint stands for what you type into name field when creating constraints.

You can also reference plain edges, vertices, etc. as "=SomeObject.Shape.Edge15.Length", but it's usually a bad idea because of topological naming issue. It is convenient to explore the available attributes with Py Console: type "App.ActiveDocument.SomeObject.Shape.", and you'll see the list of available attributes ("Edge15"-like attributes are not listed there, but the rest are).
Thanks for the tip with referencing other dimensions.

The fff print was done with solid supports in Prusa PETG, on MK3S. Haven't used soluble support.
User avatar
czinehuba
Posts: 160
Joined: Mon Oct 15, 2018 4:59 am
Location: UK
Contact:

Re: Reverse engineering EV plug

Post by czinehuba »

DeepSOIC wrote: Wed Mar 04, 2020 1:37 pm wow, this fff printout looks awesome! How did you get the overhangs printed so flawlessly? Dissolvable supports?

czinehuba wrote: Mon Feb 24, 2020 5:58 pm that I can reference values from spreadsheet workbench, but couldn't get it to work with reference other dimensions ie. from different sketches
It's done as "=Sketch008.Constraints.NameOfYourConstraint", NameOfYourConstraint stands for what you type into name field when creating constraints.

You can also reference plain edges, vertices, etc. as "=SomeObject.Shape.Edge15.Length", but it's usually a bad idea because of topological naming issue. It is convenient to explore the available attributes with Py Console: type "App.ActiveDocument.SomeObject.Shape.", and you'll see the list of available attributes ("Edge15"-like attributes are not listed there, but the rest are).
Tried to do how you said, but not having any luck . I'm missing something obvious but can't figure out for the life of me.Tried other ways as well but I can't used it as an other parameter.

Would adjust this file so the extrusion would reference the width from the sketch it would be much appreciated.
test.FCStd
(5.79 KiB) Downloaded 59 times
Attachments
Screenshot from 2020-03-15 15-51-11.png
Screenshot from 2020-03-15 15-51-11.png (249.56 KiB) Viewed 3000 times
Screenshot from 2020-03-15 15-50-52.png
Screenshot from 2020-03-15 15-50-52.png (303.15 KiB) Viewed 3000 times
montyl
Posts: 19
Joined: Tue Jan 22, 2019 5:08 am

Re: Reverse engineering EV plug

Post by montyl »

"Constraint10" doesn't exist, as you renamed it "cube.size".

Well done on the EV plug!

Monty
User avatar
czinehuba
Posts: 160
Joined: Mon Oct 15, 2018 4:59 am
Location: UK
Contact:

Re: Reverse engineering EV plug

Post by czinehuba »

montyl wrote: Mon Apr 13, 2020 1:41 am "Constraint10" doesn't exist, as you renamed it "cube.size".

Well done on the EV plug!

Monty
Yes..managed to get it work. Yes.

Thanks
bleber
Posts: 259
Joined: Thu Jun 30, 2016 5:12 pm

Re: Reverse engineering EV plug

Post by bleber »

Hi.
When I have the name problem I make a new sketch on the original and make a carbon copy, then double click the new copyed constraints and in the icon expression I can see the complete reference name.
Post Reply