public async Task StartRevit(string userId, string projectId, string versionId, string contentRootPath) { var awsCredentials = new Amazon.Runtime.BasicAWSCredentials(Credentials.GetAppSetting("AWS_ACCESS_KEY"), Credentials.GetAppSetting("AWS_SECRET_KEY")); IAmazonS3 client = new AmazonS3Client(awsCredentials, Amazon.RegionEndpoint.USWest2); string resultFilename = versionId + ".sat"; // create AWS Bucket if (!await client.DoesS3BucketExistAsync(Utils.S3BucketName)) { return; } Uri downloadFromS3 = new Uri(client.GeneratePreSignedURL(Utils.S3BucketName, resultFilename, DateTime.Now.AddMinutes(10), null)); DesignAutomation4Revit daRevit = new DesignAutomation4Revit(); await daRevit.StartUploadFamily(userId, projectId, versionId, contentRootPath); }
public async Task StartRevit(string userId, string projectId, string versionId, string contentRootPath) { DesignAutomation4Revit daRevit = new DesignAutomation4Revit(); await daRevit.StartUploadFamily(userId, projectId, versionId, contentRootPath); }