AutoCAD .NET :: Set Block Like In Selection Preview
Sep 4, 2012
I've got the ObjectId of the block (BlockReference & BlockTableRecord also).No I want to style it like if I just select it (selection preview style -> dash & thicken).How to do this via C#/VB?
Why does this keep turning off? When I start up ACLT 2013, both boxes are checked. I just went to use the program again, didn't close the file even, and the boxes were unchecked, ie. nothing would highlight as I moved over them.
My office is launching 2013 and the one issue that is really bothering me is the selection preview variable keeps getting reset <0> and I cannot figure out what is causing it?
I like to have the selection variable set to <3> and my selection cycling set <-2> so I can hold down shift and tap space bar to visually cycle through overlapping objects but this is very difficult to do when the selection preview variable resets to none <0>.
I think the new box popup in this release is very bothersome and would like to figure this glitch out.
I insert a block with Database.Insert(). I get the insertion point with Editor.GetPoint().
What I would like is to see a 'preview' of the block that is to be inserted, while selecting the insertion point, similar as AutoCAD's INSERT command. Is that possible and how?
I have blocks in a drawing that were made using the 'retain' method. WHen I go to insert the block I cannot see the block preview at the crosshair cursor. The block only becomes visible once I have clicked the left mouse key at the insertion point.
This means I can't rotate it either as I can't see it until I have clicked to place it.
Which system variable (And what setting) will allow me to see the block as I'm inserting it?
I'm trying to select two specific types of blocks from a drawing so that I can create layouts for each one of the pairs of blocks in my drawing. Basically, one block is the outline of the piece of the drawing and the second contains information about the drawing. I would like to select all of the outline blocks and then create a selection to get the second block which is inside the bounds of the first block.
I'm not sure how to create a set of typed values to do this. Here is my code so far which sets up a filter to get the first block and then for each of the blocks that it finds, it would select the block with all of the information which is where I am having problems. I don't know how to create a filter based upon location of the block.
using (Transaction tr = acCurDb.TransactionManager.StartTransaction()) { filList = new TypedValue[] { new TypedValue((int)DxfCode.Operator,"<and"), new TypedValue((int)DxfCode.Start,"INSERT"), new TypedValue((int)DxfCode.BlockName,"D-1*"), new TypedValue((int)DxfCode.Operator,"and>")}; // Build a filter list so that only block references are selected filter = new SelectionFilter(filList); //Select all res = [code]........
I'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].......
I have a problem with selecting all references to a specific dynamic block. When I use the filter below only block “D2” is selected, which is not a dynamic block, Block "Bulb120227” which is a dyn block is not
Dim values() As TypedValue = { _ New TypedValue(0, "INSERT"), _ New TypedValue(-4, "<OR"), _ New TypedValue(2, "D2"), _ New TypedValue(2, "Bulb120227"), _ New TypedValue(-4, "OR>") _ }
How should the filter be done to filter out the dyn block that I want several block should be filtered out in one selection.If it is possible to achieve with just a filter at all?
How to get the individual components of a block that has just been exploded within a lisp routine into a selection set. I want to alter the layer of each element to the insert layer of the block. I may also make one or two other changes according to what I find in the block.
It's possible to create a dynamic block programatically? I want to create a command that captures different selection sets of drawing objects and assign them to different Visibility States of a new block deffinition, on run time.
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?
Working in Illustrator CS5 on a Mac. When choosing a color in the palette, the preview showing up is different than what is in the palette. If I hit "OK" the actual color chosen is the one in the palette, not the preview window... Including some pics for reference. In my 10+ years of using Illustrator, i have never seen this.I am using a Dell monitor on a mac... not sure if that would make a difference.
Here's the situation. I have a block that will be inserted showing a piece of angle iron that is used for a stiffener. We have various sizes that will need to be used. Instead of typing in the angle size each time it's inserted can I have a list of all the angle sizes and then a pick box or radial dial or something to be selected and that is what is put in the block?
I recently bought a Nikon D7100. I took some test shots and imported the images to Lightroom 4.4, then generated 1:1 previews for all the images.
Previews zoomed to 1:1 in Library Mode are noticeably soft. The image below is a screen shot of the Library preview:
Moving to Develop View produces a higher-resolution 1:1 preview. The image below is a screen shot of the Develop preview:
Look at the bricks and window screens to see the difference.
This difference occurs immediately after import (with a User Preset applied during import). Once any Develop work is done, the Library preview updates and displays at full resolution.
This problem makes doing initial editing/selection of images time consuming, because I can't determine the sharpness/quality of imported images until I've done some kind of Develop adjustment on each image.
I'm trying to edit a set of titles made in Premiere in After Effects, and after I import the file (as a Premiere file) then load the sequence into the timeline; the preview is just a black screen throughout the entire preview. The titles never show up.
When I select a hatch or polyline or any object with grips for that matter, and hold down shift to select multiple grips on the object or objects and then press my middle mouse button to pan or scroll it to zoom, the grips that I have selected de-select, meaning I have to set up the view so that all the grips I want to move are visible before selecting them.
This is only happening on some drawings (although it is most of them) and only when I use 2012 not 2011. Which system variable it is that has gone screwy that I need to reset? or is it something else?
I have a flexible sub-assembly in my top assembly. Sometiems I'm trying to demonstrate to others how a mechanism in the sub-assembly works using this flexibility feature. It works great, but when I move just one little part of a flexible assembly, Inventor displays the wire-mesh of the entire flexible assembly, because technically the entire assembly is selected, even though I'm only moving one part. It clutters up the screen very badly, detracting from what I'm trying to show.
Is there a way to prevent Inventor from displaying the selection lines? Either only when I'm moving a part in a flexible assembly (which would be great), or to just turn them off completely when I'm presenting like this? I know I can turn off pre-select, but that doesn't work, because once I start moving a part in the flexible assembly, the assembly is "selected" and the wire-mesh displays.
When creating a selection Command using the PromptXXXOptions and PromptXXXResult. The entities are selected on the current view, but once the selection ends the entities return to an unselected state.
Is it possible to leave them in selection mode.
I want to this, because it will be better to use Editor.SelectImplied() instead of saving the last selection object Ids.
I've created a lisp that draws the boltholes of a pipe flanges, using the correct number of holes, at the correct diameter at the correct bolt-hole diameter and then rotates. Everything works seamlessly, when i do just one flange. But I've discovered that fewuently there will be mulitple times when a user will have to perform the command.
So the idea I had was to do the following:
Select all circles with (setq CirclesFirst (ssget "X" (list (cons 0 "CIRCLE"))))
Go through the code to create the new circles.
Select all circles with (setq Circles (ssget "X" (list (cons 0 "CIRCLE"))))
Remove selection set "CirclesFirst" from "Circles".
But what for some reason (command "_.select" Circles "R" CirclesFirst "") does not work.
A feature notably absent from the Oil Paint filter is any way to temporarily disable the effect (e.g., not preview it).I happen to like using Oil Paint to make refllections in the surface of water smoother and more "liquid" (which involves turning off the "Shine"), and it would really be nice if I could easily gauge the amount of the effect easily by blinking back and forth between original and processed image with a quick "disable preview" functionality.
With most standard filters, one can either uncheck a [ ] Preview box, and/or click the mouse button down on the image to temporarily show what the image is like without the effect.Yes, I know I can turn the Stylization down to 0.1 and see how a very minimal amount of the effect can be applied. And I can look at the original image in Photoshop proper, but of course that can't be zoomed while the Oil Paint filter is active.
Also, the zooming / panning seems kind of stiffly implemented.In summary, the more or less standard and expected filter features I'd like to see added to this (new class of) GPU-accelerated filters are:Preview/No Preview capability. It doesn't have to update Photoshop, just the preview display in the filter itself. I suggest a [ ] Preview checkbox and/or an on-mouse-click temporary effect disable.
Modal click and drag Zooming vs. Panning - i.e., based on a Zoom or Pan function selected (e.g., via an icon along the left) vs. having to hold modifier keys down. I personally would want it set to Zoom by default, not Pan. Since the filter has scroll bars (a Good Thing), I would have thought Zoom would have been a better default as it is. I have implemented these things in my own GPU-accelerated plug-ins, so I know that all the infrastructure Adobe needs to support them is already in there. These changes are controls only and should be trivial to implement.
I am using MacBook (late 2008) OS X 10.9.2 and recently upgraded to Lightroom 5.3 from Lightroom 4. After a while, some photo started to show exclamation mark at the right hand corner of the photo (*.CR2 raw files in NAS) in grid view. When I click on the exclamation mark, it shows a dialog with following message; "Lightroom has encountered problems reading this photo". So, I moved previews.lrdata, which is about 9GB, to the trash and restarted the Lightroom 5, expecting Lightroom 5 to create a new previews.lrdata. However, it won't create any preview at all.
exclamation mark at the top right hand corner of the photos in grid view.
Just downloaded LR 5 and noticed that I cannot jump back from a Publish Service folder preview to a different folder preview in grid mode. The only way to view photos in another folder is to restart LR 5. This only happens when I am viewing photos in a Publish Service such as Flickr.
I updated from LR 4 using Creative Cloud installer.
We use a number of blocks with block tables for data extraction here, and whenever one of the blocks is modified and updated, all of the block tables reset to the default value. This happens for any block reference change, not just changes to the block table (which makes sense that it would reset).
How can we update these blocks without having to manually change all of the block tables afterwards?
I am in the process of fixing one of our dynamic blocks. It's a fairly simple fix where there was a typo in one of the names of our items in the lookup that needed to be fixed.
I changed the name of the item in the lookup table. I went and did the test block and it seemed to work fine, but when I bring the block into a drawing, it reverts back to the old lookup as if I did nothing at all.
I made sure that the path was correct and I even just dragged and dropped straight from Windows Explorer to no avail.Does AutoCAD keep referring to the old block? Did I forget to change something else?
I have a block containing several parts blocks. When I explode the main block all of the parts are exploded back to lines. I have used both "explode" and "xplode" and have the same results. How can I explode so I have my components as blocks?
We're using C3D 2013 SP2. The survey company we use uses point styles to show the blocks. Say they shoot a catchbasin. Instead of inserting the block, the point shows up as the block.
I did a field check & needed to insert a missed CB. When I inserted the block, the other points that were CBs disappeared. I had to insert the block, copy it the clipboard, undo the insertion & then paste the block in. It did this on other drawings & other blocks.