Login  Register

Re: Entering architectural dimensions on command line

Posted by tyrel on Nov 13, 2013; 9:12pm
URL: https://forum.librecad.org/Entering-architectural-dimensions-on-command-line-tp5709151p5709185.html

Thank Armin,

So far my change to the code to make this work only required a few additional lines of code. I added an operator to muParse, the apostrophe, which calls a callback that does (first * 12) + second. So now I can enter on the command line like: 23'9 or 15'6.5 and it will convert that for me. Supporting things like 15'6-1/2" would be more complicated, obviously.

Can you point me to the link for the feature request?

Thanks,
Tyrel


On Wed, Nov 13, 2013 at 8:19 AM, LordOfBikes [via LibreCAD] <[hidden email]> wrote:
Hi Tyrel,

your reading of the source codes was correct, you can't enter imperial units this way on the command line.
There is a feature request for this, but this will surely not be implementet into the shortly comming 2.0 release.

But you can enter values with fractional digits. When you change the units in drawing preferences to feet, you can enter 43.75 instead of 43'9" for absolute values referred to the origin at 0,0 or @43.75 for a relative value referred to the relative zero point.

No matter how, feet or inch, you have to convert the feet/inch values into their floating point equivalent to use them on the command line.

For dimension lines you can use the method Claus explained.

Sorry, for not having better news.

Armin


If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/Entering-architectural-dimensions-on-command-line-tp5709151p5709183.html
To unsubscribe from Entering architectural dimensions on command line, click here.
NAML