News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

importing dwg files

Started by rccon, April 29, 2018, 12:53:09 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

rccon

In dcad 2016 I've been importing dwg files into a drawing. The first dwg I import in a session goes into the first unnamed layer and that layer is given the name 0. Subsequent imports then go into that same layer. I'm not sure if this a new behavior, or just that the drawing I am working on now makes it objectionable. Is there a way to make the imported drawing go into the current layer? Also, I have my default layers cluttered up with a few hundred names that seem to have come from a surveyor's drawing. Is there a way to delete all layer names and make that the default for new dcad files?

Dr PR

In the layers dialog you can select layers and then right click to bring up a list of options.

"Clear Highlighted Layer Names" will do away with the layer names.

When you import files you inherit the layer names of the imported file.

Phil
DesignCAD user since 1987

rccon

Phil, in layers dialog (options, layers) I can select a group of layers by click the first & shift click the last, but then right click does not bring up a list. I can't find the "clear highlighted layer names" option. Could we be looking at different versions? Mine is 2016.

Dr PR

rccon,

There are the old Layers dialog, the new Layers dialog, and the Layers Toolbox.

The Layers Toolbox just allows you to select one layer and doesn't have all the options.

The "Options/Options/Layer tab" brings up the old Layers dialog. Right clicking after selecting a group of layers does nothing.

The "Options/Layer Options" menu ("L" key) opens the new Layers Dialog. It has a lot more options and functionality than the old dialog. You can resize the dialog box to make it longer or wider, add or eliminate columns and assign layer properties. Right clicking after selecting a layer(s) opens a list with many options, including "Clear Highlighted Layer Names."

So why two Layers Dialogs? The new dialog is the result of many requests by users over the years. Just remember the "L" key and forget the menus. The old dialog was retained for people who don't want to change.

Phil
DesignCAD user since 1987

rccon

I usually avoid change like the plague, but this time I welcome it.  My custom menu had prevented me learning about the new layers dialog. Thanks for the tip.

On the other question, is there a way to control the layer of imported dwg files into an existing drawing file?

DrollTroll

Not sure how you're getting that result. When I test dwg files with partial layer name overlaps, the matching layer names in subsequent drawings get renamed as new layers. For example:
Drawing 1 has layers 0, One, Two and Three.
Drawing 2 has layers 0, Three, Four and Five.
When I import both dwg files into a DesignCAD drawing (Drawing 1, then Drawing 2, in that order), DesignCAD adds the following named layer names (layer index will vary depending on what other layer names may have already been present).
0
One
Two
Three
0_(2)
Three_(2)
Four
Five

Why the duplicates? Mainly to avoid having to decide if layer settings match. If you have two layers named "Three" in two different dwg files, and their layer settings are different, we didn't want to include some bulky "which layer settings do you want to keep" interface.

Sample files attached.
25 years with DesignCAD

Lar

#6

Quote from: rccon on May 01, 2018, 08:31:51 AM
On the other question, is there a way to control the layer of imported dwg files into an existing drawing file?
I think you have to do it manually, which isn't that difficult with the new layer dialog.


A few examples:
You can highlight any number of layers (using shift and ctrl to select/deselect layers either contiguously or gapped) and...
a] Move them all to another single layer using the right+click menu (only the contents will move, no parameters), or...
b] Drag them all, in one go, with all parameters, to other layers while keeping their relative positions (the layers numbers will not move, only the contents and parameters of these and the affected layers will flip).


Layer Filtering and Sorting are like wormholes and scatterers (that a new si-fi concept I just invented, see [e] for it meaning) , so you can pull off  many tricks, because the dragging only goes to other currently listed layers. Eg...
c] With the 'Active only' filter you would only drag among other active layer...
d] With the 'Name' sorter the list will be alphabetical so you can easily drag to other similarly named layers. Ie, if layer 1 is "Lar" and layer 2000 is "Lover" (and they are the only L's) then you can drag directly from 1 to 2000 and only these 2 layers will flip.
e] You can give non-contiguous layers temporary names so that they list together, drag to these layers in one contiguous batch, then when you sort by ID the layers will get scattered, like wormholes twisted together on one end and the other ends stranded across the universe.
f] The 'Status' sorter brings the highest active layers together with the lowest inactive layers (or non-empty to empty, depending on the filter), so there are some possibilities there...


Mixing and matching the filters and sorters make for so many possibilities. Just practice dragging first or your layers could end up mixed up like conch salad. Always drag from the layer number or asterisk columns (they are un-editable so you won't inadvertently start to edit something, which could cause a disaster). Before dragging put the mouse on any of the layers (but top is best) then visually identify what number that layer will be dragged to. Once you start dragging the flipping of the layers may disorient you. Save before manipulating layers and once done make sure all is good before saving again.


Lar

rccon

DT, the dwg's I have been importing were not made by me but downloaded from Simpson Strong-tie drawing files. Evidently they are all in a layer named 0, and my results are the same as yours. Now that I have cleared out all my junk layer names, I gave layer 10 the name 0, thinking that then I would always know the imported dwg was in layer 10, but not so. The next import sees the layer name 0, so names the first unnamed layer 0_(2), but puts the import in the next layer after that, giving it the name 0.  So now I have two layers named 0, one of which contains the import, and an empty layer named 0_(2). l would like to put the import into the current layer without having to show all my layers and search for it, but that doesn't seem possible. One of my drawings has 165 layers named 0, all empty. At least now I know where they came from.

Lar, I'll need to study your post a bit, but I bet there's some good stuff there.

Lar


Rccon,


When you import dcad turns on the layers that get imported into, I think (if not all of them). It also selects everything imported. So, to see which layers the import goes on just open the info box and look at the top field. It will either say a layer number or will say "multiple".


If  it doesn't say multiple then everything went into one layer. The top field will show the layer number but the layer name may also be a number so make sure which is which.


If it says multiple then click "occupied layers only" (just below), then click in the top field. A list will drop down showing all the layers the selected stuff is on. Grab your cell phone and take a pic of the list. If you have to scroll down then take a video of you scrolling down.


Armed with this info you can then open the layer dialog and move things around and/or rename layers to your liking (following the advice in my previous post if you ever get to digest it). However, it is possible some of the imported stuff went on some already occupied layers so you will have to be careful of this.


In the layer dialog you can filter the displayed layers by 'active only' so you see just layers with anything on them. To do this click in the field besides 'filter' (mid way across in the gray area below the white area) - a list will drop - then roll the mouse wheel to scroll up. Hidden up there is 'active only'.


Lar

Lar


Quote from: rccon on April 29, 2018, 12:53:09 PM
Is there a way to make the imported drawing go into the current layer?


Like I said above, the imported stuff will be selected. Just open the Layer Toolbox and click the "A+" button. All the selected stuff will go to the current layer.


Lar

rccon

Never used the A+ button. No excuse. I've got it now.

Lar


Well, Rccon, sorry for not digesting you opening post fully. I could have shared that tidbit from the beginning.


Lar