hapnin Posted September 23, 2009 Author Posted September 23, 2009 OK finally getting this. We are useing the plotstyles for our plotting widths. So, Linetype would be "default" plotstyle would be ".13mm" This is what i came up with. [A-ANNO-NPLT] ^C^C^P(command "_-layer" "_make" "A-ANNO-NPLT" "_color" "5" "" "_ltype" "continuous" "" "_lweight" "default" "" "_plotstyle" "_nonplot" "" "_plot" "_no" "" "_DESCRIPTION" "NON-PLOT LAYER" "A-ANNO-NPLT" "" "") ^P [D-DR] ^C^C^P(command "_-layer" "_make" "D-DR" "_color" "5" "" "_ltype" "hidden2" "" "_lweight" "default" "" "_plotstyle" "_.13mm" "" "_DESCRIPTION" "NON-PLOT LAYER" "A-ANNO-NPLT" "" "") ^P Quote
The Buzzard Posted September 23, 2009 Posted September 23, 2009 OK finally getting this. We are useing the plotstyles for our plotting widths. So, Linetype would be "default" plotstyle would be ".13mm" This is what i came up with. [A-ANNO-NPLT] ^C^C^P(command "_-layer" "_make" "A-ANNO-NPLT" "_color" "5" "" "_ltype" "continuous" "" "_lweight" "default" "" "_plotstyle" "_nonplot" "" "_plot" "_no" "" "_DESCRIPTION" "NON-PLOT LAYER" "A-ANNO-NPLT" "" "") ^P [D-DR] ^C^C^P(command "_-layer" "_make" "D-DR" "_color" "5" "" "_ltype" "hidden2" "" "_lweight" "default" "" "_plotstyle" "_.13mm" "" "_DESCRIPTION" "NON-PLOT LAYER" "A-ANNO-NPLT" "" "") ^P I wrote that as a sample. If your layer name is D-DR, Then you would write it like this: [D-DR] ^C^C^P(command "_-layer" "_make" "D-DR" "_color" "5" "" "_ltype" "hidden2" "" "_lweight" "default" "" "_plotstyle" "_.13mm" "" "_DESCRIPTION" "NON-PLOT LAYER" "D-DR" "" "") ^P You may use what ever description you wish. I add the D-DR at the end to designate the layer to add the description to. Dive into it a bit. Experiment with it. See what you get when you change things. You will learn alot that way. Quote
The Buzzard Posted September 23, 2009 Posted September 23, 2009 Just noticed last minute you had _plotstyle in the macro. There is no PLOTSTYLE function within the -layer command. ^C^C^P(command "_-layer" "_make" "D-DR" "_color" "5" "" "_ltype" "hidden2" "" "_lweight" "default" "" "_plot" "_no" "" "_description" "NON-PLOT" "D-DR" "" "") ^P When you run -layer at the command prompt, You will see all the options that are available to you. Check it out. Quote
hapnin Posted September 23, 2009 Author Posted September 23, 2009 I did the same (-layer) as what you did and it came up with "PStyle" between plot and freeze. I think I was writing it out wrong [A-ANNO-NPLT] ^C^C^P(command "_-layer" "_make" "A-ANNO-NPLT" "_color" "5" "" "_ltype" "continuous" "" "_lweight" "default" "" "_pstyle" "_nonplot" "" "_plot" "_no" "" "_DESCRIPTION" "NON-PLOT LAYER" "A-ANNO-NPLT" "" "") ^P [D-DR] ^C^C^P(command "_-layer" "_make" "D-DR" "_color" "5" "" "_ltype" "hidden2" "" "_lweight" "default" "" "_pstyle" "_.13mm" "" "_DESCRIPTION" "Door" "D-DR" "" "") ^P Everthing is working the way it's supposed to but, the pstyle won't change from normal to the .13mm thats designated in my Plot Style Table File I am so close, to getting this. Hapnin Quote
The Buzzard Posted September 23, 2009 Posted September 23, 2009 I did the same (-layer) as what you did and it came up with "PStyle" between plot and freeze. I think I was writing it out wrong [A-ANNO-NPLT] ^C^C^P(command "_-layer" "_make" "A-ANNO-NPLT" "_color" "5" "" "_ltype" "continuous" "" "_lweight" "default" "" "_pstyle" "_nonplot" "" "_plot" "_no" "" "_DESCRIPTION" "NON-PLOT LAYER" "A-ANNO-NPLT" "" "") ^P [D-DR] ^C^C^P(command "_-layer" "_make" "D-DR" "_color" "5" "" "_ltype" "hidden2" "" "_lweight" "default" "" "_pstyle" "_.13mm" "" "_DESCRIPTION" "Door" "D-DR" "" "") ^P Everthing is working the way it's supposed to but, the pstyle won't change from normal to the .13mm thats designated in my Plot Style Table File I am so close, to getting this. Hapnin I am using 2009 and do not see pstyle anywhere in the command as you can see from my posted image above. Quote
The Buzzard Posted September 23, 2009 Posted September 23, 2009 OK I see whats wrong. I am using ctb instead of stb. Pstyle Sets the plot style assigned to a layer. This option is not available if you are using color-dependent plot styles in the current drawing (the PSTYLEPOLICY system variable is set to 1). See Use Plot Styles to Control Plotted Objects in the User's Guide. Enter plot style or [?] : Enter a name, enter ? to list existing plot styles, or press ENTER If you select a plot style other than NORMAL, the following prompt is displayed: Enter name list of layer(s) for plot style current : Enter the names of the layers to use this plot style, or press ENTER to apply the style to the current layer only Quote
The Buzzard Posted September 23, 2009 Posted September 23, 2009 Is .13mm the name of the plot style or within the plot style? You first need to enter the name of the plot style. After the name has been entered you need to designate the layer name to assign to the same way it was done for the description. I hope you got this. Quote
hapnin Posted September 23, 2009 Author Posted September 23, 2009 Thanks for your help in this whole situation. I got it to work with the pstyle here is the final line of code for a typical layer. [D-DR] ^C^C^P(command "_-layer" "_make" "D-DR" "_color" "5" "" "_ltype" "hidden2" "" "_lweight" "default" "" "_pstyle" ".13mm" "" "_DESCRIPTION" "Door" "D-DR" "" "") ^P My new issue would be when you click on the layer it always opens the CUI pops open Quote
The Buzzard Posted September 23, 2009 Posted September 23, 2009 Maybe this way? Providing the name of your plotstyle is .13mm. [D-DR] ^C^C^P(command "_-layer" "_make" "D-DR" "_color" "5" "" "_ltype" "hidden2" "" "_lweight" "default" "" "_pstyle" ".13mm" "D-DR" "" "_DESCRIPTION" "Door" "D-DR" "" "") ^P Quote
hapnin Posted September 23, 2009 Author Posted September 23, 2009 The .13mm is within the "Perez stb standard.stb" file. There are 20 different plot styles within the .stb file I think I got it now, like I said before the biggest issue is now the CUI opens up Quote
The Buzzard Posted September 23, 2009 Posted September 23, 2009 Thanks for your help in this whole situation. I got it to work with the pstyle here is the final line of code for a typical layer. [D-DR] ^C^C^P(command "_-layer" "_make" "D-DR" "_color" "5" "" "_ltype" "hidden2" "" "_lweight" "default" "" "_pstyle" ".13mm" "" "_DESCRIPTION" "Door" "D-DR" "" "") ^P My new issue would be when you click on the layer it always opens the CUI pops open Thats good news! If you toy around with the -layer command and all the sub-functions to see how they work you will be able to understand how to add this to your macro. Its not really that difficult. If you get stuck again any am always glad to help. Good Luck, The Buzzard Quote
The Buzzard Posted September 23, 2009 Posted September 23, 2009 The .13mm is within the "Perez stb standard.stb" file. There are 20 different plot styles within the .stb file I think I got it now, like I said before the biggest issue is now the CUI opens up Shut down acad and restart acad and try again. See what happens. Quote
The Buzzard Posted September 23, 2009 Posted September 23, 2009 This worked well. Just need to add additional "" after "D-DR" "" "" ^C^C^P(command "_-layer" "_make" "D-DR" "_color" "5" "" "_ltype" "hidden2" "" "_lweight" "default" "" "_pstyle" ".13mm" "D-DR" "" "" "_description" "NON-PLOT" "D-DR" "" "") ^P Quote
The Buzzard Posted September 24, 2009 Posted September 24, 2009 Hey Hapnin, Be sure that the plotstyle that contains your .13mm style is set to default plotstyle table. I tested this last night and it worked. See image below. Quote
hapnin Posted September 29, 2009 Author Posted September 29, 2009 Hey Buzzard Would you mind taking a look ay my Menu file. I got it working within Autocad and after you start using the menu it will begin to prompt you for layer options. not sure if I have extra spaces somewhere or what? Much appreciated Hapnin A-LAYERS1.zip Quote
The Buzzard Posted September 29, 2009 Posted September 29, 2009 Hey Buzzard Would you mind taking a look ay my Menu file. I got it working within Autocad and after you start using the menu it will begin to prompt you for layer options. not sure if I have extra spaces somewhere or what? Much appreciated Hapnin Hey Hapnin, Whats Hapnin! Yes, I will take a look. I will get back to you. Quote
The Buzzard Posted September 29, 2009 Posted September 29, 2009 The file in the zip folder is the same file I gave you to start with. There are no changes. Are you sure you loaded the right file? Quote
hapnin Posted September 29, 2009 Author Posted September 29, 2009 Hmm Strange OK I renamed it and made a new zip file. try this one. Hapnin Perez.zip Quote
The Buzzard Posted September 29, 2009 Posted September 29, 2009 Hmm Strange OK I renamed it and made a new zip file. try this one. Hapnin So far I went thru a few of the layers and did not get a problem as of yet. Where exactly in your menu should I be looking? Quote
hapnin Posted September 29, 2009 Author Posted September 29, 2009 I started at the top and went thru the whole menu list, and it will start doing it. I just reopened Autocad and is started doing it in the begining. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.