Copy Paste DWG

25 votes
Version: 
v1.26
Date Updated: 
11/28/2016
Author Name: 
Pixamoon

.
 New - S button - Import Settings anytime
 New - Create Selection Set
 New - A button - Automatic Paste
 New - Auto Paste on start
.

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 (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.26
 

  - 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

  - 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
  - import settings as button
  - wirecolor button - insted of color picker
  - automatic paste
  - 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

____________________________________________________________________________________________

Full changelog:
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

`

Yes, that's good idea. Added on To-Do List.

Cheers,
Pixamoon

cmjohncheng's picture

hope can got a function "move

hope can got a function "move to center", sometime imported cad file is very far from 0,0,0, if got a check box can choose will be much easier than move it manually.

mwaif's picture

Yes. 1.11 worked. Thank you

Yes. 1.11 worked. Thank you :)

mwaif's picture

Does not work for me

When I press paste I always get "Nothing to paste" message.

1. I have Autocad 2016 and 3ds max 2016 SP1
2. I tried toggling all the options, same result...
3. I tried copying different drawings, always getting "Nothing to paste" message.
4. Script version I have is 1.12

pixamoon's picture

`

:) yes you right, and I added it in full version package too

very easy to install for anybody -> standard drag and drop to max

and there is toolbar button with an icon

NiK684's picture

I think it's nice idea, but

I think it's nice idea, but not for me :) I tried it, but I didn't find it useful. I like my own buttons and I like my own quads, nothing personal.

For freaks like me you better to add Macro. This simple step will add you more users. Maybe it is a second script to install first, but it's not similar to FavoriteScript install method, and this is how Autodesk understands usability :)

I'm just trying to tell you, that people have the right to choose how to install your scripts. For noobs there is no habitually way to use your script. You don't need to force people to install FavScr, I'm sure it will find its users anyway.

pixamoon's picture

`

thanks :)

but this is also script to install another script :p

main idea about "Favorite scripts" was to not have so many buttons on toolbar
+ to have the same scripts in all max versions (if you have older 2013, 2014 etc)
+ same scripts updated in office (all from on network location)
+ same scripts at home as in office (just place scripts on dropbox)

what you think ?

NiK684's picture

MacroScript

I know that you have "Favorite Script" and maybe many people like it, but I'm sure that you should add optional MacroScript for people who don't want to install one script just to install another :)

I wrote macro for myself and added it here for people like me.
This macro ignores version numbers, so people can update script without butthurt.

MacroScript NS_PasteAutoCad category:"Pixamoon" tooltip:"Paste aCad" (
	local sFile = (getfiles ((GetDir #scripts) + "/pxm-Copy Paste DWG-v*.mse"))[1]	
	if (doesFileExist sFile) then (fileIn sFile)
	else (messageBox "Unable to locate the script.")
)

Little manual:
1) Main Script must be in Max-Scripts directory
2) Save the code as "pastecad.mcr" and drag this file to Max viewport
3) Look to Pixamoon category

NiK684's picture

Fixed

Yep, bug is gone. Script is perfect again :) Thx

Comment viewing options

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