Text-aligned leader
Moderators: andrew, Husky, J-J
Text-aligned leader
Hi
I've a new script written. Text-aligned leader. I'll be glad if it is useful to someone.
Thanks to CVH for his helpful advice.
I've a new script written. Text-aligned leader. I'll be glad if it is useful to someone.
Thanks to CVH for his helpful advice.
Re: Text-aligned leader
If it works I'm sure it'll be very useful for many user - so far I can't get it to work in QCAD 3.27.0.0.
Tested:
1. Select Text -> T2L -> behaves like previous version - nothing has changed.
2. T2L -> Warning: "Select one text Object", Ok, select Text - nothing happens.
3. Searched for tool in Dim Bar - nope, doesn't exist anymore like the previous version ...
May I ask you how 1 can make it work like your video gif?
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Re: Text-aligned leader
Hi,
Husky
This is not a new version LeaderFromText (T2L), it is a different tool Text-aligned leader (2T).
Try this: type "2T" -> Click on first vertex position -> Click on text
or this: in command promt type "tal" -> Click on first vertex position -> Click on text
The tool has been placed in the following menus and toolbars
PS
I checked the attached files they match with mine in \scripts \Misc\TextAlignedLeader
Husky
This is not a new version LeaderFromText (T2L), it is a different tool Text-aligned leader (2T).
Try this: type "2T" -> Click on first vertex position -> Click on text
or this: in command promt type "tal" -> Click on first vertex position -> Click on text
Code: Select all
action.setDefaultShortcut(new QKeySequence("2,T"));
action.setDefaultCommands(["TextAlignedLeader", "tal"]);
Code: Select all
action.setWidgetNames(["DimensionMenu", "DimensionToolBar", "DimensionToolsPanel", "DimensionMatrixPanel"]);
I checked the attached files they match with mine in \scripts \Misc\TextAlignedLeader
Re: Text-aligned leader
Hi dmitpon,
... and a tool In the Tool Bar called "Text-aligned Ieader (2T) which does't exist in the Menu, correct?
And the tool in the Menu requires a prior selection - but isn't selection sensitive - what means if I missed that a warning pops up with the message "Select one text object!" (weird - I'm used to "Select a text object"). It doesn't tells me that I have to do it before I launch the tool what means clicking ok, selecting the text leads to nothing ...
What I personal don't understand is this "Term juggle". It is for me very confusing and I assume I'm not alone.
Example: The original QCAD Leader tool is asking for the "Arrow position". Your tool is asking for the same position but as "First vertex position". I'm sure every user understands "Arrow" regarding to the used tool but not every user knows what "Vertex" means. Why not use the same terms?
Yes - I've a hunch why this and the use of the "third-person" in the warning is in your script ...
Howsoever - this is only my opinion and there is no need to pay too much attentions to it. I think you are already on the right track. Thanks for working on this!
Ok, what I learned now is that there is a tool In Menu called "Leader from Selected Text" (T2L) but that tool is not in the Tool Bar ...
... and a tool In the Tool Bar called "Text-aligned Ieader (2T) which does't exist in the Menu, correct?
And the tool in the Menu requires a prior selection - but isn't selection sensitive - what means if I missed that a warning pops up with the message "Select one text object!" (weird - I'm used to "Select a text object"). It doesn't tells me that I have to do it before I launch the tool what means clicking ok, selecting the text leads to nothing ...
What I personal don't understand is this "Term juggle". It is for me very confusing and I assume I'm not alone.
Example: The original QCAD Leader tool is asking for the "Arrow position". Your tool is asking for the same position but as "First vertex position". I'm sure every user understands "Arrow" regarding to the used tool but not every user knows what "Vertex" means. Why not use the same terms?
Yes - I've a hunch why this and the use of the "third-person" in the warning is in your script ...
Howsoever - this is only my opinion and there is no need to pay too much attentions to it. I think you are already on the right track. Thanks for working on this!
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Re: Text-aligned leader
I understand about the terms. Then I'll fix it
I did not understand the script works on your system or does not work?
Are icons appearing in menus and toolbars?
I did not understand the script works on your system or does not work?
Are icons appearing in menus and toolbars?
Re: Text-aligned leader
This is what I get out of your script:
Ok, I played around with a fresh QCAD installation. The thing is: T2L is already part of the last QCAD release. Located below misc - not existent in any other menu.
If I put your script below misc the result is what you see in my screenshots and I'm sure you are not less confused by the result!
Ok, I played around with a fresh QCAD installation. The thing is: T2L is already part of the last QCAD release. Located below misc - not existent in any other menu.
If I put your script below misc the result is what you see in my screenshots and I'm sure you are not less confused by the result!
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Re: Text-aligned leader
Small script correction
Changelog:
- Command line message "First vertex position:" changed to "Arrow position:"
Re: Text-aligned leader
OK! The icons have been found. Does the script work like in an animated gif?
Re: Text-aligned leader
@ dmitpon
Refer to viewtopic.php?f=107&t=8925&start=15#p35554
Only users that have both the scripts sets installed custom will see both buttons like you intended.
The script sets under 'scripts' supersede those that come with a QCAD release.
It requires a round trip to get everything right.
It gets even weirder when we rename or move a script around in the script structure.
And then I refer to 2D Centroids.
Regards,
CVH
PS: Andrew has just adopted 2T as a replacement for T2L ... under "MiscDrawMenu"
Refer to viewtopic.php?f=107&t=8925&start=15#p35554
Only users that have both the scripts sets installed custom will see both buttons like you intended.
The script sets under 'scripts' supersede those that come with a QCAD release.
It requires a round trip to get everything right.
It gets even weirder when we rename or move a script around in the script structure.
And then I refer to 2D Centroids.
Regards,
CVH
PS: Andrew has just adopted 2T as a replacement for T2L ... under "MiscDrawMenu"
Re: Text-aligned leader
Thank you CVH for your clarification