Legacy VBA Error - For next loop may really mean If end if.
Labels: ACA, ADT, Architectural Desktop, Architecture, AutoCAD, AutoCAD Architecture, CAD Management, outlook, tips-n-tricks, VBA, Workflow
Labels: ACA, ADT, Architectural Desktop, Architecture, AutoCAD, AutoCAD Architecture, CAD Management, outlook, tips-n-tricks, VBA, Workflow
You'll find more helpful utilities in past posts here and at AUGI.com, R U a Member? Labels: ACA, AcFocus, ADT, Architectural Desktop, AUGI, AutoCAD, AutoCAD Architecture, Macro, VBA
I installed the recently received Autodesk Revit Architecture 2009 application on my laptop the other day. In browsing the DVD, I noticed a folder titled VSTA. If you want to install the Visual Studio for Applications for use with Revit, pick the bottom installer option for tools and utilities as shown below. Labels: Architecture, BIM, Building Information Modeling, CAD Management, Revit, VBA

I didn't see any mention of this in the documentation, readme, or the installer for the basic product. I did see reference and tutorials in the SDK install, but one has to know to look for these. I found a cryptic mention of this in the New Features Workshop. If you look in the Revit Architecture Help file, you'll find mention of "Creating Macros with Revit VSTA"...grab Gregory Arkin's pdf version using the link below.
Install Steps:
The install is much improved in this release...much faster too!
Now lets see how it runs.....
Note: The product install forces an install of Design Review 2009. This may impact those of you running the BIM Smart Library by Reed Construction Data. If you create a deployment, you can potentially modify the installation.
Links: Looks like other sites have more info on this.
Check out
Often when archiving or sending files to consultants, it is desireable to do some house cleaning prior to transmitting them. A common practice in cases like these would be to detach any unnecessary XRefs. And what is more unnecessary than a previously unloaded xref?
Public Sub DetachUnloadedXrefs()
Dim o_Blk As AcadBlock
For Each o_Blk In ThisDrawing.Blocks
If o_Blk.IsXRef And o_Blk.Count = 0 Then
ThisDrawing.Utility.Prompt o_Blk.Name & _
" is an unloaded xref and has been detached." & vbCrLf
o_Blk.Detach
End If
Next
End Sub
Hope you find that useful.