AutoCAD 2013 :: Importing Attribute Data From A Block Into Another Block?
May 30, 2013
I have 2 drawings with the following content :
Drawing 1 : Contains tree blocks that have a specific scale dependant on the tree size
Drawing 2 : Contains a block with just a point and attribute data about the tree (name, size etc.)
This block is approximatly at the same location as the tree block (0,1 m precision)
Problem I want to join these two items together. In other words, in the tree block that is scaled correctly i want the attribute data with the name, size etc. These blocks don't have a corresponding unique number or something like that.
View 2 Replies
ADVERTISEMENT
Aug 13, 2012
Is it possible, via whatever methods (lisp?) to be able to have a premade block with an attribute and insert it into a drawing then assign a value to it by selecting another existing block in the drawing and using one of its own attribute’s values?
For example, say I have a block representing a telephone and it had an attribute called "PhoneNo" and I inserted it into a drawing showing an office floor plan that had blocks in each office space that are telephone junction boxes with attributes "PhoneExtension". I would like to be able to autocomplete the entering of the “PhoneNo” data by selecting one of the telephone junction boxes in the drawing and using its attribute’s value.
View 5 Replies
View Related
Aug 31, 2012
select all blocks on certain layers in a drawing, check attribute CIRCUIT in each block if it starts with MS then attribute CONTROL = switched. I hope thats clear enough the way
(defun c:control()
(graphscr)
(Setq sc (ssget "X" '((0 . "INSERT")
[Code].....
View 1 Replies
View Related
Oct 19, 2011
we have a block that we use to identify rooms. that block has 3 attributes: rooms name, rooms number and surface area.
A former colleague once showed me how to do this but I can't reach him... How can I inquire the data from an area and tag-it right to the surface area attribute of my block? I don't mean pick a pline, list and edit the block... it's something like pick the closed pline and the "area" data is displayed in the right tag of my block?
View 8 Replies
View Related
Mar 22, 2012
I am trying to add a set of attribute data to a block that already exists within a drawing.
View 1 Replies
View Related
Oct 3, 2012
I am currently trying to make my AutoCad more powerful as a tool of Engineer but not Draftmen (My boss never thing about it, I could only get a standard AutoCAD, not AutoCAD-EMP).
I want to make it a tool for myself to analysis the building system, with excel (and VBA)
The first tool I wanted to create is an underground drainage capacity analysis tool. But I meet the first difficulty, how can I automatically transfer the information inside CAD drawing to the excel?
Say, There is a drainage system with 2 manhole and 1 pipe,
the Manhole have 3 attribute : Name, Model, Level, (and the X-Y coordination),
I Create a Block with attribute "Name ; Model ; Level".
and then I insert the Blocks and place it in correct location inside the Layout Plan.
How can I create some script to "Scan" all Block inside the drawing and make an excel file with data like:
Block-Serial, X-Coor, Y-Coor, Rotated Angle, Name, Model, Level.
View 3 Replies
View Related
Nov 25, 2013
We have generic drawings of assemblies we use in layout drawings as standard details. We insert them as blocks with one or two dimensions that vary (geometry remains the same-these are just representative for information).
We could define these as attribute values so that a user types a length that displays in the drawing but if we wish this to be part of a dimension we would have to explode the dimension to manually replace the mtext dim value with an attribute tag.
This seems unsubtle so I edited the dim value to be a field referencing the attribute value and made the tag invisible. This worked in the drawing-the attached shows the attribute tag ALL THREAD and the resultant dimension text (as a field value) replaced with the default value LENGTH.
When the drawing is inserted as a block it duly prompts for a value for ALLTHREAD and any value can be typed-`1200, 3500, 1672 etc. but the dimension does not update from the default value LENGTH, even after using attsync, regenall. So, if the drawing recognizes the attribute then how come it cant recognize the graphic via a field reference and update it? Is it buried too deep in the database hierarchy for LT to make sense of it maybe?
I dont want to explode the dim but it looks like I may have too if this cannot be made to work.
View 2 Replies
View Related
Apr 15, 2011
I found a lisp to get block attribute data to a other block. See attachment. I can only apply it to one block. I like to apply it to selected blocks or blocks in a group. Is this possible?
View 9 Replies
View Related
Sep 6, 2012
Autocad 2011, Electrical package,
I have an existing title block a few text attributes, to which I wish to add a watermark. I have added it in the block editor as a normal attribute, with the same details as the other attributes that work, only a different tag name. It has a default value, "DRAFT" and is tagged "WMARK". It works fine in the Block Editor, and If I test the block I can edit it to display whatever I want, but if I save the block and open it from Autocad proper, the attribute is not in existence, either as a default value, or editable from block properties, attribute editor or title block editor, whereas all of the other attributes are there. I have used BattMan to verify the settings of the attribute, and the only difference is that the others all have "L" in the "Modes" column, but I think that means that their position is "locked" whereas my new attribute is justified "aligned" therefore cannot be "locked" (This is some assumption on my part, as the documentation on the "Modes" column is almost non-existent). I cannot afford to waste much more time on this issue, as the boss is breathing down my neck, but editing watermarks on every drawing after every revision is frustrating, when it could be an attribute that is editable from the title block editor.
View 9 Replies
View Related
Feb 12, 2012
I need to match few attribute values from one block to different block. I download a lisp file called; ca.lsp which can match the single attribute value. I modified it for more than one attribute value matching. It is ok but still wish to overcome two issues for batch prcess
1. picking up the blocks by selection
2. click the alternative block numbers of times to match the numbers of attribute values I needed.
How to modify this lisp I can run it by block name selections instead of picking selection which enable me to run batch process for numbers of drawing? That will be good...
Lisp & Demo file attached (Match attribute value, A, B & C to Attribute 1, 2 & 3).
View 3 Replies
View Related
Jan 10, 2014
I'm working in a different department and can't figure out why the attribute box won't open when I insert their title block. I have checked that all the variables attmode, attdia, attreq, filedia, and cmddia are all set to 1 in both drawings. What am I missing? I'm using 2014. I'm attaching the drawing I want to insert.
View 4 Replies
View Related
Nov 20, 2013
I have a several drawings from an outside source. There are blocks in the drawing which I can not remove the attributes. I have tried exploding, erasing, and redefining block. This doesn't seem to remove all the attributes. That is I erase all the attritube that I can see while editing in place. When I save new defintion I have it replace existing block.One attribute remains.
I have tried to use Battman and resync. It allows me to remove all the attributes except one.Point is, I would like to keep the current blocks cleaned up in the drawing without having to go to each and put a new block and remove the old. Not sure of the origin of these blocks.I believe they came from an AutoDesk AEC source and may have been XREF into drawing.
View 5 Replies
View Related
Dec 30, 2013
I HAVE ATTRIBUTE TEXT BLOCK IN DRAWING TITLE AND IF I WANT TO ADD ANOTHER TEXT IN SAME ATTRIBUTE BLOCK
HOW CAN I ADD
View 1 Replies
View Related
Nov 8, 2013
Is there a way that I can create a block with text ('A') and when I insert the block and populate the block another block block will update also? I am wanting to create a block for x-sec flags, and detail callouts that update their detail titles.
AutoCAD Civil 3D 2012 SP4
Windows 7 (64)
View 6 Replies
View Related
Feb 28, 2012
Is it possible to create a text block attribute in part sketch mode?
View 2 Replies
View Related
Nov 10, 2013
Is there a way to create an attribute or MTEXT in a block where part of it is User defined and the other part is constant?
e.g.
"AUTOCAD = 12345 LAYERS"
Where "AUTOCAD =" and "LAYERS" are constant
and
"12345" is the user defined part.
The reason why I would like this is because i want to be able to Middle Center Justify the text and if i were to create 3 separate texts then it wouldn't be good (2 texts and 1 attdef)
View 5 Replies
View Related
Jun 10, 2013
I'm creating a block with a block attribute.
In the blockeditor I can change the draworder so the attribute is partly under some lines. But the draworder in the blockeditor of the attribute doesn't work in the normal modelspace; the blockattribute is allways on top.
View 9 Replies
View Related
Feb 19, 2013
I must be using the Enhanced attribute editor the wrong way. Every time I double click the attribute block the enhanced attribute editor opens the dialog box and I have to resize it so a can see all my tags. Then I have to click the tag I want to change then click the value to change it. To change a different tag I have to repeat that process over and over. It makes attributes a complete waste of time. It’s faster to change Mtext or Dtext. I must be doing something wrong. Is there a way to get the dialog box in the image to pop up when I double click the attribute block?
View 3 Replies
View Related
Apr 20, 2012
Every time I attempt to insert a block with an attribute in it from my tool pallet I get the error FATAL ERROR: Unhandled Acess Violation Reading 0x0020 Exception at 4260af08u.
If I insert a block without attributes it works fine. I even tried building a block in 2013 and then inserting it from the toolpallet, still fatal error's out.
View 6 Replies
View Related
Oct 17, 2013
I'm trying to create a dynamic block that uses a parameter and an attribute definition to determine the diameter of a circle in that block. I plan to export GIS points with diameter in the attribute table into a CAD file with the block definition. I'm having trouble figuring out how to set up the parameters to read to attribute definition and adjust the circle diameter. Using AutoCAD 2013
View 5 Replies
View Related
Jan 23, 2013
I am trying to create a leader that reads the block "name" and then places it into circle, or square at the end of a leader.
I see it in the "other" programs but I have plain ole Autocad.
Should be simple enough except my brain is locked in the clouds and im spinning around in circles.
Which may not be a bad thing, except NASCAR hasnt started yet.
View 1 Replies
View Related
Jul 3, 2012
I wanna transfer my attribute block values to another attribute text blocks , is there any lisp for that?
Is there a possibility for sum tag values of choice attribute blocks to inside of another attribute text block ?
View 2 Replies
View Related
Sep 4, 2012
We use a number of blocks with block tables for data extraction here, and whenever one of the blocks is modified and updated, all of the block tables reset to the default value. This happens for any block reference change, not just changes to the block table (which makes sense that it would reset).
How can we update these blocks without having to manually change all of the block tables afterwards?
View 2 Replies
View Related
Jan 24, 2013
I am in the process of fixing one of our dynamic blocks. It's a fairly simple fix where there was a typo in one of the names of our items in the lookup that needed to be fixed.
I changed the name of the item in the lookup table. I went and did the test block and it seemed to work fine, but when I bring the block into a drawing, it reverts back to the old lookup as if I did nothing at all.
I made sure that the path was correct and I even just dragged and dropped straight from Windows Explorer to no avail.Does AutoCAD keep referring to the old block? Did I forget to change something else?
View 3 Replies
View Related
Dec 3, 2012
my problem is whenever i make a new block a stretch point appears even if its not a dynamic block . also its not a stretch point, because when i click on it, it just move the block , and it always appear on the coordinates 0,0 it cause me a problem when I insert the block , autocad use this point as a base point , and its very far from the real block .
View 1 Replies
View Related
Oct 5, 2012
What I really want to do is on our fire alarm blocks we have 3 different attributes one for the address, the candela and one for misc info. I want to make an attribute that takes the number from the candela (15,30,75or 110) and change a different attribute to a value depending on which candela we use (such as 15=.078, 30=.113, 75=.195 or 110=.259). But I don't want the .078,.113,.195,.259 to print out on paper, I want to export block information excel file so I can add up all values.
View 2 Replies
View Related
Feb 2, 2012
I need to open a drawing and read the block attributes and find a block with name "ABC" and attribute named "Text" in "ABC" block. for which i am using the below code which is working perfectly.
Try AcadApp = GetObject(, "AutoCAD.Application") Catch ex As Exception AcadApp = CreateObject("AutoCAD.Application") End Try AcadApp.Visible = True Try AcadDoc = AcadApp.Documents.Open(DWGName, True) RichTextBox1.AppendText(" - Opened File Successfully" & vbCrLf) Me.Refresh() Catch ex As Exception RichTextBox1.AppendText(" - Can not Open this Drawing" & vbCrLf) Me.Refresh() Exit Function End Try Dim Obj As Object For Each Obj In AcadDoc.ModelSpace If Obj.ObjectName = "AcDbBlockReference" Then RibbonLabel1.Text = "Find Block: " & Obj.Name Me.Refresh() ' Check for attributes. If Obj.HasAttributes Then Dim AttList As Object Me.Refresh() If Obj.Name.ToString.ToLower = "abc" Then ' Build a list of attributes for the current block. AttList = Obj.GetAttributes ' Cycle throught the list of attributes. For _i = LBound(AttList) To UBound(AttList) ' Check for the correct attribute tag. If AttList(_i).TagString = "Text" Then return AttList(_i).TextString.ToString End If Me.Refresh() End If Next End If End If End If Next Obj
But i want to know whether is there any way to get the block named "ABC" directly without looping through all the objects.
View 2 Replies
View Related
Feb 21, 2012
I have a block content many attribute. When I'm create the block whit this many attribute, the order of this attribute is not properly. I know autocad have a command to class this many attribute in order but i search it and i don't know where is it.
View 1 Replies
View Related
Apr 19, 2011
I need to get the Attribute Collection of a named block which is not been placed in the drawing, but it does exist
Dim paaltype As String
Dim acDoc As Document = Application.DocumentManager.MdiActiveDocument
Dim acCurDb As Database = acDoc.Database
Dim acDocEd As Editor = acDoc.Editor
Using acTrans As Transaction = acCurDb.TransactionManager.StartTransaction()
paaltype = "paal01"
Dim acBlkTbl As BlockTable
acBlkTbl = acTrans.GetObject(acCurDb.BlockTableId, OpenMode.ForRead)
If acBlkTbl.Has(paaltype) Then
‘block exist, how to get the attributecollection
End If
acTrans.Dispose()
End Using
View 2 Replies
View Related
Sep 10, 2012
How can I add an attribute to a block without the other attributes to move from their position. With the ATTSYNC belongs unfortunately not because the old attributes moved back to the original places that I will not.
View 9 Replies
View Related
May 9, 2011
I wan't to append a new attribute to a new block. But I get an error that there is no database. The loaded file has no attributes
Dim mDialog As New frmPaalDefinitie()
For Each item In lvPalen.Items
mDialog.tsPaal.Items(item.imageindex).enabled = False
Next
mDialog.ShowDialog()
If mDialog.DialogResult <> Windows.Forms.DialogResult.OK Then Exit Sub
[Code] ........
View 4 Replies
View Related