Live data from Hacker News

Claude Tips for 3D Work

davesnider.com

51–53 of 53 posts

Re: Claude Tips for 3D Work

#51
Love to see this stuff. I recently used codex to produce me a scad file for generating multicolored tokens for 3d printing. I had alot of more fun than grinding it out in the software, and if I ever want to make more for other board games, most of the word is already done.

https://makerworld.com/en/models/2456180-token-creator

Re: Claude Tips for 3D Work

#52
post #34
post #10

Great article. I've been trying to achieve something similar with a Revit. It's an old CAD application for Windows which means there's a few additional hurdles in exposing a cli interface that allows the LLM to drive it. However, once that is done, the loop of "write code, take a screenshot, repeat" works pretty well.

I’d be interested if you can describe a bit more of this process, and what kind of modelling in revit that works well with this.

I'm developing a Revit add-in that and using the LLM to help write the code. I use AI in the development process but no AI is used at runtime.

The Revit API is a challenge to build against. The documentation isn't great and often API calls will fail for mysterious reasons.

The old school, non-AI workflow for developing an add-in for me was: read the docs, write some code, run Revit which loads your add-in, do some actions within Revit to test your code, figure out what failed and repeat until you get the desired result. There was a lot trial and error involved and the loop was slow. Revit takes long time to start even on high-spec machines and the user actions required to test take some time.

I'm trying to use LLMs to speed up this development process by allowing it to run this loop. Things that are required to enable the loop without human intervention:

- a cli tool that allows Revit to be started, running a single addin. There's a couple of ways to do this: using a master add-in that dynamically loads child add-ins or manipulating the .addin files.

- a way to capture logs from within the running Revit addin and feed this back to the LLM. This is just logs in a standard location.

- a way to capture screenshots from within the running Revit addin. Revit has a image export functionality that can be triggered from within the code.

The loop is still slow but once setup it allows you to prompt, set it to run and come back later with some hope that it has achieved your goals.

Modelling is part of what I'm doing but it's also trying to get figure out how to work with extrusions, dimensions, views, etc, etc.

Hope that helps.

Re: Claude Tips for 3D Work

#53
post #8

Just yesterday I used Claude to great effect in FreeCAD to model a church tower. The tower has a square base and an octagonal top, but connecting the two by creating a loft using the GUI in FreeCAD results in a wrong and ugly abomination. Claude understood the problem and produced elegant Python code that worked perfectly the first time. So I continued and described the other features of the tower to Claude, who code…

Maybe Claude thought you wanted to model this church in Chesterfield?

Chesterfield's Crooked Spire in Chesterfield | Atlas Obscura https://share.google/ABVhVgtzQ8KxnO27L

Post reply on HN