Cleaning up the excess baggage with clipboard imports

Started by Adrian 2.0, February 22, 2022, 10:24:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Adrian 2.0

I'm not sure this is a 'new feature' or just a bug, but....
When I grab any object from one DCD file to use in another, then ALL the custom properties of the source file come with it, whether I want them or not. (Not!)
So, If for instance I need a boundary from a surveyors plan, I go to his drawing, select the boundary to the clipboard and paste into my plan.
Now I have all the blocks, symbols, custom linestyles, custom hatches and custom materials that the surveyor has ever used (in his life, probably) embedded in my file too.
I just checked a test case where I made a file that contained only one text entry (the word 'test' of course)
The file is 36kb.
I then imported a single line from a site plan I'd been sent from another Architect.
Now the file is 357kb. I delete the line, re-save it and the file is still 357kb.
When I check, the file now has over 100 unused blocks, 845 symbols, 20+ custom (AD_XXXX) hatches and custom materials.
If I don't remove them all  then if I ever take something from my file in the future to use in another drawing then it too gets all that c**p embedded in it too.
Pretty soon every file on my computer has copies of symbols that some plonker in the Philippines thought was nice to have!

Rant over, sorry.
The new feature I'd like is to have the option to choose if I want the source file's baggage when I copy/paste from it.

Adrian

Rob S

This does not appear to be new behavior, V2016 at least does the same thing.

I did a few tests on this, and found that if I copy from some of my autocad imported drawings with numerous blocks, some but not all of the blocks come along with the paste.   No idea how it decides which ones to bring. 

Strangely enough, these do not show up in the "Drawing Info", but they do show up in the insert manager.

Autocad training must focus entirely on how to create millions of blocks!!!

For blocks imported that way, we do have the command "Tools, purge unused blocks" which will clean those up, along with some you may have wanted to keep.  To be more selective would require using insert manager.

I have not tested for embedded symbols, but it would be possible to open insert manager, and select the ones you don't want, and delete them.
User since forever

Adrian 2.0

Indeed, I think DCad has always done this - and as Ia result I have a massive number of hatches (400 ~ 500 gradient hatches) that came from some file I imported maybe more than 10 years ago, and they have slowly propagated into almost all of my files.
I can delete them using DcParser but only on a file-by-file basis and it only takes missing one template file and it all starts over again.
There is also a bug that affects the display of rubber-band previews which comes in the same way (via the clipboard) which I've been living with for years, and that issue would be fixed if the clipboard was sanitized.

In my test, all the symbols listed in the DcParser symbols stream were deleted by using 'Purge Unused Blocks', so they were embedded in the blocks I guess.

Rob S

Maybe we need an option (or something like "Paste special" to paste visible contents only, with the alternative being to include baggage for anyone who finds this useful.

It would also be interesting to know how it decides which "baggage" it includes???
User since forever

Adrian 2.0

I did a little more investigation into this issue - I also wondered if using a 3rd party clipboard plugin may be a way to load 'only what you see' into the import? If anyone has any experience with clipboard software that recognises vectors etc, please chime in!

I discovered that for my hatch pattern overload issue there are 2 types, and they behave differently.
The drawing I used for my experiments has survey info extracted from a surveyors DWG file, and it has the following garbage:
89 hatch patterns that are named in the format 'AD_XX_XXXX'.
50 gradient hatches (almost al of which are identical  black-fade-to-white named GRADIENT 01 - 50)
103 mat materials (named Mat_23 to Mat_120)

So, if I open my source file and then open a new blank file in the same instance of DCad, that new file already has all the AD_XX hatch patterns installed without me copy-pasting anything.

If I open a new drawing in a different instance of DCad it does not have the AD_XX hatches, and if I then copy-paste anything from the source file into that new file it brings in all the gradient hatches and all the mat materials but NOT the AD_XX hatches.

One reason I hate these hatches infesting my files is that the AD_XX hatches insert themselves before the 'Win' hatch types (7 hatches including 'Win Solid', which is my most used hatch by far) and the gradient patterns insert themselves after the 'Win' hatches.

Good luck finding Win Solid in a hurry when it's in-between 150 AD_ hatches and 400 Gradient hatches!