How to import glTF?

I am a newbie with KiCad (and CAD in general).

It is possible to import a non-binary GLTF file in any of the KiCad programs?
As far as I understand I should use the Schematic Editor, but GLTF is not listed in the Import options dialog:

glTF (Graphics Library Transmission Format) is a file format based on JSON as its primary data structure. The format describes 3D scenes, models, materials, animations, and other elements.

What is it you are trying to import?
Is it a schematic?

I’m not familiar with that file format, but if it’s not in that list, it’s probably not supported.

You also have not mentioned your KiCad version, I’ll assume V8.0.6 because of the title block in your screenshot. I have not kept track at (possible) new importers. Maybe a new one has been added in the nightlies.

Yes. It is a schematic exported using a generator.
I have the following formats available to export, but none seems to match KiCad.

Screenshot 2024-11-17 at 17.54.32

It is correct?

GLTF is a format for 3D mesh models. KiCad cannot import them, only export them (in recent nightlies). And, like all 3D models in KiCad, this relates to a PCB, not to a schematic. The schematic is not a physical representation of anything, it has no 3D representation and cannot export or import 3D files.

Those all look like 3D file formats.
Why would you draw a schematic in 3D?

I see. I got confused then

Thank you for the clarification.
I thought that text-to-CAD tools were able to generate the Schematics, but instead, they generated the PCB.
Now I should look for a Schematic generator :wink:

Well, Kicad has a pretty nice one…

From text prompts? Where? I couldn’t find it

You can use Schematic Editor / Place / Add Image to import a bitmap of a schematic, and then place KiCad symbols and wires on top of it. This is a time saver, as data entry is much easier then designing a schematic, but it’s still a manual job that takes time and effort.

Whether that is a good path for you to follow, I don’t know. I have not seen your schematic, and your “export” options in 3D formats does not make any sense for an electronic schematic.

OK, you really need to explain what you are trying to do…

I want to generate a CAD Schematic design from a textual prompt. Now some systems use Natural Language Processing (NLP) techniques to understand the text prompt, extracting relevant information about the desired design, such as the shape, dimensions, materials, and functional requirements. Then based on the extracted information, the AI system generates a 3D model of the desired design. This involves using algorithms to translate the textual descriptions into a digital 3D representation, taking into account factors like geometry, topology, and constraints. Finally CAD File Generation: The 3D model is then converted into a standardized CAD file format, such as STEP, IGES, or DXF, which can be easily imported into various CAD software applications for further refinement, analysis, and manufacturing.

I think you are going to need to write some software to do that.
Your description mentions “3D,” and schematics are inherently 2-D. They are basically lists of connections. Having AI generate some type of 3D output is not very useful if you want to have Kicad draw a schematic from it.

Computer, make me a sandwich toaster. :rofl:

hello-computer-hello

2 Likes

Or:

(Time code 3:00)

Sorry, I meant generating the 2D schematics model from the description text.
Anyway, some answers revealed the high toxicity and trolling of this community.

I don’t consider these memes toxic or as trolling, but I can understand if you don’t find it amusing when people make jokes when your asking for help.

Unfortunately I don’t know of any tool that does what you ask for. If you find any, please tell us!

If you don’t like drawing schematics, and instead want to describe your connections programmatically, you can have a look at SKIDL. This language does exactly that.
https://devbisme.github.io/skidl/

I haven’t used it myself, but it could be a nice solution if there are many repetitive connections on your board, or if you simply like programming more than drawing.

I’m not into AI, but maybe some of the AIs can write SKIDL code if you ask it to?

1 Like

My apologies for the offense given. The implication I was trying to humorously convey was that your request is far advanced from current capabilities.

You cannot generate a schematic from textual description.

Current LLMs are able to generate plausible tokens based on context but plausible only allows systems where mistakes are acceptable (art, language, etc). Schematics have fixed requirements that must be followed. LLMs do not currently allow for this (witness the many basic math mistakes they make).