Do you have examples of working with ODA products for Android?
Yes, we provide several Android sample applications:
- ODAViewer. It is a sample application based on Visualize for the Google® Android® platform.
Source code: Visualize/Examples/Android/ODAViewer
Documentation: https://docs.opendesign.com/tv/tv_sample_apps_android_viewer.html - OdaAndroidApp. It is an Android sample that demonstrates reading and rendering DWG, DXF, JPG, DAE and DWF files.
Source code: Drawing/Examples/Android/OdaAndroidApp
Documentation: https://docs.opendesign.com/td/td_sample_OdaAndroidApp.html - OdaAndroidDgnApp. It is an Android sample for reading and rendering DGN files.
Source code: ODAToolkit/DgnDwg/Examples/Android/OdaAndroidDgnApp
Documentation: https://docs.opendesign.com/td/td_sample_OdaAndroidDgnApp.html
Do you have examples of working with drawings for iOS?
Yes, see iOdaApp. It is an iOS sample showing basic operations on opened drawings, such as zooming, rotation and panning. Its source code is located in Drawing/Examples/iOS/iOdaApp
I meet a file problem reading dwg file on Android system. The temporarily files generated on initialing the OdDb cannot be deleted after close the software.
Dwg file reading and rendering does not create temporary files and does not use sqlite. Temporary files can be created for writing undo information. To prevent it you can try pDb->disableUndoRecording(true).
Such temporary files are created by DWF Toolkit which uses sqlite (based on file name prefix).
More information in API Reference
Working with iOS projects ( iOdaApp ), you may find that Xcode project user interface becomes broken. The platform selection is unavailable (the project cannot be built, it’s impossible to choose what to build ).
The problem is related to some Xcode file or project setting becoming corrupt/broken and there's no other way to fix the problem other than to regenerate the project with Cmake. The problem occurs randomly but more likely to happen after Xcode update.
When will BimRv SDK be available on the iOS platform?
We do not have plans for the BIM Suite on mobile platforms. You can use Open Cloud SDK for BIM on mobile devices.
You can find more information on our website and in Open Cloud documentation.
How can I use ODA SDKs for visualization on Google® Android®?
See how it's implemented in the OdaAndroidApp example (members can find the file in the release archive /Drawing/Examples/Android/OdaAndroidApp).
You can find more information in the documentation.