Jump to content

Recommended Posts

Posted

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

  • Replies 49
  • Created
  • Last Reply

Top Posters In This Topic

  • The Buzzard

    24

  • hapnin

    15

  • alanjt

    7

  • Glen Smith

    1

Top Posters In This Topic

Posted Images

Posted
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.

Posted

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.

Document1.jpg

Posted

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

Posted
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.

Posted

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

Posted

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.

Posted

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

Posted

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

Posted

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

Posted
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

Posted
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.

Posted

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

Posted

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.

Document1.JPG

Posted

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

Posted
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.

Posted

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?

Posted
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?

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...