Translation Commands¶
Translate CAD files using the Model Derivative API to various formats for viewing and processing.
Commands¶
raps translate start¶
Start a translation job for a file.
Usage:
Arguments:
- urn: Base64-encoded URN of the source file (optional, will prompt if not provided)
Options:
- --format, -f: Output format (svf2, svf, obj, stl, step, iges, ifc)
- --root-filename, -r: Root filename (for ZIP files with multiple design files)
Example:
$ raps translate start dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bXktYnVja2V0L21vZGVsLmR3Zw== --format svf2
Starting translation...
✓ Translation job started!
URN: dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bXktYnVja2V0L21vZGVsLmR3Zw==
Format: svf2
Job ID: abc123xyz
Supported Formats:
- svf2 - SVF2 format for Forge Viewer (recommended)
- svf - Legacy SVF format
- obj - Wavefront OBJ format
- stl - STL format for 3D printing
- step - STEP format
- iges - IGES format
- ifc - IFC format for BIM
Getting a URN:
After uploading a file with raps object upload, the URN is displayed. You can also get it from the object ID:
Requirements: - 2-legged OAuth authentication - File must be uploaded to OSS first
raps translate status¶
Check the status of a translation job.
Usage:
Arguments:
- urn: Base64-encoded URN of the source file
Options:
- --wait, -w: Wait for translation to complete (polls every 5 seconds)
Example:
$ raps translate status dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bXktYnVja2V0L21vZGVsLmR3Zw==
Status: success
Progress: 100%
Example with --wait:
$ raps translate status dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bXktYnVja2V0L21vZGVsLmR3Zw== --wait
⋯ Checking status...
⋯ Status: inprogress, Progress: 45%
⋯ Status: inprogress, Progress: 78%
✓ Status: success, Progress: 100%
Status Values:
- pending - Translation queued
- inprogress - Translation in progress
- success - Translation completed successfully
- failed - Translation failed
- timeout - Translation timed out
Requirements: - 2-legged OAuth authentication
raps translate manifest¶
View the translation manifest (available derivatives).
Usage:
Arguments:
- urn: Base64-encoded URN of the source file
Example:
$ raps translate manifest dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bXktYnVja2V0L21vZGVsLmR3Zw==
Fetching manifest...
Manifest:
────────────────────────────────────────────────────────────
URN: dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bXktYnVja2V0L21vZGVsLmR3Zw==
Status: success
Progress: 100%
Derivatives:
• SVF2 (viewable)
• Geometry (obj)
• Metadata (json)
────────────────────────────────────────────────────────────
Requirements: - 2-legged OAuth authentication - Translation must be completed (status: success)
raps translate download¶
Download translated derivative outputs.
Usage:
Arguments:
- urn: Base64-encoded URN of the source file
Options:
- --format, -f: Derivative format to download (svf2, obj, stl, step, iges)
- --guid, -g: Specific derivative GUID (from manifest)
- --output-dir, -o: Output directory (default: current directory)
Example:
$ raps translate download <urn> --format obj --output-dir ./exports
Fetching manifest...
Downloading OBJ derivative...
████████████████████████████ 100%
✓ Download complete!
Saved to: ./exports/model.obj (2.3 MB)
Download with GUID:
$ raps translate download <urn> --guid "abc123-def456"
Downloading derivative...
✓ Download complete!
Requirements: - 2-legged OAuth authentication - Translation must be completed
raps translate preset¶
Manage translation presets for common translation configurations.
Usage:
Subcommands:
- list - List all available presets
- create - Create a new preset
- delete - Delete a preset
- use - Start a translation using a preset
List Presets:
$ raps translate preset list
Translation Presets:
────────────────────────────────────────────────────────────
Name Format Description
────────────────────────────────────────────────────────────
viewer svf2 Optimized for Forge Viewer
3d-print stl Ready for 3D printing
cad-exchange step CAD data exchange format
bim ifc BIM interoperability format
────────────────────────────────────────────────────────────
Create a Preset:
$ raps translate preset create --name "my-preset" --format obj --description "Custom OBJ export"
✓ Preset 'my-preset' created!
Use a Preset:
$ raps translate preset use <urn> --preset viewer
→ Using preset: viewer (svf2)
✓ Translation started with preset 'viewer'!
Format: svf2
URN: dXJuOmFkc2sub2...
Delete a Preset:
Default Presets:
- viewer - SVF2 format optimized for Forge Viewer
- 3d-print - STL format for 3D printing
- cad-exchange - STEP format for CAD data exchange
- bim - IFC format for BIM interoperability
Common Workflows¶
Complete Translation Workflow¶
# 1. Upload a file
raps object upload my-bucket model.dwg
# Note the URN from the output
# 2. Start translation
raps translate start <urn> --format svf2
# 3. Wait for completion
raps translate status <urn> --wait
# 4. View manifest
raps translate manifest <urn>
Translate Multiple Formats¶
# Translate to SVF2 for viewing
raps translate start <urn> --format svf2
# Translate to OBJ for export
raps translate start <urn> --format obj
# Translate to STL for 3D printing
raps translate start <urn> --format stl
Translate ZIP Files¶
For ZIP files containing multiple design files, specify the root filename:
Supported File Types¶
Input Formats¶
- CAD Files: DWG, DXF, DWF, DWFX
- 3D Models: FBX, OBJ, STL, STEP, IGES
- BIM Files: RVT, NWD, NWC, IFC
- Archives: ZIP (with design files inside)
Output Formats¶
- Viewing: SVF2, SVF
- Export: OBJ, STL, STEP, IGES, IFC
Translation Tips¶
- Use SVF2 format for web viewing (recommended)
- Check status regularly or use
--waitflag - Large files take longer - be patient
- ZIP files may require specifying root filename
- Failed translations - check file format compatibility
Troubleshooting¶
Translation Failed¶
- Verify file format is supported
- Check file isn't corrupted
- Ensure file is fully uploaded to OSS
- Try a different output format
Translation Stuck¶
- Check status:
raps translate status <urn> - Wait longer (large files can take 10+ minutes)
- Cancel and restart if necessary
Related Commands¶
- Objects - Upload files to OSS
- Buckets - Manage buckets
- Authentication - Set up authentication