QAFLAGS 23 - What does that do ?

QAFLAGS 23 - What does that do ?

cyberflow
Advisor Advisor
1,877 Views
6 Replies
Message 1 of 7

QAFLAGS 23 - What does that do ?

cyberflow
Advisor
Advisor

Hi all,

Was trying to find information about the "QAFLAGS" variable and I found a procedure to edit autors names and it ask me to set my QAFLAGS at 23.

What does that do ?

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes
Accepted solutions (3)
1,878 Views
6 Replies
Replies (6)
Message 2 of 7

cyberflow
Advisor
Advisor

Found this :

https://www.manusoft.com/resources/acadexposed/sysvars.html


cyberflow_0-1720031313664.png

 

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes
Message 3 of 7

pendean
Community Legend
Community Legend
Accepted solution

QAFLAGS: Controls internal functions (debugging)

 

https://www.manusoft.com/resources/acadexposed/sysvars.html#:~:text=QAFLAGS,R12.%5B2%5D

 

https://cadpanacea.com/wp/?p=995

 

QAFLAGS system variable - Quality Assurance flags

Internal system variable with flags for Quality Assurance and testing. The value is stored as a bitcode using the sum of the values of all selected options.

Attention: this is subject to change, and not intended for regular use. Some of these options could have unpredictable or unwanted side-effects.

 
Type:

Short

Saved in:

Registry

Range:

0 to 32767

Default value:

0

Possible options:

1: Red device: no low quality draw

2: No pause during text screen listings

4: No 'alert' dialogs (text display instead)

8: Have Warnings act as Errors and stop scripts

16: Minimal audit report

32: Disable window recreation on switch between 2d and rendered visual styles.

64: Enable various performance measurements printed as info prompts

128: Parallel vectorization: EnableSchedulerLogOutput

256: Cmd message enable

512: Dcl take screenshot

1024: Print time on statusbar

2048: No crash dump file

4096: Create assert log file

8192: Create RED files during rendering

16384: Parallel vectorization performance measurement

Message 4 of 7

cyberflow
Advisor
Advisor
Accepted solution

Well chatGPT is pretty powerfull for simple questions, here's the answer : 

In AutoCAD, the `QAFLAGS` system variable is used for enabling and controlling certain diagnostic and debugging features. When `QAFLAGS` is set to a specific value, it activates different features for testing or debugging purposes.

Setting `QAFLAGS` to `23` (or `0x17` in hexadecimal) enables several specific features. Here's a breakdown of what these flags represent:

1. **Bit 0 (1)**: Enables diagnostics logging.
2. **Bit 1 (2)**: Enables extended debugging information.
3. **Bit 2 (4)**: Enables the display of detailed performance information.
4. **Bit 3 (8)**: Activates additional user interface elements for debugging.
5. **Bit 4 (16)**: Enables logging of additional internal system events.

So, when you set `QAFLAGS` to `23`, it enables all the above features:

- **Diagnostics logging**
- **Extended debugging information**
- **Detailed performance information**
- **Additional UI elements for debugging**
- **Logging of additional internal system events**

These settings are typically used by developers or advanced users who need to diagnose issues or understand the internal workings of AutoCAD more deeply. It is generally not recommended to change this variable unless you are troubleshooting specific problems or developing custom applications for AutoCAD.




@cyberflow wrote:

Hi all,

Was trying to find information about the "QAFLAGS" variable and I found a procedure to edit autors names and it ask me to set my QAFLAGS at 23.

What does that do ?




Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes
Message 5 of 7

cyberflow
Advisor
Advisor

Thx @pendean  !

To note that when changing the flags we need to restart the software so we can use certain functions in debuging or else the commands aren't visible if the software isn't rebooted.

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes
Message 6 of 7

matt.worland
Collaborator
Collaborator
Accepted solution
As great as Chat can be, it looks like its response has an issue. To get to QAFLAGS 23, it should be 16 + 4 + 2 +1 = 23
It does not use the 4th bit (8) to Activate additional user interface elements for debugging.
If my reply was helpful, please give a "Thumbs Up" or "Accept as Solution"
Message 7 of 7

cyberflow
Advisor
Advisor

Hi @matt.worland,

You are right ! The (8) isn't used in the 23 !

Excellent remark !

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes