AutoCAD .NET :: Setting Active Layer Filter
Mar 23, 2009I'm trying to set the active Layer filter. I tried myDB.LayerFilters.Root.Name = "Filter1" but it wouldn't work.
View 9 RepliesI'm trying to set the active Layer filter. I tried myDB.LayerFilters.Root.Name = "Filter1" but it wouldn't work.
View 9 RepliesI am trying to write code to set the active project across a network. In the code below I have hard written the address in to our main server named "Rusk" . It fails with an error message "The parameter is incorrect". I have tried this using a mapped drive as well with no luck.
I think it may be a permissions error, I am running Vista 64bit. Inventor version 12. If it is a permissions error, are there any sample code snippets out there I can use to set the permissions?
Public Sub SetActiveProject()
Dim ProjectID As String 'variable to hold Project ID
Dim ProjectAddress As String 'variable to hold an address path
'Verify the project ID is entered
If UserForm1.TextBox3.Value = "" Then
[code]....
Is there a macro or lisp file that allows you to click on a element in the xref or active file and turn it off?
View 5 Replies View RelatedIt appears that the Layer Filters functionality is broken again with 2013. Unchecking the "Apply layer filter to layer toolbar" disables the function of layer filters in the tool palette.
View 5 Replies View RelatedDim 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.)
Is there event for change current (active) layer of document?
(it's not Database.ObjectModified - it's not raised).
I tried to do it with binding as:
public void Initialize()
{
var layerList = Application.UIBindings.Collections.Layers;
layerList.PropertyChanged += new PropertyChangedEventHandler(LayerList_PropertyChanged);
And -= in Terminate, but... Autocad 2012 chashed _sometimes_!!!
Impossible to understand when it happened. So I reject this way. Is there other way to handle this event?
There is a method for extruding ignoring the actual active layer, so the extrussion result is the same as 2D base object...(and is not created in active layer) i forgot how coul i do this, is really useful
After Googling a lot i didn't get any result
I have a form with a combobox and a commandbutton.
All layers in the layermanager must be locked except the active layer chosen in the combobox. I try it with this code but it’s not the right solution.
Private Sub CommandButton1_Click()Dim layer As AcadLayer'check if all layers are lockedIf layer.Lock = False Thenlayer.Lock = True'make the layer selected in the combobox currentThisDrawing.ActiveLayer = ThisDrawing.Layers.Item(ComboBox1.Text)End SubPrivate Sub UserForm_Initialize() Dim layerColl As AcadLayers Dim layer As AcadLayer Dim LayList As String ' all layers locked For Each layer In ThisDrawing.Layers If layer.Lock = False Then layer.Lock = True End IfNext 'fill combobox Set layerColl = ThisDrawing.Layers For Each layer In layerColl ComboBox1.AddItem layer.Name Next End Sub
2. When I choose the for next method to lock all layers (40 layers) it’s very slow.
I feel really dumb right now but for some reason I'm having trouble deselecting. First off, I'm talking layers and vector objects here. I know Cmd D deselects selections. But how you do deselect any layer which might currently be active? I'm working in PS CS6 for the first real time and it's like I suddenly got dumb or something.
I know you can select a blank area of the Layers Panel to do it, but my Layers Panel is full right now, so I don't even see any dead space. This is especially troubling because I'm making a lot of shape layers and if I do that while a layer is selected then I wind up making masks.
If I am working on a layer, then select a new layer to work on, then paint on that layer, then undo: the brush stroke is undone, but also the previous layer I was working on re-becomes the active layer. I want it to stay on the new layer I selected. Is there an option for this?
View 1 Replies View RelatedNew user: I erased the background (BG) on the image I have so it is transparent. Saved as PNG. Now how do I put the new BG? I know I have to get the new BG on an active layer. Then, do I copy the FG (Foreground) image and paste somewhere. IOW how to merge the two? Must they be same size etc?
View 2 Replies View RelatedWhen you try to rescale a layer using the Rescale Tool with a layer mask active, it scales of the mask, likewise if you select the layer it will scale the layer. Can I select both the layer and layer mask and scale the layer, thus it keeps the layer mask showing the desired masked area only. As the only way I can see currently is by applying the layer mask on the layer and then you can see the layer/s below to get the scaling that is desired. But I would like to keep the layer mask active for editing after scaling.
View 4 Replies View RelatedIs there a script to convert a layer or layer group to a 32-bit image rather then the entire active document at present that is the only option in Ps 5.x.
View 4 Replies View RelatedI would like to make the active layer name the same as the document name. I know very little about scripting. I found this script:
var idoc = app.activeDocument;var ilayer = idoc.activeLayer;var filename = idoc.name;ilayer.name = filename;
It does almost what I need it to do. except that it also copies the ".ai" in to the layer name. Is there some way to modify this script to have it exclude or delete the file extension?
Using Photoshop CC, if you have a vector mask on a layer and attempt to crop the image, the vector mask shifts incorrectly after the crop is completed. The image is garbled. If I rasterize the vector mask to a standard layer mask, the crop works successfully.
I've checked to make sure that there are no numbers in the crop tool options. Nothing appears to be set incorrectly.
What difference does it make if the active layer is highlight in dark blue or light blue?
I should know this by now!
How one would go about ungrouping all groups on an active layer with JavaScript?
View 5 Replies View RelatedI'm adjusting a photographic image and am using both a filter effect and a layer style in the same layer on a Smart Object. I want to separate the two effects into two layers, so one layer has the filter effect (Nik) and one layer has the layer style (Color Overlay) (with the goal of merging/rasterizing the Nik filter effect with the Smart Object but keeping the layer style unmerged). I can make two layers and move one effect without problem, but the visual result of each effect on a separate layer is quite different from having both effects in the same layer. The Blend Mode for all my layers is Normal. Within the Color Overlay panel, the blend mode is Linear Burn.
Layer 1: a layer style and a filter effect, stacked
looks very different from....
Layer 2: a layer style
Layer 1: a filter effect
I made a wax seal on Photoshop with a lot of embossment, bedevilment and a Smart Filter. It's done and I just need to make it smaller so it fits well on my certificate. When I resize it (Ctr + T) It pops up a message that reads:
______________________________________________
Adobe Photoshop CS6 Extended
"Smart Filters applied to layers contained in this group will be turned off temporarily while the transform is being previewed. They will be applied after committing the transform."
OK
[] Don't show again
______________________________________________
I click OK and I re-size the layer with free transform, and then hit enter. The Layer is resized but my Smart Filter which creates a wavy affect around the seal is totally distorted.
How do re-size my layer with smart filter without affecting the smart filter aspect of the layer.
Okay my script to change text frame color changes the color of all text frames hidden or not.
I need it to only change visible text frames.
if ( app.documents.length > 0 ) {
newCMYKColor = new CMYKColor();
newCMYKColor.black = 0;
newCMYKColor.cyan = 0;
newCMYKColor.magenta = 0;
newCMYKColor.yellow = 0;
[Code]...
How to go about making it only change the color of text frames on the active layer? In the final script I will hide all other layers so if it could be done by a visible attribute more easily that would work just as well.
Since Edge only has rectangles and ellipses built in as available shapes, how to I/we work with polygon shapes and active mouseover areas INSIDE of these shapes and non-active mouseover areas OUTSIDE of the shapes?
Problem/symptom: when I import a polygon, be it any file format from from Photoshop or SVG from Illustrator, a rectangular border/background (transparent) gets applied, leading to this rectangle defining the mouseover area of the shape - and not the shape itself (be it a star or whatever).
WHAT I WANT: the very shape defines the mouseover area. How do I achieve this?? See examle below:
WHAT I DON'T WANT: how is is now:
AIA standard seems to have layer '0' as a default setting. What is the line weight assigned to this layer?
View 1 Replies View RelatedI have a layer I'm resizing and is currently in Transform.When I beging to drag the layer to position while it is in resize the center reference point will jump to my mouse causing me to move the reference point outside of the tranform layer. Normally I would have to click on the reference point and drag it intentionally or hold CTRL and click in the transformed layer to set a reference point, but it since CS6 is had still remainded in CC.
This happens when I transform the layer (Ctrl+T) and then grab the layer to move. I have to put the reference point back to center via mouse or by the reference point on the menu bar up top. Then I can go back and drag my later where I need it to finish my transform.
I have a curve which is a set of lines and arcs.This is present on a layer. code to filter these objects based on layer.I also need to convert all the object ids to a single entity.
View 4 Replies View RelatedJust upgraded to LT13 from LT12 and noticed that the layer filters don't change the list of layers in the manager. for example if I click on an xref'd drawing in the filter tree in past versions only the layers in that drawing would be visible. In 13 all layers are still visible. Is there a setting in this version I am unaware of?
I'm sure this is the first of several "quirks" I will discover with the new version that I will most assuredly ascribe to a step backwards in functionality in the interest of pushing out a new piece of software. How many days before the first service pack is available?
I am looking to see if I missed a setting somewhere. I have hunted extensively, but the ability to set a view to a specific layer seems to be unavailable. What I woudl liek to be able to do is define the layer that the viewport is inserted on when I bring a view into a sheet using the sheetset manager. I love this system, but it does slow me down in that regard. If there is a setting or preference that I can switch to make that happen or am I going to have to write something to do it for me.
View 1 Replies View RelatedIt happens when you turn on layer manager to adjust each layer settings such as name, line type or color and etc.
Problem is that each layer row disappears and each time it happens, only solution I know is to restart the computer. See the attached image.
In the hatch dialogue there is a setting to target the hatch to a specific layer. How does one set the default to ALWAYS be "Use Current"?
Attached jpg shows the target layer as ffbrg, but I want that to ALWAYS read "Use Current" when creating a NEW hartch. In other words, I am happily working in a specific layer creating all these hatches and then realize LATER that all the hatches were in different layers causing great confusiion and havoc.
I have been working on an extensive template and wanted to add some layer filters too it. I was wondering if there was a list anywhere that outlines what different characters mean to the fillter? What I mean is... I know that ~*|* excludes xfref layers because ~ means 'not' and * means "anything" and | is the character we are looking for. But what are all the other things that filters understand?
View 2 Replies View RelatedHow to bring Layer filter from one drawing to another drawing?
View 1 Replies View RelatedI'm having issues with Civ3d 2013. I pushed off upgrading because of the format change and the service pack release. I was hoping little glitches would be fixed.Here are the a couple of glitches to date that I saw no resolution to in the long list of threads.
1. Layer filters do not filter, unless I have checked "Apply filter to toolbar". The problem is, I don't want to apply them to the toolbar.
2. Publishing to PDF - when set to lines merge (set in the page layout and the publish setting), the wipe outs don't work, and the background masks on leaders makes a faint border around the text in the PDF. When set to overwrite, to get the wipeouts to not print to the PDF as a big black blob, they have to be on a layer set to color 255. I can work around most of the wipeouts, except for dimensions because the background mask doesn't seem to take.
another complaint that doesn't have anything to do with AutoCAD, but since I'm venting... we just got a KIP 7100 printer/scanner. WORST printer/scanner we've ever had. Period. Getting the right driver, then getting the driver to produce good drawings to the correct paper size was ridiculous, and the gray shades still look like we're using a big dot matrix printer. Scanning is the most painful thing; compared to the Xerox 6204 we gave up, the quality is poor and PDF file sizes are huge.