Geometrical shapes not working

Hello!

First of all, this is an awesome website for someone like me not proficient in CAD creation! Thanks to the dev team!

Okay, so I’m having trouble with the following error:

Text-to-CAD server: 422 Unprocessable Entity.

I have tried a few shapes yesterday, mainly a disk with circular protrusions coming out of the surface. My prompt was something along the lines of “circular disk, 34mm diameter, 5mm thickness. Circular protrusions 250µm diameter, 500µm height, spaced regularly by 1mm on an area of 33mm on the surface of the disk”. This prompt seems to work fairly well. However, for the application I need, circular (I.E. tiny cylinders) protrusions isn’t ideal, and I want to switch to cones, for which the base diameter is the same (250µm). The AI doesn’t seem to understand “cone-shaped protrusions” and always sends me back the error message I mentioned previously. Any advice would be much appreciated, thank you very much!

Cheers!
LP

Hey LP,

Thanks for trying out Text To CAD! I’ve attempted your prompts and made some of my own to see if I could get to the bottom of the issue. We’re still working on improving our geometry kernel as well as our text to cad models. I believe the issue is when the model is attempting to create a cone. When doing this by hand (creating sketches), I’m running into an error where a sketch may not revolve properly about a coincident axis. We’re aware of this existing issue, so as a workaround I’ve offset the profile by a very small amount (0.00001mm). You can use the example below as a starting point for further edits. Your prompt wasn’t super clear on the pattern layout for the cones, so I just made a simple linear pattern followed by a circular one. Let me know if you have any more questions!

Ryan

@settings(defaultLengthUnit = mm)

// Define the dimensions of the disk
diskDiameter = 34
diskThickness = 5

// Define the dimensions of the protrusions
protrusionDiameter = 0.25
protrusionHeight = 0.5

// Define the area for the protrusions
protrusionAreaDiameter = 33
protrusionSpacing = 1

// Create a sketch for the disk
diskSketch = startSketchOn("XY")
  |> circle(center = [0, 0], radius = diskDiameter / 2)

// Extrude the disk to create a 3D solid
disk = extrude(diskSketch, length = diskThickness)

// Create a sketch for a single protrusion
cone = startSketchOn("XZ")
  |> startProfileAt([0.00001, diskThickness], %)
  |> xLine(length = protrusionDiameter / 2)
  |> line(end = [-protrusionDiameter / 2, protrusionHeight])
  |> close()
  |> revolve({ axis = 'y' }, %)

patternLinear3d(cone, axis = [1, 0, 0], instances = 7, distance = protrusionSpacing)
  |> patternCircular3d(
       axis = [0, 0, 1],
       center = [0, 0, 0],
       instances = 11,
       arcDegrees = 360,
       rotateDuplicates = true,
     )

Hello!

Thanks for the quick response! I am unsure as to how to use what you replied to me. Do I have to input all of this in some CAD software? Because as of now, I have none at my immediate disposal.

Cheers!
LP

Hey,

Sorry if I wasn’t more clear. This code can be used in our modeling app! You can paste that code directly into the code pane and the model will be created. From there you can edit using the GUI, directly in the code window or using our AI edit tool.

Our standalone web app for text to cad is using an older model and will be deprecated in favor of the one in the modeling app.

https://zoo.dev/modeling-app/download

Ryan

Hello!

I have tried downloading the app. Whenever I open it and create a new project, it says “Project loading…” and never loads anything. I can’t get anything done this way since everything seems blocked off by it. Is there something I’m missing, a setting somewhere I have to turn on or off?

Thanks!
LP

Hey LP,

Can you give me some more information about your setup?

  1. What OS are you on?
  2. Where are the projects being saved to? Are you using the default location or have you changed that?

If you’re able to screen record this happening that can also be very beneficial to debug what’s going on.

Ryan

Okay so I am on Windows 10, and the projects are being saved at the default location. This image shows the only thing I see, I tried giving it time, but as of now it’s been loading for a full 10 minutes nonstop without changes.

Also, as a possible feature, maybe have the installer ask you on what path should the files be installed? That would have been useful, though it’s not too much of a problem as of now.

Cheers!
LP

There could be two potential problems.

  1. The directory you selected is so massive that the application tries to ls every folder and file. The project directory path does not have a level limit when we recurse.
  2. The project directory path that is selected may not have read write permissions.

I have opened a PR to inform users if there is an issue with read/write permissions on the project directory here.

We did have one Windows user report a project creation bug in Github but it was not clear enough what the root cause is.


If you click into a project and see a long loading indicator that would be the loading indicator to connect to a stream. There is a little widget in the bottom right hand corner that can show network problems of what is not connected.

If you create a new project, it should automatically route you into the project to start viewing the stream. This is a feature we have enabled.

A temporary solution (while we figure out what’s going on with your windows install) is to use our web app. This has almost all the same features as our desktop app (minus projects and multiple files).

https://app.zoo.dev