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...]
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement