odcConnection.Close();
}
catch(Exception ex)
{
//提示The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.
TaskDialog.Show("error", ex.Message);
}
return Result.Succeeded ;
}
}
在64位操作系统里却提示:The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine. 或者与此同意思的中文。
[csharp] view plaincopy
[TransactionAttribute(Autodesk.Revit.Attributes.TransactionMode.Manual)]
public class RevitCommand : IExternalCommand
{
public Result Execute(ExternalCommandData commandData, ref string messages, ElementSet elements)
{