Top
Best
New

Posted by chanmeng 3 days ago

Show HN: ArchLang – floor plans as code, compiled to SVG/DXF/PDF(playground.archlang.uk)
121 points | 35 comments
CyLith 7 hours ago|
This is great if you are designing a house, but less useful for reconstructing an as-built. The main frustration I have is that it's not easy to translate physical measurements into the quantities needed. It's odd to me that rooms are measured from the centerline of the wall, rather than edge to edge, which is what you'd measure with a tape measure or a laser ruler.

I have been trying to vibe code a proof of concept house-to-cad system where you feed it measurements and it uses a SLAM-like process to reconcile your measurements into a coherent house model. If anyone knows of something, let me know. Or please make it!

roel_v 6 hours ago||
What is the problem you're having? I walked around my house with my phone, videoing everything, took a few reference measurements, Codex then derived a 3d model of my house in Blender, and wrote Blender plugins to export per room pdfs with floor layouts. It has layers for my furniture and decorations, detects light switches and lights, etc. It also made hvac and electricity schematics, I had to feed it a bit more info of course, can't derive that only from video.
bloopernova 5 hours ago||
This is such a good idea, did you follow an existing workflow and if so may I have a link?
roel_v 4 hours ago||
No I just made it up as I went along. I didn't think this would be anything special that anyone else would be interested in. Quite frankly I just speak a half-assed idea into Codex and it filters through my braindump. It corrects the things where I skipped over certain details, and then it comes up with better ways to do it.

If you want you can email me and I'll send you the Blender file and you can have a look. It did things like program parts of the Blender user interface so that I could have predefined views, and checkboxes or dropdowns (so that I can turn off the front wall or the side wall, so that I could have cutaways through my house, that sort of stuff).

I wish I could say that I thought of it myself to have it program this sort of stuff into Blender but it actually came up with that itself so I can't even take credit for that.

One thing that I did do is tell it, "Hey, some of the furniture that you found in these videos is from IKEA. If you recognize those, look on the IKEA website and you can use the dimensions for reference for measurements of the other things." It actually worked quite well even. Amazing.

taylorfinley 6 hours ago||
I've been working on adding a feature like that to my carpentry simulator sawdust.diy (woodworker-native SketchUp, use actual carpentry tools and a global material library instead of extruding rectangles). I've got a feature now where you upload a picture of your scrap wood pile and it solves for the closest match in your materials region and adds all the wood to your scene. I'm trying to extend that to already-built geometry so you can plan a build in your existing space or create a digital twin of your house. I set a constraint on myself of trying to do it without a fancy lidar phone, but the SFM/metric depth models I've tried so far really struggle at the task.
loveiswork 4 hours ago||
Sawdust rules, thank you for building it!
sheepscreek 5 hours ago||
Coolest thing that I've seen in a few days. Great for testing different ideas around the house and visualizing the end result. A sort of whiteboard for reorganizing furniture or interior decoration.

I might hack away at it - add drag drop items on the 2D chart (such as from Nvidia's vast 3D items collection on Hugging Face[1]), or just have LLM write it in code, then adding a 3D walkthrough becomes trivial. You've already done 95% of the work for it!

[1]: https://huggingface.co/datasets/nvidia/simready-assets

brudgers 1 day ago||
Landing page for archlang, https://archlang.uk/
sondr3 7 hours ago||
Huh, this seems very cool indeed. I've used Sweet Home 3D to model the house we bought last year but that was an exercise in frustration trying to make things line up properly. This looks like something that'd be fun to try to use to replicate the full layout of the house in.
zdc1 7 hours ago|
I went through a few 3D options when planning my kitchen rennovation before realising I'd need bite the bullet and learn QCAD. (This was more for planning placements and cabinets to the millimetre rather than mockups/aesthetics though.)
origini 7 hours ago||
Very nice.

I will check it out for my current project:

Personal digital twin.

Designing and building a virtual twin of my flat and my future house i want to be able to plan my dream farm before i can afford it and it will allow me to priotize things like a greenhouse over a forge etc.

And depending if i will ever have the money or have to rebuild something: it should be possible to autogenerate random layouts of a perfect house. Like if your test case is waking up, dressing then going outside and coming in dirty for lunch, all of them have pathes and costs etc. and depending on how often you do, you might be able to plan and get a bauhaus style idea out of it.

Hasz 7 hours ago||
This is cool.

A couple thoughts:

- 3d render seems borked, windows/doors show as flat void floating in space.

- I am personally much more interested in the mechanicals and structural design than things like rugs. US standards are going to be quite different than the UK, eg cavity walls frammed 24-16" OC vs whatever the UK uses.

- units :)

- it would be cool to have your integrated ide highlight the render, eg if I click on

``` furniture sofa in r_live anchor bottom-left flush inset 250 size 900x2000 label "Sofa" ```

I see that object highlighted.

- electrical, plumbing, hvac penetrations planning is imo quite important, along with a DRC system to check you comply with xyz code.

- multiple floors would be cool

Anyways, 2c driveby comments, cool project.

tomaytotomato 5 hours ago||
If you could apply this to Blender and remove the need for BPY (Blender Python scripting) this would be awesome
hk1337 6 hours ago||
This would be nice in collaboration with an app that can create floor plans from images. Looks like there’s an mcp ability so that is likely.
pwarner 7 hours ago||
I presume an LLM can write this code? I've got similar ideas for adjacent domains.I think you is the path to LLMs helping in more domains. Message me if you are also thinking of this.
darccio 6 hours ago|
It looks like it (and it's fine). I'd dare to say it looks generated with Codex/OpenAI models. It's very close to my own attempt to build the same using the same stack.

I think it's a really cool execution.

anentropic 6 hours ago|
I have used SketchUp MCP/Claude connector before

and the other week here there was a vibecoded open clone of SketchUp

this looks worth a try

More comments...