How To Unblock A Block Reference In Autocad
The command EXPLODE explodes the block reference to its original definition (definition entities). The command ExplodeIP ('inherit properties', from the ExplodeIP utility - see Download) sets the properties of exploded objects to the layer properties of the layer which hosted the given block reference. To Explode a Block Reference Products and versions covered Advance Steel 2018, AutoCAD 2018, AutoCAD Architecture 2018, AutoCAD Civil 3D 2018, AutoCAD Electrical 2018, AutoCAD MEP 2018, AutoCAD Map 3D 2018, AutoCAD Mechanical 2018, & AutoCAD Plant 3D 2018. EXPLODE it, not in the Block editor, if that's where you're trying to un-Block it, but out in the drawing where you can select it as a unit in the Explode command. Or am I misunderstanding something? It is possible in newer versions to define a Block so as to not allow Exploding, so watch for that.
Similar Messages:
AutoCAD 2010 :: Block Control In Reference Drawing?
Jul 29, 2011 I'm using Architecture 2011, but the problem is pretty generic.
I am working with a very complex vendor drawing and using it as an xref to my working drawing. I need to be able to freeze parts of the xref and change colors (for plotting purposes) of other parts. Under ideal circumstance this would require simple layer manipulation.
My problem is that a large percentage of the vendor drawing is made up of blocks. There are nearly 1000 different blocks. Most of these blocks were created using layers other than 0 - quite often more than one layer is used. Sometimes the block is inserted on a layer that was used in it's creation, sometimes not. The only way I can omit one of these blocks from my drawing is to figure out what layer was used in it's creation and freeze that layer. You can see how this could be a pretty tedious process.
My limited CAD knowledge only gives me: edit all 1000 blocks, changing them to layer 0
AutoCAD .NET :: Inserting Block Reference Which Stored In Same Drawing / DB
Jun 5, 2012I am trying to write a function to insert a block reference of a block definition which is already stored in the same drawing.
All threads are leads me to the way of inserting another drawing to current drawing with use of database.readdwgfile & database.insert.
How to use those methods for a block definition stored in the same drawing.
AutoCAD Civil 3D :: Reference Surface (x) Not Found In Reference Drawing
Jul 28, 2011I am getting this error in my production drawings.
My setup is as follows:
- EG.dwg has my existing surface in it. I create a data reference to use it in other drawings.
- Level One.dwg has the EG surface data referenced in, and I use this to create alignments, profiles, and finish surface. All of these are turned in to data references.
- Storm Sanitary.dwg has my pipe designs. I data reference in the two surfaces, profiles, and alignments, and create pipe networks. I create references for these networks.
- Plan Profile.dwg is the production sheet I'm getting this error from. Every one of my civil objects is data referenced in to this drawing. Everything is inserted correctly, the pipes show correct FG surface elevations for their rims, etc.
BUT when I open this drawing, I get this error. I assume it's because my FG surface is not directly in the storm sanitary.dwg.
How do I get rid of this error, without combining drawings, or promoting the surface to one or more drawings? Isn't this exactly what data references is made for?
AutoCAD .NET :: Error While Changing Block Definition Of An Block Reference
Oct 21, 2013I'm trying to change block the definition of an block reference.
I did something like this:
blockreference.BlockTableRecord = newBlock.ObjectId;
In most cases this works well. However I found a case that it not work as well. When I try to change the definition from a new block that I have created in my test DWG, it disappears from the model.
AutoCAD .NET :: Determine If A Block Reference Of The Block Exist
May 3, 2012I have a block: “Block_A”. I am trying to determine if a block reference of the block exist.
Currently I would iterate every block Reference in the Block Table, and then dig deep into each block ref . . . . .
I was wondering if I could just take “Block_A” and see if it has reference and where the references are. Perhaps this is just wishful thinking but I was hoping for a faster way to obtain the references then to iterate thousands of blocks in each table record.
AutoCAD .NET :: Insert Block Reference Using Block Name
Nov 17, 2012Drawing contains a block with 'BlkName'. I want to insert blockreferences of this existing block using .Net. All shows how to insert a new block and then use the BlockID returned by the insert function. In my case I only have the block name and there is no Block id. How to get it or how to create a block reference of an existing block?
AutoCAD .NET :: Polyline 3Ds In Block Reference
Jan 11, 2013I have a weird problem with exploding block reference with vb.net as follows.
When I use BR.explode(DBObjectCollection), and append the entities in the object collection to model space,
the 3d Polylines inside the block reference do not get appended and I do not get any kind of error. The reason for this eludes me as of yet. (remember, simple polylines and lines and other objects do get appended to model space)
When I use BR.explodetoOwnerSpace(), the block reference explodes as it normally is expected to, but then I have no way to collect the objects from the exploded BR.
AutoCAD Map 3D :: Block Reference Scale
Sep 27, 2012I'm working with two different drawings to import Layers for Lot Grading and when I'm importing the Block Reference from the origin file, it's setup as Linescale 0.5, but when I import into my regular basemap, which is setup for Linescale 1, the text size is double what it should be.
AutoCAD VB :: Block Reference Rotation

I'm trying to write a vb script to extract information from the CAD drawing. While testing, i found that for some drawing blocks, the corresponding AcadBlockReference Rotation returns 1.57, but when i look at the actual drawing, block properties, the rotation is 0.
AutoCAD .NET :: Selecting In Block Reference?
May 11, 2010i need to use something with similar effect to Editor's method SelectCrossingWindow, but i need it to select object in Block Reference. How can i do that?
AutoCAD .NET :: Block Reference Attributes
Jul 13, 2012I have a block reference in a dwg that is a like a form, for example:
Written By: Diogo
Author: Diogo
Date: 13-07-2012
State: Check-in
In autocad this is a block, and on the attributes of the block reference I only can edit State and Author, and i would like to get all values. Because i want to fill those values of Written By, Author, Date and State by code. I can reach the attribute collection of the block but i only can see the State and Author.
AutoCad :: Explode A Reference Block?
Jun 14, 2011is ter any way to explode a reference block
AutoCAD .NET :: Select Block Reference By Attribute Value
Nov 29, 2012I have a drawing with many block references on it and they have some attributes.
I know how to find the block reference witch the attribute value, and even change it but I don't know how to select it once I have the object ID of the block.
How can I do the selection without asking the user to select it?
AutoCAD 2013 :: Label Block Reference
Aug 2, 2013I wonder if this can be done. i have a number of blocks which have labels to them i.e. JW1, JW2, JW3 etc. which corresponds to the block name. Is it possible to have the label automatically referenced to the block name so if i change the block name to JW10 the label within the block changes to JW10 as well.
AutoCAD .NET :: Get Block Reference Information Error

I get a block reference (has attribute) from other drawing as code follow:
Public Sub GetBlock_Info() Dim blockName As String = 'test' Try Dim doc As Document = Application.DocumentManager.MdiActiveDocument Dim doclock As DocumentLock = doc.LockDocument() Dim ed As Editor = doc.Editor Dim ofd As New OpenFileDialog('Select Drawing', Nothing, 'dwg; dwt', 'ATS detai drawing', Autodesk.AutoCAD.Windows.OpenFileDialog.OpenFileDialogFlags.DoNotTransferRemoteFiles) Dim dr As
[code]..........
AutoCAD .NET :: How To Fill Color For Block Reference
Sep 9, 2013 i have a .dwg fille with some block reference.
I want to fill color for block reference, but when I debug to hatch.appendloop function, I get message eInvalidInput, and block don’t fill color.
This is my
[CommandMethod('FillColor')]
public void FillColor()
{
Document doc =
Application.DocumentManager.MdiActiveDocument;
Editor ed =
doc.Editor;
Database db =
HostApplicationServices.WorkingDatabase;
Transaction tr =
db.TransactionManager.StartTransaction();
[Code]....
AutoCAD .NET :: Change Block Reference Attribute
Mar 7, 2010I have an issue regarding nested entity.
I have a nested entity block reference. In this entity I have three blocks. if I change any of the block reference attribute definition in the nested block reference then it is changing the original block itself.
Actually I am getting the handle of the selected block reference in the nested Entity. and change the attribute reference later. but it is making change in the block itself and other block reference too.
Here is my
static public void CONTACTS()
{
Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
Editor ed = doc.Editor;
string contactName = string.Empty;//to hold contact name, from xdata
[code].......
AutoCAD .NET :: How To Locate Text Near Block Reference
May 24, 2012I have tried to use intersectwith to locate text (MText or DBText) near a block reference. Some times it works and some times it does not. The hard part for me is understanding why it occasionally works when most examples are just duplicates with modified text and attributes.
My block reference has 4 attributes to the left (Right Justified) of a circle and 2 attributes inside the circle. The text objects are used by some CAD operators instead of the upper 2 lines of attributtes. (Guess they dont know how to modify attributes) I want to locate these texts and insert text into the corresponding attribute.
Block Reference:
Att 1 |''''| <-- CAD User will insert a txt over Att 1 and Att 2,
Att 2 | | <-- both attributes are usally left blank or contain a space
Att 3 | |
Att 4 |.....|
AutoCAD Inventor :: Title Block Reference?
Apr 5, 2012I have text in my title block that references part properties. If I have several different part and assembly base views on a sheet, how do I control which one the title block references? It defaults to the first one that was placed. I am using 2011 Pro.
AutoCAD .NET :: Get Block Handle From Attribute Reference?
Sep 21, 2011Is is possible to get the block handle from an attribute reference? I get the attribute reference from a previously stored attribute collection. I did try attref.BlockId.Handle.Value.ToString(), but it gives a different value, not the block's id.
AutoCAD .NET :: Move Block Reference Up Or Down Vertically
Apr 23, 2013I need to select a block in AutoCAD, and move it up or down vertically. I can get to the point where I have the user select a particular block, but after that, how do I get a reference to the block selected so I can move it up or down?
AutoCad :: Delete Objects In Block Reference?
Feb 7, 2013I have a block that I use as hatch (using superhatch), so the block appears several times. At the border of the hatch I want to fix some of the lines.
If I try to ungroup & explode the hatch, then the block appears outside of the hatch boundry.
So my question is if I can fix the lines so the hatch remains whole.
AutoCad :: Using Dynamic Block As External Reference
Dec 2, 2013Is there a possibility to use 'Dynamic Blocks' as an 'External Reference' having the ability to use their features at the same time?
The thing is I have dwg1 and dwg2 files and in them I use 'Dynamic Block1'. Whenever I update 'Dynamic Block1' in one of the dwg files I have to go to 'design center' and update the 'Dynamic Block1' in other dwg file.
AutoCad 3D :: Subtracting A Reference Block From A Solid?
Jul 26, 2013AutoDesk 2014 . I am currently trying to design in iphone case. So I downloaded a replica iPhone from grab cad:
how-to-unblock-a-block-reference-in-autocad.html
I imported it and formed a solid around it, now I am trying to subtract the phone from the solid so it perfectly fits within the case. It will not let me subtract it though because the phone is a reference block and the square around it is a solid.
AutoCAD .NET :: Using Block Reference As Point Symbol?
Jun 6, 2011I create a set of points in a drawing and create each point as a block reference containing the point, text and probably something else. Also I would like to use different symbols for points and each of the symbols is defined as a block definition, and for each point I create a block reference according to the symbol type. The question is if is there any way to 'combine' block definitions/references? I mean, I have common block definition for all points, whis defines somethin common for all of them. Also I have different symbols for each type of points and each symbol is defined separately as a block. But when a final point is created (containing common definitions and type-dependent symbol) I want to have it as a single block.
AutoCAD .NET :: How To Iterate Through Items Of A Block Reference In Dotnet
Apr 13, 2013I'm a newbie in dotnet and want to now if is possible to iterate through items of a block reference.
My problem is the following : I explode a block reference in dotnet (it works well) and I want to change the items layer that compose the bloc reference. It's the reason why i need to browse items of this block.
AutoCAD .NET :: Selection Filter On Block Reference XData
Apr 12, 2007I'm trying to use a Selection Filter on Block Reference XData value. But I get no hits, it works fine with Lines and Polylines that has the same kind of XData.
Is it a bug or do I have to define my Selection Filter differently when working with Block Reference?
Here is a part of the code :
TypedValue[] flt = new TypedValue[]
{
new TypedValue(-4, ' new TypedValue(-4, ' new TypedValue(8, 'POLYLINE_LAYER'),
new TypedValue(1001, 'Object_Id'),
new TypedValue(1000, '166448'),
new TypedValue(-4, 'AND>'),
[code].......
AutoCAD VB :: Updating Block Reference After Making Changes To Definition
Aug 23, 2013I have a small vba sub wich changes the color and layer of all entities inside a block. It seems to work pretty well for the majority of blocks, but then if I try that on a dynamic block, the definition is correctly altered, but the references aren't updated...
I know for a fact that the definition has been correctly modified because if I type bedit, I can see the definition is modified. Then, in the block editor, if I save the block, the references are correctly updated.
How to force references to update after I made the modifications inside the definition ?
I searched for methods within the VBA Reference and I tried blockRef.Update but it doesn't seem to have any effect.
AutoCAD .NET :: Unable To Access Block Reference In Database
Nov 23, 2012I inserted a block from a dwg drawing with the following method:
public static ObjectId InsertBlock(string fileName, Point3d insPoint) { var acadDoc = Application.DocumentManager.MdiActiveDocument; var blockId = default(ObjectId); using (var acadLockDoc = acadDoc.LockDocument()) { var dbTemp = new Database(false, true); dbTemp.ReadDwgFile(fileName, FileShare.Read, false, '); var blockName = Path.GetFileNameWithoutExtension(fileName);
[code]........
AutoCAD 2013 :: Turn Off Block Reference Dialogue Box?
May 23, 2013how to turn off the Block Reference Dialogue Box that appears when you put your cursor over and object or text?
Similar Messages:
AutoCad 2D :: Rotate Block With Attributes - Messed Attributes
Jan 23, 2012From the attached image you can see what I'm talking about.
(left=original, middle=ROTATE, right=PROPERTIES)
When I rotate blocks using ROTATE command everything is fine, but when I rotate blocks using PROPERTIES my attributes get messed.
I need to rotate several blocks at once with PROPERTIES, because I don't have time to rotate each one separately.
The same thing happens when scaling blocks, but this was resolved using the command BSCALE in the command line.
AutoCAD .NET :: Error While Changing Block Definition Of An Block Reference
Oct 21, 2013I'm trying to change block the definition of an block reference.
I did something like this:
blockreference.BlockTableRecord = newBlock.ObjectId;
In most cases this works well. However I found a case that it not work as well. When I try to change the definition from a new block that I have created in my test DWG, it disappears from the model.
AutoCAD Civil 3D :: Create Block With Attributes That Automatically Complete X / Y And Z For Insertion Point Of Block?
Feb 14, 2013Is there a way to create a block with attributtes that automatically complete x, y, z, lat, long for the insertion point of the block?
I am trying to complete text in paperspace that will automatically fill in the lat long of a point in model space without using a table. I have tried field insertion with reference to a cogo point, but it doesn't give options for position on a cogo point. If I pick a block with attributes, it will let me pick any attributes, and x,y position for the block.
Cogo points show all the information I need to propagate in the properties....but how do I get that to translate into the text using fields or some other method?
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
AutoCad :: Clicking Block Go To Block Editor And Not Allow To Change Its Attributes
Oct 26, 2012When the block is in a drawing and I click it, it takes me to block editor.
However if I go to it in block editor and test block it allows me to change the attributes.
Why does clicking the block go to block editor and not allow me to change its attributes as it does when I test block.
AutoCad :: Update Sub Block Entities / Attributes With Dynamic Block
Oct 31, 2013I would like to change sub block from a visibility after setting it. Here an example of code to get the right visibility, I don't really know how to update a sub block by name or by handle(seems to change inside dynamic block).
Dim Block As AcadBlock
Dim BlockRef As AcadBlockReference
Dim DynEntBlock As AcadEntity
Dim DynObjRefH As IAcadBlockReference
[Code]........
AutoCAD .NET :: Determine If A Block Reference Of The Block Exist
May 3, 2012I have a block: “Block_A”. I am trying to determine if a block reference of the block exist.
Currently I would iterate every block Reference in the Block Table, and then dig deep into each block ref . . . . .
I was wondering if I could just take “Block_A” and see if it has reference and where the references are. Perhaps this is just wishful thinking but I was hoping for a faster way to obtain the references then to iterate thousands of blocks in each table record.
AutoCAD .NET :: Inserting A Block Defined With Block Attributes

I can insert a block with block attributes using the Inter op very easily:
Dim theBlock AsAcadBlockReference
Dim pickScreenVBA = myDoc.Utility.GetPoint(, 'insert the hydrant')
theBlock = myDoc.ModelSpace.InsertBlock(pickScreenVBA, 'Hydrant', 1.0#, 1.0#, 1.0#, 0)
Dim varAttributes AsObject
varAttributes = theBlock.GetAttributes
varAttributes(0).TextString ='3 Ports'
varAttributes(1).TextString ='Salt water'
Works great, but when I try using the non-inter op, all the example insert new Attributes and not add block with existing attribute (so I end up with duplicate attributes for each block - i.e 'Salt water' attribute is added to the block each time I run the code),
Are they any examples that does the same as above using the non-interop code?
AutoCad :: Add Some Attributes To Existing Block Using Block Editor
Dec 12, 2013I'm trying to add some attributes to an existing block using the block editor, but after I save and close it I cannot see any 'placeholders' despite adding a default value and the attributes work fine when I double click the block.
I've tried using the ATTSYNC and BATTMAN commands but nothing works and there are no invisibility states applied to either the attribute or block and all layers are switched on.
I just tried making a quick block from scratch and it seems to have the same affect, except the default value will show, but no 'placeholder' shown if left blank.
I swear with previous version I could see the tag when a value hadn't been applied, so is it that the version I now use (2012) does not have this feature or it's disabled?
AutoCAD .NET :: Insert Block Reference Using Block Name
Nov 17, 2012Drawing contains a block with 'BlkName'. I want to insert blockreferences of this existing block using .Net. All shows how to insert a new block and then use the BlockID returned by the insert function. In my case I only have the block name and there is no Block id. How to get it or how to create a block reference of an existing block?
AutoCAD .NET :: Getting Block Attributes From Title Block
Sep 19, 2011I'm trying to chnage the text of the sheet number and total sheet number attributes for each layout in my drawing. I have code that adds and deletes the specified pages, now I need to edit the attributes to reflect the correct page and correct total amount of pages. Here is my code, based on my old VBA version.
I know there is a problem with the line:
For Each item In myBTR.ObjectId
I've used a number of websites and books, but I would really like to find something that teaches about block tables, block table references, block table IDs so I can get a better understanding of breaking stuff down to get the info I need.
Public Sub updatePageNumbers()
Dim myDWG As Autodesk.AutoCAD.ApplicationServices.Document
Dim myDB As Autodesk.AutoCAD.DatabaseServices.Database
Dim myTransManForPageNumbers As Autodesk.AutoCAD.DatabaseServices.TransactionManager
Dim myTransForPageNumbers As Transaction
[Code]....
AutoCad :: Global Edit / Block Attributes Rotation BACK To Match Block Rotation
Dec 13, 2012using AutoCAD 2009 (vanilla)
I got too smart for myself today in bringing an old drawing up to current standards...Everyone seems to want their block attributes to be zero - I have blocks where the attributes are best when they match the rotations of each blocks.
I have an old drawing that was rotated (as it should be) at approx 2deg.
I used a lisp routine to global edit all the blocks that needed to be at zero. BUT for some reason (and after hundreds of blocks were corrected), I noticed I now have two blocks that should NOT have been in the set have had their attributes rotated to zero....and the attributes should be at the same rotation as their block's rotation.
Because those two blocks have a fixed tic mark, I can click on the mark to see what the block rotation is, then rotate its attribute to that rotation, but I have hundreds of blocks! One-at-a-time sucks....
Any chance there is a GLOBAL way to edit an attribute rotation to match its own block's rotation?
AutoCAD .NET :: Get Block Attributes
Feb 29, 2012Function ReadDWG(ByVal DWGName As String)
Dim AcadApp As AcadApplication
Dim AcadDoc As AcadDocument
Dim Extracted_title As String RichTextBox1.AppendText(Path.GetFileName(DWGName)) RibbonLabel1.Text = 'Opening AutoCAD'
[Code]...
I am using the above code to read block attributes depending on the name. But now I need to read the active drawing (drawing will be open and should read from the active document). In the above code I have referenced interop.dll. without that can I retrieve the block attributes. How to read the block attributes from the active document.
AutoCAD .NET :: How To Get All Block Reference In A Drawing
Mar 29, 2013I need to get list of all block reference in a drawing without iterating through all entities in the drawing.
AutoCAD .NET :: Polyline 3Ds In Block Reference
Jan 11, 2013I have a weird problem with exploding block reference with vb.net as follows.
When I use BR.explode(DBObjectCollection), and append the entities in the object collection to model space,
the 3d Polylines inside the block reference do not get appended and I do not get any kind of error. The reason for this eludes me as of yet. (remember, simple polylines and lines and other objects do get appended to model space)
When I use BR.explodetoOwnerSpace(), the block reference explodes as it normally is expected to, but then I have no way to collect the objects from the exploded BR.
AutoCAD Map 3D :: Block Reference Scale
Sep 27, 2012How To Unblock A Block Reference In Autocad Format
I'm working with two different drawings to import Layers for Lot Grading and when I'm importing the Block Reference from the origin file, it's setup as Linescale 0.5, but when I import into my regular basemap, which is setup for Linescale 1, the text size is double what it should be.
AutoCAD VB :: Block Reference Rotation
Oct 22, 2013I'm trying to write a vb script to extract information from the CAD drawing. While testing, i found that for some drawing blocks, the corresponding AcadBlockReference Rotation returns 1.57, but when i look at the actual drawing, block properties, the rotation is 0.
AutoCAD .NET :: Selecting In Block Reference?
May 11, 2010i need to use something with similar effect to Editor's method SelectCrossingWindow, but i need it to select object in Block Reference. How can i do that?
AutoCad :: Explode A Reference Block?
Jun 14, 2011is ter any way to explode a reference block
AutoCAD LT :: Block Attributes With Variables?
Aug 7, 2013Using ACAD2014LT. I want to use the first variable attribute value as a variable in subsequent attributes in the same block. This will be extracted and used for tag references in a PLC program.
Along the line, i know I can change the enclosed character ( ' ), but can I remove it?
AutoCAD .NET :: How To Get All Block Attributes And Change It
How To Unblock A Block Reference In Autocad Free
May 22, 2013How Can I Get All Block Attributes and change it

AutoCAD .NET :: Insert One Block With 3 Attributes
Apr 24, 2013I have this one file .txt with this features:
Point North East Z Description
1 8618063,68 312415,09 75,87 T1
2 8618138,38 312428,89 70,57 B_RIO SECO
3 8618132,23 312427,75 71,90 ARENAL
4 8618126,23 312426,64 72,50 ARENAL
5 8618112,22 312424,06 73,77 ARENAL
6 8618099,78 312421,76 75,35 ARENAL
7 8618089,51 312419,86 75,84 ARENAL
8 8618132,23 312427,75 71,94 J
9 8618112,23 312424,06 73,88 J
10 8618099,82 312421,78 75,36 ARENAL
11 8618089,48 312419,87 75,85 E_1
And I generated this code for read this file and insert one block with attributes for each line of text…..
If txtPath.Text() = ' Then
MsgBox('Select DB .txt.', MsgBoxStyle.Exclamation)
End If
On Error GoTo ControlErroresBD
Dim AcadDocPt As Document =
[Code] ....
‘To the end of this line I can insert the block, but I don’t know how to write the attributes…… I tried with the next code but it doesn’t work…. My bloque has 3 attributes and every tag named with “PN”, “CD” and “CT”
Dim AcadObj As Entity
For Each acObjId As ObjectId In AcadBlockRef.AttributeCollection
AcadObj = AcadTransPt.GetObject(acObjId, OpenMode.ForWrite)
Dim acAttDef As AttributeDefinition = TryCast(AcadObj, AttributeDefinition)
[Code] .....
AutoCAD Map 3D :: Saving Map To DWG With Block Attributes
Apr 20, 2012I have used the FDO to connect to my SHP files. I have used one data attribute to get a rotation for my blocks. I have also used a feature Label to display the text I am interested in.
When I save to DWG, the feature labels come in as Text. I would like the text to go to the correct block attribute.
Is there a way to do this? I did not see anything in the Style Editor to use my blocks' attributes, only the geometry.
I am aware of using MAPIMPORT to set attributes from the data, but they do not come in rotated, and I have more conditions on which block to use, not just one field to decide the block name.
AutoCAD .NET :: Editing Attributes In A Block
Mar 15, 2012I'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]....
AutoCAD VB :: 3 Attributes With Same Dynamic Block
May 10, 2011I have 3 attribute in one block , i made 3 options for visibilty1
so i need in visibilty (1) i can show only the text 11
and i need in visibilty (2) i can show only the text 22
and i need in visibilty (3) i can show only the text 33
AutoCAD Map 3D :: Merging Block Attributes
Nov 5, 2012I have a autocad file displaying room layout of a floor. Each room has two blocks. One for displaying the Fixture / Fitment data and second for Room details (Room no, Area).
Is there a way we can merge the two block attributes in a single block with both attributes.
AutoCAD .NET :: Get Mleader Block Attributes
Sep 27, 2011I need reading the values from an Mleader object that contains a block. I can get attributes from normal blocks with no problem, but I am struggling with this.
I can get all the way up to casting the attributes, but when I try getting the Attribute Reference, the code crashes. How do I get the AttributeReference from the AttributeDefinition? As it is now, if I declare the AttributeDefinition, the values return as nothing.
Dim acDoc As Document = Application.DocumentManager.MdiActiveDocument Dim acCurDb As Database = acDoc.Database Dim acEd As Editor = DocumentManager.MdiActiveDocument.Editor ' Start a transaction Using acTrans As Transaction = acCurDb.TransactionManager.StartTransaction() Try Dim acBt As BlockTable =
[code].........
AutoCAD .NET :: Inserting A Block With Attributes?
Aug 11, 2011I have this code to insert a block (the block has Attirbutes) it bring in the block but strips the attributes. Here is the C#
[CommandMethod('PUTBLK')] static public void test() { string comp = 'C:test.dwg'; Document doc = acadApp.DocumentManager.MdiActiveDocument; //Editor ed = doc.Editor; Transaction tr =
[Code].....
AutoCAD .NET :: Inserting Block With Attributes
Dec 3, 2011I wish to insert a title sheet dwg, which has attribute definitions, as a block in another dwg. I can insert it, and if I explode it, the attribute definitions appear. Otherwise they are not added to the database.
I am using standard code, which I can attach. it starts
Dim btr As BlockTableRecord
..
Dim blk As BlockReference = New BlockReference(ip, blkid)
' insert block
..
btr.AppendEntity(blk)
If btr.HasAttributeDefinitions Then
ForEach attID As ObjectId In btr
etc.
but btr.HasAttributeDefinitions = False
AutoCAD .NET :: Edit Attributes Within A Block?
Oct 19, 2011I'm trying to edit attributes of a block but is giving error.
private void ChangingAttibutes1(ObjectId[] objectIdList) { for (int i = 0; i < objectIdList.Length; i++) { ObjectId objectId = objectIdList[i]; BlockReference blockReference =
[Code].....
AutoCAD .NET :: Scaling Block Attributes
Jun 4, 2013How can i scale a block have some attributes , with known factor ?
