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))
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.
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.
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?
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?
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.
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.
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
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?
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?
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".
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.
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.
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?
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 !
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.
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.
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.
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?
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.