AutoCAD Crash when using MODEMACRO

AutoCAD Crash when using MODEMACRO

Udo_Huebner
Mentor Mentor
626 Views
3 Replies
Message 1 of 4

AutoCAD Crash when using MODEMACRO

Udo_Huebner
Mentor
Mentor

When using MODEMACRO with specific Textvalues, AutoCAD crashes immediately.

Only if interested in crashing AutoCAD, start

Command: _MODEMACRO $(getenv, "ACAD")


Tested  with
AutoCAD Mechanical 2019
AutoCAD Civil 3D 2021.1

Gruß Udo Hübner (CAD-Huebner)
0 Likes
627 Views
3 Replies
Replies (3)
Message 2 of 4

cheryl.buck
Autodesk Support
Autodesk Support

Hi @Udo_Huebner,

 

Thank you for posting. I tested the _MODEMACRO command in versions 2017-2021, it seems to be working correctly.

 

When I enter your string, I also see a crash. The subsequent report indicates that the string is invalid, can you tell me more about the string you are entering and how you are using it?  

 

All the best,

 

Cheryl Buck
Technical Support Specialist



Did a post answer your question or help resolve the issue? Please click the Accept Solution button.
If you find a response helpful, consider Liking the post.

0 Likes
Message 3 of 4

Udo_Huebner
Mentor
Mentor

Hi Cheryl, I tested some DIESEL menu settings for a forum question with MODEMACRO, and I got several crashes.

 

I know 

_MODEMACRO $(getenv, "ACAD") is an invalid expression, but hey, AutoCAD should not crash

Even if I use a valid expression with a valid environment variable (without "), AutoCAD crashes.

_MODEMACRO $(getenv, ACAD)

I only wanted to document this unwanted behaviour in a public forum so that others can find this information if a similar behaviour occurs on their site.

If you log this to the development team hopefully this bug get fixed in future. Its only a minor bug, but now its documented.

Gruß Udo Hübner (CAD-Huebner)
0 Likes
Message 4 of 4

cheryl.buck
Autodesk Support
Autodesk Support

Hi @Udo_Huebner,

 

Thanks for the added information. I did some additional testing and reached out to the product team. 

 

The crash appears to be occurring due to the specific Diesel contents,  "ACAD" which is not a valid variable for this command, along with "AutoCAD" and "CAD". I understand that a crash is possible and expected with certain expressions because Diesel accesses the application directly.  When I choose a different variable, it does not crash.  

 

Do you get the same?

All the best, 

Cheryl Buck
Technical Support Specialist



Did a post answer your question or help resolve the issue? Please click the Accept Solution button.
If you find a response helpful, consider Liking the post.

0 Likes