Duane Brown

Archive for November, 2010

Microsoft Upgrades VBA to 64 Bit : ADN Migration Assistance Utility and Video

Source Material : Wikepedia , FAQ

link to followup post with vba download links for 2010 11 12 both 32 and 64 bit

After a decade of neglect, Microsoft has announced that VBA will at last be upgraded to 64 bits, as well as other improvements. This will break compatibility in some cases, such as calls to the 32 bit Windows API, though this is trivial to fix. 

NOTE: The following video was made before this was available.

DevTV: AutoCAD VBA to VB.NET Migration Basics
To assist in migrating your AutoCAD VBA code to VB.NET, the Autodesk Developer Network team has created a simple migration assistance utility and accompanying video:

English: view | download (44.7 MB)


Revit Server Troubleshooting

Source Material:
Revit Clinic: Revit Server Troubleshooting
============

With the addition of Revit Server in the Revit 2011 Subscription Advantage Pack, you might encounter some instances where you need to do some troubleshooting on the server.   For example, if you are getting something like this when you attempt to connect to the Server:

Revit_Server_Error

To troubleshoot something like this, I’ve put together a couple of steps to make sure that the Revit Server is setup correctly, where log files are stored and what to do to bring the server down .

  1. The first thing to check is to verify and make sure that all the pre-requisites are properly installed.  Check out this video for the steps to setup IIS7.One of the easiest pre-requisites to miss is “Web Server (IIS) Support”.  Make sure if you see that as an option to select when adding roles to the Server, that you check it (or it is already).  What is possibly confusing here is that there is a difference between the “Web Server (IIS)” role and the “Web Server (IIS) support” role service.  Revit server needs the role service, but there is a temptation to choose the role because it is available on the same page as the Application Server role and sounds so similar.

    Local and Central Servers need the same pre-requisites for Revit Server.  Make sure they both are setup correctly.

  2. Revit Server also stores log files on the Server.  The log files are stored typically at C:\logfiles.  These log files can be helpful in understanding what is happening and if the server is running correctly and Support may ask you for them if you report a problem.
  3. Along the way, you may need to bring the server down for maintenance, gathering log files or for other troubleshooting.  Bringing down the server allows you to delete or archive the existing log files so that new logs are created.  Before bringing down the server, if you have already setup a project, make sure to lock the server in the Revit Server Administrator so that no one can access it.  Bringing down the server means doing three things (the order is not important) :
    • Go to the Start Menu and go to Administrative Tools, open the Internet Information Services (IIS) Manager.  Select the RevitServerAppPool and in the sidebar select Stop.
    • Go to Administrative Tools and select Services.  Shut down the AutoSync Service in Service by right clicking on it and choose stop.
    • Bring up the Task Manager and switch to the processes tab.  Check for any instances of w3wp.exe in the system process list and end those tasks.
  4. When you are ready to start Revit Server back up, go back to number 3 above and reverse the first two items by starting the RevitServerAppPool and starting the Autosync Service.

You can also verify from the Server if the running by attempting to access the Revit Server Administrator tool from the Server host.  Navigate to Revit Server Administrator the same way you would from a workstation.  This will help check if the Server is running correctly, but perhaps a firewall is in the way from the workstations.

The biggest item in this list is number 1.  Making sure you have all the pre-requisites installed correctly is uber critical to getting Revit Server up and running correctly.


Revit Server 10 Things

Source Material:
Revit Clinic : Ten things to know about Revit Server
================

There seems to be a lot of questions and excitement about the new Revit Server extension out there. Today, I’d like to talk about some of the differences between using Revit Server and using the typical file based worksharing method.

Here are 10 things that are different about Revit Server. I’d love to hear what you think of these.

1.Creating Local files –
The only way to create a local file from a Central model on Revit Server, is through the Revit open dialog. You cannot create a local file using Windows Explorer or any other way other than the check box to create new local. This means that any scripts you have for copying a central file to create a local file will not work with Revit Server.

2.Editing Request –
With a project using Revit Server, the Editing Request button is grayed out and not available.

3.Worksharing Monitor –
With Revit Server, in part because editing requests are not available, the worksharing monitor will not function to give you notications about the model. To handle times when you would normally place a editing request, you can use a Instant Messaging Application to communicate with others on the project.

4.Working at Risk
Otherwise known as taking a local file home and working on it and being able to bring in back and syncing with center, is not fesible with a Revit Server project.

5.Thumbnails of the Central Model –
When you are creating a local model or opening the central model from Revit Server, thumbnail previews are not available for the file.

6.No right click in the open dialog for the Revit Server –
Unlike the normal open dialog in Revit, you will not be able to right click within the Revit Server window. Also, the meta data available on a central model in Revit Server is limited to only the Name, Type, and Date of the file.

7.Folder Management must be done with the Revit Server Adminstrator –
You must use the adminstrator to create new folders, move or copy/cut/paste projects for Revit Server. These options are not available via the open dialog in Revit.

8.Overwriting the Central model –
Perviously it was possible to save over a central file using the same name, with Revit Server, this is not possible. You must save the central model with a new name or delete or rename the orignal central model.

9.Recent Files List –
Only Local files will appear on the Recently used files list for Revit. Central models will not appear.

10.Restore Backups of Central –
You cannot roll back to a backup of the Central file using the Restore backups tool within Revit. Local files can be rolled back to a previously saved version, but Central Models cannot.
Revit Server worksharing is about sharing models across a WAN with mutliple offices. Typical file based worksharing is still available for use if you feel it is the right option for you.

To get a better idea about Revit Server, check out this video


Autodesk Software with 64 bit Deployments

What versions of Autodesk software have 64 bit deployments?

AutoCAD 2008 and later
AutoCAD LT 2009 and later
AutoCAD Architecture 2009 and later
AutoCAD Civil 3D 2011
AutoCAD Map 2010 and later
AutoCAD MEP 2009 and later
Autodesk Revit Architecture 2009 and later
Autodesk Revit MEP 2009 and later
Autodesk Revit Structure 2009 and later
Autodesk Raster Design 2009 and later


Double Clicking Mtext Fails to Launch Editor : Can’t Rotate Mtext

issue:
1) Cannot access the Mtext Editor by double clicking on the Mtext object.
2) Also cannot rotate mext by using the normal rotate command.

Scope:
single computer

Resolution:
1) MTEXTED = INTERNAL and DBLCLKEDIT = ON
2) Match Orientation to Layout unchecked


View Cube Flashing non stop after applying Update 1 to Civil 3D 2011

Issue:
You notice the ViewCube is constantly flashing.

Software:
Civil 3D 2011, Cube behaviour started immediately after applying Update 1.

System:
XP Pro SP3, 4GB Ram

Attempted:
Turning hardware acceleration off had no affect.

Resolution:
Toggle Hardware Acceleration on and off SEVERAL TIMES, close AutoCAD and launch