Copy Paste DWG

44 votes
Version: 
v1.29.01
Date Updated: 
08/30/2017
Author Name: 
Pixamoon

.
 New - '+' and '-' buttons to add or remove default group names
 New - Dropdown list with default group names
 New - S button - Import Settings anytime
 New - A button - Automatic Paste
.

This is another simple script to speed up some everyday modeling work....

Just to simply Copy Paste selected from AutoCAD or DraftSight to 3ds MAX 

It copy only selected, so its easy to split dwg to separate objects (elev from plans etc)
____________________________________________________________________________________________

How to do it:
 - select drawing in Autocad or DraftSight  (best if you clean it first of course :)
 - press Ctrl-C   (as always copy drawings in Autocad or DraftSight)
 - go to 3ds Max
 - run script  (drag and drop or choose from scripts menu)
 - done

How it works ?
It just reads AutoCAD or DraftSight clipboard and import it to MAX

To switch between AutoCAD and DraftSight press AutoCAD button

____________________________________________________________________________________________

Full version v1.29
 

  - New - "S" button - Import Settings anytime
  - New - Create Selection Set
  -
"A" button - Automatic Paste - on/off - all what is copied Ctrl+C in Cad will be paste automatically
     (no need to jump beetween Max and Cad)
  - move Pivot to front (buttom of flat elevation)
  - automatically switch between AutoCAD and DraftSight
  - new method to find latest DWG clipboard
  - new "u" check button - make group name unique + right click "u" -> make uniqe group names on paste
  - classic import options (scale etc)
  - remove materials from imported
  - remove ColorByLayers
  - white wirecolor to black
  - unlink blocks - unlink parent / children relationship
  - move all pasted objects to one layer
  - delete pasted empty layers
  - make all splines flat to Z = 0
  - move all to center X,Y = 0,0

  - group imported objects
  - zoom to pasted
  - select pasted objects

  - installation package with toolbar icon and shortcut
  - save default paste settings
  - save dialog position

  - press Enter for quick accept
  - press Esc to quit
 
  - on / off - close dialog on paste

Coming next :
  - 2 versions with and without dialog
  - wirecolor button - insted of color picker
  - copy paste from newer AutoCAD than 3ds Max

Full version available here:
http://www.pixamoon.com/shop/4587562584/copy-paste-dwg/9910941
____________________________________________________________________________________________

Lite version:
  - switch between AutoCAD and DraftSight
  - classic import options (scale etc)
  - remove materials from imported
  - remove ColorByLayers
  - white wirecolor to black
  - unlink blocks - unlink parent / children relationship
  - move all pasted objects to one layer
  - delete pasted empty layers
____________________________________________________________________________________________

To install Lite version:
use my other script - > Favorite Scripts:
  1. Install Favorite Scripts (drag and drop to max)
  2. place on toolbar (customize -> category Pixamoon)
  3. run Favorite Scripts
  4. settings
  5. choose your favorite scripts root folder
  6. create "IO" or "Edit folder"
  7. copy "CopyPasteDWG" script there

New version of Favorite Script available here:
http://www.scriptspot.com/3ds-max/scripts/favorite-scripts

____________________________________________________________________________________________

The best is to copy from same or older AutoCad version to newer 3ds Max - (max doesn't open newer dwg file formats)

But if you have installed only newer AutoCAD and you get this error.

 

Please follow this tutorial: http://www.pixamoon.com/blog
You can find there Auto Cad scripts: "Save to older" version and tutorial how to install them.

____________________________________________________________________________________________

Full changelog: 
v1.29.01 (2017-08-28)
  - fixed error on start - when Auto Paste enabled
v1.29
 - fixed paste from Draft Sight - issue with older clipboards
 - fixed Auto Paste
v1.28
  - Add & Del (+, -) buttons to customize default group names
  - Move pasted drawing to X,Y = 0,0
v1.27
  -  Dropdown list with default group names
v1.26
  - "S" button - Import Settings anytime
  - Create Selection Set
v1.25
 
- "A" button - Automatic Paste
  - Auto Paste on start - when cheked than saves "A" button to next start
  - new icon - works with light and dark scheme
v1.24
  - fixed bug - rermove only imported empty layers
v1.23
  - move Pivot to front (buttom of flat elevation)
  - fixed bug - make splines flat to Z=0
v1.22
  - fixed bug with "Close after save"
  - new - Make always uniqe group names - right click "U" check button
  - fixed activation window
v1.20
  - automatically switch between AutoCAD and DraftSight
  - fixed bug - old clipboard DWG imported
  - new "u" button - make group name unique
  - fixed bug - error when after typing group name pressed Paste button
  - press Enter for quick accept
v1.11
  - new checkbox: Close window after paste (on/off)
  - fixed: nothing pasted when - import as "one object"
v1.10
  - fixed to work in 3dsMax started as non-Admin
  - faster paste method

____________________________________________________________________________________________

Lite changelog:
v1.11
  - fixed: nothing pasted when - import as "one object"
v1.10
  - save dialog position
v0.28
  - fixed to work in 3dsMax started as non-Admin
  - faster paste method
v0.27
  - move all pasted objects to one layer
  - delete pasted empty layers
v0.26
  - unlink blocks - unlink parent / children relationship
  - all clean options are turn on as default
v0.25:
  - switch between AutoCAD and DraftSight
  - classic import options (scale etc)
  - remove materials from imported
  - wirecolor from ColorByLayers
  - white wirecolor to black

____________________________________________________________________________________________

Full version available here:
http://www.pixamoon.com/shop/4587562584/copy-paste-dwg/9910941

Lite free version available here:
http://www.turbosquid.com/FullPreview/Index.cfm/ID/927563?referral=pixamoon
____________________________________________________________________________________________

Thanks for bug report by mynewcat
Script is tested now in 2009, 2014, 2015 and all works good :)
I think you may have newer version of AutoCAD than 3dsMax
If you got this error: "Unable to open:.... The error code reported is eNotImplementedYet" ??
 - it means AutoCAD version is newer then 3ds Max
____________________________________________________________________________________________

Note:
AutoCAD version has to be older or the same as 3ds MAX version, but please try Lite version and let me know
____________________________________________________________________________________________

Big thanks for testing, great suggestions and promo image to Mustafa Mamdouh !
____________________________________________________________________________________________

Enjoy !
Pixamoon

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pixamoon's picture

almost found solution

oki, I'll look what can be a problem with unlink blocks, Thanks for info

......
I found this behavior only when Import options has "Derive AutoCAD Primitives by": "One Object"

can you try to change it to "Layer", "Color" or something different then "One Object"?

NiK684's picture

Nope

Still no luck. Tried 0.27, 0.26, 0.27.1 (for nonadmin). Tried starting Max with admin rights.

Oops! I found some sort of solution. Turn off Unlink blocks and it imports fine. But Lite version doesn't remember settings, so I can't tell that this is the best solution :)

pixamoon's picture

Re: Lite version

Thanks for dwg sample, I've just tested and no problem to copy paste.

but I think I know the problem...
It start to happened after I changed import method for non admin users.

I'll try to fix that later today or tomorrow.

For now please use older version v0.26 or v0.27 (they have older paste method)

Let me know if those works fine...

Cheers,
Pixamoon

NiK684's picture

Doesn't help

Unfortunately it doesn't help me.

More info. AutoCad 2014, 3dsMax 2014. Here is link to simple dwg file. When I just drag it to 3dsMax viewport then it imports like this. All ok. But script still doesn't work that way.

New lite version 1.1 doesn't help. Still the same behavior

I think I found the problem! It's not a text object. Script ignores simple text objects and import drawing as it should.

The problem is in object that have text "test1" in my dwg file. It's some kind of annotation. Test it please.

pixamoon's picture

Re: Lite v problem

Thanks for this info. And sorry for that. This is very strange.

There is a new Lite version. I've just uploaded it - v1.10.
I hope this one works fine. Let me know.

new v1.10 saves also dialog position.

I just test it with text and it works fine here.
But I tested 0.28 here again and it works fine when you try to copy with text.
Did you try to save dwg with text (old way) and import it to max ?

Best,
Pixamoon

NiK684's picture

Lite version problem

Hello. I used this script from the very beginning and I was happy! Until some moment... I think this moment was when you create lite version, but I could be wrong.

Obviously you changed something and script became almost unusable, because when I copy piece of AutoCad drawing with some text inside then script can't import it in max. Not just text, but whole drawing! So if I select only drawing in Cad then all ok, but if I add some text to selection then script imports no drawing at all. This is really WRONG :) 3dsMax can't import Cad text, but it can somehow exclude it and import rest drawing.

Nobody doesn't want to delete all text objects or deselect them in Cad before copying.

Version 0.28

pixamoon's picture

re: units

hey, thanks

Did you check "Import options" ? Its just below AutoCAD button.

Let me know if this is what you looking for or you think about some custom rescaling opttion ?

popa_3d's picture

units

Nice script and idea but what is missing is being able to change units (rescale option)
somethime autocad files are drawn in different units than the 3ds max scene...so the rescale option is important :)

pixamoon's picture

re: paste text

Hi Curmeiste,

Right now script use standard import DWG function and as I know there is no simple way to import text from dwg. But I'll look on it closer and will try to find the way around to import text.

Thank you for that suggestion.

Hope you happy with other functions of full version.

Best,
Pixamoon

curmeiste's picture

not matter the text

hello

I just bought the full version and all is well except that I do not care the entities text

I experimented with various DWG drawings and everything good minus text

I use AutoCAD 2016 and 3ds Max 2016

thank you for this I magnify Scripts

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.