"""Convert a CAD file from one format to another. If the file being converted is larger than a certain size it will be performed asynchronously. This function automatically base64 encodes the request body and base64 decodes the request output."""
encoded=base64.b64encode(content)
fc=fc_sync(
source_format=source_format,
output_format=output_format,
content=encoded,
client=client,
)
iffc.output!="":
fc.output=base64.b64decode(fc.output)
returnfc
asyncdefasyncio(
source_format:ValidFileTypes,
output_format:ValidFileTypes,
content:bytes,
*,
client:AuthenticatedClient,
)->Optional[Union[Any,FileConversion]]:
"""Convert a CAD file from one format to another. If the file being converted is larger than a certain size it will be performed asynchronously. This function automatically base64 encodes the request body and base64 decodes the request output."""