I’ve been working quite a bit on making C3D play nicely in a PowerCivil environment. One of the things that we ran into was using the PowerCivil launcher to pull up C3D and make sure the environment was the exact one we wanted. The first answer was to launch a specific profile to make sure the support paths, lsps, and other settings we wanted were queued up at the launch. Of course, users sometimes mess with their profile, leading to problems. The solution there was to call the network version of the profile at each launch, but if you’ve ever tried this, you know that AutoCAD won’t read the network .ARG file if that profile name already exists. So, what’s a Type A Cad Manager to do to make sure that the program launches the exact same way every time? Make the jump to find out.
First, you’ll need to have your Profile set up in C3D, then export it. I’m going to drop mine on C:\Profiles\ to make this simple. If you look at an ARG file, it’s really a tweaked out Registry file, so that should give you some idea of where we’re headed. Once you have your profile setup and exported, create a new shortcut. I like to modify the existing one, so here’s what mine looks like. Note that I’ve included a full path in the Profile part of the shortcut. This will at least tell C3D to pull from the stored version once it can’t find the local version.
Now, how to get rid of that local version? DOS. Yes, DOS. A little old DOS prompt does wonders. It’s heavy handed, and does require using a batch script to handle the actions, but if you’re in the type of environment where PowerCivil is in play and where you want this level of control, adding one more thing to a script isn’t a big deal.
Here’s the command you’re after:
If you look at the Registry on your machines, you’ll find the profile appears down in a Profiles key. I’ve modified the image so you can see it better, but here’s the path for Civil 3D 2010 on W7. You’ll want to experiment a little bit to find the path on your computer. When you do find your profile, right-click, and you can select Copy Key Name. Now you know what you have to delete.
Make sure you’re outside of C3D, then move to a DOS prompt and REG DELETE “[Your key]” /F Make sure you use quotes around your profile name just in case you have spaces, etc in the profile name. You will probably have to right-click to paste, but when you run that command, POOF goes the profile. You’ll see a message like you do here.
If you jump back into your Registry, you can refresh (F5) and you’ll see the profile key is gone. Relaunch from your hard coded icon, and you’re back to the stock profile configuration.
We chose to simply put this in the login script, but I’m sure you could find a way to run it before every launch if you’re really obsessed. I’ll leave that part up to you, but if you need some help, leave a comment!