AutoCAD .NET :: Dealing With Objects In LOCKED Layer?

May 1, 2012

I am trying to assign objects (only in UNLOCKED layers) with a new layer.So basically, the user will select all the objects in the drawing.

After selecting (ex. press enter after window selecting), only objects in UNLOCKED layers will have a new layer.

Following is the code I am using...But I keep getting eOnLockedLayer exception.How should I handle this issue?
 
using (Transaction acTrans = acCurDb.TransactionManager.StartTransaction())
{
PromptSelectionOptions pSelOpts = new PromptSelectionOptions();
pSelOpts.MessageForAdding = "Select all objects";
PromptSelectionResult pSelRes = acDoc.Editor.GetSelection(pSelOpts);
if (pSelRes.Status == PromptStatus.OK)

[code]....

View 3 Replies


ADVERTISEMENT

Illustrator :: Moving Group / Layer / Artboard With Locked Child Objects

Nov 8, 2012

In CS5, you could move a group/layer/artboard along with all of the child objects, even if some of the objects are locked.  But in CS6 the locked objects remain unmoved.
 
Is there a way to change this behaviour?

View 7 Replies View Related

AutoCAD Architecture :: All Objects In Drawing Locked

May 13, 2011

On a large 2012 drawing, suddenly the entire drawing is half tone and every object is locked. When you try to select an object, the little lock symbol apprears next to the cursor. I must have done something inadvertantly to lock the entire drawing, but I can not find any command or reference to unlock the drawing. This problem is also unique to this drawing.

View 4 Replies View Related

AutoCAD 2010 :: Don't Want Objects On Locked Layers To Be Selectable

Aug 6, 2009

I have made gridlines and put them on a locked layer. I want to be able to see them and snap to them, but I don't want to select them. Their selectability is hindering my ability to select objects on other layers. Is there any way to make lines on locked layers not selectable? (I don't like the Autocad standard grid.)

View 9 Replies View Related

AutoCAD 2010 :: Moving Objects To 0,0 Plain - Getting Locked Symbol

Mar 27, 2013

When I try to move an object to the 0,0 plain, I get a "locked" symbol in the command line and the object does not move to the 0,0 plain. How would I be able to unlock this to move anything to the 0,0 plain.

View 7 Replies View Related

AutoCad :: Create New Layer It Comes In Locked

Sep 19, 2013

I isolated layers to clear out a drawing, since then I have had nothing but hassle with locked layers, No matter how many times I unlock them, they lock up again, if I create a new layer it comes in locked, if I change a line to a differant layer it locks up, I have tried creating a few simple layers, then copying and pasting the layout into a new drg file, still the problem exists, it is costing me a lot of time having to keep doing this.

View 9 Replies View Related

AutoCAD 2010 :: Layer Locked And Turned Off

May 29, 2013

I've locked a layer and this one went off, too. This is AutoCAD 2010, it's because the program?

I want my layer ON but locked, what can I do?

View 2 Replies View Related

AutoCad 2D :: Locked Layer Snap Points

May 4, 2012

I'm messing around with some commands and I'm currently exploring laylockfadectl/layiso.

They both work just fine of course, but I was wondering if its possible to make ACAD ignore snap points on the locked layers?

View 1 Replies View Related

AutoCad :: Layer Combo Control Is Locked?

Aug 3, 2011

My ACad2006 Layer Combo Control bar appears to be locked. It will only show the current layer and will not show the layer of an object that is selected with the pickbox. I must have accidentally made a change somehow, but don't know how to undo this.

View 2 Replies View Related

AutoCad :: How Layer Locked In Turn Not Affecting Other Layers

Apr 27, 2012

I have a question regarding AutoCAD 2012 and when it comes to locking layers.

When working on the basement layer I would like to see that layer locked in turn not affecting my other layers, ie: my house/garage/second-floor.

View 9 Replies View Related

AutoCAD Civil 3D :: Locked Layer Causes Contour Label

Jul 15, 2013

I'm working in 2011.  Just labeling some contours in a new drawing, using the 'Multiple' setting.  I found I could only draw one tangent of Contour Label Line.  If I continued, I could click but no labels were created and on finishing the command I could see that those clicks had been ignored.  What gives?

I found that the labels were on the current layer, instead of the layer they're meant to use.I also realised that my current layer was locked (from the previous task).

if the current layer is locked, the contour labels ignore the layer setting that they are meant to use, and come in on the current layer instead.  And you can only draw one tangent's worth of contour labels at a time before finishing the command and restarting.  

Solution: make a different layer current or unlock your layer.

are contour labels generally created on the current layer and then moved to their proper layer?Is that why it hit a snag: it wasn't permitted to move the object to a different layer because the one it was on was locked?

View 3 Replies View Related

AutoCAD VB :: All Layers Locked Except Active Layer Chosen In Combobox?

Dec 21, 2012

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.

View 4 Replies View Related

AutoCAD 2010 :: Display Missing Layer-Locked-Icon On Screen

Jan 30, 2012

Normally when a layer is locked, you hover your cursor over the locked layer on screen you will be able to see a small [Lock Pad]
kinda icon ...

{ Please refer to the attach image for explanation ... }

View 2 Replies View Related

AutoCAD VB :: Converting AttributeDefinition Objects To Text Objects On Same Layer

May 9, 2013

I have several .dwg files that I use as templates. I run find and replace VBA routines on the template .dwg files, ie find $Flavor$ and replace it with "Grape", and then I save the .dwg to another directory with a new name. 

These VBA routines work well for acdbText and acdbMText objects, but I have a bunch of AcdbAttributeDefinition objects in the .dwg templates as well.

After much research about the AutoCAD object model (I'm mostly a Microsoft Access VBA programmer), I have come to understand that these AcdbAttributeDefinition objects are actually "remnants" of a block that no longer exists in the drawing.

Anyway, I'd like to convert all of these orphaned AcdbAttributeDefinition objects to acdbText objects in the templates and then delete the AcdbAttributeDefinition objects. I have some code that does just that.

However, the issue that I am having with the code is that the newly created acdbText objects are not on the same layer that the original AcdbAttributeDefinition objects were on. I don't know the syntax to identify what layer the AcdbAttributeDefinition object is on or how to specify what layer on which the acdbText object is created.

how to keep the acdbText objects on the same layers as the original AcdbAttributeDefinition objects during the conversion and deletion process?

Here is the code I am using currently:

Sub AttConvert(dwg as string)Dim oDocument as AcadDocumentDim ent as AcadEntityDim aa as objectset oDocument = Documents.open(dwg) For Each ent In oDocument.ModelSpace If ent.ObjectName = "AcDbAttributeDefinition" Then' DO SOMETHING TO IDENTIFY WHAT LAYER THE ACDBATTRIBUTEDEFINITION OBJECT IS ON
' DO SOMETHING TO SPECIFY THAT THAT IS THE LAYER TO CREATE THE ACDBTEXT OBJECT ON Set aa = ThisDrawing.ModelSpace.AddText(ent.TagString, ent.InsertionPoint, ent.Height) End If Next ent For Each ent In ThisDrawing.ModelSpace If ent.ObjectName = "AcDbAttributeDefinition" Then ent.Delete End If Next ent End Sub

View 1 Replies View Related

Revit :: Undeletable Elements In Families - Objects Locked

Dec 5, 2012

We have suddenly had some problems showing up in some of our families.
 
Some objects are becoming 'locked' as if they are parts of one of the default family templates. These parts are not components of the template, they were created in-house.
 
Is there any reason why this might occur, and how do we fix it? Quite a few families, including some that are very complex are no longer editable.
 
An example is attached - some components are deletable, but you will find that most of the dimensions and linework behave as if they were part of the template (generic annotation) and cannot be edited.

View 4 Replies View Related

Illustrator :: Selecting And Manipulating Locked Child Objects

Jun 21, 2012

In CS5, when you have locked objects within a group or layer, you can still select the whole group/layer at once.  And with the group/layer selected, any transform/cut/etc will affect everything in the group/layer, including the locked objects.
 
But in CS6, it seems that you cannot select entire group/layer with locked objects -- the "selection circle" in the Layers panel will not show the double circle.  And if you manipulate the group/layer now, only the unlocked objects within it will be affected; the locked objects will stay the same.
 
How can I revert back to CS5's behaviour?

View 3 Replies View Related

AutoCAD 2013 :: Turn Off Lock Symbol When Running Crosshairs Over Locked Layer

Mar 29, 2012

How to turn of the "lock symbol" from showing when you run your crosshairs (outside of a command) over a locked layer.  Its annoying and i would like to turn it off.

Also, when offsetting a line, is there a way to turn off the imaginary offset line that indicates the offset side, again its annoying and i'd like to turn it off.

View 9 Replies View Related

AutoCad :: Dealing With Suffix In Dimension Styles?

Aug 7, 2009

In the dimension styles we have linear suffix and angular suffix. For angular dimensions we just want the degree symbol and for the Linear suffix we want the foot symbol. But when we dimension an angle we get both degree and a foot symbol, and we just want the degree symbol. We put the foot symbol on the linear units only yet it shows up on the angular dimensions.

View 5 Replies View Related

Photoshop :: Locked Layer

Feb 24, 2003

I've recently switched from 6 to 7. When I open an image the layer is locked and I can't unlock it (greyed out). This prevents me from adding the drop shadows I need to add. Any answers out there, please?

View 4 Replies View Related

AutoCad :: Apply Layer Color / Linetype / Properties To Objects On Layer

Feb 15, 2013

I have a bunch of objects on a particular layer, and they're all different colors and linetypes and lineweights, and i want them to all take on the color / linetype / lineweight that i chose for that layer.. how do i do this?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Move Objects To New Layer Based On Their Present Layer

Jun 20, 2012

Say I have 2 items, one is on layer "M-Duct" and the other on "M-Pipe" (they are in the same drawing). Any lisp routine that would create the layers "M-Duct-New" and "M-Pipe-New" (based on the same color and LT as the original layers) and then move those objects to the newly created layers?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Change All Objects On Layer 0 To Existing Layer PC Module

May 31, 2012

I'd like to have/write a lisp to change all objects on layer "0" to layer "PC - Module"

If possible also;

save the document close the document open next in directory run layer changer program again.

View 8 Replies View Related

Photoshop :: Why Is Layer 1 Locked In Every New Document

Oct 22, 2013

What is/are the benefits of having every background layer of a newly opened document locked? I have never come across a need for it and wish it wasn't. It only means I have to create a new layer and import an image to that. Or, double click the layer to unlock it. Is there a way to permanently eliminate that "preference?" It's like entering a room with your shoes tied together.

View 7 Replies View Related

Photoshop :: CS4 - Partially Locked Layer

Nov 8, 2013

I am using CS4. I have a partially locked layer. It is not the background layer. I partially locked it myself but forgot how I did it. How do I unlock it?

View 2 Replies View Related

Photoshop :: Locked Layer - How To Unlock

Mar 13, 2013

one layer in a photoshop document has a padlock on it; no clue how it got there. I can't make it go away; perhaps the method is different in CS6 than in previous versions...
 
Any clue about this? I can't fill a selection on this particular layer...don't  know why. The layer in question IS selected, and the selection is active, etc.

View 11 Replies View Related

Photoshop :: CS5 - Background Layer Not Locked

Jun 14, 2012

CS5 - the background layer - although it shows as being locked - it is not -- when I add a new layer the new information also changes in the background layer - how do you fix that?

View 4 Replies View Related

Photoshop :: Can't Paint Cuz Layer Is Locked?

May 14, 2009

I start a new document and try to paint on it I get some warning that the layer is locked or some garbage, so I create a new layer and try to paint on that and it's like stuck on the move tool or something, even though it clearly has the brush tool selected.

View 7 Replies View Related

Photoshop :: Problem With Locked Layer...

Jun 9, 2006

I'm attempting to finish some artwork, and I seem to have run into a problem. I duplicated a layer--filled with white--and locked the transparent pixels in the duplicated layer. When I try to color over it, there are some white pixels showing about the edges. Inexplicably, these white pixels don't even seem to be in the layer that I'm trying to color at all--but the original layer underneath. When I hide the original layer, the white pixels disappear. What's going on?

View 1 Replies View Related

Photoshop :: Opening .gifs Without Having Layer Being Locked?

Nov 5, 2002

When I open a transparent .gif file, the layer which contains the item I want is totally locked out and it won't let me move/duplicate/do anything to it. Is there anyway I can unlock it so I can move the layer into other work I'm doing?

View 2 Replies View Related

Illustrator :: Better Layer Control - Locked / Unlocked?

Oct 18, 2013

Seems as soon as I create layer groups, things get stupid with respect to unlocking layers.
 
when layers are not grouped in a parent, and you are working on 1 layer with an item you want unlocked, just that/those items unlock.
 
However when working with grouped layers, and you are on 1 unlocked layer and select the same unlock command, ALL layers become unlocked!
 
To me this seems incredibly stupid..is this a known bug or a "feature?"

View 3 Replies View Related

Photoshop Elements :: Locked Background Layer

Feb 1, 2013

When I open a photo in the editor, the background layer is locked with a transparent pixels locked lock, instead of the all pixels locked lock. How do I change it back to the default?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved