Hi,
I am getting below error while converting .dwg file to .svg file
401 Error connecting to the API https://api.aspose.cloud/v3.0/cad/sample.dwg/saveAs/png; Message: Unauthorized
, 401, None
Below is the code I am using:
# import modules
import os
from asposecadcloud import CadApi
import asposecadcloud.models.requests as requests
# Get your Client ID and Client Secret at https://dashboard.aspose.cloud (free registration is required).
app_sid = 'xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx'
app_key = 'xxxxxxxxxxxxxxxxxxxxxx'
base_url = 'https://api.aspose.cloud'
api_version = 'v3.0'
# instantiate Aspose.CAD Cloud API
cad_api = CadApi(app_key=app_key, app_sid=app_sid, base_url=base_url, api_version=api_version)
# Convert DWG to PNG
convertDWGtoPNGRequest = requests.GetDrawingSaveAsRequest(name='sample.dwg', output_format='png', out_path='sample_cad.png', storage='MyDB_Storage')
cad_api.get_drawing_save_as(request=convertDWGtoPNGRequest)