How to get the containing rectangle of text in a DXF file

Drop in here to discuss whatever you want.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

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

Re: How to get the containing rectangle of text in a DXF file

Post by CVH » Thu Nov 02, 2023 6:23 am

WildWolfCJ wrote:
Thu Nov 02, 2023 3:41 am
HI CVH
I did not find the usage of the -enable-script-debugger parameter.
Odd, when I plug in the search term "-enable-script-debugger" in the forum search I get 65 hits.
Among those: 3 years back I listed an overview of QCAD start up arguments:
https://www.qcad.org/rsforum/viewtopic. ... ger#p30840

Regards,
CVH

WildWolfCJ
Full Member
Posts: 84
Joined: Fri Oct 20, 2023 7:21 am

Re: How to get the containing rectangle of text in a DXF file

Post by WildWolfCJ » Thu Nov 02, 2023 7:05 am

CVH wrote:
Thu Nov 02, 2023 6:23 am
WildWolfCJ wrote:
Thu Nov 02, 2023 3:41 am
HI CVH
I did not find the usage of the -enable-script-debugger parameter.
Odd, when I plug in the search term "-enable-script-debugger" in the forum search I get 65 hits.
Among those: 3 years back I listed an overview of QCAD start up arguments:
https://www.qcad.org/rsforum/viewtopic. ... ger#p30840

Regards,
CVH
Thank you for your answer. I just tested the -enable-script-debugger parameter, but no debugger interface appears? I would like to ask you how to debug JS code? Don't need single-step tracking?

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

Re: How to get the containing rectangle of text in a DXF file

Post by CVH » Thu Nov 02, 2023 7:37 am

WildWolfCJ wrote:
Thu Nov 02, 2023 7:05 am
I just tested the -enable-script-debugger parameter, but no debugger interface appears?
The debugger would pop up when there is an error or at the point in the code where you included debugger;

But as said: Never tried it in command line mode.
For some reason the UAC does not allow me to address QCAD or one of the folders from the OS command line.


Lets go back to:
WildWolfCJ wrote:
Wed Nov 01, 2023 9:09 am
I have successfully implemented this function according to your instructions. Thank you very much for your help.
One could halt that script before printing.

Code: Select all

    ...
    debugger; // Halt script before printing the string when QCAD is started with -enable-script-debugger
    // Export the composed string:
    print(texStr);
}
Regards,
CVH

WildWolfCJ
Full Member
Posts: 84
Joined: Fri Oct 20, 2023 7:21 am

Re: How to get the containing rectangle of text in a DXF file

Post by WildWolfCJ » Thu Nov 02, 2023 8:00 am

CVH wrote:
Thu Nov 02, 2023 7:37 am
WildWolfCJ wrote:
Thu Nov 02, 2023 7:05 am
I just tested the -enable-script-debugger parameter, but no debugger interface appears?
The debugger would pop up when there is an error or at the point in the code where you included debugger;

But as said: Never tried it in command line mode.
The reason is that for some reason the UAC does not allow me to address QCAD from the OS command line.


Lets go back to:
WildWolfCJ wrote:
Wed Nov 01, 2023 9:09 am
I have successfully implemented this function according to your instructions. Thank you very much for your help.
One could halt that script before printing.

Code: Select all

    ...
    debugger; // Halt script before printing the string when QCAD is started with -enable-script-debugger
    // Export the composed string:
    print(texStr);
}
Regards,
CVH
Thank you for your patient answer, I already understand the role of -enable-script-debugger

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

Re: How to get the containing rectangle of text in a DXF file

Post by CVH » Thu Nov 02, 2023 8:07 am

For the future:

Hit the Reply button and when composing your reply/question select a part in another post before hitting the Quote button there.
In that way you only include the intended paragraph you want to quote instead of quoting whole the post each time.

That would make your topics more readable. :wink:

Regards,
CVH

Post Reply

Return to “Chat”