I find there are api to export skp to dwg ,like Sketchup.active_model.export("d:/temp.dwg")
however, there are not API to export layout to dwg.
I only find I find there are api to export skp to dwg ,like Sketchup.active_model.export("d:/temp.dwg")
however, there are not API to export layout to dwg.
The API Layout::Document::export only support pdf and image…

Correct.

Perhaps it may be because the DWG exporter is a LayOut application feature,
but the Ruby LayOut API runs within the SketchUp application process.


There are some other Layout API export issues, see:


You can open a feature request for DWG export in the API tracker.

However, the SketchUp and LayOut applications are using the Open Design Alliance libraries which are commercially licensed and do not permit affiliate or subsidiary use of the SDK libraries.

I think this limits the use of the ODA SDK to within SketchUp and LayOut. Meaning that the standalone Trimble C APIs would likely not be able to allow access to use the ODA libraries. (But this is only my “first take” idea on the scenario.)



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *