Search the Community
Showing results for tags 'renaming'.
-
Problem renaming special characters in Layers
gustavobernardi posted a topic in AutoLISP, Visual LISP & DCL
Hi, Why sometimes this operation returns wrong: (defun c:cvt() (setq oldname "ESP - Esquadrias CIR")(setq newname "ANT - Esquadria Círculo")(runtorenamelayer) ) (defun runtorenamelayer() (if (and(tblsearch "layer" oldname)(not(tblsearch "layer" newname))) (COMMAND "._-RENAME" "LA" OLDNAME NEWNAME);;(command "._-layer" "R" oldname newname "") ) (if (and(tblsearch "layer" oldname)(tblsearch "layer" newname)) (progn (command "Laymrg") (foreach e (list oldname) (if (tblsearch "LAYER" e)(command "_Name" e)))(command "" "_N" newname "_Y") ;;(command "_.-PURGE" "_La" oldname "_N") ) ) (princ) ) Being specific, if I load the code with the appload or even in the ACAD.LSP the problem occurs. And the result is a strange name: ANT - Esquadria CÃrculo If I just copy and paste the code into the command bar it works fine and te name is ok: ANT - Esquadria Círculo Ok, I am thinking about avoiding special characters in the new Layer names, but in some cases the old layers have them already, and in this situation the operation doesn't rename that old layers, the application just skip them because the names doesn't match. TIA -
I have an AutoCAD drawing. There are 100 road cross sections in that drawing. I want to make 100 separate drawings using those 100 road cross sections. I use Wblock command for that. but it is very hard to rename one by one while using that command. If you can teach me a way to rename them automatically. the windows can be selected when using that command. I want to get those files to a predefined folder with automatically renamed. Is there a way to do that? otherwise please write a lisp program for me. I don't know how to do that. How to use a file list in an Excel sheet as the names which use for auto renaming?
- 1 reply
-
- renaming
- multiple drawings
-
(and 1 more)
Tagged with:
-
Blocks "spontaneously" renaming, relayering and duplicating themselves?
architte posted a topic in AutoCAD Drawing Management & Output
Hi everyone, I'm a noob to this forum and to 2013... I was using 2006 for too long, and now have finally made the switch to 2013 (yay?) So I (and some colleagues as well) have been having a problem with our blocks. Upon opening some of our files, we have noticed that the blocks in the file have duplicated themselves, also renaming themselves with the extension "-flat-1", "-flat-2", and so on, for as many instances of that block that exist in the drawing. Also, the block layer has changed to 0, and the linework layers within the block have changed to the layer that block was on previously! This is EXTREMELY annoying and problematic for our workflow, obviously, as it essentially removes the convenience of blocks! Recently this happened with a file that was very "clean" to start, and with extremely "clean" blocks... with the exception of having some xrefs from an international client (Turkey). We're trying to replicate this occurence intentionally to try to troubleshoot, without any luck. Is this something we're doing unintentionally, or could it be something viral from our "dirty" xrefs?? ps... my colleagues are using 2010 and 2012. **fingers crossed that someone has an answer!!** Thanks! multipule block error.pdf- 3 replies
-
- renaming
- relayering
-
(and 3 more)
Tagged with: