by hungerburg » Fri Feb 03, 2012 6:38 pm
hello Alf, I hear you! Please be aware, that my thoughts will be strongly biased.
For various reasons, I advise against sourcing qcad UI related functions in your code, especially if you are developing a console only application. From reading your snippet, I suppose that you want to create two lines that are joined with a rounded corner. The easiest way I imagine is to draw the lines a little short and the joining arc in between. A more general approach probably was, to create a function, that can round any two lines. Probably lift the rounding code from the qcad UI function and wrap it into your own convenience function. Looks like that is what you are doing, though in the way you do it, I cant see, what the UI function does.
Anyway, without running your code, I cannot tell for sure, what is failing, you may have to be more specific.