AutoCAD .NET :: Removing Default Layers
Jan 19, 2012
I'm just finishing up with a command that sets up custom paperspaces for our designers, and once it's done, it deletes the default Layout1 and Layout2 paperspace. The error i'm getting though is the following:
If a drawing contains Layout1 and Layout2, both are deleted as they should be
If a drawing contains Layout1 but not Layout2
or
If a drawing contains Layout2 but not Layout1
I get an error and it crashes. This seems really stupid i know, but i must be doing something wrong here. I'm using if statements to determine if Layout1 exists, then delete it, and if Layout2 exists, then delete it. However, it seems that every time, if one of those layouts are missing, it still assumes it's there, tries to delete it, and errors out because it doesn't exist. I've tried many variations of "if" statements.
My
public class CHDelete
{
// This function will delete Layout1 and Layout2
[Autodesk.AutoCAD.Runtime.CommandMethod("CHDelete")]
public void CHRENAMECOMMAND()
{
[code].......
View 2 Replies
ADVERTISEMENT
Jan 8, 2013
what is the AutoCAD command for removing existing layers within AutoCAD 2013.
View 3 Replies
View Related
Mar 21, 2012
I’m currently working on getting a system for easier plant layout management. Part of which is condensing what started as 195 mostly random layers into about 15 usable layers.
Problem:
I have about 28 more layers that need to get rid of and I can’t delete them because there are lines assigned to them. However, when I hide all the layers I need so that only the unnecessary layers are showing, there’s nothing there.
Side Note:
I know this problem is most likely because there were layers applied to features deep within blocks. I just don’t want to go through the 700+ block to check each layer assigned to each line.
(This file I was given to start with is a mess. Examples: Some of the blocks have the same exact feature that’s buried 7 blocks deep with no features added to justify an extra bock being there. Some of the blocks aren’t even being used in the layout. Name of the block has no coloration with the actual thing it represents. Stuff like that…)
Question:
Is there a way of hunting down these layers in the blocks to delete / change them without checking each individual block? Or is it possibly because the layer i need to get rid of is applied to a block that’s not being used in the layout?
View 4 Replies
View Related
Sep 1, 2006
Whenever I draw a box on the page using the foreground color, the background color is applied as a 1px border (I believe) and is accompanied with the box.
When you go to select the background color, there doesn't seem to be any 'use no color for background' option. It's also not being added in the 'layer options' box either (as a stroke).
How do I remove that the outside background color?
View 1 Replies
View Related
Feb 13, 2014
I am looking for a script that will look through all the layers in my file and if there are no objects on the layer I would like it to delete them.how to remove a layer with a script, just not how to identify a layer or many layers that may no have objects on them.
View 6 Replies
View Related
Jun 3, 2012
For several releases Autocad's layer manager has shown only XREF layers in the layer manager by default. Open a drawing with Xrefs (nearly every drawing I have ever worked with) and to access the layers that are actually *in* the drawing, I must first open the layer manager, select the "Xref" filter, and check the Invert Filter box. Then I see the layers that would more logically be shown be default.
Does any way to change this so the non-Xref layers show up be default??? I am currently using Autocad Architecture 2012.
View 8 Replies
View Related
Jun 25, 2012
Why files received from different architects affect how my plot style prints? I'm using my set plotstyle but plots are almost too light to read. Layers are set to default line weights in both files. This printing problem happens in both model and paper space. Using AutoCAD 2012 standard.
View 8 Replies
View Related
Jun 8, 2011
I just started using 2012. Two problems:
1- Somehow, in my current drawing, everything is layer-locked. There are no Xrefs in this very basic drawing. All layers are unlocked. Yet, any attempt to select any entities results in "x objects were on a locked layer". Again, all layers are unlocked. No Xrefs. No blocks. Just simple lines. All entities appear faded. This happened after viewing a layout in both paper and model spaces. Reviewing the text window shows no strange accidental commands.
2- There is a default set of viewport scales in the status bar at the bottom right. Default scales are all metric. I would like both metric and imperial. I see you can edit which exact scales are in a metric list, and which are in an imperial list. But how do you set what is displayed/available in the status bar button?
View 9 Replies
View Related
Oct 4, 2012
I find myself constantly changing the color of new layers back to my favorite: Magenta. Is there a way to just make this the default new layer color?
I understand the reasoning of using different colors for each layer, but so many standard colors do not preview well, with the artwork, I find them useless. I'd just as soon use one color.
View 4 Replies
View Related
Nov 20, 2012
How do I change the default name of new adjustment layers?
How can I make it so that adjustment layers don't come with a mask when I create them (unless I have a selection active)?
Why isn't the Shadows/Highlights functionality an adjustment layer? It's accessable under "adjustments" but you can't use it non-destructive
Where can I find documentation on Photoshop's API? (I want o make tools for it - javascript)
View 9 Replies
View Related
Aug 3, 2012
Every time I open Coreldraw the EDIT ACROSS LAYERS box is ticked, even if I open a document which had it unticked last time it was saved. I nearly always work with it off but I cannot find a way to set it off by default.
View 3 Replies
View Related
Nov 20, 2008
I recently upgraded to CS3, and I'm getting quite frustrated at it.
I am used to having to select a layer from the layer panel to move it around. Now, whenever I click on something in the image, it auto chooses that layer and let's me move that around. I'd rather not have it set this way. I like to be able to click anywhere while my chosen layer is selected and be able to move it.
It's especially frustrating when I have things in groups. Instead of just moving the layer clicked, it moves the entire group.
Is there a fix to this in the preferences somewhere? I've scoured the menus and can't find anything relevant to this 'feature'.
View 1 Replies
View Related
Apr 30, 2004
When I create a Color Balance adjustment layer to colourise a selected area the Default Foreground & Background colours switch from Black/White to White/Black automatically with even the icon in the corner changing to reflect this (When switching manually back to Black Foreground the icon stays showing White as Foreground). By switching manually back I can refine Masks as I have been doing for sometime with the Eraser deleting parts of a mask and the Paintbrush adding to the size of the mask which is the logical way It seems like I have somehow changed the default Foreground/Background when applied to Adjustment Layers as I just tried using a Curves etc Adjustment Layers with the same thing happening with the defaults changing to White foreground etc automatically. Is there something I have ticked or changed that has made this change
View 3 Replies
View Related
Oct 9, 2012
I'm using CS6 and wondered of there was a way to change the default blend mode of an adjustment layer?
For example, if you use the Curves adjustment, as well as increasing contrast it also increase saturation. I like to use the "Luminosity" blend mode so that I get the contrast without the saturation. By default, I'd like to be able to specify that any Curves layer I use should use Luminosity blend mode.
View 4 Replies
View Related
Jul 3, 2013
I see that the new default blending mode when you create a Group From Layers is Pass Through. I will never use this configuration, and would prefer to set my default to Normal.
View 1 Replies
View Related
Jan 31, 2013
Can I make layers default to the top when I drag and drop into a new layer folder instead of the bottom? It annoys me that they always go to the bottom and I inevitably always need them at the top.
View 3 Replies
View Related
Nov 25, 2012
In GIMP 2.8, I'm having an issue with font settings not sticking with copied layers.
Steps to reproduce:
1. Click the text tool, then click the canvas.
2. Type the word "Cow".
3. Double Click the word "Cow" and set it to a fancy font, pink, and 24pt.
4. Select the "Cow" text layer and duplicate it.
5. Move the duplicated layer down. You now have two "Cow" layers in a pink, fancy, 24pt font.
6. Double click the word "cow" in the copied layer to highlight the word "Cow".
7. Type "Chicken" over the word "Cow"
Expected result:
The text is now "Chicken" in a fancy, pink, 24pt font.
Actual result:
The text is now "Chicken" in the default font.
In order to keep the font you want, you have to insert the new text after the first letter of the existing word. ie: "CChickenow", then remove the extra "ow" from the end, then remove the "C" from the beginning. This is very tedious and frustrating.
I am aware that you can set a default font to whatever you want (except making it bold by default?). But, if I copy a layer and type over it, it's because I wanted to copy the appearance of the layer, not start over with a new one. Is there a setting I can change? Or is this a known issue with text editing in 2.8?
View 2 Replies
View Related
May 30, 2013
Can you change permanently the default highlight color(s) for layers in new documents? CS6
View 2 Replies
View Related
Dec 22, 2011
Drawing A has a grid system Xref-ed into it. It also has a block reference in it, repeated in various places throughout the drawing.
I Xref-ed the grid into the block to check something, and now I can't get it out. This means that the grid now repeats all over Drawing A as well and is generally being a nuisance.
If I try to unload the Xref within the block, it unloads it in Drawing A too. If I try to detach it from the block, it returns this message: Xref [Xref name] has multiple references. Not detached. If I try to detach the Xred from Drawing A, it returns the same message.
How do I unload the same Xref that occurs in a block in a drawing, and in the drawing itself, independently of each other?
View 1 Replies
View Related
Jan 28, 2011
I have a situation where the default behavior of my rectangle tool (or any of the other shape tools) is now different. I'm on Mac OS X 10.6.5 running Illustrator CS5. It acts as though the option-shift keys are pressed, so whenever I draw an object, it draws from the center point and the dimensions are constrained, so i can only draw a square or circle, not a rectangle or ellipse. Additionally, whenever I use the selection tool, it clones the object I drag, and also constrains the positioning, so i can only drag in a 0, 45 or 90 degree angle (or multiples thereof). It's as if my option-shift keys are permanently pressed (if I actually press option-shift, the behavior persists). I tried using a different (brand new) keyboard, tried throwing away preferences, and the problem remains. I also tried booting up Illustrator CS4, and the weird problem showed up there! This behavior just started happening spontaneously. I couldn't think of anything weird that happened (a crash, a new plug-in, etc.). I can't find a preference that sets this behavior either.
View 6 Replies
View Related
Dec 31, 2013
I would like to know how to write a routine to thaw all layers in current drawing and multiple xrefs; then freeze all, then thaw only certain layers globally for a drawing that is open. Such as a dimension plan will thaw only *-BLDG, *-DIMS, *-RD-*, *BNDRY.
I would like to create one that will fit every project which has a different xref name.
View 2 Replies
View Related
Aug 12, 2013
We use AutoCad to name our dxf files for our Burn Table and whenever we get a new part it is a repetitive task to input layers and common text. So what I am curious is can AutoCAD input the layers and text automatically using a Macro?
I want the Macro to put in 6 layers and choose the layer color and title then input text boxes with word in 3 different layers. There will be about a total of 10 different text boxes with text already put in the boxes by the Macro.
View 6 Replies
View Related
Mar 20, 2012
I am currently updating and coming up with a better system for are plant layout file for AutoCAD. When this project is complete, it will be set up so if someone needs to make a change they can just make a copy of the X-Ref file for the area they will be updating and hand it back in when there done. I will review the updated X-Ref then switch out the old X-Ref file for the updated one.
Problem: the problem I am having is when I am in the master drawing that contains all the X-Ref files, the layers list becomes enormous. There are about 30 to 40 different X-Ref files with 15 layers each. Those 15 layers contain the exact same information but you have to edit them individually.
Question: Is there a way to make the 15 layers in the master effect the corresponding layer in all the X-ref files? For instance, you hide the “Machines” layer in the master and it hides the “Machines” layer in all the X-ref.
Side Note: If you were going to make the suggestion “use Xbind” I’ve tried it and it doesn’t work well because “Xbind” creates a new layer you have to assign to things instead of making the layers relate to one another.
View 5 Replies
View Related
Jul 23, 2013
I am just starting to learn C# and .NET and I am trying to write a simple program to gather all the layers from a drawing in a directory, save them to a list, and use that list to change those layers to the appropriate layers. The way I want it to iterate is open the first drawing, gather the layers, ask the user which layer they want to change the original layer to, and when they select the new layer, it associates that old layer with the new layer so that in the future it won't prompt the user, it will just change it to that layer. Then it changes the layers and goes to the next drawing.
I wrote something very simple in LISP, but I need to make it more advanced and try to add in more features. Specifically I would like to be able to do everything in the background, without actually opening the drawings so I can avoid any user prompts or dialogue boxes.
I am at a complete loss at where to start though. There are so many members in the different namespaces for Autocad. Right now I am looking through acdbmgd.dll and acmgd.dll to try and find something useful, but I have no idea where to even start.
My guess would be to first define a method that gathers the layers from the drawing and saves them to an array. For example i would have multiple arrays for the different layers to which I want to convert the old layers, string [] 0layer, string [] walllayer that contains all of the layers to be changed to layer 0 and wall layer. Then I would compare the layers in the drawing to those arrays, if they are not present in any of the arrays, the program would prompt the user and ask which layers they want to change the existing layer to and add it to the appropriate drawing. Then all of the layers in those arrays would be changed to the different new layers.
At the very least, I am going to start making the different arrays to be filled. That much I can do. I'm just having trouble actually getting the data from the drawings.
View 2 Replies
View Related
Sep 20, 2006
There are some layers in my drawing that won't delete in the layers properties manager. I don't know why. It gives me 4 possible reasons:
- It might be layer 0 or a Defpoint (whatever that is).
- It is the current layer
- It is an Xref dependent layer
- It is a layer containing objects
But none of these, to my knowledge, apply. There could be things on the layer that I'm just not seeing, but I've looked thoroughly. I even zoomed out to the extents, highlighted the whole area, and clicked the erase tool, but it still won't go away. I got the file from another computer, so it might be an Xref dependent layer and the Xref'ed files just didn't come with it. How would I be able to tell - and how could I remove the Xref dependency?
Other than that, is there any other reason a layer won't delete? Can I force it to delete?
View 5 Replies
View Related
Apr 29, 2006
when i select diffrent layers,the layer's name in toolbar does not change, i can not change the layer, color,and other settings.my autocad version is 2006 and 2007.
View 5 Replies
View Related
Mar 2, 2013
I have the AutoCad 2011 lt disc's along with the case that has the serial number and product key. A co-worker of mine installed it on his laptop and used it for about a year. My co-worker was let go. He left without his laptop and a new IT person reformatted his laptop. I then took the disc's and installed them onto my desktop. I did this about a year ago with the intention of learning AutoCad. I had no trouble installing this. I'm pretty sure the license was for a single user, (according to my co-worker).
My desktop is very old and needs to be replaced. I want to install this onto a new desktop.
I don't know when I will be gettng a new computer.(budget thing) Is there a way to remove this from my computer for now and wait untill I get a new one? I don't want to loose the license on my old computer due to a catastrophic failure.
To make it easy can I just uninstall this from the old and then to install on the new?
Or, do I have to do the online transfer thing?
If the program does not exist on any computer then where is the license?
View 4 Replies
View Related
Dec 12, 2012
I work with a colleague who is running AutoCAD MAP. When he makes a block or saves a drawing, at the origin is a 3D, downward pointing arrow which in 2D plan view obscures anything around the origin. I open his blocks or drawings in ACAD2012 or 2013 with the same issue. In plan view, the 3d arrow appears as a circle with radial lines running out from the center. If I save the drawing in my ACAD that feature is still there.
I've attached a png screenshot of what I'm talking about.
Is there any way to get rid of that feature, which is apparently coming from his MAP version of ACAD? I've looked for settings on his machine and on mine. I have played with the Workspace setting. I've looked in Options for anything. Maybe there is a system variable. How to control the visibility of this 3D arrow in ACAD?
View 2 Replies
View Related
Feb 17, 2012
I copy and pasted details from a survey drawing into my current model. A message came on screen that warned that any printed output would display the message PRODUCED BY AN AUTOCAD EDUCATIONAL PRODUCT.
I continued thinking that I would be able to purge any blocks later. I am not able to clean the drawing and any copies are printed with the message. I have tried WBLOCK and it still remains.
View 8 Replies
View Related
Nov 8, 2012
I am having trouble removing the top surface of this canoe that i am making.
I have tried exploding the surface and it removes the top surface nicely but make two individual surfaces that cannot be combined using the join function.
View 6 Replies
View Related
Mar 6, 2012
I've got this drawing which I would like to engrave with my laser, but I'm afraid the duplicate lines from the imported WMF (from Adobe Illustrator) will hinder the performance of the laser. I have tried OVERKILL on all of its different settings, but there are still duplicate lines all over the place.
Any tips for removing the duplicates? The drawing is too intricate to go through and delete them by hand.
The file is too large for this website (6 mb), so I've uploaded it here
[URL]......
View 0 Replies
View Related