https://github.com/eirannejad/easyadc
Easy Wrapper for Autodesk Desktop Connector API
https://github.com/eirannejad/easyadc
autodesk bim360 revit
Last synced: 8 months ago
JSON representation
Easy Wrapper for Autodesk Desktop Connector API
- Host: GitHub
- URL: https://github.com/eirannejad/easyadc
- Owner: eirannejad
- License: mit
- Created: 2022-02-01T17:44:28.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-05T22:02:43.000Z (almost 4 years ago)
- Last Synced: 2025-09-16T18:59:36.216Z (9 months ago)
- Topics: autodesk, bim360, revit
- Language: C#
- Homepage:
- Size: 28.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# EasyADC
Easy Wrapper for Autodesk DesktopConnector API
## Get Started
Instantiate an ADC connector:
```csharp
using EasyADC;
// ADC could also be instantiated by passing location and name
// of ADC api assembly e.g. new ADC(adcLocation, adcAssemblyName)
var adc = new ADC();
// Full path of ADC assembly file
adc.ADCAssemblyPath
// Check if ADC service is available
if (adc.IsReady) {
// Check if file exists on any of ADC drives
string filePath = @"C:\some\file\path";
adc.Contains(filePath);
// Convert ADC BIM360 drive path to local path
filePath = @"Autodesk Docs://My Org/My Project/Project Files/File.txt"
adc.GetLocalPath(filePath);
// Get information about give file
ADCFileInfo info = adc.GetFileInfo(filePath);
// Check if file is locked by any user
adc.IsLocked(filePath);
// Check if file is locked by other
adc.IsLockedByOther(filePath);
// Lock and unlock files
adc.LockFile(filePath);
adc.UnlockFile(filePath);
//Check if given file is synchronized
adc.IsSynced(filePath);
// Synchronize given file
adc.SyncFile(filePath);
}
```
## Developer Notes
- To build, ADC needs to be installed at `C:\Program Files\Autodesk\Desktop Connector\`. See `ADCInstallPath` in [Directory.Build.props](src/Directory.Build.props) file
- Project is intentionally build _without_ optimization. This allows the `ADC` constructor to load the ADC api assembly before calling the functions and removes this burden from the user. See `False` in [ADC.csproj](src/ADC.csproj)