AutoCAD 2010 :: Bulk Editing Attributes In Multiple Blocks
Aug 2, 2013
I am designing a solar field and have my solar panels laid out in a grid. I have each panel represented as a block with 4 attributes: Column, Row, Module Type, and Combiner Box. There are ~5,000 panels so it will take forever to modify the attributes of each block individually. Is there a way I can select multiple blocks (an entire column for instance) and set the "Column" attribute for ALL of those blocks to the appropriate value?
My end goal is to be able to export the information in those blocks to excel. So if there is any way to tie 4 pieces of information to an object and export it into excel not using block attributes, that would work for me as well.
I attempted to use Lee Mac's Batch Attribute Editor BAtteV1-4.lsp and it was very close to what I needed. But it will modify the specified attribute of all blocks within a drawing, whereas I only want to modify the attributes of all blocks within a selection.
View 3 Replies
ADVERTISEMENT
Feb 13, 2011
I have a CAD file with property parcels in it. It has come from an external contractor and from a GIS program of sort sort I believe.
If you click each 'boundary'/land piece, it is a block/object (not a proxy graphic) and in the properties pane window, there are attributes that has the lot number, the lot area, parcel number, other info etc in it.
Each block is irregular and different, i.e. they are not all the same rectangle block repopulated, they are different blocks.
I don't know much about attributes in AutoCad althoguh after reading about them, is there some way to edit an attribute (make it not 'invisible' and to increase the text size of its display) when it is already in several hundred different blocks? The only way I could work out how to do it was to go into every block and do it.
I also tried using the ATTSYNC command to update blocks with attributes although that requires me to individually select each block/give each blocks name.
I also tried using the DATA EXTRACTION wizard and was able to extract the attributes into a table/excel file, although that is not really good enough as I need the attributes displayed over the CAD data so you can see what parcel of land the attributes are referring to.
Any better way or a lisp command to do this? Clicking each block/boundary/land unit to place a label over it would also be okay. I just don't want to have to manually create the labels from reading the property pane, there must surely be a better way,
View 9 Replies
View Related
Jun 22, 2010
I have a .dwg file which contains numerous blocks (70 or so) and they all have unique names.All these blocks have nested text.
I want to edit the attributes of all the text, in all these blocks, such that they assume the same text style, text layer and colour.
Obviously, with so many blocks, I want to avoid clicking on the text and editing the attributes individually.
I tried a lisp file called ATcolour.lisp, but even this is very time consuming.
View 4 Replies
View Related
Oct 16, 2012
I have a group of blocks, when I click the blocks I get the editable attribute pop-up box. I can now enter a text of my liking.
I have now made a dynamic block of these blocks, with a visibility states dropdown. So that only one block is shown at a time and when I need to change it I copy the block and use the dropdown button to select the one I need.
The problem I have is that the when I click the blocks from the dropdown only one of them allows me to use the editable attribute pop up window. The others say 'The selected block has no editable attributes'.
If I can't have multiple blocks with editable attributes in one dynamic block or if I can and have done something wrong.
I've attached the block so you can see what I mean. Single Socket allows editable attributes others wont.
View 1 Replies
View Related
Mar 20, 2012
I'm working on creating some blocks for our office. Basically it is a simple block with a few lines that remain and then a couple attributes you can click on and change. I have added the attribute and all is working well.
My only issue is I would like to make the text in the attributes to be bold. For some reason I can't see to do this. Is it not possible.
Basically I want to try and get some of the attributes to stand out more than others. I tried changing the color and the lineweight of the attibute (which worked the color is different) but when it prints it doesn't change at all.
View 2 Replies
View Related
Feb 27, 2013
We wanted to automatically fill a block's attributes from a selection in Excel. I have a piece of code that has the user select/pick a block to fill. What I want is for the selection to fill multiple blocks in an active drawing. Some of the blocks are the same - which means the same tags/attributes. I've included the code that allows the user to select the block and throws the Excel selection to certain attributes.change the code so that
1) I don't have to manually select blocks - it will find them.
2) One cell (from Excel) will go to multiple blocks - some are same block name.
3) An IF statement that if a certain cell isn't blank/nil
(pretend it would be (nth 21 vl) change DESC11 to XYZ and DESC12 to ABC. For Block namesake we'll call one, BLOCK1 (say it has 3 instances and gets different info in each case) BLOCK2 (say it has 2 instances, also gets different info) BLOCK 3 AND 4 both have an attribute - DESCAA1 that gets different info from Excel.
(defun C:AUTOFCM (/*error* adoc attribs blkobj enExcelapp Sel Sht Rng vl Wbk ) (defun *error* (msg)(if adoc (vla-endundomark adoc)) (if (and msg(vl-positionmsg '("console break""Function cancelled" "quit / exit abort") ))(princ msg)(princ "Error!") ) gc) (princ) ) (or adoc (setq adoc (vla-get-activedocument (vlax-get-acad-object))) ) (vla-startundomark adoc) (alert "Select a range of cells in Excel.") (setq ExcelApp (vl-catch-all-apply (function(lambda ()vlax-get-or-create-object "Excel.Application") )) ) ) (if (vl-catch-all-error-p(setq Wbk(vl-catch-all-
[code]....
View 1 Replies
View Related
Apr 12, 2012
I have a large amount of P&ID drawings that have blocks with attributes. One of the blocks is missing an attribute field that I need so I recreated the block using the same name and added the missing attribute. When I reinsert the block and say "yes" to updating the block's definition within one of my P&ID drawings everything seems fine except when I try to edit the block to fill in that field.
The newly added attribute doesn't show up but when I right click one of these blocks and select Block Editor the new attribute field does shows up so the redefine did work I just can't use that attribute. Is this a bug in AutoCAD? How I can use this attribute?
View 2 Replies
View Related
Jun 25, 2013
What do I need: In the example I will mark attributes with underlined text, and simple text with bold text
(Position)numberDiamdiam
Diam= diameter symbol
In the model space, I enter values:
Position = 3
number = 15
diam = 12
I need to get:
(3)15Diam12
instead of
(3 )15 Diam12
Is it possible to make an Attribute, take as a "Position X" value, the "Text alignment X" from a text ?
View 5 Replies
View Related
May 10, 2012
I want to convert existing lighting blocks with attributes to a new dynamic block. I created a few visibility states but when i insert the block I can't move the attribute text around. I don't have to redefine the attributes within the block editor to make this work. What is the best way to deal with existing blocks with attributes?
View 4 Replies
View Related
Jul 27, 2012
I am running AutoCAD 2012 Electrical. The source wiring diagrams I am working with have attributed blocks all over the drawing. For my purposes, I dont need to export the data, but I do need to change the drawing. When I use "Burst" or "Explode Attributes to Text" in the Express Tools menu, it does change the attributes to text. However, it throws all the data that is in in the attribute all over the face of the drawing. This is extremely time consuming to delete them as some are micro small text.
I need a command that will explode the attributes to text, turning the blocks into entities, as if there are no blocks at all.
View 2 Replies
View Related
Feb 22, 2012
In my title block I have a attribute with the name project_Number. Now what I want to do is the following. When I edit my block with the project number. The project number should automatically be added to a text box without me typing in the project number twice.
E.g.. This Drawing is part of the consulting services provided for Project[Project_Number] and may not be used or applied for any other purpose without prior consultation.
in other word the project number should be reference in the text box from the attribute.
View 6 Replies
View Related
Apr 20, 2011
Is there any way to edit multiple attribute properties, NOT using battman? While battman will chnage every att-block within the drawing, I'm looking for a way to change the text size of one specific line of text within an attribute, and ONLY change it in a certain few within the drawing. It'd be nice if I can select those specific blocks and change the properties in the properties manager, but it's not an option.
View 7 Replies
View Related
Nov 1, 2011
I've been working on some tooling and what I've run into is common block names being used in more than one tool.
I try to insert them into my layout and it shows multiple definitions that are duplicates but it ignores them as it continues to insert the new tool.
So then the tool is all messed up since it's trying to use the properties of the blocks from another tool.
Is there a batch routine or another simplier way to rename 40 or 50 blocks at one time?
This is happening in multiple tools and they are being generated by another customer so I can't just go talk to the guy and ask him to make a simple change.
Any way other than going into multiple tool files and changing each block name one at a time?
View 8 Replies
View Related
Nov 7, 2013
How to (annotate / match orientation) for multiple blocks in the one go ?
I have to alter blocks with alomst every survey dwg I receive whilst at work. Just wondering if there is a quick way to do all blocks in the one go !
View 4 Replies
View Related
Oct 12, 2012
i create multible blocks (min. 100 blocks in diffrent name) with Diffrent hatches in that block....
i want to change the scale in all diffrent hatches.. in all block...
i want any lisp....
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
May 19, 2013
I'm looking for a map tool that can convert feature data from an SDF file or SHP to autocad block's with attributes data. My client just want blocks with attributes and dont work with sdf or similares, they extract the attributes and then work them in other software, so, i wonder if there is a autocad map tool that make the conversion from feature data SDF to blocks with attributes, that will make the work mutch more easier and fast.
Other question relational with blocks. How can we link block attributes and excell in real time, where i could change cells data in excell and the update happens in the open drawing and vice-versa?
And would like to know if there is a way to make this happen without vba tools or lisp's...just with map tools.
C3D2011
MAP3D2011
View 6 Replies
View Related
Jul 25, 2013
some attributes you can double click and edit within the dialogue box, others you have to double click and they are greyed out in the box, you have to click the little button with ... on and edit in place on screen... why?
whats the difference between the block atributes? attached is an example...
View 5 Replies
View Related
Aug 3, 2013
I am looping over a set of 40000 entities converting them to blocks and adding 35 attributes to each block. Till here its fine my .net program converts to block and write atributes to each one of them in 2 hours. But after the program finishes and I try to save the file autocad takes ages to save the file and also it stops responding. Is autocad not able to handle 40000 blocks with attributes. I am using autocad 2013. The dll has been developed using visual studio 2010.
View 3 Replies
View Related
Jan 16, 2012
I am trying to create a dynamic block with two attributes, a double grid head, when I add a stretch parameter to the head it only affects the first assigned attribute.
I have added a stretch parameter to each attribute and only the firt attribute will move. What are the rules with attributes in dynamic blocks, the only thing I found was I have to lock posistion for attributes to be affected by the paramter assigned by the dynamic block.
View 2 Replies
View Related
Jul 29, 2013
There is a way to change the text in a tag to include spaces without getting the error that tags cannot be null. I've forgotten how to do this. I can't find this in my AutoCAD manuals, or on-line.
View 1 Replies
View Related
May 7, 2013
I have an access database attached to a blank drawing. The database is a list of existing oil wells. I want to have civil3d (or map) create a custom block (I already have the blocks created) inserted at a coordinate in the database and propagate the other fields in the database into attributes in the blocks. For instance, the first two fields in the database are the x and y. Some of the other fields in the database are the well status and company name. Is it possible for Map to read the first two fields to know where to put the block, then select the block to insert based on wells status and company name, and then complete attributes from the other fields (section, township, range, county, etc) into the block? I'm having a hard time getting my head wrapped around the map3d user's guide talking about topologies, link templates, object classifications, etc. Using Civil3D 2013 infrastructure design suite, Win 7 64-bit, office 64-bit.
Dell Precision T3600 - Windows 7 64-bit
NVIDIA Quadro 600
Intel(R) Xenon(R) CPU E5-1607 0 @ 3.00GHz 3.00GHz
8 GB ram - Two 1TB raid
View 8 Replies
View Related
Nov 2, 2012
Every time I try to update blocks with attributes of a given layout, this only updates the last active layout. example:
I have three layouts: Layout1, Layout2 and Layout3
layout of the three blocks I would need to update the reference but I can Layout1 default that always takes the last active layout. In the following paper space specific code, but as it would to tell a particular layout.
Private Sub UpdateAttributesInDatabase(ByVal db As Database, ByVal blockName As String, ByVal attbName As String, ByVal attbValue As String) Dim psId As ObjectId Dim tr As Transaction = db.TransactionManager.StartTransaction() Using tr Dim bt As BlockTable = DirectCast(tr.GetObject(db.BlockTableId, OpenMode.ForRead), BlockTable) psId = bt(BlockTableRecord.PaperSpace) tr.Commit() End Using UpdateAttributesInBlock(db, psId, blockName, attbName, attbValue) End Sub
View 5 Replies
View Related
Mar 22, 2012
I'm trying to set up a dynamic block with an attribute/field within it that the user(s) edit using a lookup table.
I understand basically that a field must be created as the attribute that then references a lookup table with the inputs listed. However, I really do not know how to create a lookup that has custom information such as below:
Site: Unit Code
Site X 100
Site Y 200
Site Z 300
All I have seen explains how to create a lookup from an existing parameter (liner etc) and I don't seem able to create something specific to my requirements. I forgot add that I want the user to see "Site X", "Site Y" etc in the dropdown - but the attribute to reflect only the Unit Code.
View 9 Replies
View Related
Jan 9, 2014
I need to know if there is a way to link an attributed F-N bubble with qty's to the BOM. This is for electrical wiring diagrams for aircraft. So I have serveral part numbers to a BOM, but no real accurate way of finding total quantities other than manually going though the drawing.
View 2 Replies
View Related
Dec 9, 2012
I am trying to create an attribute that displays the product of an Area of an object in the block and the value of a different attribute. For instance, here is what makes up the dynamic block:
1 rectangle (with width and height parameters and stretch actions)
1 Attribute called "ForcePerSQIN" - the value of this is entered separately for every instance of the block by the user
1 Attribute called "Total Force"
In the "Total Force" attribute, I want to create a field that contains a formula to multiply the area of the rectangle (which I am able to obtain with no problems using the Area property of the rectangle object type) by the value of the "ForcePerSQIN" attribute, which is user-defined. The problem I have is that it appears as if the value of this attribute is treated as text and thus cannot be used in the calculation; I get ######.
Is there a way to make the "ForcePerSQIN" parameter treat the user-defined value as a number instead of text so that it can be used in the calculation? Or is there a better way to accomplish my ultimate goal?
View 4 Replies
View Related
Oct 7, 2011
I have been making blocks Annotative by using block Editor. I would open block Editor and change the block property to annotative. When I do that I notice that the block's attributes become unreadable. The block's attribute appears to become so squished up the I can't read it. I have tried to change the attributes width to make it readable but that does not work.
View 3 Replies
View Related
May 23, 2013
At each projects, i need to copy and paste the values of attributes of all instances of a type of block in my drawings, paste them in a excel sheet, it take so much time and is possible to make errors.
Is there hints to read a DWG as a text file and retrieve the attributes values of all these blocks ? I would give special names to these blocks, and also specific quantity of attributes, to work.
I meant Excel VBA, not AutoCAD VBA, cause i will manipulate excel sheets depending on the results.
View 1 Replies
View Related
Mar 6, 2012
I am looking for a macro that can edit the default value off the attriburte for each block in the drawing. The new value must be empty.
But there is one exception. When the length of the current value is equal to 8 then the macro's has to do nothing and the macro must continue to the next block.
View 5 Replies
View Related
Apr 4, 2012
Just wondering how I would return attributes of blocks in my drawing's XRefs?
I've come across one example that is in VB but no luck.
I currently have a list in a form that consists of all the XRefs in my drawing and I wish to return all blocks and attributes that are linked to the selected XRef.
View 7 Replies
View Related
Feb 6, 2012
I'll try to import a text file with a string: pointnumber, easting, northing, elevation, discription, but I get very big blocks and attributes in my drawing. I use Autocad 2011 Map 3D, on a windows XP OS. I'll importing the text string with the import command. Easting and Northing are for the position. The Elevation, pointnumber and discription are attributes from a block. I can only choose a block: "Map_Survey_point" This is the only block I can choose. When I import the text, the scale from the importing blocks are too big. How can I change the size of the block and attributes?
View 4 Replies
View Related