AutoCAD 2010 :: Unnamed Blocks With Lots Of Associated Garble
Sep 25, 2013
Somehow, every time we copy/paste from certain drawings, it brings in 9000+ unnamed blocks. Buried in these blocks are several thousand extraneous linetypes, etc. The blocks do not appear to contain any actual drawing objects, and are virtually unselectable. But the drawing size increases exponentially. Once a drawing is “infected” any item that is copied from it “infects” any drawing that the copied item is pasted into. Needless to say, this creates very large, slow files that are practically unusable. We have relied on copy/paste for notes, details, etc. and only recently started seeing this crop up.
Purge does not get rid of the blocks. We have tried a map query, which seems to ditch the extraneous stuff. But we lose our C3D object intelligence, and that process is far too cumbersome to run on all our drawings. We have tried the following lisp code that I found related somewhat to this topic a while back:
(vlax-for n (vla-get-blocks
(vla-get-activedocument
(vlax-get-acad-object)))
(vl-catch-all-apply 'vla-delete (list n)))
(princ))
Problem is, it deletes blocks C3D seems to need, so again the drawings are rendered basically useless. how to clean the drawings up and or stop the spread of “the plague”
I tried to attach a "blank" drawing that demonstrates the issue. I literally pasted a single line into it, and it is over 9MB, so it would not attach....
I had started a new drawing on our template and worked on it for an hour or so. I had not saved it or anything so it was simply titled "Drawing2.dwg." Well, during a simple text command AutoCAD decided to crash. It said it could try to recover the drawing, but when I looked around for it I couldn't find it anywhere.
I've had this happen before...is there ANYTHING that can be done or did I just lose all my work?
When i attempt to open an IGS file i get "an unnnamed files contains an incorrect path"
I thought it could have been a corrupted file but its not.Tried to create my own IGS file (successful) attempted to open that and failed.Downloaded an IGS file from Autodesk, failed as well.I was having issues opening other files but i updated the video drivers on my Dell M6600.
I need Recursively go to all bomrows and child rows if present in the Bomview Model Data ("Unnamed")
I have the below code but i only goes one level deep.
I tried the code from the inventor that does the trick on a structured bomview but i will fail if you have a virtual componenent that has the same partnumber as a part inserted in the assembly. then it finds the first insertet and errors on the next?
i have to recursively go to the "Unnamed" bomview here the below code does not fail and works, but as written only one level deep, i need all levels?
Public Sub UpdateThisFileBOMRowProperties14062013() 'ByVal oBOMRows As BOMRowsEnumerator) ', ByVal ItemTab As Long) oApp = GetObject(, "Inventor.Application") oAsmdoc = oApp.ActiveDocument ' Set a reference to the BOM Dim oBOM As BOM oBOM = oAsmdoc.ComponentDefinition.BOM
When working with an IAssembly I keep getting an error message that reads "an unnamed file contains an invalid path." I cannot seem to find a problem anywhere.
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.
I have received a drawing from another company that has blocks. When I try to rotate the blocks to an angle through the properties dialog box or by entering an angle at the command line, I am not able to. The value is always set to "E". I can rotate it graphically by placing points on the screen, just not through a key in. It seems like there is a lock on it.
Many of the blocks my company uses were created with the linework within the block on Layer 0, and set to ByLayer.
When I insert it into a drawing, I put the block on a layer other than 0, and use that layer to control the color & linetype.
If I Xref a drawing, and want to turn off or freeze a layer I use the Freeze and Off buttons in the layers section of the ribbon (I'm working in 2012). This way, I don't have to figure out what layer an object is on to turn it off.
Here's the problem: When I try to freeze or turn off a layer by clicking on a block, it doesn't do anything to the layer that the block is on. It tries to effect layer 0. Even if I use the list command to find out what layer an object is on, it says it's on 0.
I found this article that seems to explain how to use layer 0 in blocks: [URL] ....
It seems my company is doing things exactly as that writer recommends. But it still seems incredibly faulty.
What is the best way to design and work with blocks? I always try to avoid using layer 0, but that would waste a lot of time trying to override the company standards.
My scene has about 10,000 objects in it, so it's tough to find that unnamed object...
It doesn't seem to matter much, but it's annoying- every time i render a frame I get: // Error: (Mayatomr.Geometry) : unnamed object is not a mesh, ignored // // Error: (Mayatomr.Geometry) : unnamed object is not a mesh, ignored // // Error: (Mayatomr.Geometry) : unnamed object is not a mesh, ignored // // Error: (Mayatomr.Geometry) : unnamed object is not a mesh, ignored //
I have inherited the task of maintining out companies tool palette for all standard blocks. In my efforts I have found a number is issues with the blocks and have made efforts to update the blocks, first using bedit and then by navigating to the palette directory folder where the .dwg files for the blocks are stored. Regardless of these files being changed the palette still inserts the block revision prior to my changes. I have even re-imported the template file to no avail.
Is there a way to have to palette reference the updated files or is there a better way to update these blocks so the palette recognizes the changes immediately?
I am using Autocad 2011 and created a dynamic block which turned out fine.
After making a copy of this dynamic block and doing some additions to this new block (added several flip parameters), I found that when I run my mouse over this new block it lags. I have attached the drawing which contains both the blocks. The one on top is the problematic block whereas the bottom one is the one I created first and made a copy of.
I have several script commands that insert items such as title blocks (xrefs) and page boundaries (blocks). The base point and INSBASE for all files are set to 0,0,0. However the blocks will occassionally come in at different positions. In some cases I can repeat the command multiple times and each time the same block will inset at a different position in the same drawing even though the insert point is set to 0,0,0.
We've recently converted all our microstation drawings to autocad now that the company has decided to go with one cad program company wide. One of the issues we are having after getting the drawings back from the this co. converting them is the cells to blocks conversion inside the drawing. when we open a drawing and see a "Fuse" block for instance and if it a has multiple inserts, it named them:
Fuse Fuse_1 Fuse_2 etc....
is there a lisp routine or some command that would replace the "Fuse_*" blocks with "Fuse"..I've been searching the forums and know about the express tool Replace Block but need to be able to automate somehow. I thought about trying to rename each of the "Fuse_*" but of course it won't let you rename to a block name that already exists.
I am doing electrical drawings with the architect giving me an exported DWG from Vectorworks. I have XREF the background drawing that when opened is about 6 blocks of the building background and 2 blocks of the electrical devices.
Here is the problem: The architect sent me an updated DWG that only has the electrical updates without any backgrounds. My thought was to purge all and then select all the items and then copy with basepoint. Then open the original architects XREF drawing. Select those two electrical block, erase them (or move them to the size a fixed distance). Then paste as block from the other file. Then move the block to the correct location, explode, done.
Big problem: I just tons of this error in the command line referencing different block group numbers being ignored:
Duplicate definition of block Group-1265-1 ignored.
Then the block that was pasted added a background that wasn't in the old drawing and many of the items in that block was either missing or still had the old symbols. Can't figure out how to update the background with confidence that it is really updated with new information and not keeping old.
If I open a new drawing and paste that block in, everything comes in perfectly
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?
I have a drawing that have blocks in them I cant find inserted. I cant purge them or the linetypes they have. How do I strip them out if I cant find them to explode them?
I've been searching for a routine to explode minserts but haven't found anything yet that works. However, this one did. It's a vlx.
Just copy it to your Support folder and load it ("AP"). Type "explodem" at the command line to run it. It first asks you to select the block; it then asks you if you want to explode? [No/Yes] Enter No. Yep, enter no. (I know; I tried Yes but it wouldn't work...might be just me though cuz I'm a bit dyslexic; either that or the programmer may be?)
I need to make block with certain random elements in it which regenerate when the block is copied. In this case it's the rotation of the main part of a drawn tree, In which I want the trunk to stay the same but for the polyline that makes up the leafy part to rotate randomly.
I have been working for a new company who likes to use blocks extensively. My question is this, is it possible to quickly change the layer of the components of a block? That is, the lines, arcs, etc of the block. Or, is the only way to explode the block, change the layer and remake the block?
I am having a problem with a bunch of existing drawings. The drawings displayed fine with Autocad 2009 but with 2010 the blocks have huge rectangles drawn around them. (so big they extend off the title block) We have a few machines running older versions and the drawings display fine but any machine with 2010 all displays these boxes.