AutoCAD 2013 :: Identify Layer Of Object Within Xref
May 1, 2013
I work with bridges and get xrefs from our road designers containing hundreds of layers. I'd like to point at an object in these xrefs and get the layer name. Is there a simple way to do this? The way the LAYFRZ-command works, freezing a single layer, I figure ACAD should be able to just return the layer name instead. Does this functionality exist?
How can I create a layer on my xref so it doesn't affect othere sheets referencing my drawing without having to open a couple of hundred draiwngs. I know I can create my layer, freeze it, save my drawing, open all sheets referencing my xref and save them. Better yet, is there a setting I can use that makes my new layer pop up frozen on for all sheets while I work on my xref, on a newly created layer?
As I recall, in previous versions of AutoCAD, when I am in the Layer Properties Manager and I click on an xref under the Xref heading, the only layers shown were the ones in that xref, not all.
That is what is happening now. I cannot seem to find any setting under the settings for the Layer Properties Manager that would change this.
Why does the layer control toolbar always state the Xref layers by default. Is there a workaround, or a setting so the layers of the current drawing are displayed by default?
We recently upgraded from 2006 to 2013. We had a lisp routine in 06 that would reload all the xref's in a sheet so the layer states would update since simply reloading the xref did not always work. Below is the code we used. Now, in 2013, when we run it, I lose all layer states.
I am using (trying to anyway) a :VLR-xrefSubcommandReloadItem reactor. My only question is how to get the xref/block name from the 'reactor callback data' Object ID.
I am ultimately trying to pass it to (vla-get-xrefdatabase ....), but I cannot figure out how to turn the second parameter from the reactor callback data into something I can use - for example the second parameter returned may be "65" or some other number.
Is it possible to run a lisp which can extract all the xref names, make a layer with that name and then change the xref on the layer? I have got a similar routine from earlier posts but it doesn't work if any xrefs inserted in paper space (works fine on model space). could change this routine allowing to change the layer of xref in paper space too.
(defun dxf (i a) (cdr (assoc i a))) (defun c:lxr ( ) (setq ss (ssget "x" '((0 . "INSERT"))))
When I click on line command and then draw a line on my screen it will not identify the center of the line. That is it will not show green triangle on line.
Prior to the latest drawing editor crash, the display in my LAYERS toolbar would always display the layer of any single object that I would select without a command being active. After recovering, I find that this feature no longer operates.
To the expert here, I have tank foundation with multi circle column under it. How to create or find in afast way the coordinate of each center of column? Any special command for this?
I have the layers tab open in my toolbox, so I can see all the layers listed. I'm wondering if there is a fast way to find a layer. I'd like to click on my image and (ideally) see the layer highlighted in the toolbox, so I don't have to search for it.
When I set a layer as current, every object or line I select in the drawing appear to be on that layer in the toolbar. Although in the properties toolbox, I see that the line I selected is still on the right layer.
I can't work in paperspace either, when I freeze a layer it freezes all objects. It seems like whenever I give a different layer to an object, it attributes to all object that same layer.
When I open the same drawing in acad 2008, everything is ok, the objects have the proper layers.
Is there a command for that or it's an acad 2013 problem?
This function is working properly in os x, however on windows when I right click within the canvas I only get a list of all the layers under the mouse,historically since as far back as I can remember since photoshop had layers (rev 3.0 in 1995?) when you right click in windows within the canvas, you get a list of all the layers under your mouse, with the uppermost layer highlighted for easy identification and location of the contents of your layers. I've run all patches and updates and have even uninstalled/re-installed CS6.
Possible to link an xref layer and local layer so they display the same (eg. sync viewport colour, linewieght, line type)?
I insert xref's for my base drawing but legend is on local layers and I would like to be able to ensure that the line colour and linetype always match...
If I drag an effect from the target circle of one object to anther in the layer's panel it replaces the effect along with all appearance. But I want just to add the effect. For example, a layer has a drop shadow and a path, round corners. I want to move the drop shadow from the layer to the path so that the path now has the round corners and the drop shadow. To do this I have to open the shadow effect of the layer wright down its parameters, then create a shadow effect for the path with the same parameters which is a lot of work.
It appears that the Layer Filters functionality is broken again with 2013. Unchecking the "Apply layer filter to layer toolbar" disables the function of layer filters in the tool palette.
I get inconsistent results when I try to use the object snap to a point such as an intersection in an xref. Sometimes it works and sometimes it does not. Even the "nearest" doesn't seem to recognize the xref consistently. Is there a way to insure that the point is recognized?
I have a xref with sample locations that I am working with and importing into multiple different files. My problem: I will make changes in the xref and then go to the drawing where the xref is attached. After reloading the xref, i see that in model space the changes are fine. These changes are just moving the location of an object. But when I go to paper space, it still shows the object where it initially was before I ever made a change.
We are having an issue with CAD users putting their xrefs on any layer that is current; thus creating some layer control issues. I would like to make it so that when they go to attach an xref the layer is automatically set to the "XREF" layer and then possibly reset to the previous layer.
I have a drawing of a floor plan, and on a separate drawing I have text that I need to add to the floor plan drawing.
I've used the XREF command and positioned it exactly where it needs to go, but I can't edit the text drawing unless I "Open XREF in place"
I got close by going to the XREF dialog and "Binding.." the drawing as an INSERT and now it's one huge block.
I'm trying to insert the drawing with the text on the drawing with the floor plan so it's one drawing and so I can edit the text or move things around if I need to.
I am using Auto Cad 2011 and I always use the option to 'attach' xrefs. what is the difference between attaching and an overlay? Does one use less memory than the other? When would be the best time to use an overlay?
Also when my new version was installed when I bring in an xref the layers show light (I really like this) another girl in our office has the same version but her layers are still saturated. how does she change it to show ghosted layers in the xref?
is there a way to not have the long list of xref layers when I bring them into a drawing?
I want to make a layer from external reference current.
I tried to identify it with its full name, but I got an error: eInvalidInput. So I found out, I have to use only the part behind the pipe.But then there is a problem, because this name is not unique withing the drawing.
Any number of xrefs can have such layer and also the drawing itself can have a layer with the same name. How exactly can I set a layer from xref current?
example:
layer from xref1: Xref1|LayerName1 layer from xref2: Xref2|LayerName1 layer from the drawing: LayerName1
Version: Civil 3D 2012 and use CTBs for our plotstyles.
I'm working on a fairly large project that requires an excessive amount of base drawings. We frequently will be asked to have a drawing made and issued in a morning. To make sure we can constantly throw these drawings together quickly we've setup an xref system of all our base mapping data. (I'm sure this is a common thing but its the first time I've been exposed to it).
A lot of these drawings will have polylines with global widths on them. The problem with this is that global width doesn't always work so well when changing scales (we frequently bounce from 1:100 to 1:20,000) or when you just don't need the line to be so thick.
Two questions:
1) Stop using global widths on lines in the base drawings and switch to a method of setting lineweights of the xref layers when you xref in a drawing.
2) find that it ends up rounding off the end of the lines. Is there a way to prevent this from happening?
My company uses tons of Xrefs - wonderful, however problem comes when having to navigate through 100's of layers to get to the main drawings layers. So I tried using the layer filters to just show my main drawings layers. Here is the problem, I you can select show all layers, not good, can select just the xrefs (show all of them or show just one of them, etc...), or you can show just the used layers - I tried that, but when you create a new layer it is not included in that filter. I tried setting up a custom layer filter, however, I don't know how to right the name or what selection to make that would allow me to exclude a set of layers.
I am trying to rename all the xref's on the drawing with suffix "_renamed" With the code shown below , I am able to do this. But the problem I am facing is once the code renamed and reloaded the xref, the Xref-dependent layer properties are changing to Xref source layer properties.
Also the VISRETAIN variable is 1. Please find the code below.
Is there a way to set up a layer filter to strip off the xref name?
I have standard layers in all my drawings. I want to use a filter to setup the type of drawing.. i.e erosion control.
However, from project to project the xref file name changes so filters don't work with the new name...
Anyway, if there is a way to hide the xref filename from the prefix of the layer.. if so, a standard layer filter would grab all the layers with the same name.
Everytime I attempt to change the color on this one particular layer (that is brough in though an xref), it changes the color of every layer in my drawing. I am using Autocad MEP 2012