autodesk-platform-services / aps-revit.ifc.scheduler

This code sample demonstrates the usage of Model Derivative API, which allows you to convert a Revit `.rvt` file stored in Autodesk Docs(ACC/BIM360) to `.ifc` format.
Apache License 2.0
3 stars 1 forks source link

revitcoreconsole cannot export to ifc #1

Closed master0luc closed 1 week ago

master0luc commented 1 week ago

Hello, we have a plugin that generate rvt file in the cloud, but while we add exporting to ifc it cannot do it, log is below:

[09/06/2024 07:51:37] Job information:
...
[09/06/2024 07:51:38] Starting work item be4eeda5c7584ddea9d0359124985933
...
[09/06/2024 07:51:39] Start script phase.
[09/06/2024 07:51:39] Start Revit Core Engine standard output dump.
[09/06/2024 07:51:39] ====== Revit is running: revitcoreconsole ======
[09/06/2024 07:51:39] Current Exe path: T:\Aces\AcesRoot\23.0\coreEngine\Exe\revitcoreconsole.exe
...
[09/06/2024 07:51:44] Language not specified, using English-United States(ENU) as default.
[09/06/2024 07:51:49] Get RCE: (VersionBuild) 23.1.40.56 (VersionNumber) 2023 (SubVersionNumber) 2023.1.40
...
[09/06/2024 07:55:07] TriggerFrontEnd: Building 0: saved. - [72]
...<= here ifc export has been started...
[09/06/2024 09:00:15] Error: Revit Core Engine Core Console is shut down due to process time limit.
[09/06/2024 09:00:15] End script phase.
[09/06/2024 09:00:15] Error: An unexpected error happened during phase CoreEngineExecution of job.
[09/06/2024 09:00:16] Job finished with result FailedLimitProcessingTime
[09/06/2024 09:00:16] Job Status:
{
  "status": "failedLimitProcessingTime",
  "stats": {
    "timeQueued": "2024-09-06T07:51:37.7725064Z",
    "timeDownloadStarted": "2024-09-06T07:51:37.9345099Z",
    "timeInstructionsStarted": "2024-09-06T07:51:38.9443381Z",
    "timeInstructionsEnded": "2024-09-06T09:00:15.6173717Z",
    "bytesDownloaded": 20633885
  }
}

but having this plugin been tested against Revit (23.1.30.97, 20230828_1515(x64), 2023.1.3), export has been successful:

2024-09-06 12:02:15.4619|INFO|Shared|TriggerFrontEnd: Building 0: saved. - [72]
2024-09-06 12:08:22.0849|INFO|Shared|TriggerFrontEnd: Building 0: save as a ifc. - [73]
2024-09-06 12:08:23.0014|INFO|Shared|TriggerFrontEnd: Building 0: closed. - [73]
2024-09-06 12:08:23.0014|INFO|Shared|TriggerFrontEnd: Building 0: finished. - [73]

but the export is long (about 6-8) minutes, and Revit could do it only for IFCVersion.IFC2x3, IFCVersion.IFC2x3CV2. however, for version IFCVersion.IFC4, IFCVersion.IFC4DTV - Revit stucked completely on the some non spatial element: image Exporting code is simple:

IFCExportOptions ifcExportOptions = new IFCExportOptions {
  FileVersion = IFC2x3,//IFC2x3CV2
};
doc.Export(path, tmpFileName, ifcExportOptions);

thanks in advance for help

yiskang commented 1 week ago

Hi @master0luc,

Thank you for reporting, but this repo doesn't use Design Automation API to export IFC. Instead, it just uses Model Derivative API. If you want to report an issue of using other APIs, please click the Contact Support button on https://aps.autodesk.com/get-help.

Cheers,

yiskang commented 1 week ago

Close as irrelevant.

master0luc commented 1 week ago

thanks

master0luc commented 1 week ago

@yiskang i am sorry to bother you again, but while I am trying to translate rvt to ifc via Model Derivative API, status which I constantly obtain by: GET: https://developer.api.autodesk.com/modelderivative/v2/designdata/dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6dGVzdF9idWNrZXRfMTIzMTIzMTIzMTJfMy9CdWlsZGluZy5ydnQ/manifest during the last hour is: { "type": "manifest", "hasThumbnail": "false", "status": "inprogress", "progress": "0% complete", "region": "US", "urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6dGVzdF9idWNrZXRfMTIzMTIzMTIzMTJfMy9CdWlsZGluZy5ydnQ", "version": "1.0", "derivatives": [] } seems that Model Derivative API has been stucked at 0%, and it is not clear how to cancel job and to see errors if there are any...

yiskang commented 1 week ago

@master0luc The translation time will depend on the model content, amount, and complexities, and the Revit translation pipeline is shared worldwide. If someone requests the translation before you, and there is no available pipeline for you, then you must line up. Our cloud products (e.g. ACC/BIM360) also use the same translation pipeline.

Therefore, the RVT file translation will take some time, as expected. Please re-check after a couple of hours. This is why this sample also implements a background service to check the translation progress.

If the translation gets stuck for 24 hours, please try to contact us through Contact Support and share the model URN with us,` but not here. The issues of this repo is for this sample only, not the API use.

We appreciate your understanding and cooperation!

master0luc commented 1 week ago

I see, thank You!