I have a VBA program that I have been using for years that I am unable to convert to vb.net. When I start a text/dim command, the routine changes my layer to my Dimension layer, like wise when I create a viewport.
I like what I see with A2k12 but all this vb.net stuff has me quite frustrated. So many programs to convert so little time.
I want to know if I have understand this correctly or not: layer previous undos the last change in layer related command. Then If my last action is on layer, unod command will do the same. layer previous advantage is when you want to perform an undo which is not your last action.
At one point I had a layer command that I could select a line, type in the layer I wanted (with no extra prompts required) and it would change. The best part is if the layer didn't exist it would automatically create it (without prompting me Y/N).
Using LAYMCH in the command line is very close. However I have to press N for name, then enter the layer. If it is a new layer, it prompts me Y/N.
how to change the DTEXT command to be typed on a specified layer. I have poked around and came across some macros editing but this did not do the trick.
I am currently writing a series of routines for setting the layers for text, leaders and dimension commands. The end goal is a system where any annotation command sets the correct layer for the duration of the command, then reverts back to the layer that was active before the command.
I have managed to complete all the code, and it appears to be working fine, I just have one question: I have used -layer "m" "Lay_name" etc... for all layer setting commands, rather than any code to see if the layer exists already. In my limited testing this seems to be suitable, nothing that exists on that layer seems to be affected.
I know how to write code to determine if the layer exists already and set the layer instead, but so far it seems unnecessary??
lisp..It work fine but just that i need some minor modificatio to it...At moment, when i activate the lisp, it will automatic select all dimension,leader and multileader to a layer call "DIMENSION"...Anyway i wonder if it is possible to prevent any dimension,leader or multileader in layer "Section" will not be change to layer "Dimension"?
I have existing multilines with linetypes set to byLayer, yet when the linetype on the layer changes, the Multiline linetype does not. Is there any way to get the linetype to change with the layer?
How can I, or can I apply a specific layer to a specific command?? When I choose the dimension command, i want it to automatically become my "Dim 1" layer without having to select it, then select the layer. Is this possible??
A company I used to work for had a custom set of dimensioning tools in the tool palettes. We had issues with people dimensioning on the wrong layers and they included an instruction(?) in these custom commands to dimension using the correct layer i.e. current layer set to 'Border', select custom linear dim command and dim is drawn in 'Dimension' layer.
My question is, what to add to the macro in the properties when creating such a command button to do this? ^C^C_dimlinear <add something here to use a specific layer?>
When in the hatch command in 2012 I go to select the layer I want to use, but only some of them appear in alphabetical order, and the rest seem to be all over the place making it quite difficult to find the layer I want. I've tried increasing the maxsort figure, but it makes no difference. How to make them appear in the correct order?
I'm trying to delete a unused layer. But when I do that I get the following error (see attachment). I googled a bit and figured out that the LAYDEL command might solve my issue, but as I'm using Autocad 2013, that's not possible, as it doesn't have this command...
The block that causes the error can also be deleted, I tried with the purge command, but must be doing something wrong cause it didn't work. Oh yeah, with regard to the purge command, I see it this way (attachment 2), how can you display it in a window kind of view to get a better overview?
The layer merge command is not working in one particular drawing. But fine in others and new files using the acad.dwt file.Is there a setting that effects the command.
I have a Layer named "Arch - Niveau 1".I would like to enter in the command prompt "a1"..It would read if the layer is frozen or thawed and if it is frozen, it will thaw it?
And if the layer is thawed, it would freeze it..What could be added is: To check up if the layer exists and if not, create it.Would do the same for 2 other layer named "Arch - Niveau 2" command "a2" and "Arch - Niveau 3" command "a3". Is it clear?Now the lisp I've found and modified is this:
(defun c:a1 (/ lay ldef flag) (setq layn "Arch - Niveau 1") (command "_.LAYER") (if (not (tblsearch "LAYER" layn)) (command "_Make" layn) (progn (setq ldef (tblsearch "LAYER" layn) flag (cdr (assoc 70 ldef))) (and (= (logand flag 1) 1) (command "_Thaw" layn)) )) (command "")) This lisp looks if it exists, if not, create it and only thaw the layer.
I'm not enough familiar with the "not", the "progn" the "flag", "and" and "logand" (!!!!)
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.
After "copyclip" command -no matter you use ctrl+c or type into the command line- color of all lines inside "Layer 0" with By Layer color property change to White. Other layers and color remains the same. If I change color property of "Layer 0" form "By Layer" to a specific color such as red, yellow they are also remain the same.
I am producing some floor plans which I am having to split into several sheets. I am reusing the overall plan in small scale as a key/location plan (in a seperate viewport).
As the viewport is at small scale I want to make the pens thinner so walls don't come out too thick so I go into the layer manager and change the viewport pen colours and freeze off unwanted layers. Trouble is although I can copy the viewport between sheets and drawings it won't remember the layer settings is there a way that I can either: Set a variable to remember the layer settings within the viewport when copying Write a script to change the layer colours within the viewport and vp freeze the unwanted layers so all the keyplan match between all of my sheets.
The script wouldn't be too much problem for me as I mostly use key commands but when I tried changing the layer colours using -la -> c -> red all the viewports changed not just the current one. Is there a different command to change the viewport colours or is it just not possible from the command line.
I have some dimensions and mleaders that are in paperspace that I want to put in model space. When I use the CHSPACE command, the mleaders will switch, but the dimensions will not. Is there a reason dimensions cannot switch space? This is in Civil 3D 2010.
I need to programmatically change the 'Window command' (Commande de fenêtre in French) color. I didn't find anything in Application.Preferences neither in the registry.
By 'Window command' I'm talking about the feature comming with A2012 displayed in the upper left corner of model space windows:
I have a drawing that was drawn in 3D CAD and I need to convert to 2D CAD. I changed the view, but I cannot remember what the command is I need to type in to change to 2D.
I have AutoCAD 2010 on a 2002 Windows XP Professional system. I do not know what I did to cause it but when I do a "save as" using the button, I no longer get a window. I can only save through the command bar. I cannot seem to change the save to folder using the command bar so I really need to get the window back.