AutoCAD .NET :: Selection Filter On Multiple Layers?
Apr 25, 2012
to select object on a single layer
Dim strLayer as string = "road"acTypValAr.SetValue(New TypedValue(DxfCode.LayerName, strLayer), 2)
how do you select all objects on multiple layers
Dim strLayer as string = "road,sidewalks"acTypValAr.SetValue(New TypedValue(DxfCode.LayerName, strLayer), 2)
the above does not work. how do you select all objects on multiple layers?
View 3 Replies
ADVERTISEMENT
Aug 7, 2012
I use a lot of Group Layer Filters so I can turn things on/off quickly. My problem is I have been creating my Layer Filter Group by right clicking on the Layer Group Filter>going to Selection>then click Add> then go back to my drawing or Layout tab and select all of the layers I need then click enter. One day my AutoCad would not let me do that anymore, and even after I click on enter it gives me an error message saying the command is still active. Now from my Layer Properties Manager I can select any layer and drag/drop it into any filter and it works, but I really need to be able to select things within the model space or paper of each layout tabs.
View 0 Replies
View Related
Jun 26, 2012
Before I start looking for work on transforming PSD's into working websites, I would like to learn some of the functions and features of Photoshop Creative Suite 5.1.
I recently learned:
Ctrl + Win + Click on Desired Layer… To make a selection around the layer
Then I clicked on, "Refine Edge"… I was able to make a perfect selection around what I wanted using this feature. Very nice, by the way.
There were multiple layers, I merged the visible ones to make one layer. All of the stuff that makes up the banner, at the top of the page. My question is:
Can I make a selection around multiple layers, i.e. buttons, other pictures, etc.?
Side note question:
Does the document size have any effect on the overall size? Meaning: let's say that banner up top is 775 pixels across & maybe about 450 pixels tall… That's about the size of the image (the selected layer). The document size is laying on, is also 775 pixels across… But, 950 pixels tall. Will that document size have any effect on load time for a webpage?
View 9 Replies
View Related
Jun 29, 2012
people want to move multiple layers together. I know how to do that. I want to move a selection in two (or more) layers together. I'd also love to know how to use the free transform tool on a selection box in multiple layers.
View 5 Replies
View Related
Jul 12, 2011
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?
View 9 Replies
View Related
May 23, 2011
The following code filter all lines which are in the layer "0" and line weight is 0.35. But it does not. my selection set is empty.
Dim typVal(2) As TypedValue
typVal(0) = New TypedValue(DxfCode.Start, "LINE")
typVal(1) = New TypedValue(DxfCode.LayerName, layName)
typVal(2) = New TypedValue(DxfCode.LineWeight, Convert.ToInt16(0.35))
----------------------------------------------------------------------------------------------------------
Dim sf As SelectionFilter = New SelectionFilter(typVal)
Dim ss As SelectionSet = ed.SelectAll(sf).Value
View 1 Replies
View Related
Jun 4, 2012
AutoCAD 2012
C#
Windows 7
I need a selection filter to find text objects within a rectangular area using dxf operators (do not want to use Editor.SelectWindow).
Whats wrong with the following code attempt?
It causes Fatal Error!
TypedValue[] tv2 = new TypedValue[15];
tv2.SetValue(new TypedValue((int)DxfCode.Start, "TEXT"), 0);
tv2.SetValue(new TypedValue((int)DxfCode.Operator, "<and"), 1);
[Code]....
View 4 Replies
View Related
Dec 11, 2012
I wonder if its possible to apply a filter to a subset of entities (that could be the result of a previous filtering).
View 8 Replies
View Related
May 17, 2012
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]........
View 2 Replies
View Related
Sep 28, 2011
I'm using a typed value list to create a selection filter to use with Editor.SelectAll(filter) method. The selection returns both frozen & un-frozen entities. Is there a way to filter out frozen objects using the filter?
View 2 Replies
View Related
Apr 12, 2007
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].......
View 3 Replies
View Related
Apr 23, 2013
I'm putting together some quick function that I can send 2 arguments and get from it the total area of a given hatch on the given layer. I think everything is in order but I'm having trouble with the selection set filter:
(DEFUN GET-HATCH-AREA (HATCH LAYR / area sset) (COND((AND(ssget "X" '((0 . "HATCH") (2 . HATCH) (8 . LAYR))) (SETQ area 0) (VLAX-FOR H (SETQ sset (VLA-GET-ACTIVESELECTIONSET (VLA-GET-ACTIVEDOCUMENT (VLAX-GET-ACAD-OBJECT)))) (SETQ area (+ (VLA-GET-AREA h) area))) (ALERT(STRCAT "Total area = " (IF (OR (= (GETVAR "lunits") 3) (= (GETVAR "lunits") 4) ) (STRCAT (RTOS area 2) " sq. in. (" (RTOS (/ area 144) 2) " sq. ft.)") (RTOS area) ) ) ) (VLA-DELETE sset) ) ) ))
View 9 Replies
View Related
Jan 6, 2010
I am trying to create selection set entity xdata(1001, 1000,1000) features like text,line,lwpolyline,insert....etc.
But its working only on linear features not working on remaining features, why?
View 4 Replies
View Related
Feb 8, 2012
I converted a drawing in pdf format into dxf. I'm using Autocad 2012 to edit the file. The dxf conversion is good, but of course there is no difference between the diffent kind of lines.
I would like to select all lines which have an orientation of 30° with the horizontal and put them into a new layer. Is there a way to do that ? I though about using a filter.
Then I will edit the properties oh those lines (color, thickness, type....).
View 9 Replies
View Related
Sep 21, 2011
Any settings where you can switch on/off the selection filter popup? Mine is just gone. Under application options I don't see anything to do with switching it off.
View 2 Replies
View Related
Mar 22, 2012
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?
View 7 Replies
View Related
May 26, 2013
how to convert multiple selections to multiple layers or multiple files with one go?
View 6 Replies
View Related
Jul 28, 2012
I have determine that my AutoCad 2009 will allow me to drag/drop layers to an existing Group Layer Filter, but it will not allow me to right click on the Group Filter>Select Layers>Add. Once I go to the model space an select layers then "enter" no layers are added to the Filter Group and it gives me an error message that says "unable to modify layers while another command is active".
View 0 Replies
View Related
Oct 10, 2013
I was wondering how to develop a Selection Set Filter that will select only Cogo Points? I know I need to use Dxf.Start as the code, but then what's the string associated with Cogo Points? Can't find any documentation on this or any Civil 3D-unique entities...I know Line is just "Line" and "Arc" is just arc...but Polyline is the unintuitive "LWPolyline" and "Cogo Point" isn't working.
View 5 Replies
View Related
Apr 20, 2012
I have some strings like the ones below. They are always in the same format. The first line is Cold Water, the second is Hot Water and the third is Hot Water Return.
I want to build a selection set based on whether it is CW, HWS or HWR. Right now I have a routine to retrieve the string by using ENTSEL. In other words if I want to use the line of text for Cold Water I have to select it.
I'd like to be able to window them all and filter the SS for only the string containing CW and conversly HWS and HWR. SSGET function filter.
"2''CW-52.0 WSFU"
"2''HWS-48.0 WSFU+12 GPM"
"1"HWR-12 GPM "
View 8 Replies
View Related
May 30, 2012
I am trying to filter all used layers in Layer Properties Manager. Is there a simple way to do this? I am coming from a Microstation background and that has a column for Used layers.
C3D 2012 sp1
W7Pro 64bit
HP Z400 Workstation
16 GB RAM
Intel Xeon CPU W3565@3.20GHz
NVIDIA Quadro 4000
View 3 Replies
View Related
Aug 5, 2011
i know how to apply a filter to my Layers dialogue box - i use this often to just show local layers when i have a .dwg with a few xrefs in it, each of which have heaps of layers within themselves, and i don't need to see the xref layers etc
How to do a similar thing to the Properties bar layer field?
until now, when i needed to change the layer of an entity, i click on the little arrow on the RHS of this drop down field in the properties bar, and then have to seek out my layer name, which could be amongst the hundreds of xref layer names, depending on the naming conventions used etc.
i know with perfect naming convensions or by putting a "0" in front of my local layers, then at least all of mine will be grouped together at the top, but is there a way to bypass that option to ONLY show local layers???
View 6 Replies
View Related
May 30, 2013
I need to move some layers in a new group filter as you can see on the picture:
layer.PNG
View 2 Replies
View Related
Apr 11, 2012
How to filter multiple object types (here, the swamp, Google, and the docs) and have come up empty handed. I have code that filters out everything except for blocks (INSERT) with a few additional parameters to exclude blocks of a certain name, but I also need to include MULTILEADERS in the selection filter.
Here is the code I have for the INSERT filter:
acTypValAr = New TypedValue() {New TypedValue(DxfCode.Start, "INSERT"), New TypedValue(-4, "<NOT"), _ New TypedValue(2, "BLOCKA,BLOCKB,BLOCKC,BLOCKD"), _ New TypedValue(-4, "NOT>")}
How to add MULTILEADERS to this selection filter as well?
View 3 Replies
View Related
Jun 3, 2013
Is it possible to creae filter that would only show layers that are in use (actually have objects on the layer)? How would that be done?
C3D 2012 sp1
W7Pro 64bit
HP Z400 Workstation
16 GB RAM
Intel Xeon CPU W3565@3.20GHz
NVIDIA Quadro 4000
View 3 Replies
View Related
Mar 8, 2012
I typically filter out the stuff I don't want and only select the stuff I leave in for the NWC export. (3D view)
View 1 Replies
View Related
Sep 6, 2013
How to Apply adjustment layers to multiple layers that have different blending modes and keep the colors the same as the adjustment done?
I work in Animation painting Backgrounds. My files are sometimes upwards to 200+ layers.I will use adjustment layers to quickly balance colours and constrast on top of those many many layers.
The only way that I know of how to apply adjustment layers it to every single layer ( by applying I mean I need to get rid of the adjustment layers because we cant use them in production but i need the new colours be applied to all layers underneath ) in a psd is to manually do it By duplicating the adjusment layer 200+ times and then merging each layer to one of those adjustment layers so that that layer can take the adjustment layers effect permanently.
The issue is that Within Those 200 layers I have some layers set to Multiply or OVERLAY. IT obviously wont apply the adjustment layer properly to those layers because those layer blend mode affect the layers under them. The colour wont be the same anymore in the spots that had the multiply blended mode.
[URL]
I have 2 adjustment layers up top. I need to get rid of them by applying them to each layer! I cannot merge any of the layers. We need all those layers for production.I can apply the adjustment layers manually and this works GREAT for all Layers set to normal. THey take on the colour change just FINE.
However, The issue is that layer 6 and layer 4 are both set to mutiply and this screws up the colour once i apply the adjustment layers to each layer manually...
How can i apply my adjustment layers to a file like this with some layers being set to multiply while keeping the layers exactly the same configuration and The new colour taking effect exactly how i looks before i apply the adjustment layers? Now the simple solution is to merge the multiply layers to the layer that it affects HOWEVER I NEED those multiply layers to be separate!
View 4 Replies
View Related
Jun 24, 2013
Imagine a layer containing 10 squares, each square is isolated (none are touching). I need a quick way to put each of those squares on its own layer. Is there something already built in, or any plugin or action?
View 12 Replies
View Related
Jan 25, 2014
I'm going to connect my AI file to After effect. So I had to create lots of layers in order to edit them seperatly in After effects. But it seems like my amount of layers are too large because AE always crashes (not responding -> Force quit)
So I wanna break some stuff down in multiple AI files, but I don't wanna go and select every layer and delete it. That would take too much time. Is there a way to select the multiple objects in Illustrator and delete that but also its layer its in?
View 3 Replies
View Related
Oct 6, 2012
I have a series of pics (approx 80) that I'd like to load into Elements, with each photo going into a single layer. I google'd a series of old posts where somebody used a "script", but the links are no longer working and that trails is dead.
View 9 Replies
View Related
Jul 27, 2012
Why my AutoCad 2009 will not let me select new layers to a specific group layer filter. It was working just fine and yesterday all of sudden it will not let me add new layers to a specific filter. Is there a button or command that maybe would have changed that function. Everything else seems to be working on the Layer Manager.
View 3 Replies
View Related