Editing Layer States - Deleteing xref layers

Editing Layer States - Deleteing xref layers

Anonymous
Not applicable
1,989 Views
23 Replies
Message 1 of 24

Editing Layer States - Deleteing xref layers

Anonymous
Not applicable

Hello All- 

 

I have a base file with xrefs "overlayed" not attached and they are also "unloaded".

I would like to create a layer state that does not contain any xref layers. In Autocad (not civil 3d) I am able to do this my editing layer states and using the delete layer, However in civil 3d it will not save after I delete the layers. 

 

Any suggestions? We need to be able to keep xrefs in base files (not detaching them) as well as be able to edit in civil 3d.

 

I have attached a jpg of the "Edit Layer State:" window with the delete layer button highlight for reference.

0 Likes
1,990 Views
23 Replies
Replies (23)
Message 2 of 24

AllenJessup
Mentor
Mentor

I don't know about Layer States. But you can create a filter in the Layer Manager using ~*|* . The tilde (~) means not and the vertical bar picks up the way the Xref layers are shown.

 

If no one give you the answer you're looking for. I'll see if that can be translated to a Layer state tomorrow.

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 3 of 24

Joe-Bouza
Mentor
Mentor

May I ask what problem, this is causing you?

Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 4 of 24

AllenJessup
Mentor
Mentor

Can you save from the standard Layer States Manager?  If you export the layer state to an LAS file. You can edit out the layers in notepad. What command do you use to activate the dialog box shown in your image?

 

Are you using an older version of the software? It looks like you may be using the old LMAN command. That was replaced by Layer States in 2008.

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 5 of 24

Anonymous
Not applicable

Since it is saving xref layers it overriding the xref base file layer states.

 

Drawing A has B & C overlayed

Drawing B has A & C overlayed

When restoring A it overrides B & C

When restore B it overrides A & C 

 

We have multiple layer states for each drawing depending on what Sheet file they are being referenced in. 

 

 

0 Likes
Message 6 of 24

Anonymous
Not applicable

I am currently using civil 2015. I either use the command "LM" or click the layer state manager button in the layers properties manager. I then select the layer state I would like to edit and click edit. Note pad editing is not ideal, as we are trying to reduce human error and standardize for new employees.

0 Likes
Message 7 of 24

AllenJessup
Mentor
Mentor

Typing LM or LMAN brings me to the standard Layer States Manager that I linked to above. Has you system been customized to use the old LMAN command?

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 8 of 24

Anonymous
Not applicable

Not to my knowledge is there a new layers states manager that looks different from my image above?

0 Likes
Message 9 of 24

AllenJessup
Mentor
Mentor

This image is from Help (F1). It matches what I get with LM, LMAN or from the Layer States Manager icon.

 

 

lsm.PNG

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 10 of 24

Anonymous
Not applicable

I get the same window, my images shows the window after I hit edit in your window showing. 

0 Likes
Message 11 of 24

Joe-Bouza
Mentor
Mentor

That is what I thought.

 

In the layer state manager dialog ck the box to view the xref layer states and restore the xref layers accordingly. clear the box to turn of all layers not in the state.

Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 12 of 24

Anonymous
Not applicable

That creates more room for human error and more time. When editing files you would have to be sure to edit and restore every base file that has been changed. I am curious if if this is just a flaw in Civil 3D or if the process is different from CAD. 

 

I am the only one who has Civil 3D and CAD on my computer. 

 

You would think anything that can be done in CAD could be done in CIVIL 3D

0 Likes
Message 13 of 24

AllenJessup
Mentor
Mentor

Thanks for clearing that up. I don't edit the states so I didn't recognize it. I did a test and it seemed to work fine for me. I'm using Civil 3D 2017. I attached a drawing as an overlay, created a layer state, edited the layer state to remove all Xref layers and OK'd out. The changes are there when I open the Layer State manager and go to Edit again.

 

Is this happening on all computers or just yours? If it's just yours. You may need to repair or reinstall the program. Can you log onto another account on your computer. You may need to rebuild your profile.

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 14 of 24

Anonymous
Not applicable

 

Sounds like you want Xref layers to keep the display settings defined in the xrefed drawing?  You don't want layerstates to change how the xrefed layers are displayed?

 

I can confirm editing a layerstate and deleting xref layers doesn't work in C3D2015.  After saving they return.

 

Have you looked into turning off the Visretain variable?

With Visretain set to 0 the parent xref will control how the layers are displayed in the current drawing.

(You can change layer display temporarily, but when you open the drawing it will revert to settings defined in the parent xref)

 

 

0 Likes
Message 15 of 24

Anonymous
Not applicable

its all on all computers

0 Likes
Message 16 of 24

AllenJessup
Mentor
Mentor

I just tested it again in 2017. The edits were kept even after saving, closing and reopening the file. So it may be a problem in 2015. Do you have all the SPs and the Layer State Hotfix installed?

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 17 of 24

Anonymous
Not applicable

I'm running 2015 sp3 and have the issue.  Don't think I installed the hotfix, thought it was rolled into SP3.

 

 

0 Likes
Message 18 of 24

AllenJessup
Mentor
Mentor

I honestly have no idea. I just went to the download page for 2015 and saw there was a Layer States Hotfix and thought that was a good bet. Since I don't edit layer states I probably never noticed the problem when we had 2015.

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 19 of 24

Anonymous
Not applicable

I do not want my layers state to have any association with xrefs- each xref is individually attached to the sheet file with multiple layer states that will be applied to different sheets. The issue is when xrefs layers are being saved in my layers states it will override base file layers states in the sheets file.

0 Likes
Message 20 of 24

Anonymous
Not applicable

That hotfix didn't fix the problem.

 

But, I found if you edit the layerstate, delete the xref layers, then don't hit save, export to .las file without saving the state.  When you import that las the deleted layerstate don't return... until you hit save.  No ideal, but somewhat of a workaround.

0 Likes