AutoCAD .NET :: Explode Block With Attributes / Converting Attribute To Text?

Feb 7, 2012

I wrote this little piece of code (attached) that explode all the blocks in the current drawing.This is magical, compared with what we had to do in VBA.

This works perfectly but now I want to go deeper and managed blockreferences with attributes.Based on my code, I can determine if oBTR.HasAttributeDefinitions is true or false.

If the blockreference has attributes, I suppose I will have to use Explode instead of ExplodeToOwnerSpace.

My first question is, using explode, I need before to know in which space the blockreference is inserted (Model or any layout) so to insert the exploded entities correctly. So, is it possible from a blockreference to get its own SpaceId?

An another idea I had is to edit the blockreference (not the block definition) to replace attributes with text...

View 6 Replies


ADVERTISEMENT

AutoCad 2D :: Explode Block With Attribute And Keep Text?

Sep 7, 2011

how we can explode block with attributes and keep the text of attributes as is without changing to value

View 3 Replies View Related

AutoCAD 2010 :: Explode Block Without Losing Attribute Text?

Jun 18, 2013

I am using AutoCAD 2012 (Electrical).  I have a few blocks that I pasted in a drawing with text that is contained in attributes. 

I would like to explode these blocks so that I can make some changes to them, but when I do this, I lose the text that is contained in the attributes.  After exploding the blocks, I just see the attribute names rather than the text that they originally contained.

I hate to have to re-type all this info.  If I could somehow choose to choose to convert the text originally contained in attributes to plain old static text, that would be perfect for me.

View 4 Replies View Related

AutoCad :: Explode Block With Attribute Text Remaining As Text?

Apr 4, 2011

I'm using 2007 LT. I Would like to explode a block with the attribute text remaining as text.

View 9 Replies View Related

AutoCAD VB :: Converting Regular Text Into Attribute And Insert Block

Jan 7, 2012

I am using AutoCAD 2000i I would like to click a button, hide the form, pick the text, I'm only picking one text item, then insert the picked text into a block. Then put the text into the attribute in the block..Insertion point of the block next to the text item.

Private Sub CommandButton2_Click()
frmGetData.Hide
    'Set sset = ThisDrawing.SelectionSets.Add("SS3")
    Set sset = ThisDrawing.PickfirstSelectionSet
    sset.SelectOnScreen
   'For Each ssobject In sset
        'msg = msg & vbCrLf & ssobject.ObjectName
[code]....

View 2 Replies View Related

AutoCAD 2010 :: Explode Attributes To Text - Turning Blocks Into Entities

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

AutoCad :: An Attribute That Is Multiplication Of Two Other Attributes Within Same Block

Oct 21, 2010

I have a block with several attributes. One of the attributes is the result of mulitplying two or more of the other attributes together. I want this to be calculated automatically everytime one of the attribute values changes.

They need to stay within the same block (I think) for when i extract the data to a text file.

If its not possible with attributes, will fields be any better? (I know even less about those than I do attributes!)

Also would need to work on LT and full AutoCAD?

View 9 Replies View Related

AutoCad :: Fields In Attribute Of Different Attributes In Same Block?

Dec 21, 2012

I made a dynamic block (REINF_ID) with attributes that i will use to determine the reinforcement of structural walls on elevations. I inserted an attribute called LIGN1 which will be visible and the other attributes such as DIA(bar diameter)-SPC(rebar spacing)-POSITION(rebar position) will be invisible.

Now, in the block editor i want to insert 3 fields in the LIGN1(visible) attribute default value that will link to other attributes in the same block. example: LIGN1 default = 25M(DIAattribute) @(text) 300(SPCattribute) EF(POSITIONattribute). When i insert my block in a dwg and i decide to modify the DIAMETER(invisible attribute) from 25M to 30M for example, I want the value in the LIGN1 attribute to update to show the new DIAMETER.

When I regen, it does not modify the attribute (LIGN1) 25M to 30M, it keeps the default value of the attribute (25M).

View 0 Replies View Related

AutoCad :: How To Define Attributes Of Title Block Using Enhanced Attribute Editor

Sep 10, 2013

I was given a customers title block but there are no defined attributes. I'm using AutoCad Electrical 2010. I have to double click on the title block and the edit block definition box pops up. I select the block to edit and click ok. I would like to use the enhanced attribute editor on these title blocks. Is there a way to define the attributes on this kind of title block using the enhanced attribute editor?

View 9 Replies View Related

AutoCAD 2010 :: Converting Existing Blocks With Attributes To New Dynamic Block

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

AutoCad :: Why Text Disappears But When Explode The Block It Is Back

Nov 15, 2012

I have created an attribute say 1 and made a circle and moved the attribute text next to the circle and now making a block including both text and circle but when the block is created the text disappears I have made sure to check the annotation on in both attribute and block creation. This is just happening in Autocad Map 3D 2012. Dont know why the text disappears but when i explode the block it is back.

View 9 Replies View Related

AutoCAD 2010 :: Echoing Data From One Attribute To Other Attributes (or Text Objects)?

Nov 16, 2012

I have a drawing template (block) where the drawing number is displayed in two locations (attributes). The same value has to be entered in both attributes.

Is there any way of "echoing" the data from one attribute to other attributes (or text objects)?

View 2 Replies View Related

AutoCAD Civil 3D :: Transferring One Block Text Attribute To Another Block?

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

AutoCAD 2013 :: Editing Block - Dims Text And Arrows Grow Larger When Explode Or Burst

Dec 17, 2013

I have received details that have been blocked that I need to edit. When I expode or burst them, the dims text and arrows grow larger than is required for the block and I cannot find any adjustment in the properties to bring them back to the correct size for the detail. Also the leaders lose their point and association with their text and become just a line.

Is there a command that will allow me to edit the block without loosing the current sizing and associations?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Check Block Attribute Then Change Different Attribute In Block

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

AutoCad :: Modify Text Attributes Associated With A Block

Jul 9, 2013

Is it possible to link Autocad to MS Access?

I want to modify text attributes associated with a block based on the input into an access database. I've read I could link the two using DB Connect, but so far all I've gotten is the Data View - Summary.

View 3 Replies View Related

AutoCad :: How To Make A Block With Attributes Text

Sep 13, 2011

How to make a block with attribute text (like showing on sectioning?) a circle with arrow then line and there is editable text on the top of line or editable text inside the circle..

View 9 Replies View Related

AutoCad :: Rotate Block - Text Attributes

May 10, 2013

How I rotate a block but set the text to stay readable.

At the moment I have a 600x600 light fitting with a Tag inside for typing the letter of the fitting. E.G. Type A, B, C

I have a rotate function also so I can rotate the fitting to the orientation of the room.

But when I rotate the fitting the text rotates also, therefore if I turn the fitting round 90 degrees the text is on its side. How do I rotate the block but leave the text orientation the correct way?

View 9 Replies View Related

AutoCAD 2010 :: Attribute Text Twice In A Block?

Apr 27, 2012

I need to create blocks in which the same text appears twice.  I've created an invisible attribute to hold the text and created two mtext object containing fields that point to the attribute value.

The text fields show the default value of my attribute but will not change when the attribute is set on an placed instance.  After setting the attribute on an instance I've tried UPDATEFIELD and REGEN but still I see the default value.

View 1 Replies View Related

AutoCAD 2010 :: Attribute Text In A Block

Jul 23, 2013

whenever I make a block with attributed text the block works just fine when I insert it into a drawing like normal.  However if I try and open the block drawing by itself the attributed text just turns into normal text after I get this message "Orphan Attdef Objects found & Converted to Text".  This problem seems to happen on two of our machines but a third co-workers machine still works fine. 

View 9 Replies View Related

AutoCAD .NET :: Block Attribute Text Color

Oct 31, 2012

I am looking to go through a whole drawing and change the text color of any block attribute to say 0 as the drawings I am receiving have all the text at a weird color. I was unable to find anything on the forum. I already have a routine that changes text of certain blocks based on layer, but I want this to change the color. Below is code I used for the layer change I talked about earlier.

publicstaticvoid strFind(string sFind, stringsReplace)
{
string str = "";
Document document = Application.DocumentManager.MdiActiveDocument;
Editoreditor = document.Editor;
Transactiontransaction = document.Database.TransactionManager.StartTransaction();
[code].......

View 1 Replies View Related

AutoCAD 2013 :: Add Another Text In Same Attribute Block

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

AutoCad :: How To Create A Block / Attribute / Text

Apr 18, 2013

I am wondering if it is possible to create some sort of block which will detect the angle it has been rotated to and present this angle as a text? For eg. to calculate the superelevation and present it as a multileader with 3.00% above it.

View 2 Replies View Related

AutoCad 2D :: Backmasking Attribute Text In Block

Dec 9, 2011

I am building a block with some attribute text and I need to be able to backmask the text. The properties menu does not have a backmask option for the text attribute when I open the block in the block editor.

I am using Autocad LT 2011

View 1 Replies View Related

AutoCad :: How To Insert A Text Attribute To A Block

May 11, 2011

How would i insert a text attribute to a block that i have already made? Does it give me the option to make the text vertical & horizontal before blocking it for use?

View 9 Replies View Related

AutoCAD .NET :: Moving A Block Having Associated Visible Text Attributes

Sep 18, 2008

I am using managed classes to insert multiple block references into model space. I wish to insert a block and then move it (change its Position) which I can do. The problem is that my attributes associated with this block reference do not move.

View 6 Replies View Related

AutoCad :: 2013 LT MAC - Block Attributes / Cannot Edit Text

Jul 7, 2012

I have been using blocks for P&ID's for about 3 months now, and had no issues. But for some reason when insert a block now the attributes window does'nt pop up, so i can't edit the text ? The only way i have been able to get round this, is by using property inspector to edit the text

View 3 Replies View Related

AutoCAD Architecture :: Explode Destroys The Small Block Inside Bigger Block?

May 30, 2012

I have a block containing several parts blocks. When I explode the main block all of the parts are exploded back to lines. I have used both "explode" and "xplode" and have the same results.  How can I explode so I have my components as blocks?

View 6 Replies View Related

AutoCAD Architecture :: Attribute Block Text To Layer 0?

Apr 1, 2013

I am ACA 2013.  I received a file from an equipment company and has these blocks that are huge in file size, so I am cleaning things up on them.  Their blocks have multiple layers in them with different colors and linetypes.  I see the setbylayer command and it works, but not all the time.  On some of the blocks, they have attribute text in them.  the individual lines of the attribute are on different layers.  I want to keep the info, but set all to layer 0.  then I can move it to the block to the layer I want. 

another question, is there a way to make an outline of a block?  Some of these blocks are so detailed that I want to make a simple outline and then delete the block.

View 3 Replies View Related

AutoCAD 2010 :: Copy Text From One Attribute To Another Within Same Block

Feb 3, 2012

Is there an easy way to transfer the text inserted in one attribute and copy it over to another attribute in the same block?  This is for a titleblock.  We are currently using AutoCAD Electrical.  We need to do this on over 10,000 drawings so we would like to be able to write a script or lisp routine so we could run a batch across all of the drawings.

View 6 Replies View Related

AutoCad :: Inserting Text Attribute In Title Block

Nov 13, 2013

starting a new job at work so setting up the job folder etc. grabbed the title block and the text attribute insert from the library.....

so here is when the issue started.....so title block and text attribute are both saved in model space, both have all the same settings, this also applies to the template we have here all match.

so i xref in my title page at 1:1 which comes in normal, then i insert my attribute block in at 1:1 but it comes in at some super size thing, normal 3.5 text size is now 1000......

have fiddled with everything gone back to the library set etc but got no idea.

the interesting bit is if i open the title block and insert the attribute block in, it comes in perfect......

so in saying that i am assuming it is the work template..... but none of this has changed for over a month and have created drawings since then........maybe a random setting somewhere has changed but again haven't done anything different to normal no new radical changes....

i have attached a copy of the title block and the text attribute.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved