@a.kouchakzadeh schrieb:
then thsi error appears which says :
where am I wrong?
You started the right command in the wrong DWG file.
>>"when I open a dwg file, I cant find the right .STB file I want in the plot style table:"
This DWG is set up to use CTB plotstyles, that's why your .stb are not listed in PLOT or PAGESETUP dialog.
Valentins links are useful (CONVERTPSTYLES - if you want to use .stb in this file)
>>"I searched and AutoCAD online help says go to "options" / go to "Plot and Publish" tab and then the "Plot Style Table Setting" button:"
These are settings for current object plotstyle and plotstyletalbes for new drawings which are not based on a template.
>>"I can see NSV greyscale.STB"
Yes, it is the setting for new .stb related drawings, so you can choose a .stb file.
>>" and I have set the radio button to Use named plot styles."
These settings are not for existing drawings - read the dialog content: FOR NEW Drawings.
(and it means NEW drawings, not drawings based on a template)
>>"but still I can not see my nsv greyscale.stb plot style."
Where? In drawings which are .ctb related? Surely not, only in .ctb related DWGs.
>>"why doesnt my .STB file show when its not opened in the template?"
.ctb related files will show .ctb files, .stb related files will show .stb files.
>>"now, when I copy the content in a specific template, I can see the .STB file I want: "
If your target file is set up to use .stb - sure.
>>"also can some one tell me how can I make a dwg file use .STB plot style or switch to use .CTB files?"
You got the answer in the first reply above:
Follow Valentins link again(?) and convert this file from .ctb to .stb related.
Now, I would run this step: Save the file, close&reopen the file, work on
>>"is there any check box to show bot STB and CTB files in "plot style table (pen assignment)"?"
Make no sense, so the answer is: NO!
>>"does any one know if I can set the plot style mode to stb or vice versa via C#?"
Do you for what a search engine is? You can search for present content
filtered to board, to a domain or world wide (by the right search app)
Short: If possible, it is a hard challange. Simple: You can go the same way as manual, sendcommand - CONVERTPSTYLES