I'm sure I've seen it here before and have probaly forgotten how to do something that is simple although how do I change an inserted block (A) into block B? i.e. if I select 1000 instances of Block_A I want them to all be converted into Block_B (without editing Block_A) where Block_b is already defined in the CAD file.
I was wondering if there exists an Autocad command that would allow the user to click an object, and then "highlight" all instances of the object. Refer to the attached pdf -hopefully it can convey what my words cannot.
For example:
The block name is "resistor" and there are 10 instances of this block. When I click the block "resistor", a dialog box will open, displaying the 10 "resistor" blocks.
When I select one of the ten "resister" blocks, that block will become highlighted. The reason for this is that I am building a very large electrical drawing, and this feature would make it infinitely easier to navigate. I know this feature exists in Matlab and I was wondering if Autocad allows for this kind of command.
I have a block with an attribute and need to change the first three characters of each to a different two characters. I recall my instructor once showing me how i could do this easily without having to click on each block to change the attribute.
I have a part called "bracket" which has a multi-value parameter "mass" which can be 100, 200, 300, or 400 and controls the width of the bracket.I have an assembly into which I have placed thee brackets.
How do I set different parameters for each of the instances of "bracket"?I want one bracket with mass = 100, one with mass = 200, and one with mass = 300, such that I have three brackets of different widths.
I must not be searching on the right text in Google because I find only ways to change the value of the parameter within the core component (such that all brackets change and end up the same width).
I'm having difficulty making a change to multiple texts. I received a drawing from another firm that uses different text styles than my firm. I can change all the text styles to mine, but they all hold onto their original fonts. How to change the fonts in multiple instances.
I have created a dynamic block with a stretch, flip and rotate. Everything works great in its file. When I insert it in another file, the grips move but the block does not change.
i have tons of column tags but wants to change the distance between column size and the circle and make the font smaller. I can do this individually but can't do one by one..... is there any way i can adjust all by one command or one magic touch?
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")
How to access the BTR, read and write BRef, attDef, AttRef etc. But this has me stumped. There are a few different examples but can’t find anything that works and don't know why.
I have inserted a block in modelspace, I have the BlockRefID and now want to change its attribute values. This finds the attributes tags but doesn’t write the sValue. Why it isn’t writing the value to the block.
Public Sub ChangeAttributeValue(ByVal BlockRefID As ObjectId, ByVal sTagName As String, ByVal sValue As String)
Dim doc As Document = Application.DocumentManager.MdiActiveDocument Dim db As Database = doc.Database Dim tr As Transaction = db.TransactionManager.StartTransaction() Dim br As BlockReference = DirectCast(tr.GetObject(BlockRefID, OpenMode.ForWrite), BlockReference) [code]........
I recently changed a block that i then re-saved to a different palette on my tool palette. i deleted the old block out of a current drawing and when i go to insert it i get the old block back and not the new one. if i open up another drawing and insert the block its the new one.
i have a title block in the layout tab which i use for all new docs. when starting a new drawing i open my old one, delete the drawings and save it with a new name - this way i always have my title block how i want it in the Layout 1 tab. this has worked for me so far. but now I need to create an A3 print out.
i have created the picture that i need in modelspace but when i click in the viewport within the layout and select the scale that I have been asked to use, the pic becomes too big for the page.
when i go into page setup i can select a3 and preview this but it just shows my a4 page in the middle of an a3 page. so how to i make the titleblock and viewport bigger (to fit a3)?
I try to place a block on top of another one, and make the new placed block the same same size as the other one. But the block scalefactors doesn't change.
Public Function FixtureConditionOverLayTest(objID as objectID) As Boolean Dim db As Database = acApp.DocumentManager.MdiActiveDocument.Database Dim trans As Transaction = acApp.DocumentManager.MdiActiveDocument.Database.TransactionManager.StartTransaction Try '--Get Block Ref [code]....
But I use the same block "5dPlano" through COM, it works fine
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].......
I have a problem: There are a lot blocks in my DWG with 3-5 Attributes. I change the Values of the attributes in the .Text String but they aren't set as default values of the block attribute. Now i want to set the actual value as default / initialize value of the attribute without entering every time in the block editor
with the following code its possible to change the text string. I can set the attribut.textstring as default value?
Public Sub changedefault() Count = ThisDrawing.ActiveLayout.Block.Count For Index = 0 To Count - 1 Blockstring = ThisDrawing.ActiveLayout.Block(Index).ObjectName [code]......
For some reason the line type scale is way out to lunch on one of the lines in a block i use, so i was wondering if you can change that LTS without exploding the block, or if i can change the LTS for the layer that specific line is on without exploding the block
I want to change the text "A" in my dynamic block to "B,C,D,E,..." When i click on a blue arrow. and the text "16 A" to "20 A , 25 A, ..." When i click on another blue arrow. Text Dynamic Block.jpg
I need to connect to specific instances of AutoCAD and Plant3D. The Running Object Table (ROT) only holds one instance so GetObject wont work.
I've tried getting the correct instance using the hwnd with the AccessibleObjectFromWindow function. I'am thinking the easiest way is to autoload a plugin to communicate with, maybe through a service.
I can find which images are attached to my current drawing with the following code. However, I don't know how to find out how many times they are attached.
Using tr As Transaction = db.TransactionManager.StartTransactionTryDim nod As DBDictionaryDim imageDict As DBDictionaryConsole.WriteLine("Getting ACAD_IMAGE_DICT DB dictionary")nod = CType(tr.GetObject(db.NamedObjectsDictionaryId, OpenMode.ForRead, False), DBDictionary)imageDict =
using ACadLT 2008. i'm creating a frame sheet for my firm. i created attributes inside a block. when double clicking, the attribute dialog will lunch and i can type the info, but...
i need instances of the same attribute among the sheet so for example the "date of submission" and the date i keep in the "history" are always the same, i don't want to enter twice the same date.