AutoCad :: Use Script To Rename Layers In A Set Of Drawings
Feb 13, 2012
I want to use a script to rename layers in a set of drawings, but I want it to just ignore layers in the script that are not present in that particular drawing, so for instance, the following won't work:
-rename
layer
ABC
DEF
As every time it arrives at a drawing that doesn't have the ABC layer, it stops to tell me so. I've got around the analogous problem with blocks by using the following script:
(setq oldblockname "POWER")
(setq newblockname "POWER2")
(setq ss1 (ssget "X" (list (cons 2 oldblockname))))
(if ss1 (command "rename" "b" oldblockname newblockname))
but I can't seem to adapt it for layers. I did think of 'making' a layer before attempting to rename it, and this works to a degree, as it doesn't seem to mind if the layer already exists, but unfortunately if the layer ABC isn't present, then DEF is, and it stops to complain that I'm trying to rename a layer to a name that already exists.
View 8 Replies
ADVERTISEMENT
Oct 30, 2012
So all of a sudden, out of the blue I have a problem creating layers.Whenever I create a new layer in the layer properties manager i give it a name (as you would) I then select make make current in the layer propertis manager so I progress to work in this new layer and..... The name changes back to the default Layer1 in the Layer Properties Manager but in the Layer dropdown the name of the layer is as i renamed it.this is happening on two non networked computers and on old drawings and new files alike.
View 5 Replies
View Related
Apr 1, 2013
NEED TO RENAME LOTS OF EXISTING LAYERS ...
EX:
LAYER NAMED:
E-PANEL LP 1-3-10 CRT 01
RENAMED TO:
E-PANEL LP-01-03-10 CRT 01
"CRT" NUMBERS WILL VARY
View 3 Replies
View Related
Oct 17, 2012
How could I be bringing up the Rename Dialog Box when I am in the Layer Dialog Box creating new layers? It seems to happen from now and again mostly when I go to change the color of the new layer. This shouldn't be an issue but once the box comes up, all my work inside the layer dialog box will be lost when I close it and reopen it.
Doesn't matter if I pick "OK" "CLOSE" or the "X" in the upper right hand corner of the box. Rename command, just what I hit, strike or click that brings it up and hopefully a means to change my CUI so I don't do it anymore.
View 3 Replies
View Related
Apr 5, 2013
I'm new to working with scripts and have played with it a little bit but my knowledge is severly lacking, I picked up script pro and have had some success batching simple commands.
What I have is a large database with differing layer convensions that I want be able to run a script that will open rename layers save and close, the layers are not of the same name but similar enough that I could set peramiters for less then a duzon layer names and catch my target then rename it to a standard, for example "A-wall exterior" to "A-WL-EXT", a simple enough command but within the database the "A-wall exterior" could be one of a duzon simmilar names.
My thought was to run the -rename la "layername" "layername" qsave script but when the original layer is not found it gets stuck untill script pro times out and fails. If there is some way to search out names and once found rename that would work.
View 9 Replies
View Related
Jan 28, 2006
I have a photoshop created picutre that has about 20 layers. I see how I can rename them. Yet when I rename them, it does not change on the display. The picture never changes.
View 2 Replies
View Related
Sep 17, 2011
I am new to GIMP and would like to know how change the name of a layer.
View 1 Replies
View Related
Oct 9, 2012
I'm trying to find a script that batch rename/renumber a group of selected layers. So far I've been able to find a script that renames every single layer in a Photoshop document (overkill). Or there's the CS6 Tab rename trick (too slow).
I routintely export PSDs from Illustrator for use in After Effects. But in Photoshop, I'll get a couple hundred layers named <path> or <path> + <path> or <group>. Renaming by hand is out of the question. But I don't want to rename every layer the same.
View 4 Replies
View Related
May 9, 2011
I am running Ubuntu Linux 10.04. On my older linux pc GIMP included a menu option I think to access Layers, might have been Dialog --> Layers, I don't remember. This version of GIMP has Layer --> New Layer, but it's not immediately obvious in looking through all the menu bar options where to get to a Layers dialog where I can move layers, rename them, etc.
View 2 Replies
View Related
Feb 15, 2010
is there a quick way how to renumber or batch rename all layers in a file so they would be named in consequent numbers? Doesn't have to start from exact number, I was wondering if maybe there is some sort of script that would work?
View 24 Replies
View Related
Jun 18, 2013
I have two .dwg files. One file has every layer that I could possible need on it. The other file is an existing file created in my office. So, I want to take an existing drawing that does not have a good layer naming system and move it into the file that does. I saw in another post that this can be done in the Design Center, however when I go to copy layers from the existing file to the destination file it won't let me. Does this make any sense?
View 2 Replies
View Related
Apr 25, 2012
I am trying to add two layers (A-FURN-3-CGDS-VV-1 & A-FURN-3-CGDS-HH-1) to about 4,700 DWG files, any way to bulk process something like this. We use blocks for furniture symbols, and have about 4,700 of them that need these specific layers in them in order to work with a rendering software we use that is based on the layer names. I will also need to go in and select parts of the drawings to put on one layer, and other parts for the other manually, but if I could start with the DWG files having the layers in them it would save a little time.
How to have the bulk process put everything in the DWG file onto one of the layers (VV) while processing.
View 2 Replies
View Related
Nov 20, 2012
drawings that I download from commercial vendors, (Grainger, McMaster, etc). I figured out how to get access to them: When I convert them from .DXF to .DWG. it somehow allows me to correctly dimension them.
One more problem I have with these drawings is that although I can edit them, one of the most important things I need to be able to do is change the layer they're on. I can't figure out how. I usually use the "Change to Current Layer", LAYCUR, command, but it doesn't seem to work for these commecially downloaded drawings.
They're always in "Layer 0". I've created multiple other layers that I need them in, but I can't get them to move. When I select them and then click on the Change to Current Layer button, they just don't move. 'm drrawing in Model Space.
View 4 Replies
View Related
Jul 25, 2013
I am using Autocad 2012. I need to make some 2D execution drawings from a 3D model. I tried to use the following commands: flatshot, flatten §ion plane. All of them are having bad results. From all this 3 commands the closer to my needs is the flatshot. But I am working with many layers which have different colors, so when I will generate the 2D views I need to see the same color as the layers have (each color is for a particular medium).
I am using this command without showing the obscured lines.When I am generating the isometric views with the flatshot I am seeing strange objects (UFO), is far away from the original model, you can see in the attachment.
It is possible to generate somehow 2D views (front views&isometric views) seeing the color which every element has, and it is possible to correct somehow those ugly isometric views ( the guys from autocad should do something with this, because when I am generating a isometric view the 2d drawing that I received is completely different from the 3D model !).
I want to make the drawings using the 2D views, because the 3D Models are very big (50-60MB) and it is very hard to work with them!
View 3 Replies
View Related
Jul 8, 2012
I've tried dragging layers across drawings using the design center interface, but what I've noticed is that while the layer in question gets copied over, the layer is empty. The objects within the layer do not get copied over. How do I copy objects AND layers that I've selected across drawings using Autocad Design Center?
View 5 Replies
View Related
Feb 5, 2013
Is it possible to have Lightroom rename the source images according to my custom naming convention?
I just imported 278 photos and they are all correctly renamed within Lightroom however the source files retained the original Canon generated names. I want to rename them for backup/in case I ever decide to stop using Lightroom/etc.
View 3 Replies
View Related
Jul 25, 2013
I am using Autocad 2012. I need to make some 2D execution drawings from a 3D model. I tried to use the following commands: flatshot, flatten §ion plane. All of them are having bad results. From all this 3 commands the closer to my needs is the flatshot. But I am working with many layers which have different colors, so when I will generate the 2D views I need to see the same color as the layers have (each color is for a particular medium).
I am using this command without showing the obscured lines. When I am generatic the isometric views with the flatshot I am seeing strange objects (UFO), is far away from the original model, you can see in the attachment.
My questions are: It is possible to generate somehow 2D views (front views&isometric views) seeing the color which every element has, and it is possible to correct somehow those ugly isometric views ( the guys from autocad should do something with this, because when I am generatic a isometric view the 2d drawing that I recived is completely different from the 3D model !).
I want to make the drawings using the 2D views, because the 3D Models are very big (50-60MB) and it is very hard to work with them!
View 7 Replies
View Related
Dec 28, 2012
I'm using ACAD LT 2008.
When i try to copy paste some drawing entities from a heavy drawing file to any other file, the program blocks and says 'not responding', endlessly. So i always have to shutdown the program. I experience the same problem using the designcenter: when I try to copy a layout into another drawing, my computer gets stuck.
Another annoying problem with these files is that they are so heavy, while in fact they shouldn't be. I tried the aectoacad file command. In result the file id half as big, but after I open it and save it, again is the original size.
View 5 Replies
View Related
Apr 2, 2013
Every now and then I go back and try to use publish to speed up printing but I always go back to plotting one by one.
I work in a housing construction office and I have 10 separate drawings side by side in model space for house plans that I need plot separate to give to certain people. My problem isn't that I can't publish them separately its that I can't save them over existing pdf's individually predetermined.
Q1. do i just have to go through and change every layout name before or after i publish?
Q2. how do i change the output publish location?
Q3. can each layout be saved to a different existing pdf and remember it?
Q3. can i save these setting across to a new drawing?
View 5 Replies
View Related
Jun 19, 2013
I am doing a customization in Inventor for renaming. In assembly i called rename browser nodes and it successfully renamed in browser name, but when i rename the part by opening the part it still remains the same.how to rename a part.
View 6 Replies
View Related
Jul 19, 2013
My Application is migrating from autocad 2011 to autocad 2014.Once i rename the drawing.It throwing fatal error and crash again and again.
View 5 Replies
View Related
Mar 27, 2012
Is there any way to rename a tag without using battman? I need to replace some drawing borders and some of the attribute tags on the new border are named differently from the tags on the old border.
I'd like to be able to use transparent commands to make a script file to do it automatically instead of calling up battman, clicking through and typing on every single one.
View 2 Replies
View Related
Aug 19, 2011
I have created a Dynamic BLock, when I insert it I get the Block References itself error. I renamed the file to a different name than the block, I didn't get the error message, but the dynamic properties are not there.
View 8 Replies
View Related
May 22, 2012
How do I rename an iPart member name? Can I use Design Assistant?
View 2 Replies
View Related
Mar 7, 2012
How could I rename a hole assembly and all parts (pre- or suffix)?
View 2 Replies
View Related
May 2, 2013
I am attempting to rename a browser node. Here is the code I'm using and I'm getting a "Property 'Label' is 'ReadOnly'" error. In the API I found a note about using SetLabel() but that seems to only have ones for ClientMade browser nodes.
oSubAssyNode.BrowserNodeDefinition.Label = "XXX"
View 2 Replies
View Related
Nov 4, 2011
How do you edit attribute tags (only) and retain the values of the attributes? When I try to redefine a block the attribute values change with ATTSYNC.
View 1 Replies
View Related
Apr 13, 2012
Right-click on a layout tab, select Rename ... nothing.
It looks like it highlights the tab for a nanosecond then crosshairs appear with an empty command line.
I eventually renamed one tab by selecting rename like fifty-eleven times.
View 9 Replies
View Related
Jul 30, 2012
My task is to write an automated routine that checks for a certain classification added to Duct objects.
In the classification definition SfB all classification names of the form (XX)X should be altered/renamed to the form XX.X
Defining a Classification object Classfc as Autodesk.Aec.DatabaseServices.Classification my problem is that the property Classfc.Name is readonly.
View 6 Replies
View Related
Nov 30, 2010
I am currently working on a large drawing that has many tabs (145), I have made a mistake midway and would like to find a way I can rename them quicker than "Right Clicking" on each tab to change it. That will be very time consuming.
Also, is there a way to print a list of all of the current layouts within a drawing.
View 2 Replies
View Related
Apr 22, 2012
How can I fix the following:
In AutoCad (I am working with ACA 2012) there are several dialog boxes e.g. the "rename" dialog box that always show up in the same (too small) size.
After renaming e.g. a block, the window closes and I have to repeat the command to rename another item.
I would like to size the window and keep the setting and would like to keep renaming things without getting interupted by automatical closeups of the window.
View 3 Replies
View Related