[solved] ATTDEF text height and angle changed when save a DXF file if text start not same with alignment

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
toob
Newbie Member
Posts: 9
Joined: Tue May 18, 2021 7:20 am

[solved] ATTDEF text height and angle changed when save a DXF file if text start not same with alignment

Post by toob » Fri Nov 04, 2022 6:05 am

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.
attdef-text-height-and-angle-bug-when-save.dxf
(1.02 KiB) Downloaded 265 times
pic1.png
pic1.png (65.38 KiB) Viewed 6753 times
- and re-open again in QCAD
pic2.png
pic2.png (46.46 KiB) Viewed 6753 times
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.

CVH
Premier Member
Posts: 3418
Joined: Wed Sep 27, 2017 4:17 pm

Re: ATTDEF text height and angle changed when save a DXF file if text start not same with alignment

Post by CVH » Fri Nov 04, 2022 6:47 am

toob wrote:
Fri Nov 04, 2022 6:05 am
ATTDEF text height and angle changed when you open and save a DXF file ...
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.
toob wrote:
Fri Nov 04, 2022 6:05 am
- I cannot submit an issue in the bugtracker. https://www.ribbonsoft.com/bugtracker/
There you first have to create a separate account. :wink:

Regards,
CVH

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: ATTDEF text height and angle changed when save a DXF file if text start not same with alignment

Post by Husky » Fri Nov 04, 2022 6:54 am

Hi,

the prompt text in the attribute definition is missing. Please complete the dialog and try again to save/load the drawing.

Husky-2022.11.03-12.png
Husky-2022.11.03-12.png (23.73 KiB) Viewed 6744 times
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..."

CVH
Premier Member
Posts: 3418
Joined: Wed Sep 27, 2017 4:17 pm

Re: ATTDEF text height and angle changed when save a DXF file if text start not same with alignment

Post by CVH » Fri Nov 04, 2022 7:32 am

Husky wrote:
Fri Nov 04, 2022 6:54 am
the prompt text in the attribute definition is missing.
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

toob
Newbie Member
Posts: 9
Joined: Tue May 18, 2021 7:20 am

Re: ATTDEF text height and angle changed when save a DXF file if text start not same with alignment

Post by toob » Fri Nov 04, 2022 9:50 am

Husky wrote:
Fri Nov 04, 2022 6:54 am
the prompt text in the attribute definition is missing. Please complete the dialog and try again to save/load the drawing.
CVH wrote:
Fri Nov 04, 2022 7:32 am
With a prompt starting with a space the file is saved/opened correctly.
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

toob
Newbie Member
Posts: 9
Joined: Tue May 18, 2021 7:20 am

Re: ATTDEF text height and angle changed when save a DXF file if text start not same with alignment

Post by toob » Fri Nov 04, 2022 9:56 am

toob wrote:
Fri Nov 04, 2022 9:50 am
- [ ] 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)
Note: I've tested both workaround. They DO work.

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: ATTDEF text height and angle changed when save a DXF file if text start not same with alignment

Post by Husky » Fri Nov 04, 2022 6:49 pm

Hi toob,
toob wrote:
Fri Nov 04, 2022 9:50 am
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
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.
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..."

toob
Newbie Member
Posts: 9
Joined: Tue May 18, 2021 7:20 am

Re: ATTDEF text height and angle changed when save a DXF file if text start not same with alignment

Post by toob » Mon Nov 07, 2022 2:51 pm

Husky wrote:
Fri Nov 04, 2022 6:49 pm
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.
@Husky Thanks
  • I'll use the prompt as you've suggested
CVH wrote:
Fri Nov 04, 2022 7:32 am
IMHO this should not affect angle and size.

SHOULD I put a [solved] in front of the topic's subject? It seems like other members MAY think that this is a bug.

CVH
Premier Member
Posts: 3418
Joined: Wed Sep 27, 2017 4:17 pm

Re: ATTDEF text height and angle changed when save a DXF file if text start not same with alignment

Post by CVH » Mon Nov 07, 2022 7:00 pm

toob wrote:
Mon Nov 07, 2022 2:51 pm
SHOULD I put a [solved] in front of the topic's subject? It seems like other members MAY think that this is a bug.
It seems to be a bug, please file a bug report, include file and a link to this topic.

Regards,
CVH

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: ATTDEF text height and angle changed when save a DXF file if text start not same with alignment

Post by Husky » Mon Nov 07, 2022 8:43 pm

toob wrote:
Mon Nov 07, 2022 2:51 pm
SHOULD I put a [solved] in front of the topic's subject? It seems like other members MAY think that this is a bug.
Yes - I'll do it for you. :wink:
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..."

toob
Newbie Member
Posts: 9
Joined: Tue May 18, 2021 7:20 am

Re: [solved] ATTDEF text height and angle changed when save a DXF file if text start not same with alignment

Post by toob » Fri Nov 11, 2022 10:28 am

@Husky

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:
  • 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
Note: the related code regions

Code: Select all

          if (en.getPrompt() === ' ') {
            en.setPrompt('a'); // does NOT work (pic1)
            // en.setPosition(en.getAlignmentPoint()); // does work (pic2)
          }
Screenshots:
Screen Shot 2022-11-11 at 4.31.43 pm.png
Screen Shot 2022-11-11 at 4.31.43 pm.png (46.79 KiB) Viewed 6314 times
Screen Shot 2022-11-11 at 4.32.01 pm.png
Screen Shot 2022-11-11 at 4.32.01 pm.png (36 KiB) Viewed 6314 times

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: [solved] ATTDEF text height and angle changed when save a DXF file if text start not same with alignment

Post by Husky » Fri Nov 11, 2022 8:03 pm

toob wrote:
Fri Nov 11, 2022 10:28 am
@Husky

Note: setting prompt will NOT solve the issue in QCAD scripting environment.
For the record - I never said a script will fix the issue! Define Block Attributes as intended and it will work like a charm. :wink:
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..."

Post Reply

Return to “QCAD Troubleshooting and Problems”