AutoCAD .NET :: Selection Set Selects Circles And Blocks
Apr 26, 2011
I have a selection set filter set to get only circles and blocks (INSERT). Then it gets to a part of the code that says for each object in my group of objects... do something.
The first few lines of the "do something" are:
For Each bgaObjID In bgaObjIDs
Dim myBlockRef As DatabaseServices.BlockReference
myBlockRef = bgaObjID.GetObject(DatabaseServices.OpenMode.ForRead)
If it's a block, then it's just fine. If it's a circle, it crashes. Obviously circles aren't blocks and that's why it crashes. I'm trying to set up an If..Then statement so that blocks use one set of statements and circles use another. I've looked at the values for the object ID, but cannot tell how to determine if it's a block ref or a circle.
If it's a circle, I would use:
Dim tempCir As Circle = TryCast(bgaObjID.GetObject(DatabaseServices.OpenMode.ForRead), Circle)
The “window selection” selects only what appears on the screen! I wanted to select a page number located on the lower left corner of each title block of each drawing but found out that the “window selection” doesn’t keep selecting what doesn’t appear on the screen (if zoom in is applied)! For example, if I select a number of drawings and “zoom in” is applied then the window selection will only keep selecting what appears only on the screen!
Then how to let the “window selection” keep selecting all the objects regarding whether they appear on the screen or not?
I have 3 circles, randomly spaced. They will always be the same size. I want to resize them all about there centre points using just one parameter in the properties fly out. I've created individual linear/stretch for each circle, but I can't work out how to combine them.
Experimenting with visibility states, and though I've searched this group I find no mention of whether or not it is possible to insert a dyna-block with the visibility state preset from LISP.
Example: I have a block with several defined visibility states. Is it possible to have that block insert with not the first VS but maybe the 3rd or 4th VS?
What I am trying to do is create a selection set of blocks with the same name. Then step through the selection set and if the block has an attribute "Tag" with a Specific "Value" then get the insert point.
I have to obtain a selection set of blocks (by window selection and/or single-picks if the user desires) and then an attribute value which I have previously assigned to a variable called TAGVAL to the attribute tag name called PART in that selection set of blocks.
I found a cool routine called RepAtt, but it isn't quite set up to do what I need...
I'm trying to make a logo. Circular logo with an inner ring maybe 4 px wide and 15 px inside the rim of the outer circle.
Basically I want a blue circle with a yellow inside ring. What's the best way of doing this? The only thing i can think of is: creating a blue circle marquee, and then another (trying to estimate a new circle size and change the color) that is yellow, and then making another smaller blue circle inside the new one. That's just ugly.
I tried the edit/stroke but that just gave me a stroke around the outer circle; it didn't put a ring inside the circle 15 px down.
Also I tried to contract the original circle by selecting it, then Modify/contract. That's got me a selected ring, inside the circle. Now how in the world do I make that little ring yellow? It just remains selected and I can't seem to find a way to color it.
I found a lisp to get block attribute data to a other block. See attachment. I can only apply it to one block. I like to apply it to selected blocks or blocks in a group. Is this possible?
I have just developed a problem where I can only snap to the origin regardless of where my cursor is. I have tried snapping to midpoints, endpoints, centers, etc. it always selects the origin. I even tried to change the origin to a point I want to draw from, but it sends me right back to the original origin.
I made no changes in the software setup - it started when I opened an existing drawing, and now it affects any drawing I start or open.
I have an assembly with a subassembly in it. The subassemblies bom structure is set on Normal so that the subassembly number shows on the main assembly BOM and not the individual parts.
However when I place the parts list on the .idw of the main menu it keeps on selecting the parts structure for the BOM, I need it to select the structured view. How do I get it to select the structured view on the BOM so that the BOM does not show the individual parts of the subassembly?
I have made sure that the parts view on the BOM in the source assembly is disabled.
I have only one user with this problem. He tries to edit an attribute block and when he selects one of the values and erases it the default value doesn't erase. He then has to enter some text and erase that and it works.
For as long as I can remember, across all versions of Autocad, I've had problems picking the right item on the popup menu for object snap (shift-right click). It frequently picks the item below the intended one, i.e. it will pick Parallel rather than Perpendicular. Trying a second time works every time. This problem has been so consistent that I don't believe it is user error. The item is highlighted, after all. There is no way I'm repeatedly missing it. Is it possible to calibrate the mouse in Autocad?
is it possible to write a plug in that runs when a user does something.example. you start inventor and open a assembly file the user selects a part and the plugin automatically runs.no pussing buttons, no quick key, it just runs.
I would like to automate an action set that selects a raster image (linked file) that has been grouped with vector art and then converts that selected raster image into a vector (live trace)
About once a day, when I click on an object with the direct selection tool, the bounding box will be way larger than it should, implying another object on another artboard is included in the selection.
This happens when the object I am selecting is NOT grouped with anything else. Moreover, is seems buggy because the mystery object doesnt have its "edges" visible the way it would if it were legitimately selected.
I can deselect all, but then anything I click on, the selection's bounding box is expanded to include the mystery object. The only way I have found to deal with it is to drag a corner of the bounding box, then undo, and then click off again. Then Voila! I am able to select my object (or any other) without the mystery selection happening.
I use clipping masks a lot, as well as many artboards, and have wondered if it's related to this, as the mystery objects are sometimes masked images, and often on another artboard. However, the mystery objects are not always masked.
I had it with CS5, and hoped it would go away with CS6, but it has not.
i tried restarting gimp but it did not fix my problem. All of a sudden, out of nowhere, my fuzzy select tool selects WAY too much even at a threshold of 1. at 2 it just selects the whole picture.Re-installing did not fix.
i am creating black/white based icons. So it is a 48x48 image. i am mainly trying to fuzzy select black, white, and transparent selections. As you can guess, it has become impossible now and i don't know what i did.
EDIT: Okay so it actually isn't selecting "too much" per-say. i willt ry and explain the best i can here:
Black and white image with the exception of some shades inbetween.Select fuzzy select and put threshhold at 1. Click. Selects all the white (i actually think it misses some). i hit SHIFT and click on a pixel that is slightly not white. VERY SLIGHTLY. In fact, it may actually be white. It fuzzy selects EVERYTHING.
Another example on an image that is Black and Transparent (with shades inbetween) Slect black on threshold 1. It selects All the black AND all the shades inbetween. Eveything except flat out transparent. i hit CTRL and select a shad einbetween and it deselects everything.
EDIT 2: Doesnt matter the threshold apparently. It will do this on any.
EDIT 3: The solution, after all, was so save these problematic images as JPG and then open them as the JPG.
Often when working with the brush tool a very strange bug arises.Instead of the brushstrokes being visible in a normal way, the active area around the brush becomes a large square shape, slightly brighter than its surroundings.What this means is i can t see what im painting because a large square blankets the area around which im working. very strange its like the brush is selecting vectors around it as im using it.the actual painted area then become visible again when i release the mouse.i have managed to overcome by restarting LR, but is just keeps happening after using the brush tools for a while.
When I enter into "quick mask mode" and paint in an area on my image that I want my selection to be, then enter out of "quick mask mode". The entire image is selected. It's like a did a "Command A".
Also how do you change the color of the "quick mask mode"?
i can't be the only one who thinks it's nuts that when 'auto-select > layers' is selected and i drag to select a bunch of layers, i also select layers that are turned off and/or locked, can i?i just confirmed that this IS not the case with CS6 -- locked or hidden layers are not selected upon dragging to select exposed layers.
is this a bug, or a bit of new functionality that i am failing to grasp? i did notice that in CC, on right-click there is the new option to "isolate layers", but this seems to just isolate & unclutter layers within the layers panel.
I am following a tutorial Using Layers in PSE 11. The presenter selects the Elliptical Marquee tool to edit cuts. I do not see the Elliptical Marquee tool in my PSE 11?
(defun CELBLKS ( / e blk ss blkl) (setq blkl "" ss (ssadd)) (while (setq e (entsel "
[Code]....
i have this lsp, it works great but how can modify it if i want select with a window.? exemple: if i have 3 differentes blocks, i want to select them with windows and the lisp select all blocks that are identical of those 3.?
We have a new title block which now contains various fields to automatically populate the drawing number, number of sheets, issue etc. The problem we have is when we go to zoom all or extents on a layout tab it moves the layout to the right each time. If we only have one layout or we use a plain title block i.e. with no fields, the zoom works fine (layout stays put in the center). This is also true if we directly insert a field onto the layout - again no problems.
The cause of the problem only happens when a block containing a field is inserted onto the paper space of a layout and,there are multiple layouts containing blocks with fields.
How do I manipulate a height parameter all of the dynamic blocks in the drawing from one single field? Say a field located in the drawing properties or on the drawing itself.
For example: Multiple blocks of different walls of same height with other blocks of things on located on those walls, dependant on the wall height, all linked to and changed by a single field. Possibly a Wall Height field located in the custom tab of the drawing properties.
I can pickout each of the blocks and change them at the same time in properites menu because they all share the same parameter name. I would just like to have that height parameter of every block in the drawing, that has that specific parameter controled by a single field. Which I could enter a new height at anytime that would change every block in the drawing to that height.
We used a bespoke program to convert our drawings to Java applets for web usage. This does not cope with dynamic blocks at present and we have started to receive drawings from our clients using them.
I need to replace this with standard static blocks based on one of two criteria. Either:
1) Replace based on visibility state (have generic chair block with multiple different chair types set by visibility type, need to replace depending on which type it is set as)
2) Replace based on parameter (have table with size set by dimensions, need to replace with static block for each dimension)
I have over 100 blocks that I need to add the exact same objects and visibility state to. Is there a way to globally make this change, or even to copy the visibility states from one block to the next without having to recreate the states in each block? I thought I had previously run across a routine on here that would make changes to multiple blocks at once, but I can't seem to find it now.