AutoCad :: Editing Name Of Block Without Using Rename Command?
Mar 28, 2008
How can you edit the name of a block without using the rename command.
What if your drawing has over fifty blocks, and your chasing the renaming of just one block?
Would this be a script type solution.. ?
View 9 Replies
ADVERTISEMENT
Nov 30, 2012
I have a block that i want to insert several times and revised each one to be different to do this i would have to insert it and rename the blocks that come in and then reinsert i would like to insert and have a lisp explode the main block and rename the other 2 blocks with a suffix at the end depending on how many times its in the drawing... can this even be done? My original block name that will be first inserted is "BENT PULLEY NOTES" it needs to explode after i drop it in and then there are 2 blocks within that called "Bent Pulley" and "Bent Pulley DYN" that i was hoping to keep the names but add a number at the end depending on how many are in the drawing already...
here is a lisp that i have found... it would work if i didn't have nested blocks and only wanted the one block to be insert and not explode...
(defun c:Test (/ e i name Bname )
(setq e nil)
(command "_.-insert" "Drawing1.dwg" pause "" "" "")
(if (setq e (entlast))
[Code] .......
View 9 Replies
View Related
Apr 19, 2012
WHAT WERE they thinking when they created the Rename Browser Command. We had someone find out about it and really screw up a bunch of top level assy's. I'm having to WASTE WAY TOO much time fixing them, bringing them back to showing the modified descriptions in the Browser.
View 5 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
Feb 3, 2012
When editing block in-place, not onely objects in the block, but also other objects (just drawn normal in modelspace), is affected by the commands.
View 6 Replies
View Related
Sep 3, 2012
I have to batchplot a lot of drawings but before that i need to rename a block in every drawing. I want to get from ABC 123 to ABC_123.
this is my code right now for the part to rename the block.
(princ "-rename
" File#1)
(princ "b
" File#1)
(princ "ABC 123
" File#1) <---- here i get the problem.
(princ "ABC_123
" File#1)
This comes in the prompt:
Command: -rename
Enter object type to rename
[Block/Dimstyle/LAyer/LType/Material/multileadeRstyle/Style/Tablestyle/Ucs/VIew/
VPort]: b
Enter old block name: ABC
Cannot find block "ABC".
How do i include space and 123 in the princ?
I am using map3D 2012.
View 4 Replies
View Related
Apr 30, 2013
I was in process of editing a block in "block editor" mode. I saved the dwg and exit instead of saving the block, exit block editor and then exit the dwg. When I opened again the dwg what I see on display is just the block. How to close the block and open the entire dwg?
View 2 Replies
View Related
Aug 31, 2011
I'm editing a title block using the Block Editor. Unfortunatelly after closing the block editor the linse & Polylines reflect the changes apported in nodel space, but the text did not mouve?
View 2 Replies
View Related
Aug 15, 2011
how to write a LISP that enable me to direct automatic rename multiple block name?
Example is i have 3 block names as " A123 " , " A728 " , " A003 "
When i activate the LISP, it will automatic rename the block name to be " CAD1" , "CAD2" & "CAD3", whereby
the word "CAD" i can change whenever i start to use it change multipld block name.
View 9 Replies
View Related
May 17, 2013
I wanna change my block name to attribute text value, any similar lisp code?
View 9 Replies
View Related
Oct 22, 2009
I am working on a large project where a 3rd Party firm has turned over 100s of drawings that we need to get into our system. The problem is that they did not name their physical files properly. We have a particular numbering system for our drawings, the engineering firm did fill in our attributed title block properly and used our numbering system correctly within the drawing. However, their physical file name follows their format. We need to have the physical file name match the information in the title block to get into our system.
Is there a way to "Batch Rename" these files by reaching into the title block and then renaming the physical file to match the attribute?
I have to be honest, I may use AutoCAD 50 to 60 hours per week, but I am no programmer! I am just the go-to person here for AutoCAD whom is stuck trying to come up with a efficient solution for the project team whose engineering firm could not follow our procedures! I was hoping some sort of batch routine could take care of this problem for us instead of us having to individually rename each physical file one by one.
View 9 Replies
View Related
Oct 24, 2013
I have a block that we use often (it's a connector block), and I have already completed the Single Lines with said block. Now the client wants an additional piece of information that I would need to add as an additional attribute to this block.
This block is dynamic, with a visibility and a flip parameter, and two attributes, Line# and Cable/Panel.
I'm going into BEDIT for the block, adding an attribute, and deleting the Cable/Panel Attribute to make room for the new att. When I exit out of the Block Editor, the new attribute doesn't exist, and the Cable/Panel attribute is still there. What's really weird is that the Cable/Panel att used to be in the flip parameter, and now it's not. It stays when you flip the block.
View 2 Replies
View Related
Jun 6, 2012
how i can add .net code on reference editing and refedit command.
View 4 Replies
View Related
Mar 15, 2012
I'm trying to edit the attributes in a titleblock using VB.net. The block name is "Titleblock". It is already inserted into a drawing. My program does not need to insert it. It only needs to find the reference, for all layouts, and update a couple attributes for the titleblock on everylayout. I know some of the basics, but get confused with blocktables, and blocktablerecords.
Here is a piece of code I was experimenting with. With this code, I'm trying to get to the attributes, and read an attribute value for a drawing number. It fails when I try to assign a value to the variable blkreftitle.
Dim
doc AsDocument = Application.DocumentManager.MdiActiveDocument
Using docLoc AsDocumentLock = doc.LockDocument
Dim db AsDatabase = HostApplicationServices.WorkingDatabase
[Code]....
View 2 Replies
View Related
Feb 16, 2013
I edited a block in a drawing which had exactly the lineweight I wanted in my layout. After I edited it I lost the lineweight. If I try to change the lineweight for that layer it only affects the attribute. What I did and how I can get it back the way it was?
View 3 Replies
View Related
May 2, 2013
I have some new multi leader definitions using blocks, however I can only edit the attribute definition text individually, where if I had the same block as a standalone with a leader I could select as many blocks as I wanted and change the text via quick properties in one quick step. Is there a way to achieve this using a block as a base for a multileader?
View 2 Replies
View Related
Apr 3, 2012
When one edits a block all instances of the block are changed. What is the command in AC to make one instance of the block unique, so editing will not affect the instances? In Sketchup it is "make unique".
View 4 Replies
View Related
Sep 6, 2012
I remember on a pc i was using once upon a time, AutoCAD had a command called replace block. the shortcut was 'RB' and you could replace a block with another one very easily.
View 2 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
Jun 26, 2013
I was editing a block, I saved it and closed the file. When I reopened the file, everything in model space was replaced by the block.
View 5 Replies
View Related
May 16, 2012
trying to set up a system for a less advanced user.
basically they donot like the advanced attribute menu when you edit a block with attributes in them.
looking at the varriables the end user likes the Attdia set to 1 when you insert a block it then displays nice clean menu which just has the attributes you can edit.
can this be set so when you later edit a block this menu appear rather than the advance attribute editor?
View 2 Replies
View Related
Apr 21, 2011
1) Problem about viewports :
I am using 2011, I have created 17 viewports in one paper space, there are 2 viewports not showing anything. I deleted 2 viewports with content, then the 2 viewports which were not showing is now showing images.
I started a new drawing, drew something very simple for testing, I could create 63 viewports the 64th is not showing.
I would like to ask what it is to control/affect the number of viewports I can create in one paper space.
2) To Edit an Attributed Block
When double click an attributed block (command = eattedit), the dialog box "Enhanced Attribute Editor" disappeared !
View 6 Replies
View Related
Jan 2, 2012
I been working through Ellen Finklesteins AutoCad bible (using AutoCad Architecture 2012) and in the first exercise (quick start, drawing a window) I was going ok until I had to edit the title block and no matter what I tried in AutoCad Architecture 2012 I could not find a way to edit the title block. Maybe I should have bought a book that was specific to AutoCad Architecture 2012.
View 8 Replies
View Related
Aug 31, 2012
Is there a way i can control the name of a block that is generated by autocad when using things like to section plane command or flatshot command?
View 6 Replies
View Related
Jan 31, 2012
At my job, we are 15 drawers using acad 2008 and 2006. For some reson, on 1 computer, when the guy explode a block, acad delete that block insted exploding it. It make the just for some block, not all block. It make this with acad 2006 and acad 2008 but just with that computer.
View 4 Replies
View Related
Feb 24, 2012
My work requires me to create programs for our CNC router. It is done in AutoCAD 2008. To making programs faster I've created series of dynamic blocks. I am attaching a file with one of those blocks.
The file is actually illustrating what I need to do number of times a day. I would like to make the process even faster and more fool-proof. The "old way" in file shows what my current way of creating programs. The "new way" is my attempt to make it faster.
My problem is automatically dividing a line in dynamic block into a variable number of segments that are always equal. Naturally I use divide command after I stretch and explode my dynamic block. It would be much faster if the block would be able to do it all by itself.
My attempt of solving this was to use Visibility Parameter. However, if you look closely at it, you'll notice that if I want to do it for all the possible combinations it will be extremely complicated and easy to mess up.
If only there was a way to have two visibility parameters. Then I'd make one for horizontal holes and another for vertical. Unfortunately I can't.
How to accomplish this? LISP, maybe? Unfortunately, I don't know LISP.
View 2 Replies
View Related
Mar 22, 2012
the command for Insert block with file name.
using .net code (SendStringToExecute)
View 3 Replies
View Related
May 1, 2013
In previous versions of AutoCad I would just double click on a block do my changes click the save changes button and then a save dialogue would come up with an option to change the insert point. Did this option go away in 2013 AutoCAD? I do not get this option anymore after I finish editing a block? This is very useful. Why would this go away?
View 6 Replies
View Related
May 3, 2012
I've been looking for a while and managed to find 2 VBA scripts for replacing values in a title block. However one errors out on the line that is supposed to do the replacing and the other works off an ID number which isn't consistent.
I'm a proficient scripter but not in this language, so how these scripts are working but not the intricacies of them. Which Is exactly what I think is needed to get either of them working.
Function Test_UpdateTitleBlock()Dim oDoc As DrawingDocumentSet oDoc = ThisApplication.ActiveDocumentDim oTitleBlock As TitleBlockDim oTextBox As TextBoxDim oSheet As SheetFor Each oSheet In oDoc.Sheets Set oTitleBlock = oSheet.TitleBlock For Each oTextBox In oTitleBlock.Definition.Sketch.TextBoxes If oTextBox.Text = "<FILENAME AND PATH>" Then ' Errors here and doesn't replace text Call oTitleBlock.SetPromptResultText(oTextBox, "New Value") End If NextNextEnd Function
This throws an error on the line I have marked.
Function Remove_Filepath()Dim oDrawDoc As DrawingDocumentSet oDrawDoc = ThisApplication.ActiveDocument' Create the new title block defintion.Dim oTitleBlockDef As TitleBlockDefinitionSet oTitleBlockDef = oDrawDoc.ActiveSheet.TitleBlock.DefinitionDim oSketch As DrawingSketchCall oTitleBlockDef.Edit(oSketch)oSketch.TextBoxes.Item(20).Text = " "Call oTitleBlockDef.ExitEditEnd Function
This one works great, except that it does a "dumb" replace because it looks for the Xth textbox and edits that. The problem is in a detail drawing I want to edit textbox 20 but in assembly drawings I don't want to edit any textbox. So how to get this to loop through the textboxes and compare the text to what I want to replace.
View 1 Replies
View Related
Jul 31, 2012
I am running autocad 2012 and my block edit command is not working. im getting the following response:
View 2 Replies
View Related
Feb 26, 2013
I wrote a couple of functions one of them creates a block with a Name let say "MyBlock".
I wrote a command "MyBlockEdit" where the selected block attribute data is displayed in a custom form to change some of the properties.
Now I want to add the folowing function:
When a block with the blockname "MyBlock" is doubleclicked the command "MyBlockEdit" is triggered in place of the attribute editor.
View 9 Replies
View Related