How to make 3D modeling work in Kicad 5.0.0?

Footprint library editor.

If you open the footprints properties of the footprint in the layout, you will modify the path for this single footprint in this single project.
If you modify the footprint in library, changes will be available for future projects.

After modifying the library, the footprints in the layout must be updated.

1 Like

So I gather that if I close this project whose PCB is open in pcbnew, and open the footprint library editor with no project selected, then I can add, for each library part used, a 3D model by clicking on the 3D-Settings tab as you have shown, and then clicking the [Add 3D Shape] button ?
I will try to do that next.

After modifying the library, the footprints in the layout must be updated.

Is there anything special [other than closing the footprint library editor and opening the PCB file w/ pcbnew] I need to do to make that happen?

Since BuildElectronicCircuit’s first demo. project uses only
a resistor, and LED, and a battery, I think I might try that one first Quickstart Intro. to KiCAD

Russ

In eeschema I chose Tools…Assign Footprints from the toolbar and saw a list of all my components.

However, I saw no footprint when I clicked the [View selected footprint] button.

Did I neglect to do something important?

Russ

Check the following reply that I posted on another thread:


I go through a detailed procedure for upgrading from V4 to V5. I think the problem you are encountering is due to the fact that once a footprint is placed in a board file, the libraries are ignored. The placed footprint is now embedded in the board file. This allows lots of latitude, like making subtle changes to the footprint in the board w/o having to change your libraries. But, that means that if you update the library the footprint in the board won’t see the library changes. Because the 3D object found by a pointer parameter in the footprint, updating all your libraries to V5 won’t magically point the footprints in your existing board to the new 3D libraries.

I think in my procedure steps 12.2 and 12.6 should help you get the 3D object pointer parameters pointing to the modern V5 libraries. As I warn in 12.6 you may need to find some new (or extract old from a backup of the V4 3D libraries) models.

You may want to read through the full procedure to make sure you haven’t missed a step along the way.

Yes, SembazuruCDE, I had already scanned your post to tdarlic starting Aug. 26th. Thank you for interjecting again to remind me. I will re-read your sensible upgrade process you posted there and see if I can discern what applies to me.

I started over again anew in eeschema 5.0.0 from the youtube-video by BuildElectronicCircuits.
So I will follow your instructions to tdarlic. I will post back when if or when I get stuck or if I need to ask further questions to clarify my understanding of kicad 5.0.0

Thank you, SembazuruCDE,

Russ

1 Like

Disclaimer: I did not read your full report. But the first part tells me this might be relevant to you: I had KiCad 4 installed previosly. Now i updated to v5. Now i have some problems with the library setup

I just checked the footprint library editor, Rene_Poschl, and found that I only had Packages…

Hello,
I made a short video to show how I upgraded my Kicad project from version 4 to version 5 : here
It is in French but I hope that the images are quite explicit and will allow you to upgrade your own files.
Christian

1 Like

Merci beaucoup, je comprends fran< c avec un cedille>ais, Christian.

Pedro,

In pcbnew, I clicked on the LED, R-clicked on “Properties” in the dialog box, chose the “3D Settings” tab. Then I clicked on the filename LED_THT.pretty under the /modules folder.
I selected LED_D3mm-3.kicad_mod, and double-clicked the OK button.

Now three lines appear for this part in the dialog box with the name “3D Shape Name”
(KISYS3DMOD)/LED_THT.3dshapes`/LED_D3.0mm_IRGrey.wrt
/usr/share/kicad/modules/LED_THT.pretty/LED_D3.0mm-3.kicad_mod
/usr/share/kicad/modules/LED_THT.pretty/LED_D3.0mm-3.kicad_mod

However, when I rotate the part using the 3D part viewer on the “3D Settings” tab of the “Footprint Properties” dialog box, I see only the two plated-through-holes in the PCB for the LED, but not the LED itself.

Looking at the board with the View…3D Viewer in pcbnew confirms this to be the case–the two LED plated-through-holes look great, but no LED shape appears.

What else must I do to add the 3D LED shape?

Does this file actually exists in your hard disk?
Do you know the value of KISYS3DMOD?

Also, who added these lines to the LED_D3.0mm_IRGrey.kicad_mod file?
/usr/share/kicad/modules/LED_THT.pretty/LED_D3.0mm-3.kicad_mod
/usr/share/kicad/modules/LED_THT.pretty/LED_D3.0mm-3.kicad_mod

What you need is the path, absolute or relative, to the file LED_D3.0mm_IRGrey.wrl

Is that back tick actually in your settings, or is that a typo? AFAIK there shouldn’t be a back tick in any of the KISYS3DMOD 3D symbol paths.
There should also be a dollar sign starting the path and the last character of the extension should be a lower case “L”, not a lower case “T”…
This is probably what you want (feel free to delete the other two and copy-paste this using the “Edit Filename” button of the footprint properties):
${KISYS3DMOD}/LED_THT.3dshapes/LED_D3.0mm_IRGrey.wrl

Yes, I am sorry. The backtick is a typo. The actual three lines are:
${KISYS3DMOD}/LED_THT.3dshapes/LED_D3.0mm_IRGrey.wrl
/usr/share/kicad/modules/LED_THT.pretty/LED_D3.0mm-3.kicad_mod
/usr/share/kicad/modules/LED_THT.pretty/LED_D3.0mm-3.kicad_mod

Blockquote

No, pedro, I don’t know its value. How would I find it? Does it matter that it is in braces, not parentheses?

Okay, Pedro, I just deleted the second two lines, ending in .kicad_mod, and saved the file. However, that didn’t make a difference. I still don’t see the LED. What did I neglect to do?

I searched for this file from my user account as user, and from /usr/share/kicad and from /usr/ and from superuser’s home as superuser:

root@neptune1:/usr# find ./ -name “LED_D3.0mm_IRGrey.wrl”

Nothing appeared.
Can you think of any other places to look for it?

The syntax for using path variables is ${variable name} (The brases and $ are essential here. They tell kicad that it is a variable)

These variables are set in the kicad main window -> preferences -> configure paths (or similar. I have no access to kicad right now and work from memory)

1 Like

Yeah… I know… I’m not @pedro. Wanna fight about it? (Sorry, I’m in a silly mood…)

In any KiCad window, look for “Configure Paths…” in the preferences menu. Look to see what path is configured to KISYS3DMOD and check to see that the path exists on your system. If it exists, check to see that LED_THT.3dshapes/LED_D3.0mm_IRGrey.wrl exists within that path.

If it doesn’t, you may not have installed the 3D objects.

Thank you, Rene_Poschl.

The variable is set to /usr/share/kicad/modules/packages3d/

root@neptune1:/usr# cd share/kicad/modules/packages3d
bash: cd: share/kicad/modules/packages3d: No such file or directory
root@neptune1:/usr# pwd
/usr
root@neptune1:/usr# cd share
root@neptune1:/usr/share# cd modules
bash: cd: modules: No such file or directory
root@neptune1:/usr/share# ls -Fd * | grep /$
GConf/
GeoIP/
GraphicsMagick-1.4/
ImageMagick-6/
PackageKit/
QtCurve/
X11/
a2ps/
accounts/
.
.
.
zsh/
zuluCrypt/

No modules subdirectory.

You will need to install the libraries package. I would guess it will be called kicad-packages3d or similar (search for kicad* using your package manager)