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

re: Notes

yes :) I'll do those in next versions,

Remove parents/children I'll try to add tomorrow or friday. But save/load from .ini bit later. It will be part of full version.

Can you send me your e-mail. I'll send you full version to test. (1st test should be ready in few days)
Thanks again for your help :)

Best,
Pixamoon

mustafa mamdouh's picture

re: Notes

# for dialog: I wish if your settings (remove materials - group layers - .. etc) to pop up just once (at the first time launch ) then I don't want to see it again when pasting (Settings will be saved to .ini file) ..
for example: "ActiveType"  script has the exact behavior and I can change the settings later
link: http://www.scriptspot.com/3ds-max/scripts/activetype
# for AutoCAD: .. Yes I changed that at options dialog (may be I changed something else beside it so tell me if it's not working with anyone)
# for blocks: I don't see a benfits for converting blocks to be unique because I'm willing to replace them later with 3D Model and I need them to be instances but as you know blocks come with child\parent relationships which are very annoying and useless ..

Regards,
Mustafa
 

thanks to scriptspot community

pixamoon's picture

re: Notes

hey there,

- dialog - yes there will be two scripts, one with dialog (to change defaults), second without dialog - (but will load recently used settings)
or... do you mean to remove it totally ?
- thanks for news about AutoCad 2016 and max 2014 - Did you just use standard save settings in AutoCad options dialog ?
- blocks - you right, I'll do 2 options for blocks:
1. remove child/parent relationship for blocks
2. make all unique

Thanks for testing and reports !
Best,

mustafa mamdouh's picture

Notes

Thanks for the quick release, I have some notes ..
- The new features are great already but the pop-up dialog is really annoying and I'm sure you will fix it at the final release ..
- Everything is working fine with me at 3ds Max 2014 and AutoCAD 2016 So if anyone has problem with newer release of AutoCAD you just need to change "File Save" option at AutoCAD to lower version ..
- Regarding to the next new feature "make blocks unique", I'm a little confused if the blocks are NOT going to be instances anymore? I need them to be instances but without any parent child relationship exactly like this script http://www.scriptspot.com/3ds-max/scripts/dwg-cleanup

Regards,

thanks to scriptspot community

pixamoon's picture

Thanks :)

Will try to finish it soon

Thanks!

mustafa mamdouh's picture

Actually I don't mind and I

Actually I don't mind and I will activate my VISA to buy it .. you deserve money for your hard work however Consider what you do is really great value and Priceless to 3d community ..
Waiting your great release and wish you best luck :)

thanks to scriptspot community

pixamoon's picture

`

thanks again for suggestions.

I think there will be Lite and Full versions. Lite version will have most of features (copy/paste/clean etc). If anybody want to support me -> Full version will cost $4,50 I hope is reasonable price. What you think about it ?

New version is coming with extra dialog to choose paste settings. It will load and save last settings (ini file).
So if you always use the same you can just press "Paste"

Making blocks unique... of course, it's one of simple tasks in Free version, but there will be much nicer new features too :p soon...

Cheers,
Pixamoon

mustafa mamdouh's picture

More wishlist

I see great potential within this script and I hope you continue developing it for free ..
I read the planned features and it's looking very useful and I hope you add one more feature to cleanup the relationship between blocks exactly like this script http://www.scriptspot.com/3ds-max/scripts/dwg-cleanup ..
One more thing to keep the script running without any dialog and make .ini file for the options ..
Thanks again ..You're Brilliant!

thanks to scriptspot community

TSchmiesing's picture

Thanks.

Thanks for the Draftsight update. Much appreciated!

pixamoon's picture

Thanks,

Many thanks man :)

Comment viewing options

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