Quantcast
Channel: OpenPlant | AutoPLANT
Viewing all articles
Browse latest Browse all 16985

Wiki Page: ProjectWise Opens Wrong Version Of AutoCAD For AutoPLANT [TN]

$
0
0
Applies To Product(s): AutoPLANT Piping, AutoPLANT Equipment, ProjectWise Server, ProjectWise Client Version(s): 08.09.xx.xx, 08.11.xx.xx Environment: N/A Area: N/A Subarea: N/A Original Author: Richard DeLongBentley Technical Support Group Overview Some users may find that when launching AutoPLANT through ProjectWise Explorer, the program may load up a different version of AutoCAD then expected. For example, when loading AutoPLANT through ProjectWise, a user may go to load it with AutoCAD 2007, but the program will load 2009 instead. This is caused by the computer's registry having the wrong program linked to the Application's class name. The cause of this is due to AutoCAD overriding those settings in the registry and replacing them with newer versions of the program. This TechNote will go over the reason the other application is loaded and how to fix it. The Cause of the Issue In ProjectWise, AutoPLANT uses a specific Application Class name in order to work correctly. This specific class names are listed below with their corresponding AutoCAD version. AutoCAD.Application.17 = AutoCAD 2007 AutoCAD.Application.17.1 = AutoCAD 2008 AutoCAD.Application.17.2 = AutoCAD 2009 When looking at the AutoPLANT Piping Application's Properties, notice the value under the "Program Class Name" and the exe that is being pointed to under in the "Command line that will be used to start application" field. In this example, one can see that this one should be pointing to AutoCAD 2007, but it is actually using AutoCAD 2009. If this application was used as the default to open the model, then it would load 2009 rather than opening AutoCAD 2007. This is because the registry entries on this system are pointing to the wrong information. This is most likely caused by installing 2009 on a system with 2007 on it. Since this is a special class that is just used by ProjectWise with AutoPLANT integration, it is possible that the AutoCAD install sees it and just updates the information in the registry to the newer version. So AutoCAD's 2007 and 2008 may be replaced by AutoCAD 2009. This has not been seen with older versions such as 2005 or 2006. Fixing the Issue NOTE - These steps modify the Windows Registry. Only do this with direct support from the System's Admin and be sure to backup the registry before making any changes. Changes to the Windows Registry can cause the system to no longer function properly and should be done with extreme caution. If the registry is damaged in anyway, then restore it from backup. The first thing that needs to be done is to copy the program class name. In this example, AutoCAD 2007 will be used, so the class name that is needed is AutoCAD.Application.17. Next, open the Windows Registry Editor, which can be done by going to Start and clicking on the Run option. In the Open text field, type regedit like the image below and press OK- Once in the Registry Editor, go to Edit>Find and do a search on the AutoCAD.Application.17 value. The first result will go to the path My Computer\HKEY_CLASSES_ROOT\AutoCAD.Application\CurVer. Just below this path is another folder called AutoCAD.Application.17. Looking in that folder will review another folder called CLSID. In this folder is a registry entry that has the second thing that is needed to find the improper entry. In this data field will be a long string of multiple characters enclosed in { }, as shown below - Edit this value by double clicking on it and copy the information found in the "Value data" section to the clip board using the Windows Copy command. DO NOT ERASE OR CHANGE THIS VALUE, ONLY COPY IT SO THAT IT CAN BE USED IN THE NEXT SEARCH. Below is the value that was found for both my AutoCAD 2007 and AutoCAD 2008 releases. {28B7AA99-C0F9-4C47-995E-8A8D729603A1} for AutoCAD 2007 {6AB55F46-2523-4701-A912-B226F46252BA} for AutoCAD 2008 Once the value is copied to the clipboard, return to the top of the Registry Entry, select the My Computer node, and perform another search. This time look for the value that was just now copied, in this example {28B7AA99-C0F9-4C47-995E-8A8D729603A1}, the search will turn up multiple results. The result that is needed is the folder that is named after the value that contains the LocalServer32 folder. Once this folder is found, look inside it to see the registry entry that calls the AutoCAD for this class. Below is an example of this that shows it calling AutoCAD 2009 and gives an example of what the folder will look like. Edit the value for this registry entry to point to the correct AutoCAD executable. In this case, all that is needed is the AutoCAD 2009 folder needs to be changed to AutoCAD 2007. As seen below - With this done, continue the search for any other fields similar to this one under the value that is being searched on and change any other cases like this to point to the correct AutoCAD. Test it Out After the changes, close out the Registry Editor and load ProjectWise Administrator. Log into the Datasource and go into the Applications. Locate the AutoPLANT Piping Application and look over its properties. Check to see if the application is now pointing to the correct executable. After this checks out, test out ProjectWise Explorer by loading an AutoPLANT model and make sure that the correct AutoCAD is loaded. See Also Product TechNotes and FAQs Plant TechNotes And FAQs External Links Bentley Technical Support KnowledgeBase Bentley LEARN Server Comments or Corrections? Bentley's Technical Support Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!

Viewing all articles
Browse latest Browse all 16985

Trending Articles