AutoCAD .NET :: Renaming Xref Changing Layer Display

Jan 2, 2013

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. 

Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.Geometry
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.EditorInput
[code]......

View 4 Replies


ADVERTISEMENT

AutoCAD Visual LISP / AutoLISP :: Link Xref Layer To Local Layer - Same Display

Feb 21, 2013

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...

View 4 Replies View Related

AutoCad :: Changing Xref Layer Lineweights

Aug 22, 2013

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?

View 1 Replies View Related

AutoCAD 2010 :: Changing Color Of One Particular Xref Layer?

Jan 28, 2013

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

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Changing XREF Layer Colors In A Tool

Oct 5, 2012

How to edit the string below so that it will ignore all layer names starting with "E-". I want to change all XREF layers in the current dwg. to 161 but ignore all XREFED layer names that start with E- such as E-lighting, E-power etc.

View 4 Replies View Related

AutoCad :: XRef Renaming / Keyboard Commands To Change Name

Jul 25, 2011

I'm having trouble with the renaming of X-refs.i have made a script file that re-paths required x-refs to a new project, but this leaves the x-ref name as the old x-ref. Any keyboard commands to change the name? or to set the name to file name?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Renaming Xref Using Code

Jun 18, 2013

This lsp was passed on to me from a colleague but he doesn't know where he got it. It does a useful procedure of placing each xref, residing in the drawing, to a unique layer. The layer name is derived from the xref name. I would like to edit this to take only part of the xref name. This system I work with requires all files to have the job number as a prefix eg LE1399901_Contours.dwg, so the xref name would be LE1299901_Contours by default. I want to remove the first 10 characters to be left with "X_Xref-Contours" layer name using this code.

(defun dxf (i a) (cdr (assoc i a)))
(defun c:lxr ( / ss cnt xrs en ed bn xp xbn )
(setq ss (ssget "x" '((0 . "INSERT"))))
(setq cnt 0)
[code]........   

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Change Xref Layer With Xref Name?

Jul 31, 2009

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"))))

[Code].....

View 8 Replies View Related

Photoshop :: Changing Opacity In Selection On Layer Without Changing Entire Layer

Aug 21, 2013

I've been using Photoshop CS2 for several years to enhance my photographs, but just now have encountered something simple I cannot find out how to do.   I have on the background layer a picture of a room interior with the exposure set mostly for the open window, but the rest of the room is very dark.  On the only other layer, the upper one, I have the same shot exposed correctly for the room, which overexposes the window area.  The upper and lower layers are perfectly superimposed, and the upper layer is at 100% opacity. 

I have selected the window on the upper layer and want to change the selected area's opacity to blend properly with the window on the bottom layer without changing opacity of the rest of the layer.  No matter what I do, changing opacity seems to affect only the entire layer, and I haven't figured out how to isolate the selected area for the opacity change.
 
I can cut the selection to reveal the darker window on the bottom layer, but this doesn't give me the flexibility I need to balance the two exposures. An opacity change would be ideal.

View 2 Replies View Related

AutoCAD 2010 :: Turning Off A Xref Layer / Active Layer

May 3, 2013

Is there a macro or lisp file that allows you to click on a element in the xref or active file and turn it off?

View 5 Replies View Related

AutoCAD Architecture :: Xref Display And Cut Planes

Aug 14, 2013

Using PN, I set up 2 levels. Level 1 at 0'-0", Level 2 at 10'-0".  I create a Level 1 construct and create my AEC model.  I then create my Level 2 construct and xref my Level 1 construct in to use as an underlay.  However, using OOTB Medium display configuration I cannot see the Level 1 xref because the Level 2 cut plane is at 3'-6" and the Level 1 construct is 10'-0" below this cut plane.  Is this the intended result?

To allow me to see my Level 1 xref in my Level 2 construct, I am required to override the global cut plane in my Level 1 construct and set my wall cut planes, for *each* wall style, to 3'-6".  After saving the Level 1 construct, I reload in the Level 2 construct, and the walls appear, as an underlay, in the Level 2 construct as desired.

Is this the only way to see one xref above or below the other?  Isnt one of the major advantages of using xrefs is as underlays for stacking levels?I dont have to override the global cut plane in all my wall styles.

View 2 Replies View Related

Photoshop :: Renaming A Layer Without Touching Mouse

Jun 28, 2012

When exporting files from Illustrator, I get a ton of layers named <path> and <group>. I want to quickly rename these layers in Photoshop.
 
I'm using Alt-[ & -] to move up and down my Layer palette, but I haven't figured how to change a layer name other than double-clicking on the name (which takes a hand off the keyboard). Is there any way to rename a layer by using the keyboard only?

View 9 Replies View Related

AutoCAD .NET :: How To Create A Block With A Att For Display Path Of Xref

Jul 17, 2012

i looking a way for create a block after selected a Xref.

It is for display the path+Name of my Xref.

It use fields manualy put i can copy/paste the bloc. (ObjectId not egual in a 2 dwg).

I want :

1 - selec the Xref --> I know how to do that.

2 - create a bloc --> I know.

3 - create a att -> i know

4 - fill the att with the field --> ???

View 1 Replies View Related

Photoshop :: Layer Colors Removed When Renaming A Folder

Jun 20, 2012

CS6, Win7x64Pro?

View 3 Replies View Related

AutoCAD Civil 3D :: Xref MEP File - Pipe Display Setting

Jul 13, 2012

I am using C3D 2012 sp2.

I have a autocad file with MEP pipe objects (piping layout inside a building). If I start a new drawing using our company (dwt) template then xref in the cad file with the MEP objects they do not display. If I start a new drawing using one of autocads default (dwt) templates then xref in the MEP objects they display fine. My question is somewhere in our company template is a setting for MEP objects to be displayed .

View 2 Replies View Related

AutoCad :: Loading Xref Causes Display Jumps In Original Model

Mar 25, 2013

The original model, in shade visual style, all objects are distinct and separate objects as they should be. However, when an xref is loaded (overlay) the model (display) jumps and the objects that were distinct now appear mingled together. Also, when you hover over an object it's highlight outline does not align with the object, it is offset from it approximately the amount of the display jump. I compared display and visual style settings from other model drawings that did not have this problem but came up with nothing that worked. More than one model drawing on this particular project created by another discipline has this problem, whereas on a previous project models by another discipline never had this problem and neither do models created within my dicipline.

View 0 Replies View Related

Photoshop :: Actions Ignoring Modal Control For Layer Renaming / CS6?

May 29, 2012

I often run actions that have modal control for certain steps turned on, in particular, when I want to give a layer a custom name. Prior to CS6, I'd run my action, the window would open allowing me to rename my layer, and then it finishes my action. However, in CS6, it seems to ignore the modal control button selected, puts in whatever the default info is and continues on.

View 2 Replies View Related

Illustrator Scripting :: Reworking Photoshop Layer Renaming Script

Oct 16, 2012

The Photoshop scripting guru Paul R over at RetouchPro has created a really cool script to batch rename and number selected Photoshop layers. I haven't found anything similar on the Illustrator side.
 
some Illustrator scripting genius could come up with a similar script for Illustrator. Would it be terribly difficult to convert this into something Illustrator could use? URL....

View 9 Replies View Related

AutoCAD Civil 3D :: Feature Lines Color Display When Xref Into Another Drawing

Jan 31, 2013

Why do our feature lines all come in as the color white when xreffed into a drawing? Feature lines show up just fine in our topo drawing, so then we xref it into our design drawing and they all show as if the color is white when is is not in the layer properties.  All other items (symbols, points, and lines) come in as the color they were drawn in the topo drawing.  

View 3 Replies View Related

AutoCAD Civil 3D :: Changing Colors For Xref Linework?

Mar 11, 2013

The normal color scheme for xref'd entites is the color gray. Is there a way to change them so that the linework can be more distinguishable? With everything being gray, it is hard to differentiate between contour lines and feature lines.

View 5 Replies View Related

AutoCad 2D :: Text Display In Drawing Versus Text Display From Xref In Same Drawing

Sep 7, 2011

NOTE: This is in AutoCAD 2002.

I'm working on one of our standard layouts for a client. Our typical drawing setup is the base drawing file, surrounded by our Xref'ed border. On said border Xref, we have all the information that does not change between drawings (Revision history, address of job site, etc). The only things that change - and, thus, are not on the xref - are the title of each individual sheet and their number; in the case of these objects, they are located on the drawing file itself in the appropriate position. They are, however, the same font as the text in the Xref - "Standard". Or, at least, they're supposed to be.

The text in the base drawing file seems to be a different version of the text from the Xref - a much blockier, sharper-edged version than the Xref text. My first response was "Okay - I'll just copy/paste the text from the border into my base drawing file, and force the existing text to match the properties of the imported text."

This, however, did not work. The imported text automatically assumed the same form as the existing text. Here's a screenshot from the base drawing, illustrating this (The "Mechanical Plan" also exists on the base drawing, and not the Xref):

I copied the existing text from the base drawing (In this case, the "Mechanical Plan") and pasted it directly into the Xref itself, to see what would happen. Apparently, it wants to stay blocky:

In the latter example, I even tried to force the blocky text to assume the properties of the smooth text via MA (Match properties). I specifically need to make the text in the base drawing conform to the style that the text is assuming in the Xref - which is to say "Smooth."

View 0 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Changing XREF Layers In DWG

Oct 1, 2012

How to edit this string so that it would change ONLY XREF layers in a dwg. to color 3 bylayer, and leave all of my additional layers in the current dwg. as is.

^C^Cchprop;(ssget"x");;color;bylayer;;-layer;color;3

View 2 Replies View Related

AutoCAD 2013 :: Line Changing Colours When Xref Into A Different Drawings

Aug 8, 2013

In the attached screencast video you will see that I have a drawing set up on the left of the screen to show where all the sections are taken through the building.  I have setup a layer called SPC SECTION LINES which is set up to be bylayer and on the colour green. 

When I XREF this drawing into the sheet file on the right side of the screencast you will see how the colour turns yellow when reference into the new sheet file?

Why does the colour of the line change when it gets xrefed into a new drawing?

the screen cast can be found at [URL]

View 9 Replies View Related

AutoCAD Civil 3D :: Xref Alignment Labels Changing Colours

Dec 3, 2013

My alignment ticks use the stanard Aecc Tick block. It is on layer 0/bylayer/bylayer etc and the style is set by layer. They display correctly in the source drawing but when I xref that drawing into others, the ticks change colour based on what every the current layer is in the host drawing. If the current layer is 0 they dispaly correctly, if my current layer has a colour 5 associated with it then my xref ticks regen to blue.  This only happens with the tick not the text.

View 8 Replies View Related

3ds Max :: Can Load Xref Scene But Can't Make It Display As Box

Jan 20, 2012

when I am in Nitrous display mode the Xref scene functionality is broken. I can load an xref scene but can't make it display as box. If I check the "Box" field nothing happens. Everything works ok though when in Direct3D or OpenGL display mode.

View 2 Replies View Related

AutoCAD Inventor :: Changing Precision In BOM Display

Nov 14, 2011

I am creating drawing template and I try do edit BOM style. By default my precision is .000.

I want to change it. How do I do it?

View 6 Replies View Related

AutoCad :: Xref Default Layer

Nov 21, 2012

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.

View 2 Replies View Related

AutoCad :: Adding XREF As A Layer?

Nov 17, 2011

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.

View 5 Replies View Related

AutoCAD .NET :: Changing Screen Display Between Plan And Isometric

Jan 15, 2012

I'm trying to provide the user with some alternative vies of the drawing from within my application. 

I picked up this code from an earlier post and have modified it to what I thought should work, but is has no effect on my screen display even after I exit from the form.
 
Private Sub ComboBoxView_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBoxView.SelectedIndexChanged Dim myDwg As Document = Application.DocumentManager.MdiActiveDocument Dim myDB As DatabaseServices.Database = myDwg.Database Dim myTransMan As DatabaseServices.TransactionManager = myDwg.TransactionManager Try myTransMan.QueueForGraphicsFlush() ' Have tried with and without this line Using myTrans As Transaction = myTransMan.StartTransaction Dim vpr As ViewportTableRecord = DirectCast(myTrans.GetObject(myDB.CurrentViewportTableRecordId, OpenMode.ForWrite), ViewportTableRecord) If vpr IsNot Nothing Then Select Case Me.ComboBoxView.Text Case "Plan" vpr.SetViewDirection(OrthographicView.TopView) Case "Front elevation" vpr.SetViewDirection(OrthographicView.FrontView) Case "Side elevation" vpr.SetViewDirection(OrthographicView.LeftView) Case "SW isometric" vpr.ViewDirection = New Vector3d(1, -1, -1) Case "NW isometric" vpr.ViewDirection = New Vector3d(-1, 1, 1) Case "SE isometric" vpr.ViewDirection = New Vector3d(1, -1, 1) Case "NE isometric" vpr.ViewDirection = New Vector3d(1, 1, -1) End Select End If myDwg.Editor.UpdateScreen() ' Have tried with this line inside and outside the 'Using' section myTransMan.QueueForGraphicsFlush() ' Have tried with and without this line myTrans.Commit() End Using Catch ex As SystemException MsgBox(ex.Message) End Try End Sub

 I note that I have probably misguessed the direction vectors, but I can handle that by experiment once I get the screen updating.

View 2 Replies View Related

AutoCad :: Way To Not Have Long List Of Xref Layer

Apr 5, 2011

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?

View 3 Replies View Related

AutoCAD .NET :: Making A Layer From Xref Current

Mar 27, 2013

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

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved