[solved] ATTDEF text height and angle changed when save a DXF file if text start not same with alignment
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
[solved] ATTDEF text height and angle changed when save a DXF file if text start not same with alignment
Bug:
- Current behaviour: ATTDEF text height and angle changed when you open and save a DXF file when text start(10,20,30) is different from alignment point(11,21,31)
- Expected behaviour: ATTDEF text height and angle should not change when saved
OS/QCAD Version:
- macOS 11.7
- QCAD Pro 3.25.2.0 (3.25.2)
To replicate:
- open and save the attached DXF file. - and re-open again in QCAD Note:
- I cannot submit an issue in the bugtracker. https://www.ribbonsoft.com/bugtracker/
- I searched the forum and bugtracker tasks. I found no related topic.
- Current behaviour: ATTDEF text height and angle changed when you open and save a DXF file when text start(10,20,30) is different from alignment point(11,21,31)
- Expected behaviour: ATTDEF text height and angle should not change when saved
OS/QCAD Version:
- macOS 11.7
- QCAD Pro 3.25.2.0 (3.25.2)
To replicate:
- open and save the attached DXF file. - and re-open again in QCAD Note:
- I cannot submit an issue in the bugtracker. https://www.ribbonsoft.com/bugtracker/
- I searched the forum and bugtracker tasks. I found no related topic.
Re: ATTDEF text height and angle changed when save a DXF file if text start not same with alignment
I can confirm this on Win7 32 bit with QCAD 3.27.6.0
The issue it is not depending on file format what was R11/R12.
There you first have to create a separate account.toob wrote: ↑Fri Nov 04, 2022 6:05 am- I cannot submit an issue in the bugtracker. https://www.ribbonsoft.com/bugtracker/
Regards,
CVH
Re: ATTDEF text height and angle changed when save a DXF file if text start not same with alignment
Hi,
the prompt text in the attribute definition is missing. Please complete the dialog and try again to save/load the drawing.
the prompt text in the attribute definition is missing. Please complete the dialog and try again to save/load the drawing.
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: ATTDEF text height and angle changed when save a DXF file if text start not same with alignment
Perhaps malpractice but probably still a bug, the prompt text was a single space.
IMHO this should not affect angle and size.
With a prompt starting with a space the file is saved/opened correctly.
Regards,
CVH
Re: ATTDEF text height and angle changed when save a DXF file if text start not same with alignment
Hello @Husky,
The prompt text was a whitespace from other software. Changing that MAY have an unexpected result on the said software.
Which workaround do you suggest? that would be the least invasive
- [ ] add placeholder prompt text for all missing entities: prompt text = ` a` (whitespace and a) as you mentioned
- [ ] edit text start point(10,20,30) to match alignment point(11,21,31)
- [ ] contact the said software support
Re: ATTDEF text height and angle changed when save a DXF file if text start not same with alignment
Hi toob,
I never told you to use white spaces as a prefix! I would suggest to use solution one without the prefix white space. BTW - it is not a workaround! If a QCAD tool is used as intended it will work.toob wrote: ↑Fri Nov 04, 2022 9:50 amWhich workaround do you suggest? that would be the least invasive
- [ ] add placeholder prompt text for all missing entities: prompt text = ` a` (whitespace and a) as you mentioned
- [ ] edit text start point(10,20,30) to match alignment point(11,21,31)
- [ ] contact the said software support
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: ATTDEF text height and angle changed when save a DXF file if text start not same with alignment
@Husky Thanks
- I'll use the prompt as you've suggested
SHOULD I put a [solved] in front of the topic's subject? It seems like other members MAY think that this is a bug.
Re: ATTDEF text height and angle changed when save a DXF file if text start not same with alignment
Yes - I'll do it for you.
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: [solved] ATTDEF text height and angle changed when save a DXF file if text start not same with alignment
@Husky
Note: setting prompt will NOT solve the issue in QCAD scripting environment.
To replicate:
Screenshots:
Note: setting prompt will NOT solve the issue in QCAD scripting environment.
- feel free to ping me to create a new topic for this
To replicate:
- Download and unzip
- Change the 2 input vars at the top of the script
- Run the script with QCAD: in QCAD GUI or using the QCAD Command line tool CLI
Code: Select all
if (en.getPrompt() === ' ') {
en.setPrompt('a'); // does NOT work (pic1)
// en.setPosition(en.getAlignmentPoint()); // does work (pic2)
}
Re: [solved] ATTDEF text height and angle changed when save a DXF file if text start not same with alignment
For the record - I never said a script will fix the issue! Define Block Attributes as intended and it will work like a charm.
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..."