AutoCAD .NET :: Can't Select Block After Redefining It
Feb 24, 2012
after I redefine a block (I make it bigger), I can't select the block by clicking on the part that's gotten bigger. It is as if AutoCAD still remembers the outlining of the previous smaller block and if I click outside this outlining it doesnt select the block. If I save, close and reopen the drawing everything is fine and I can select the block as normal.
// Insert from dwg file.using (dbInsert = new Database(false, true)){ dbInsert.ReadDwgFile(strDwgPath, System.IO.FileShare.Read, true, ""); oidInsert = dbActive.Insert(System.IO.Path.GetFileNameWithoutExtension(strDwgPath), dbInsert, true);}// Regenerate the drawingCADS.Application.DocumentManager.MdiActiveDocument.Editor.Regen();
I'm using blocks inserted into drawings to provide the background for the drawing which I'm working on. e.g an architects building layout inserted as a block and then used as the background in an electrical layout drawing.
This drawing being used for the background has been edited to remove various details and layers and give a cleaner background to my drawings, and is saved as its own dwg file. It is then insert as a block into numerous drawings for use as the background.
My question is - is there a way the block can be redefined once inserted into a drawing, without having to re-inserting it via the normal insert > block route, which would prompt the 'redefine block' option. I want to do this so that I could make further changes to the dwg file used as the background (such as the architects building layout), and quickly update drawings with this inserted as a block.
I have a title block that when inserted in the drawing 1st time all is well, colours are correct, close the drawing down & re-open & all the colours are redefined to the layer it's inserted on.!
Now, if i press U (undo) 3 times it reverts back to it's orginal state, colours etc. find attached F2 info:
Redefining colors for block: _a0_J .undo Current settings: Auto = On, Control = All, Combine = Yes, Layer = Yes Enter the number of operations to undo or [Auto/Control/BEgin/End/Mark/Back] <1>: end .regen Regenerating layout. Command: Autodesk DWG. This file is a TrustedDWG last saved by an Autodesk application or Autodesk licensed application.
Now if I do the same thing in MEP2012 all is well! !
I had a set of drawings that I needed to redefine a block in and had to go into each drawing and redefine it seperately. Is there a way to redefine it once and then possibly select the drawings this block is redefined in?
In previous versions of AutoCad I would just double click on a block do my changes click the save changes button and then a save dialogue would come up with an option to change the insert point. Did this option go away in 2013 AutoCAD? I do not get this option anymore after I finish editing a block? This is very useful. Why would this go away?
I have come across a situation whereby when a user redefines a block in a drawing it is changing the draw order of the xrefs.The block in question is the Plan frame, and is located in paperspace. The user redefines the block and the xrefs change their draw order in the viewport. A regen does not unfortunately correct the issue.Drawings were created with Civil 3D 2010. The plan frame block is a dynamic block.
I have a series of logos that we use. I would like to have them setup in a dynamic type block that would allow us to select the block and choose from a pull down that logo to use.
I have see it done before just don't know how to replicate it.
As you scrolled through the choices as each one was highlighted it would display that one on the screen.
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 am creating a new set of drawings but using information from an existing set. On the existing set there is a reference of an image of our company logo in the format. The path for the image is to the my pictures folder for the previous drafts person. Is there a way to redefine this path or do i have to reinsert the image. The format is not a block.
I am creating a model for CFD analysis, but I accidentally oriented the entire model and assembly the wrong way--Is there any way to reverse the direction of the +z axis?
I know that you can select all instances of a block reference by using QSELECT and specifying Block Reference and then where "Name" equals your given block name.
Is there a way to quickly select a block by name (exactly like the above), and then 'afterwards' reduce that selection down to just those blocks where attribute X is equal to a given string?
I have a lisp routine that uploads all the blocks contained within a specific folder and inserts or redefines all blocks of the same name within the current drawing.
My problem is that when I run the routine I prompts me that it can't fine the folder? I created a folder called "blocks" and is located straight onto my C:..........but it still doesn't work.
;FUNCTION TO UPDATE ALL BLOCKS WITHIN A DRAWING ;FROM A SPECIFIC DIRECTORY
I 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?
I have a C#-WPF-Application. In this application there is a list of blocks in my drawing. When I click one of these blocks in the listbox I have several button-functions.
One of them: Select the in the list selected block in the drawing.
Another: Explode the in the list selected block.
I found several topics with Selection, but none of them worked for me. I'm looking for a selection via ObjectId or blockname of a single block, in the most cases the selectionfilter needs an array(?).
Dim editor As Editor = Application.DocumentManager.MdiActiveDocument.Editor Dim db As Database = HostApplicationServices.WorkingDatabase Dim tr As Transaction = db.TransactionManager.StartTransaction()
[Code].....
the only prob is : I want selec all block but not the block on layer frozen, off or not visible...
I can check all layer stat on each block.. (i do that already for check each block (name) but i want a solution more easy.)
What order of operations do you use to include multiple attributes in a WBlock definition? I can't figure out to include all of attributes and have them in a specific order.
what I'm trying to do is have the program select the block and then I want to get out of it what the Block Name is, so I can then compare it to the list of block names that I want the program to move. Here is what I was trying to use:
When I select a block, all points contained in the block are shown. How do I turn this off? I want to select the block and have only the insertion point showing.
I'm having an issue with using the SSGET to select a block so I can move it. I'm changing the UCS to be at the center of the top view in the program(user selects center) and the block is at 0,0,0 after changing the UCS. However when I use SSGET it doesn't select it. So I used:
(setq en(car (entsel " Select a block :")))(setq enlist(entget en))
and it lists the DXF Code of 10 as
(10 15.0893 13.5165 0.0)
How can I then select it if I don't necessarily know where the block is going to be?
If needed: AutoCAD 2013 User using Visual LISP for editing LISP and DCL files Also I have AutoCAD 2011 currently still available for us, but we are using AutoCAD 2013 for 99.9% of AutoCAD use
I have blocks forming a column, and I need to allow the user to select the top block of the column but return the bottom left corner of bounding box of the bottom block in the column.
(DEFUN NXT-INSPNT (/ BLKLST CURENT CUROBJ IDX IPNT MCMD NENT SEL SS VENT) (PROMPT " >> Pick the Category HEADER to add note:") (SETQss nilss (SSGET ":E:S" (LIST (CONS 0 "INSERT"))) ) (IF ss (PROGN (SETQ sel (ENTGET (SSNAME ss 0)) iPnt (CDR (ASSOC 10 sel)) ) (princ iPNT) (setvar "attreq" 0) (VL-CMDF "-INSERT" "LEG-NOTE" "S" 1 iPnt 0 PAUSE)
[Code] ....
I'm not exactly sure where my code is failing but I get the following error.
For a program i am working for i have to extract the base point of a dynamic block.
This can be done perfectly by this function:
(cdr (assoc 10 (entget (car (entsel)))))
But i want the entity selected based on a previous slected point. So for example when i selected pt1 (which is a point at the border of the dynamic block) i want to be able to extract the base point on the block whit this point.
I want to select a block, and drag it to a new spot. Then, I want to select another block in the same image and drag it to another spot, and repeat over and over. 3 years using the gimp and I cannot do this yet.
What I do is drag one area, save and close the image, then open the image again. Is this the way the gimp works?
I accidentally turned something on in Autocad, and I want it to go away, I have no idea what it's called or how to get it gone. It's akin to the "select other" window in Inventor when you select at the intersection of several objects.
Right now, when i click one object and then another, the first object becomes deselected. Holding shift is the only way for me to select multiple lines right now (other than dragging of course) but that's not what I'm used to and it annoys me a lot. At first everything is fine but then after a while it does this without me changing any options at all.
master im new in autocad 2014....i have a problem now when i select line or object it highlight or make a broken line....but when i select the other object or line my previous selected back to normal..i mean i can select only one line if i use single selecting....how to select all object or line with single select continuously, except using hold left click...
When I click the select tool, a brown selection type of rectangle appears in a particular area of the illustration, even though I have not clicked on the illustration yet. I assume it is some type of warning indication, but don't know what. P.S. It is draggable and scaleable - I can move it off the artboard. An example: