AutoCAD throws errors on Amazon Web Services (AWS)

AutoCAD throws errors on Amazon Web Services (AWS)

LORETTABradley1039
Participant Participant
7,010 Views
16 Replies
Message 1 of 17

AutoCAD throws errors on Amazon Web Services (AWS)

LORETTABradley1039
Participant
Participant

I am having issues with Autodesk running on AWS for students. I have it running successfully in a test environment. When I open CAD 2020 I get Fatal Error: invalid configuration path Software will not open. When I open CAD 2021, I get error: customization file load failed. Acad.cuix. Software opens toolbars and ribbon do not load. When I open architecture 2021 I get catalog file error AcFields.fdc not found, hit ok; then Shapes.atc not found, hit ok, Software opens, again no toolbars and ribbon. I went back to my test machine and gave users/default users full control permissions on file folders for AutoCAD under programs/programs(x86). No effect. I checked server log file; does not show any errors. Student machine does not throw a log file. Student machine user is created on D:\. I opened a command prompt and copied AcFields and Shapes into C:\user\.......\support. This did not help either.  

 

0 Likes
Replies (16)
Message 2 of 17

cheryl.buck
Autodesk Support
Autodesk Support

Hi @LORETTABradley1039,

 

I am sorry you are having trouble with AutoCAD on the AWS cloud based virtual machine. Your software may not be  eligible to be used in a virtual environment, see Virtual installation guidelines for more information. 

 

This article may provide more information: Autodesk Support for Non-Microsoft Networks

 

Please click the Accept Solution button on any posts that resolve the problem or answer your question.

Likes are always welcome.

 

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 17

bryanleuschen
Participant
Participant

Running into similar challenges with AutoCAD 2021 hosted on AWS Appstream 2.0.

 

Did you ever find a solution?   I'm getting Catalog file errors from multiple users that the AcFields.fdc file is not found even though it exists at the provided path and the user has Full control. 

 

0 Likes
Message 4 of 17

LORETTABradley1039
Participant
Participant

Hello,

No I haven't found a solution yet.  I have tried many things.  I gave users  full control on the autodesk folder under hkey_current_user and hkey_local_machine.  

 

AWS assisted us last week but what they sent did not help either.

I've attached this file for you to look at and try.

Let me know if it is successful for you.

Good luck!

0 Likes
Message 5 of 17

bryanleuschen
Participant
Participant

Thanks for the reply.  I checked the environmental variables too, after finding a thread about that fixing ACAD 2020 here https://forums.aws.amazon.com/thread.jspa?threadID=285477, but no luck on 2021 either.  
Capture.PNG


0 Likes
Message 6 of 17

bryanleuschen
Participant
Participant
Accepted solution

After rereading the steps, I realized it's actually wanting to use true folder paths and not the environmental variables.  AutoCAD works after implementing the script.  Here's what the paths in the registry look like now. 

Capture.PNG

Message 7 of 17

LORETTABradley1039
Participant
Participant

Do you have it working now?

0 Likes
Message 8 of 17

bryanleuschen
Participant
Participant
Accepted solution

Yes, changing the paths the script listed fixed it for our environment. 

I've been able to test with multiple users that AutoCAD is now working.

Message 9 of 17

LORETTABradley1039
Participant
Participant

That is great.  Thank you for sharing.  Our ITS guy has ours working now too.

Have a great day.

Message 10 of 17

jacob.aguinaga
Community Visitor
Community Visitor

Hello, you are calling this script in the sessionscript json file right? Is that script being run as system or user context? 

0 Likes
Message 11 of 17

LORETTABradley1039
Participant
Participant

The script is copied into the startup menu.  It is being run with each user log on

0 Likes
Message 12 of 17

Anonymous
Not applicable

I am attempting to put this solution in my AutoCAD 2020 Appstream.  

 

My question is, are you using the session script to get this working or are you putting a script in the startup menu for every user?

 

Thanks for your help.

0 Likes
Message 13 of 17

bryanleuschen
Participant
Participant

I used a scheduled task with the trigger of "on connection to user session".

Keeps the script in one place, outside of the user's ability to modify it, and has been running fine for our needs.

0 Likes
Message 14 of 17

Anonymous
Not applicable

@bryanleuschen 

 

Thank you for that.  I have tried that without success.

 

Question:  Are you presenting AppStream in Desktop mode or Dashboard mode?

 

I am using Dashboard.

 

Thanks for helping,

buckRogers

 

0 Likes
Message 15 of 17

bryanleuschen
Participant
Participant

We're using dashboard mode as well.

0 Likes
Message 16 of 17

Anonymous
Not applicable

Good morning folks.

 

I'm actually an AWS Solutions Architect and have been working through a deployment of AutoCAD 2021 for one of my customers. I hit the same problem as outlined earlier on in this thread. The script does resolve the issue, but I'm using the AppStream Script Execution engine to fire it before the user session starts (rather than Windows Scheduled Tasks). The steps I took are below are done from my Image Builder machine:

 

1. I modified the script by @bryanleuschen to reflect my AutoCAD 2021 install, as shown below:

 

$GCF = "$env:LOCALAPPDATA\Autodesk\AutoCAD 2021\R24.0\enu\GraphicsCache\"
$LRF = "$env:LOCALAPPDATA\Autodesk\AutoCAD 2021\R24.0\enu\"
$RRF = "$env:APPDATA\Autodesk\AutoCAD 2021\R24.0\enu\"
$RegKey = "HKCU:\Software\Autodesk\AutoCAD\R24.0\ACAD-4101:409"

Set-ItemProperty -Path $RegKey -Name "GraphicsCacheFolder" -Value $GCF
Set-ItemProperty -Path $RegKey -Name "LocalRootFolder" -Value $LRF
Set-ItemProperty -Path $RegKey -Name "RoamableRootFolder" -Value $RRF

 

2. I saved this as a file called "autocad-fix.ps1" to a new folder called "scripts" in the root of my C: drive.

 

3. AWS AppStream has hooks which allow you to fire scripts (.bat or powershell) when certain events happen. These are called AppStream Session Scripts. One of those events is when a streaming session starts. On your AppStream builder machine, you will find a file called "config.json". This will be stored in C:\AppStream\SessionScripts. I modified this file as follows, as you will see, this tells AppStream to fire the powershell above when any user starts their AppStream session:

 

{
  "SessionStart": {
    "executables": [
      {
        "context": "user",
        "filename": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
        "arguments": "-File \"C:\\scripts\\autocad-fix.ps1",
        "s3LogEnabled": true
      },
      {
        "context": "system",
        "filename": "",
        "arguments": "",
        "s3LogEnabled": true
      }
    ],
    "waitingTime": 30
  },
  "SessionTermination": {
    "executables": [
      {
        "context": "system",
        "filename": "",
        "arguments": "",
        "s3LogEnabled": true
      },
      {
        "context": "user",
        "filename": "",
        "arguments": "",
        "s3LogEnabled": true
      }
    ],
    "waitingTime": 30
  }
}

 

Note a couple of things:

1. The double backslash on the folder locations is intentional, and should be used.

2. I am logging out the output from my powershell script to an S3 Bucket. When this option is enabled in the configuration file, AppStream 2.0 automatically captures the output from the session script that is written to the standard out. This output is uploaded to an Amazon S3 bucket in your account. You can review the log files for troubleshooting or debugging purposes. Unless you need this logging information, or you have housekeeping on the S3 Bucket, then turn it off so you are not logging out un-necessarily. See here for more details.

 

After that, I created a new Image from this machine, and added it into my AppStream fleet.

0 Likes
Message 17 of 17

Anonymous
Not applicable

... and to be absolutely clear. Step 2 is saving to the file to a new folder called "scripts" in the root of my AWS App Stream Image builder C: drive, not my local machine!

0 Likes