Edit the dxf/dwg importer
-
Simple question: Is the dwg/dxf importer accessible?
Thx -
SU doesn't provide native access to importers. But because dxf is data in ascii form, it can be easily edited with a simple text editor. What are you trying to do?
-
@pout said:
Simple question: Is the dwg/dxf importer accessible?
ThxYou use
Sketchup.active_model.import(path_to_CAD_file.dwg, boolean)
The importer knows from the file suffix if it's a dwg or dxf.
The boolean controls if a report is displayed - true/false...
You can't readily control the 'options' as the ones currently set in the manual Import options for dwg/dxf will be used for the API import... [You can 'script' PC code to open the import dialog and change options but it's a bit clunky - see an old version of my 'Xref Manager' script set...]
Advertisement