Measurement input to CAD
Posted by fortran on Jul 08, 2014; 1:57am
URL: https://forum.librecad.org/Measurement-input-to-CAD-tp5710133.html
It's been a while since I learned drafting (1979). To start defining an 8 foot 2x4 with either a mouse or trackball always seemed too clunky compared to CLI for me. Consequently I've only dabbled in CAD, as data input is too slow.
2D CAD maps to SVG okay as I understand. I normally write SVG files in emacs as text, or calculate them in Perl using SVG.pm.
This summer, we are renovating the house at the family farm. At one time there were blueprints, they've evaporated. I spent a day measuring all the rooms on ground and basement. I still need to go up into the attic to measure things (hip roof).
Working from my measurements of "rooms", I have a Perl structure with counter-clockwise definition of absolute/local coordinates, starting from the upper left (more or less) as SVG uses that perverted coordinate system. My Perl script does traverse each room, calculating perimeter and area, and does so for all rooms on a floor, and all floors in a house (assumed to be 3: ground, basement, attic). It does spit out SVG for each room, the plan is to have it spit out SVG for each floor, and an overlayed SVG of the house. And I have a process in mind to make the connection of "rooms" on a floor that works in a batch oriented process.
I have never run across any FOSS program which claimed to allow someone to use measurements to produce a CAD drawing (2D). Hence, I wrote one. Some places hate Perl, I've no idea your feelings. Is this of use to you? I think a person could mangle the ini type config file to work for data input.
I just want to figure out my house, if this isn't useful to others, that's okay.