Jump to content

Search the Community

Showing results for tags 'replace'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • CADTutor
    • News, Announcements & FAQ
    • Feedback
  • AutoCAD
    • AutoCAD Beginners' Area
    • AutoCAD 2D Drafting, Object Properties & Interface
    • AutoCAD Drawing Management & Output
    • AutoCAD 3D Modelling & Rendering
    • AutoCAD Vertical Products
    • AutoCAD LT
    • CAD Management
    • AutoCAD Bugs, Error Messages & Quirks
    • AutoCAD General
    • AutoCAD Blogs
  • AutoCAD Customization
    • The CUI, Hatches, Linetypes, Scripts & Macros
    • AutoLISP, Visual LISP & DCL
    • .NET, ObjectARX & VBA
    • Application Beta Testing
    • Application Archive
  • Other Autodesk Products
    • Autodesk 3ds Max
    • Autodesk Revit
    • Autodesk Inventor
    • Autodesk Software General
  • Other CAD Products
    • BricsCAD
    • SketchUp
    • Rhino
    • SolidWorks
    • MicroStation
    • Design Software
    • Catch All
  • Resources
    • Tutorials & Tips'n'Tricks
    • AutoCAD Museum
    • Blocks, Images, Models & Materials
    • Useful Links
  • Community
    • Introduce Yourself
    • Showcase
    • Work In Progress
    • Jobs & Training
    • Chat
    • Competitions


  • Programs and Scripts
  • 2D AutoCAD Blocks
  • 3D AutoCAD Blocks
  • Images
    • Backgrounds

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...

Found 19 results

  1. I have a block with about 60 single-line text entities, 40 of which have a place holder character that needs to change based on how the block is used. For example, "~1a" and "~1b" need to change to "P1a" and "P1b", where "~" is the place holder and "P" is the letter for this 1 block. The next instance of the same block will need a different letter. This is not a good application for attributes. I found Lee Mac's LISP c:ReplaceBlockText in this thread using vlax-for, but it appears to work on the block definition and changes the text for every instance of the block in the drawing. I need this t
  2. Hey all, I am trying to change some text in my cad file, but when I try to use the wild card in my search, nothing shows up. (attached screenshots are an example of what I'm seeing) Any insight into this would be greatly appreciated. Thanks, JT
  3. Hi guys, Long time reader, seldom if ever poster. I think I've got a good one this time and can't find a solution. I'm seeking to find and replace strings in hundreds of xref paths. It's not the path I need to change, but a string in the name of the drawing. For example: "otl" should be found and replaced with "int" *\PLANS\p_otl_001.dwg -> *\PLANS\p_int_001.dwg *\PLANS\p_otl_002.dwg -> *\PLANS\p_int_002.dwg I can quickly change the reference name using RENAME and the Reference Manager can change all paths, but affects only the file path and not the name
  4. Hello, I try to find a lisp that will search and replace text within a user selection. This piece of code that I found on a very old forums on the net do almost exactly what I need. The only issue is I want to replace single word inside sentence and this code replace the word only if it's alone. (defun c:TRANSLATE() (command "cmdecho" "0") (command "_.undo" "begin") (setq mylist (list (list "APPLE" "PEAR") (list "BANANA" "STRAWBERRY") ) ) (setq sset (ssget '((0 . "TEXT")))) (setq i 0) (while (< i (sslength sset)) (setq obj (ssname sset i)) (setq str (cdr (assoc 1 (setq lst (e
  5. Hello! I have found every answer for every AutoCAD question that I have had in the past 9 months at this site and I love it!! Best. cad website. Ever. However, I finally have found something that someone else hasn't posted about yet (I think). My company is in the process of updating the entire block library to be annotative or dynamic (depending on the usage) and it's been wonderful for new projects. The problem comes in when we have to update an existing dwg. When we try to "blockreplace" the new annotative tags for the old non-annotative tags. These tags have attributes,
  6. Hello all. Kindly find attached drawing which shows simple reinforcement schedule. I have a problem with Texts which are shown in yellow color.When I click on one of them - for example 1∅16 L=1175 , at the properties area, I see text Contents 1%%O%%C%%O16. When I try to find 1∅16 I can't find anything. I tried searching %%C and Autocad found all of yellow texts. But when I select Replace All with ∅16 value, it becomes 1%%O%%∅%%O16. After that when i make search %%O%% or %%O or O%% ( I tried lots of combinations ) Autocad cant find anything so I cant change any value I
  7. I have an autocad drawing with so many light fixtures with all different names.Now we have to change all those names, i already have an excel sheet containing two columns with first one containing "name in drawing" and second one containing respective "new name". Is there any way to replace the names in cad file using that excel sheet.i just dont want to do all those thousand rename manually ...please some cad-guru help me
  8. Hey Guys, I have the following problem. I'm working on HVAC project and after I have almost finished the whole project the managers company sent me new template layers file ,that I should follow. So now my "17_COOL_MEPA_SUP" layer and all of his futures (including color,line thicknes and so on) need to be changed to "10_C_HVAC_S" with other futures (different color,different thicknes). I know that I can rename group of layers by using script file ,but can I totally replace group of layers with another group? P.S. I have 130 drawings ,so the manual method is not an option. HEEEEELLLLPP
  9. haynesc87

    Script > Linetype Replace

    Hello all The Situation is as follows : I wish to have a script that can be run on 1000+ drawings to do the following : Load a New Defined Linetype .... "NewLineType000" Select all layers that = NOT Continuous & = Colour 8 > Replace Linetype with "NewLineType000" Can anyone help me out please, many thanks in advance Chris
  10. I have 2 things I'm trying to accomplish here. I need to find the the exact text to replace and only in the current layout. For example. Let's say I need to find "Date" but on the same layout I have "date", "Date" and "Date:". So it needs to be case sensitive also. I was using this but it's not case sensitive and also replaces "date" and "Date:" in all layouts. I just need "Date" in the current layout. ;Find And Replace (defun C:FAR () (setq OldTxt (getstring T "\nEnter the old text: ") NewTxt (getstring T "\nEnter the new text: ")) (setq ss (ssget "x" '((0 . "TEXT,MTEXT")))) (setq
  11. I have enough experience in Civil 3d to know I am 99% sure there is no way to do this, but I thought I would at least ask. We received a drawing in which every single block has been exploded, they are just a bunch of polylines now. The company we received it from says they don't have a drawing with the original blocks...sure... The long and the short of it is that we need to replace every exploded block with our standard blocks. Is there some crazy way to search and replace a pattern of lines or basically, search and replace the exploded blocks. A lisp routine, anything. There are thous
  12. Hi, this is probably really simple but i've just started using CAD so my apologies. I have to design a building as part of a uni project, i've drawn a floor plan with polylines but when i go to replace the polylines with walls, some of the walls have the plaster work on the outside and brickwork inside. Not too sure where im going wrong... thanks in advance for any help.
  13. I've completed MergeSort algorithm implementation in Autolisp based on Ellis Dee's vb6 version here: http://www.vbforums.com/showpost.php?p=2909257&postcount=12 The problem is that I need to replace nth atom in the lisp array, and the only way I can currently accomplish this, is by iterating the entire list. This takes, what would be a spectacular sorting algorithm, and destroys it's efficiency by iterating the list nth(log) times. I'm going to try not to muddy the water too much, but here is my nth-replace function based on Michels nth-remove function... (defun nth-replace (n
  14. I have a routine that replaces one block with another block based on the block name. I need help making it run only if a specific string of text is found in one of the attributes within the found block. Can someone help? Thanks. (defun c:name () (setvar "attreq" 0) (setq ssblocks (ssget "x" '((0 . "INSERT")))) (if ssblocks (progn (setq lstblockmap (txtfile2lst "C:\\path\\filename.txt" ) ) (setq lstblocks (sel2lst ssblocks)) (foreach enblock lstblocks (setq strblockname (car (getval (setq stroldname (strcase (getval 2
  15. Rubbersnow

    missing content of a file

    something strange happened , I had open two files (work file and file to watch from) and somehow after closing AutoCad , the content of the work file is replaced by the content of the other one.It is same with the .bak file . Is there any chance to recover my previous work , somehow to go back in the history of that file? :shock:
  16. malindenmoyer

    "Top Down" Assembly Problem

    I have created a wing assembly using a "top down" approach. Essentially, I have planes spaced accordingly with airfoil profiles on each. I used these sketches as the "skeleton" of my model, with several features driven by the sketches. The problem is I need to delete a spline and replace it with another one, and I know that I will lose all the constraints linked to that original spline. Is there a way to avoid losing all the constraints? (I have tried replacing it, and it throws errors due to the original spline being deleted) I am trying to avoid having to go into each feature and redefi
  17. PeterPan9720

    Blocks Replace

    Hi to everybody, Is there a way to modify the tools blocks replace available in Autocad Express Tools ?. I try to explain better : - The express tools blocks replaces "all" blocks inside the dwg comparing the name. - I would like to change only selected ones ? Is there a way to have access to express tools blocks replace "macro" and starting from that create another only for replace the selected one ?. Somebody think that could be easier create complete new tools for my issue ? Many thanks for all your support
  18. brothersjohn

    Find and Replace "#"

    I am running autocad electrical 2008. I have a set of blocks from a client that has the line numbers as "SHT#01". The idea was do a find and replace "SHT#" with the actual sheet number. The problem is the Find will not find "SHT#" it will find "SHT" and when I put in just "#" it finds numbers. So how do I do this. There are multiple sheets like this. Thanks, brothersjohn
  19. I have done a fair bit of web scouring to find a good method for replacing multiple blocks. There are some pretty decent vba codes out there for block replacement, the Office Optimum "Replace Block" tool, for instance worked okay, but you have to buy it. I have also found some effective .NET solutions for importing block definitions from another drawing to override the definitions in the current drawing. However I keep wondering if there is a good (free) solution for replacing and redefining large numbers of blocks using lisp. I am sure it must be doable. I know this has been discussed before
  • Create New...