Showing posts with label registry hack. Show all posts
Showing posts with label registry hack. Show all posts

Monday, February 3, 2014

AutoCAD Architecture Detail Components problem and solution

Do you have problem in Autodesk AutoCAD Architecture to open the Detail Component Manager or using any of the tools on the Tool Palettes - Design Details tab?

Maybe you get this error message showing up one or many times?

“Cannot open database C:\ProgramData\Autodesk\ACA 2014\enu\Details\Details (Global)\AecDtlComponents (Global).mdb.” followed by “Unable to execute the tool. Unspecified error.” and on the command line “ERROR: No database information found!” It might also show ACA 2013 or ACA 2012 or older. The file can also be for example AecDtlComponents (US).mdb or AecDtlComponents (UK).mdb.

Still if you try to open the mdb file manually it works fine.

But there is a solution available. This fix only applies to if you run a 64-bit version of AutoCAD Architecture.

SOLUTION: Download this Detail_Component_Manager_Fix.reg file and run it and you probably also need to answer yes a couple of times so it is merged into the Windows Registry. After that you should be able to use the tools as normal. No need to even restart AutoCAD Architecture.

Tools affected are Metal Runner, Metal Stud, Wood Stud, Hat Channel, Gypsum Board, Batt Insulation, Rigid Insulation, Brick, Concrete Block, Plywood, Protection Board, Roof Hatch, Roof Drain, Floor Drain, Sliding Door Head, HM Door Frame, Carpet, Stone Pavers, Recessed Light, Steel, Concrete Column, Earth Hatch and possibly some others.

Friday, August 30, 2013

Change AutoCAD 2014 from Network license to Standalone

AutoCAD 2014 and its verticals can easily be changed between Network, Standalone and Multiseat Standalone licensing with a small registry hack.

Note: This feature is not officially supported by Autodesk and always be careful when editing the registry, backup if needed.

Start the Registry Editor and the registry location is HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R19.1 and then depending on AutoCAD vertical look in ACAD-D001 for AutoCAD 2014 or for example ACAD-D004 for AutoCAD Architecture 2014. Finally in AdLM there is Type that can be changed to any of the values 1, 2 or 3 as seen below.

1 – Network

2 – Standalone

3 – Multiseat Standalone

Switching license type in Inventor, Inventor LT and Inventor Professional is also possible:

Inventor release 2012:
HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\Inventor\RegistryVersion16.0\LicenseMode

Inventor release 2013:
HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\Inventor\RegistryVersion17.0\LicenseMode

Inventor release 2014:
HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\Inventor\RegistryVersion18.0
Change values for the Value keys below:
LicenseType  from Network License change to Stand-Alone License
LicenseMode from 1 change to 2
Or this can also be done the other way around.

Via Up and Ready and TS17847202

Above solution does not apply to Multi-flex or eFlex installations.  Do NOT switch licenses when using either of these two licensing methods.

See also Change AutoCAD 2013 from Network license to Standalone as well as for AutoCAD 2011 and AutoCAD 2012

AutoCAD registry details explained

Friday, March 22, 2013

How to pin any document to the Start screen in Windows 8

Windows 8 comes with a completely new Start screen that replaces the start menu. After having tried some freeware that try to mimic the old start menu (that I were not that satisfied with) I have instead started to use the Start Screen and even though I don’t have a touch screen I find it quick and easy to use.

In Windows 8 you can by default pin only some things like programs (.exe) to the Start screen using Windows Explorer. But what if you want to pin a document? It can be done with a simple registry hack. Here is how I right-click on an Excel document and have the Pin to Start option.

Pin to Start

When ready you will find the document or file as a tile on the Start screen.

Copy the text in the box below into Notepad and save it as pintostart.reg. Then double click on pintostart.reg and accept the dialog boxes.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\pintostartscreen]
"MUIVerb"="@shell32.dll,-51201"
"NeverDefault"=""
"Description"="@shell32.dll,-51202"
"MultiSelectModel"="Single"

[HKEY_CLASSES_ROOT\*\shell\pintostartscreen\command]
"DelegateExecute"="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"

[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\pintostartscreen]
"MUIVerb"="@shell32.dll,-51201"
"NeverDefault"=""
"Description"="@shell32.dll,-51202"
"MultiSelectModel"="Single"

[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\pintostartscreen\command]
"DelegateExecute"="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"

Another alternative is Pin to 8 that is a nice freeware with more features:

With our Pin to 8 you will able:

  • to pin ANY file regardless of its type;
  • to pin ANY folder;
  • to pin drive;
  • to pin Control Panel items, all them including some hidden like God Mode/All Tasks, Network Connections;
  • to pin Libraries;
  • to pin Shell Objects like Run command, "Show Desktop", Window Switcher;
  • to pin any folders or files with drag and drop. Drop them on application window.

There is also a manual way by adding a shortcut in this folder:

%appdata%\Microsoft\Windows\Start Menu\Programs

When expanded it may look like this except jtb would be your login name: C:\Users\jtb\AppData\Roaming\Microsoft\Windows\Start Menu\Programs

Only thing is that you need to also pin it. Say you create a shortcut named “Windows 8 manual test” and put it in the folder above. Now press the Windows button and start writing the name of the shortcut and it should show up in the search result.

Right-click on the shortcut and select Pin to Start at the bottom of the screen and the tile should show up on the Start Screen.

Friday, September 21, 2012

AutoCAD product keys in Visual LISP explained

The product key functions have some news in Visual LISP for AutoCAD 2013. These are extended functions provided by VLISP. You must issue vl-load-com before you can use the functions.

VLAX-MACHINE-PRODUCT-KEY - Returns the AutoCAD product key from the Machine hive in the Windows Registry.  (ie. "Software\\Autodesk\\AutoCAD\\R19.0\\ACAD-B001:409") VLAX-MACHINE-PRODUCT-KEY replaces VLAX-PRODUCT-KEY in releases AutoCAD 2013 and later.

VLAX-USER-PRODUCT-KEY - Returns the AutoCAD product key from the User hive in the Windows Registry.  (ie. "Software\\Autodesk\\AutoCAD\\R19.0\\ACAD-B001:409")

In AutoCAD these 2 strings will always be identical. The strings will only be different in Core Engine host applications other than AutoCAD.

VLAX-PRODUCT-KEY - Returns the AutoCAD Windows registry path. Old function, still available.

The Core Engine host AcCoreConsole.exe that ships with AutoCAD can be configured to run ’isolated’ in which case the vlax-user-product-key will return a different string than vlax-machine-product-key. Normally, it shares the HKLM/HKCU keys with AutoCAD. However, you can configure it with the /isolate switch to use a different HKCU root key. The /isolate switch can be used to prevent the changes to the system variables from affecting regular AutoCAD. This is useful when you want to set sysvars or other registry based configuration setting for AcCoreConsole.exe but you don’t want these settings to change for your AutoCAD instance.

When using the /isolate switch you also need to include an existing or new userid.

Example: AcCoreConsole.exe /isolate batch

When that is done you will notice how vlax-user-product-key will return a different value compared with the other functions:

Command: (vl-load-com)

Command: (princ (vlax-product-key))
Software\Autodesk\AutoCAD\R19.0\ACAD-B004:409
"Software\\Autodesk\\AutoCAD\\R19.0\\ACAD-B004:409"

Command: (princ (vlax-user-product-key))
Software\Autodesk\AutoCAD\R19.0\CoreUser\batch
"Software\\Autodesk\\AutoCAD\\R19.0\\CoreUser\\batch"

Command: (princ (vlax-machine-product-key))
Software\Autodesk\AutoCAD\R19.0\ACAD-B004:409
"Software\\Autodesk\\AutoCAD\\R19.0\\ACAD-B004:409"

Here AutoCAD registry product keys are explained further. The registry product keys are not the same thing as the Autodesk Product Keys that are used to differentiate products that are both sold independently and as part of a product suite.

Tuesday, October 4, 2011

How to change AutoCAD from network license to standalone

Sometimes it can be useful to convert a standalone license to a network license or the other way around. This works for AutoCAD and for verticals like AutoCAD Architecture, AutoCAD Electrical, AutoCAD Civil 3D, AutoCAD Map 3D, AutoCAD Mechanical, AutoCAD MEP, AutoCAD P&ID, AutoCAD Plant 3D and AutoCAD Structural Detailing. It can be done with a simple registry hack (start the Registry Editor with regedit.exe and take backup of the registry to be on the safe side).

For AutoCAD 2011 locate this key in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R18.1\ACAD-9001:409\AdLM

In that directory change the type for the installation that you require:

1 – Network
2 – Standalone
3 – Multiseat Standalone

For AutoCAD 2012:
HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R18.2\ACAD-A001:409\AdLM

A tip is to locate HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD first and then you will find the version (R18.2 is for 2012 products) and then the vertical (ACAD-A004:409 is for AutoCAD Architecture 2012).

Via Up and Ready

Change AutoCAD from standalone to network describes how it works for AutoCAD 2008 and older versions.

Change AutoCAD network to standalone to network describes how it works for AutoCAD 2009 and AutoCAD 2010.

Sunday, August 21, 2011

How to remove all Autodesk products from Windows

Sometimes this is needed. I’ve done it many times both on my machines and on users machines.

How to remove all Autodesk products from a Windows system

From Autodesk’s Knowledge base: TS45252

Issue

A previous attempt to install or uninstall an Autodesk® product failed to successfully complete and now you are unable to install or reinstall an Autodesk product on your system.

Solution

In these cases, it is strongly recommended that you clean your system by uninstalling all Autodesk products and supporting applications (add-ins, utilities, enablers, etc.), and by removing related files and settings before attempting to reinstall. The end result is a clean system on which you can install your new Autodesk product.

Before you begin
  • These procedures are intended to completely remove Autodesk products and related support files from your computer including customization files such as menus, AutoLISP, PGP files, etc. If you wish to preserve any existing customization, you must manually back up those files before executing the procedures that follow.
  • Before you starting uninstalling your Autodesk products, we recommend you restart your system to ensure that any pending Windows OS updates get applied first.
  • Some options are presented differently depending on the version of Windows you are running. The following procedures include descriptions for the Windows® 7, Windows Vista®, and Windows XP operating systems. Follow the appropriate  instructions for your operating system.

For most Windows-based Autodesk products, the process of uninstallation is handled through the Windows Control Panel:

  1. From the Windows Start menu, open the Control Panel.
  2. Select “Uninstall a program” (Windows 7/Windows Vista) or “Add or Remove Programs” (Windows XP).


Windows 7 / Window Vista


Windows XP

The first thing to note is that each Autodesk product is listed separately and must be uninstalled separately.


List of installed applications

Even though you may have installed all of the products in a suite in a single installation, each individual Autodesk product and related add-in, enabler, bonus pack, or other supporting application must be uninstalled separately.


Uninstall peripheral applications

If you're going to uninstall a product, you should uninstall the related peripheral applications before uninstalling the main application. For example: if you're going to uninstall 3DS Max Design, you should first uninstall the FBX add-in for 3DS Max Design. Uninstall this and any other related add-ins and then uninstall the main applications. This also applies to modules such as the VBA enabler, Subscription Advantage packs, and Autodesk material libraries.

Note: When uninstalling the Autodesk material libraries it’s important to remember that these libraries are shared across all Autodesk products and should not be removed unless you are removing all Autodesk products from the system.

  1. Select the product to be uninstalled and click the “Uninstall/Change” link (Windows 7/Windows Vista) or the “Change/Remove” button(Windows XP).
  2. In most cases this will launch an uninstaller for the selected component, allowing you to uninstall it from the system.

Repeat this process for all add-ins and supporting applications before beginning uninstall of the main Autodesk products.

When uninstalling the material libraries, it's best to uninstall from largest to smallest. Begin by uninstalling the medium resolution image library–assuming that library is installed on your system–followed by the base resolution image library, and then the Autodesk material library.


Uninstall Autodesk products

Once you have uninstalled all peripheral applications, you can begin uninstalling the main Autodesk products:

  1. Select the product to be uninstalled and click the “Uninstall/Change” link (Windows 7/Windows Vista) or the “Change/Remove” button(Windows XP).
  2. At this point, the Autodesk installer will open in maintenance mode offering you the options to: Add or Remove Features, Repair or Reinstall, or Uninstall the selected product. 


    AutoCAD 2011 installer in Maintenance Mode
  3. Click the Uninstall option and click Next to confirm that you want to remove the product from your computer (if you are prompted to remove shared files, click Yes to All).
  4. After the Uninstall is complete, click Finish to close the installer.

Repeat steps 1-3 for each Autodesk product to be uninstalled.

Note: The uninstall procedure for some Autodesk products may require you to restart the computer when the uninstall has completed. If this is the case, restart the computer as instructed, return to the Control Panel and continue removing any remaining Autodesk products.


Delete remaining Autodesk product files and folders

Warning: The following steps instruct you to delete folders at locations that would affect all installed Autodesk products. These steps assume you have previously uninstalled all Autodesk products and related peripherals and that it is safe to remove those folders.

1. Using Windows Explorer, locate and delete the installation folder for each Autodesk product that was uninstalled in the previous procedures, e.g.,  "C:\Program Files\AutoCAD 2010" or "C:\Program Files\Autodesk\AutoCAD 2012".

2. Delete the folder, "C:\Program Files\Common Files\Autodesk Shared"
Note: These locations may be different if your OS is configured to store the Program Files folder on a drive other than C: or if you installed your Autodesk product to another drive and folder name.

3. Delete the following user profile folders (substitute your login name for %username%):

Windows 7/Windows Vista

  • C:\Users\%username%\AppData\Roaming\Autodesk
  • C:\Users\%username%\AppData\Local\Autodesk
  • C:\ProgramData\Autodesk

Windows XP

  • C:\Documents and Settings\%username%\ Application Data\Autodesk
  • C:\Documents and Settings\%username%\Local Settings\Application Data\Autodesk
  • C:\Documents and Settings\All Users\Application Data\Autodesk

Windows 7 and Windows Vista: Depending on your system settings, Windows Explorer may not automatically display all the subfolders under the Users folder. If you cannot locate these folders by navigating to the folder, copy and paste the above folder locations into the Windows Explorer address bar.


Windows Explorer address bar


Delete remaining Autodesk product entries from the Windows registry

Warning: Improperly editing the Windows registry could render your operating system unusable. Microsoft provides a wealth of critical information that you need to know about the registry in the Microsoft Knowledge Base at http://support.microsoft.com/support.

Use the Microsoft® Registry Editor at your own risk and only after backing up the registry. Instructions on backing up your registry can be found in the following Microsoft Knowledge Base articles:

Additional information about the registry is available in the Help topics in the Microsoft Registry Editor.

  1. Log on to the workstation as a member of the local Administrators group.
  2. Launch the Run dialog by typing [Windows key] + R (Windows 7/Windows Vista) or clicking Start > Run (Windows XP).
  3. In the Run dialog, enter REGEDIT in the “Open” edit field and click OK.
  4. In the Registry Editor, locate and delete the following subkeys:
    - HKEY_CURRENT_USER\Software\Autodesk
    - HKEY_LOCAL_MACHINE\Software\Autodesk 

    Deleting a subkey in the Registry Editor
  5. Close the Registry Editor.
  6. Restart the computer.

Before reinstalling any Autodesk products

At this point, each of the previously installed Autodesk products—along with residual files, folders, and registry settings—should now be gone from the system and you are almost ready to start installing (or reinstalling) your Autodesk products. Before you begin, we recommend you perform the following tasks to help ensure a successful installation:

  1. Reboot your computer. You should really do this even if you have not been prompted to reboot. Restarting your system before installation helps ensure that any pending Windows OS updates get applied before you starting installing your Autodesk products.
  2. In Windows Explorer, delete the contents of your Windows Temp folder, but do not delete the Windows Temp folder itself. You can locate the Temp folder by entering %TEMP% in the Address bar of Windows Explorer.
  3. Close all running applications. Some applications—Microsoft Outlook, for example—can interfere with the installation process. So, before you begin installing, it's just a good idea to shut down other applications that are running.
  4. Disable any virus-checking software running on your system. Virus-checking applications may block certain activities detected as suspicious, e.g., accessing the registry or adding/removing/updating DLL files, even though these activities are common when installing or removing programs. Not only can it slow down the installation process, but it can actually introduce corruption. So make sure that your virus checking software is turned off before you install, and make sure you turn it back on when you're complete.

Several anti-virus programs can be disabled by right-clicking its system tray icon and selecting Disable from the shortcut menu (for more information about disabling your anti-virus software, refer to the vendor of that software). In some cases, disabling the anti-virus application from the system tray may not be sufficient and it may be necessary to use the task manager to end the process for the anti-virus software that is still running.

To verify that an anti-virus program is not still running in the background:

  1. Press [Ctrl] + [Alt] + [Delete].
  2. Click Task Manager.
  3. On the Processes tab of the Task Manager, select the process for the anti-virus program and then click “End Process”.

You are now ready to install your new Autodesk products on the clean system.

More Information

For more information on uninstallation techniques, please refer to the following solutions:

Monday, June 13, 2011

How to disable/enable Autodesk Exchange

Do you want to enable Autodesk Exchange or learn to know how to disable Autodesk Exchange?

Upon installing and starting the AutoCAD 2012’s family of products Autodesk Exchange is automatically started. Many AutoCAD users, administrators or CAD Managers might want to avoid the dialog at start-up and will uncheck the Show this window at start up. This will also speed up start of AutoCAD.

Registry location is:
HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R18.2\ACAD-A001:409
and when LaunchNFW is 1 Autodesk Exchange will auto-start. When the LaunchNFW is 3 Autodesk Exchange will not show when AutoCAD starts.

Autodesk Exchange can also be started manually by clicking on the Exchange icon in InfoCenter, pressing F1 for help or run the EXCHANGE command. This will also give access Autodesk Exchange Apps.

image

To disable Autodesk Exchange uncheck “Access online content (including Help) when available” in Options>System.

To disable Exchange for all users at deployment, uncheck the option "Use Online Help from Autodesk when available" in the deployment wizard. The end-user can easily enable it the Options dialog though.

Another trick to disable Autodesk Exchange is to edit this registry key where R18.2 is for the 2012 version and ACAD-A001:409 is depending on the product and language. See also AutoCAD registry details for more explanation:

HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R18.2\ACAD-A001:409

And then edit the value name HelpBaseURL to anything other than the default value http://exchange.autodesk.com

When that is done Autodesk Exchange will show this:

Server Connection Unavailable

You must be connected to the Internet to access the Autodesk Exchange server.
Most problems are due to one of the following:

Your Internet connection is currently unavailable
You can display the offline Help system in your current web browser by pressing F1.

The Autodesk Server is temporarily unavailable
You can reload the current Autodesk Exchange page by clicking here to "Connect"

Your Proxy server is blocking Autodesk Exchange
Contact your network administrator.

It is also possible to block or unblock the Autodesk Exchange base url: http://exchange.autodesk.com in your proxy server. Here is what TS16732564 says:

2012: AutoCAD requests to Autodesk servers blocked by proxy servers

Applies to: AutoCAD 2012, AutoCAD Architecture 2012, AutoCAD Civil 3D 2012, AutoCAD Electrical 2012, AutoCAD Map 3D 2012, AutoCAD Mechanical 2012, AutoCAD MEP 2012, AutoCAD P&ID 2012

Issue

You are using AutoCAD 2012 and notice that some requests to Autodesk servers are being denied.

AutoCAD requests to Autodesk servers can be blocked by proxy servers. The following components can be affected when proxies block requests to Autodesk servers:

  • Exchange: Access to help when user is online.
  • Sign in to Autodesk: Single sign-in to Autodesk Servers.
  • Content Explorer: Accessing SEEK from the Content Explorer AutoCAD plug-in.
Solution

If your network uses proxy servers to access the Internet, the following proxy mechanisms should be implemented to help avoid access issues for AutoCAD 2012 components:

Transparent proxies:

An intercepting proxy (also known as a forced proxy or transparent proxy) combines a proxy server with a gateway or router (commonly with NAT capabilities). Connections made by client browsers through the gateway are diverted to the proxy without client-side configuration (or, often, knowledge). Connections may also be diverted from a SOCKS server or other circuit-level proxies.

Transparent proxies will not prevent access to Autodesk Server components.

Exception Rules:

Adding an exception to the Proxy Settings to allow autodesk.com will bypass requests from the proxy server and will allow access to Autodesk.com servers (after making sure your network is setup to route requests directly to the autodesk.com domain).

Disable Exchange App

This is a tool for CAD or IT Managers to disable the AutoCAD Exchange window to prevent users accessing the Apps tab (thereby preventing them downloading Plug-ins without permission). The tool requires Administrator privileges to run, but will disable the Exchange Window for all users on that computer.
This is a supplement to the CAD Managers Control, which provides the same functionality.
 
Note that this plug-in disables the entire Exchange Window. This reverts AutoCAD help to being displayed in your local browser. (download link or search for the app Disable Exchange within Autodesk Exchange)

Do you have any other trick to share?

Sunday, June 5, 2011

How to rename a registry key with .NET

Let’s say I have a registry key named “HKEY_CURRENT_USER\SOFTWARE\JTB World 1” and I want to rename it to “HKEY_CURRENT_USER\SOFTWARE\JTB World 2”. This is easily done in the Registry Editor (regedit.exe).

But neither Microsoft.Win32.Registry class nor .NET Framework My.Computer.Registry provide rename functionality.

One solution is using REG.EXE, copying the key and all subkeys and then delete the old key. No need to recursively copy keys as would be needed if using the Registry class.

Here is a VB.NET example that easily can be converted to for example C#, BAT/CMD/VBS (VBScript). No error checking added. WindowStyle is used to avoid seeing Windows command window showing.

Dim OldKey As String = "HKEY_CURRENT_USER\SOFTWARE\JTB World 1"
Dim NewKey As String = "HKEY_CURRENT_USER\SOFTWARE\JTB World 2"
Dim startInfo As New ProcessStartInfo("REG.EXE")
startInfo.WindowStyle = ProcessWindowStyle.Hidden
startInfo.Arguments = "COPY """ & OldKey & """ """ & NewKey & """ /s"
Dim myProcess As Process = Process.Start(startInfo)
myProcess.WaitForExit()
startInfo.Arguments = "DELETE """ & OldKey & """ /f"
Process.Start(startInfo)

Friday, March 4, 2011

How to Force Outlook PST files to another location

By default Outlook saves PST files in this folder %localappdata%\Microsoft\Outlook\ when running Vista or Windows 7 (%appdata%\Microsoft\Outlook\ for Windows XP).

When it comes to Hotmail and Gmail there is no way from within Outlook to relocate the PST files.

If you for some reason want to move these files Outlook will just recreate them and start downloading your emails again.

But there is a registry hack to force the PST Path. This can either be done before you add the account to Outlook or if you need to move existing PST files. In the later case you need to move the PST files from the default location to the new location as well.

Close Outlook and Locate Outlook in the registry (regedit.exe).

Outlook 2003: HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\

Outlook 2007: HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\

Outlook 2010: HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\

Then create a new Expandable String Value named ForcePSTPath and as value enter the path where you want the PST files to be.

Now start Outlook and the new path should be used.

Monday, March 22, 2010

Automate path type in xref and image attach dialog box

In the post How to preset the path type in the xref attach dialog box there are some tips but what if you want it further automated and force the AutoCAD attach dialog box to be changed whenever the command is run? Here is one way to do it if you want to automatically get relative path. If you want something else just change the PathType and ImagePathType to 0 for absolute path or 2 for no path.

Here’s the AutoLISP code that creates a command reactor that makes the needed setting in the Windows registry before running XATTACH or IMAGEATTACH. To have this loaded in all drawings add to acaddoc.lsp.

(vl-load-com)
(defun activatePathTypeReactor ()
  (if (not PathTypeReactor)
    (setq
      PathTypeReactor (vlr-command-reactor
	       nil
	       '((:vlr-commandWillStart . reactonxattach))
	     )
    )
  )
)

(defun reactonxattach (event parameter)
  (if (= (car parameter) "XATTACH")
    (vl-registry-write
      (strcat
	"HKEY_CURRENT_USER\\"
	(vlax-product-key)
	"\\Profiles\\"
	(vla-get-activeprofile
	  (vla-get-profiles
	    (vla-get-preferences (vlax-get-acad-object))
	  )
	)
	"\\Dialogs\\XattachDialog"
      )
      "PathType"
      1
    )
  )

  (if (= (car parameter) "IMAGEATTACH")
    (vl-registry-write
      (strcat
	"HKEY_CURRENT_USER\\"
	(vlax-product-key)
	"\\ISM\\"
      )
      "ImagePathType"
      1
    )
  )
)
(activatePathTypeReactor)

If any of the readers want to find out or know where the settings are for DWF, DGN and PDF please feel free to add a comment. But I think they are not persisted neither in the registry nor in any other settings file so the way to work around that would require another solution.

Tuesday, December 22, 2009

Run-time error '429': ActiveX component can't create object solution for VBA 64-bit

Code like this will result in error in AutoCAD Architecture 2010 64-bit:
Set SchedApp = New AecScheduleApplication

Or this in AutoCAD 2010 64-bit:
Set SSM = New AcSmSheetSetMgr

One method that seems to work is to move the code from within a sub to the declaration like this:
Private SchedApp As New AecScheduleApplication

Another method is to replace it using GetInterfaceObject like this:
Set SchedApp = ThisDrawing.Application.GetInterfaceObject("AecX.AecScheduleApplication.6.0")

The reason is that VBA runs as an out-of-process client in 64-bit applications.

Unfortunately this also means that Sheet Set Manager API cannot be used in 64-bit applications because it is a COM server that cannot be called from another process as opposed to an ActiveX server.

Another 64-bit related problem is in AutoCAD Architecture 2009/2010 and AutoCAD MEP 2009/2010. In Tools>References the AutoCAD tlb shows up but not for the verticals. The same problem is also in .NET if you look at the COM tab when adding references.

The solution for this is a fix in the registry that look like this:

[HKEY_CLASSES_ROOT\TypeLib\{E8BCE300-BF69-431B-9153-1FF0DEF8F613}\6.0\0\win32]
@="C:\\Program Files\\Common Files\\Autodesk Shared\\AecXBase60.tlb"

It needs to be done for each tlb you want to use. There is a win64 key but the win32 key is missing so it needs to be added.

Here is also a Microsoft KB describing similar problems with Office.

Tuesday, June 16, 2009

AutoCAD start problems and crashes with solutions

I had this problem with AutoCAD Architecture 2008 that I installed after installing ACA 2009 and ACA 2010 on the same machine.

I got this crash message: AutoCAD Error Aborting FATAL ERROR: Unhandled e06d7363h Exception at 75d0b4f4h. (or FATAL ERROR: Unhandled e06d7363h Exception at 75d19617h) I was advised by the automatic CER email to install the service pack but that didn’t help.

AdLMInfoPath was empty on the following location and was obviously the reason for the crash. After I deleted AdLMInfoPath I was able to proceed with the activation.
HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R18.0\ACAD-8004:409
Even though the document only talks about 2009 products it seems to affect also 2008 products.

Knowledge Base document: AutoCAD 2009 Crashes During Activation of a Stand-alone License

On the topic there is also a problem with AutoCAD 2010. Knowledge Base document: AutoCAD 2010 does not start. When you try to start AutoCAD, you briefly see the splash screen and the program does not start.

Knowledge Base document also describes how to: Starting AutoCAD® 2010 in Windows® diagnostic mode by enable “FLEXnet Licensing Service” (previously known as “FLEXlm Licensing Service”)  instead of as in earlier versions the “Autodesk Licensing Service”.

Friday, May 1, 2009

Restore lost workspace, menus and profile in AutoCAD Architecture

Have you got problems in AutoCAD with missing things like workspace, menus, ribbon, QAT, toolbars, profile, settings, etc. This tip is usually quicker than doing a repair of the installation and a solution to the problem I often used.

Notice that you will loose any of the settings and customizations that are saved either of these locations.

Delete keys like this in the Registry Editor (Run regedit.exe and use with care):

For AutoCAD Architecture 2009
HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R17.2\ACAD-7004:409

For AutoCAD Architecture 2010
HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R18.0\ACAD-8004:409

For AutoCAD Architecture 2011
HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R18.1\ACAD-9004:409

For AutoCAD Architecture 2012
HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R18.2\ACAD-A004:409

Delete also the roamable contents (just paste the path into Windows Explorer):

For AutoCAD Architecture 2009
%APPDATA%\Autodesk\ACD-A 2009

For AutoCAD Architecture 2010
%APPDATA%\Autodesk\ACA 2010

For AutoCAD Architecture 2011
%APPDATA%\Autodesk\ACA 2011

For AutoCAD Architecture 2012
%APPDATA%\Autodesk\ACA 2012

Here is an explanation on where %APPDATA%\Autodesk takes you
in XP: C:\Documents and Settings\%username%\Application Data\Autodesk
in Vista: C:\Users\%username%\AppData\Roaming\Autodesk

When you now start AutoCAD Architecture a so called secondary installation will happen that restores the content of the above places to what it is like if you install from scratch.

This tip can also be used for AutoCAD as well as other AutoCAD verticals. For AutoCAD registry details see the documentation here. The paths for roamable contents also are different but is usually easy to figure out if you look in the %APPDATA%\Autodesk folder.

Thursday, April 9, 2009

Scripting on remote computers

Here is a great blog post by Dave: Scripting with Glue and Tape. It shows how you for example can execute batch script on a list of remote computers.

Tuesday, March 31, 2009

Disable InfoCenter and AutoCAD 2010 will start quicker

Outside The Box told about how Tony Tanzillo has posted instructions for disabling the InfoCenter in AutoCAD 2010. Owen also posted an AutoLISP file to handle it.

HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R18.0\ACAD-8001:409\InfoCenter
Changing InfoCenterOn value from 1 to 0 will disable the InfoCenter toolbar.

This tip on how to disable InfoCenter that worked in previous versions no longer works.

Tuesday, March 24, 2009

More details on VBA in AutoCAD 2010 products

AutoCAD 2010, AutoCAD OEM 2010, AutoCAD Architecture 2010, AutoCAD MEP 2010, AutoCAD Map 3D 2010, AutoCAD Mechanical 2010 and AutoCAD Electrical 2010 are NOT delivered with VBA. Only exceptions are Autodesk Inventor 2010 and AutoCAD Civil 3D 2010.

No need for panic as VBA for AutoCAD is available to download at no cost from www.autodesk.com/vba-download

It is permitted to include the VBA Enabler with your own AutoCAD-based application installer.

These are all commands that will trigger this dialog box.

VBAMAN, VBAIDE, VBANEW, VBASTMT, VBAPREF, -VBARUN,
VBARUN, VBALOAD, –VBALOAD as well as Runmacro and LoadMacro functions.

To determine if VBA is installed:

  • Use SearchPath() (or equivalent) to try and find the AcVba.arx in the configured %PATH%.
  • Check the VBA Enabler registry entry at HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD 2010 VBA Enabler:<LANGID>

See also No VBA installed with AutoCAD 2010 and AutoCAD 2010 VBA and VSTA future

Monday, March 23, 2009

AutoCAD 2010 network license – not much news

These are the executable that comes with AutoCAD 2010 and probably other 2010 products.

They are included in an msi installer file so if you have anything to extract them with (or install on your PC and grab the files) you can just copy install them manually.

  • adskflex.exe version 11.5.0.0
  • lmgrd.exe version 11.5.0.5
  • lmtools.exe version 11.5.0.0
  • lmutil.exe version 11.5.0.0

Here are the installed files in Autodesk Network License Manager

The Licensing system is based on FLEXnet Publisher Licensing Toolkit 11.5

Version 11.5 comes with:

  • Support new attribute for the NOLOG Option keyword
  • IPv6 support
  • New error codes
  • New feature definition line keywords–ONE_TS_OK and SUPERSEDE_SIGN

Here follows some tips from the readme.

To Activate A Network License Through Autodesk.com

If your product does not include the Network License Activation Utility, you can activate your license by going to http://www.autodesk.com/register and following the on-screen instructions.

Running a Network License Manager on Microsoft Windows Vista

When starting the network version of AutoCAD 2010 on a Microsoft Windows Vista workstation, you may encounter licensing error -15 if the license manager is running on Windows Vista (FLEXlm server version 11.4.100). Do the following:

Install the latest service pack and updates for Microsoft Windows Vista.
If you continue to encounter errors, do the following:

On the Start menu (Windows Vista), click Control Panel Network and Sharing Center Manage Network Connections. Right-click Local Area Connection. Click Properties. Clear the check mark from Internet Protocol 6 (TCP/IPv6). Click OK.
FlexLM License is Created in Two Locations

The FLEXlm License Finder (FlexNet License Finder) dialog box may not display when AutoCAD 2010 is launched for non-administrative users who are using Windows Vista 64-bit. The license server path information is stored in the HLKM\STOFTWARE\Wow6432Node path, which is not accessible to non-administrative users.

To fix this problem, replicate the license server path information stored in the above path to go to the HKLM\software\FLEXlm License Manager path.

JTB FlexReport does fully support the Autodesk 2010 products for license reporting.

Related post FLEXnet/FLEXlm manuals and downloads

Thursday, March 12, 2009

Change AutoCAD network to standalone to network

James Maeding shared this great tip.

This is a fairly well documented subject, except for Land Desktop Companion.

The well documented part is:

The two tweaks you must do are

1)      change the registry key of:

HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R17.2\ACAD-7000:409\AdLM

Set item Type as 2a for going to Standalone (this is a hexadecimal value)

Set item Type as 19 for going to Network (also hex value)

2)      Be sure you copied your LICPATH.LIC file to the install root of given program.

Licpath.lic is a text file that typically has these lines:

SERVER FLEX 0010100a0010

USE_SERVER

The server name and key will vary for you. (FLEX is the server name)

I put that file in install roots of all adesk progs, just so it’s there if I need it when switching.

You must have the “Cascading License Service” installed to switch LDC from standalone to network. This might be true for other applications as well.

C3D works without it, but LDC needs it.  This is because LDC is considered a non-top level program by the FlexLM server.

To install it, simply copy the file:

C:\Program Files\Common Files\Autodesk Shared\Service\AdskNetSrv.exe

from a computer that has it from an original network seat install, to machine without it.

Then install the service with this at Start->Run of Windows:

"C:\Program Files\Common Files\Autodesk Shared\Service\AdskNetSrv.exe" –install

Then LDC network works.

What I have found is the serial must be correct for your standalone seat, if switching to standalone so it can authorize.

The serial does not matter if switching to network!  What a convenient twist.  EULA probably wants it correct to the seat type though.

The Help->About item in acad lets you switch serials so make use of that as needed.

While most places have plenty of acad seats right now, I am getting random startup crashes that I have narrowed to the licensing.

Its useful to switch a seat to standalone and back for troubleshooting.

Previous post on NLM to SLM convertions. Change AutoCAD from standalone to network

UPDATE: For newer versions take a look at How to change AutoCAD from network license to standalone, Change AutoCAD 2013 from Network license to Standalone and Change AutoCAD 2014 from Network license to Standalone

Thursday, January 8, 2009

Password problem with Internet Explorer 7 and solution

In IE7 I find that some log in or sign in forms I use like the one for Autodesk forums have, does not automatically add the password that have been specified to be saved. It simply is not remembered. Or is it? The trick is to place the cursor in the first field and then use the Tab key to move to the password field and now the password is added.
Other sites where I have found this is LinkedIn, Plaxo and Wikipedia. If it still does not work make sure you have Internet Options>Content>AutoComplete Settings>User names and passwords on forms and Prompt me to save passwords checked. Then when you enter a password answer Yes to the question “Do you want Internet Explorer to remember this password?” If the dialog box does not come up you might need to use Tab to enter the Password field instead of using the mouse and click in it. It might also be that you have answered No to the question before. This choice is saved to the registry. If you don’t care loosing all your saved passwords you can use Tools>Delete Browsing History in IE and Delete passwords… If not you can use Regedit.exe and clear this using this solution.
  • Close Internet Explorer.
  • Run regedit.exe (you will need administration rights)
  • Locate this key: HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\IntelliForms\Storage2 This is the location for AutoComplete Passwords only. HTTP Authentication Passwords and FTP Passwords are saved at a couple of other places.
  • Select Storage2 on the left pane. Save Storage2 as backup via File>Export so you can restore it later on. Name it Storage2Old.reg and save it where you want. Or you can right click on Storage2 and select Export.
  • In the right pane select all values except (Default), right click and select Delete.
  • Start Internet Explorer and visit the website in question with the log in form and enter the password you want to save and answer Yes to save it.
  • Log out and close IE.
  • Go back to Registry Editor and press F5 to refresh the view.
  • Now save Storage2 as a second backup but name it Storage2New.reg.
  • Select Storage2 in the left pane again and visit File>Import and select StorageOld.reg so it can be merged back into the registry.
  • Now repeat the previous step but select StorageNew.reg.
  • Close the Registry Editor.
  • Now you should be able to have the password remembered for the site in question and still have all saved passwords retained. I’ve used Vista but it should work with XP as well.
Then there are some sites where this does not work at all like I found with Feedburner. There are also some sites where you have to enter the password and save it on multiple places depending on where on the site you log in. Many of Google’s site are like this. Another solution is before anyone comes with a comment on it to use another web browser like Firefox or Google Chrome. On the other hand I found that both Firefox and Chrome could not save the password on the Autodesk discussion group site but could save it on Feedburner. On the topic I can also mention that there are some add-on software that can handle form filling like RoboForm and IE7Pro Auto Form Filter. But I know that at least IE7Pro cannot solve the Feedburner log in because it is a unique URL used each time. Saving passwords in IE7 is something you should only do if you are aware that if anyone else have access to your computer they can find out your password. IE PassView is a freeware that recover lost passwords stored by Internet Explorer. Don’t think that just because the password shows as ***** it is safe, not even in some applications as you can see in the Asterisk Logger. Lastly there are sites that don’t allow saving the password like online banking sites. What is your experience in this field?

Tuesday, December 23, 2008

Disable the AutoCAD InfoCenter

You might want to disable AutoCAD’s InfoCenter with its Help and documentation Search, Communication Center, Autodesk Channels, Balloon Notifications, RSS Feeds and Favorites. One reason is that it can speed up the AutoCAD startup or you just want to hide it. Otherwise it can be quite useful to have there. Here is the solution.

Before

and after

One way is using the CAD Manager Control Utility to control it to some extent or you can use Regedit.exe (or VBScript or a BAT or CMD file) and disable it completely. Just set the LoadCtrls key to 0 in the registry at:
HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R17.2\ACAD-7001:409\Applications\InfoCenterAcConn

(default value for LoadCtrls is 4c as Hexadecimal or 76 as Decimal value in case you want to enable it again)

R17.2\ACAD-7001:409 is for AutoCAD 2009 English version and needs to be changed depending on what AutoCAD product you use. It works with AutoCAD LT as well but then the registry location will start with: HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD LT.
For more about the productID and locateID.

Using Visual LISP here is how:

(vl-registry-write (strcat "HKEY_LOCAL_MACHINE\\" (vlax-product-key) "\\Applications\\InfoCenterAcConn" ) "LOADCTRLS" 0)

AutoCAD needs to be restarted to see the effect.


Some of the latest blog posts

Subscribe to RSS headline updates from:
Powered by FeedBurner