![]() You'll see that when you see the code shortly. By default, the value is "0" for both feet and inches although you can set the default dimension to whatever you want using either/both of two methods in the class that start Starting out, the control looks like the following:Īs you can see there, it's just a GroupBox with two TextBoxes in it. In both versions, the class ("FeetInches") is a part of the control, so you won't have to worry about bringing that into your project just to use this. This thing does in the following screenshots. Using the standard out-of-the-box one, I'll show what ![]() With the purpose being to allow users to enter dimensions (in feet and inches) in an easy but safe way, I'll show you what I have and at the end of this, I'll give you both versions, source code and all. The Dev stuff, so there are some slight differences (but minor ones). They both do the same thing and work the same way, but of course the Dev controls support I've written two "versions" of it: One being for DevExpress users (which I'll be using for this project) and another with the standard out-of-the-box controls. I'm working on another project where I need to make extensive use of it and so I've created a UserControl so that I can use this class and allow the user to enter the data in what I hope is a more intuitive way than any other way that I can think of. I only barely remember it myself! -) I've modified it a few times and I think it all works ok now, and I've used it a few times (very few, honestly). I doubt that many remember this thread (from nearly two years ago) about dealing withįeet and inches in your programs. Nice clean powers of 10 would've saved me hours of frustration.(I've managed to lose the control I built a while back which creates nice looking HTML, so I hope the following comes out ok.) Dad asked his tech-savvy 20y/o son for Imperial unit floorplans a client of his needs to see - what am I supposed to do?Īnd yes, if I ever needed a wake up call on why Americans like myself need to switch to metric, it's now. Nice clean powers of 10 would've saved me hours of frustration. ![]() :P)Īnd yes, if I ever needed a wake up call on why Americans like myself need to switch to metric, it's now. If I knew how to code anything other than bash scripts, I would lend a helping hand, but I'm still training for my first sysadmin cert right now. Not saying it's the best syntax for this kind of input, but it's a start. Personally, I would also remove the dash between 5'-10 1/2", instead use 5'10 1/2", because the dash could get confusing when working with negative coordinates: -5'5-10 1/2",-3'2" would be a mess to work with, not even factoring in relative zeroes like 1/2",-3'2" to -24'-3 15/16",8'-1 2/3". Feet are written with an apostrophe/singlequote character whereas inches are written with a doublequote character. The space between " and n is important, although it might be better replaced with an underscore. The space and n/d are omitted for whole numbers, e.g. Where F = feet, I = inches, and n/d is fractions of an inch. The program's own syntax for displaying Imperial Architectural coordinates is something like, - sans brackets, of course. I really hope the best for the LibreCAD project. Thanks anyway for this invaluable open source tool. In my opinion, adding CLI Architectural input should be a priority feature to implement in the next major release. is Imperial Architectural input in CLI indeed impossible in the current build without workarounds? That's really disappointing for a CAD suite so great at 2D drafting. I'm just making this thread for confirmation. I guess I could multiply every foot by twelve and add that, as well as converting any fractions to decimal, but I shouldn't have to use this kind of workaround. From what little I understand of computer programming, whichever libraries the embedded CLI in LibreCAD depend on do not allow for this kind of input. There's exactly one thread on this very forum inquiring about this pretty basic feature you would come to expect from a CAD suite. I've tried every kind of syntax I could think of, before giving up and Googling it. Or at least, it would, if command line input wouldn't stop spitting syntax errors at me. Luckily, LibreCAD prominently features Command Line input as an alternative - which, as I know all too well for an Arch Linux poweruser, would substantially automate the process for me. Constantly having to scale and zoom around with the mouse so I can place a rectangle within my precise measurements wastes a lot of time for me. ![]() ![]() Unfortunately, there is one big problem using LibreCAD for this purpose. As a landlord and open source enthusiast who needs some basic floorplan blueprints using measurements I've taken myself, LibreCAD is ideal. Hello there, I would like to thank the LibreCAD team for their fantastic open source tool. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |