<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic StyleSheet Property! in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/stylesheet-property/m-p/344029#M81082</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Does anyone know if it's possible to specify Plot Style Tables located in a&lt;BR /&gt;
different folder than the standard PlotStyle folder?&lt;BR /&gt;
&lt;BR /&gt;
Have any experimented with this?&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Morten Andersen</description>
    <pubDate>Wed, 19 Sep 2001 03:52:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2001-09-19T03:52:05Z</dc:date>
    <item>
      <title>StyleSheet Property!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/stylesheet-property/m-p/344029#M81082</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Does anyone know if it's possible to specify Plot Style Tables located in a&lt;BR /&gt;
different folder than the standard PlotStyle folder?&lt;BR /&gt;
&lt;BR /&gt;
Have any experimented with this?&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Morten Andersen</description>
      <pubDate>Wed, 19 Sep 2001 03:52:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/stylesheet-property/m-p/344029#M81082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-09-19T03:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: StyleSheet Property!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/stylesheet-property/m-p/344030#M81083</link>
      <description>I haven't tried that specifically.  However, I initially thought you were supposed to&lt;BR /&gt;
provide a fully qualified path name to the stylesheet property.  When I tried to do this&lt;BR /&gt;
it made my program crash.&lt;BR /&gt;
&lt;BR /&gt;
Chuck&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Morten Andersen" &lt;MNA&gt; wrote in message&lt;BR /&gt;
news:260B92C8BE8B13F8521804BC951DEFD5@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Does anyone know if it's possible to specify Plot Style Tables located in a&lt;BR /&gt;
&amp;gt; different folder than the standard PlotStyle folder?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Have any experimented with this?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Regards,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Morten Andersen&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/MNA&gt;</description>
      <pubDate>Wed, 19 Sep 2001 05:06:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/stylesheet-property/m-p/344030#M81083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-09-19T05:06:42Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/stylesheet-property/m-p/344031#M81084</link>
      <description>Ok, let me tell you the exact problem.&lt;BR /&gt;
&lt;BR /&gt;
I did this Plot Routine, which has been workin fine for the last 3 months.&lt;BR /&gt;
By fine I mean that I had no problem i providing af full path to the&lt;BR /&gt;
StyleSheet property. Then to day I wanted to make af few changes to the&lt;BR /&gt;
routine, and suddenly the property will not accept a fullpath.&lt;BR /&gt;
&lt;BR /&gt;
I realize that the help file doesn't say anything about a full path, but&lt;BR /&gt;
since the routine has been workin fine so far, I'm in a situation where I&lt;BR /&gt;
must choose whether or not to go with the full path or not. It's rather&lt;BR /&gt;
critical to the routine, as it lets the user choose to save Plot Styles in&lt;BR /&gt;
the same folder as the drawing, and then later retrieve it again. All this&lt;BR /&gt;
without the ctb file having to reside in the Plot Style folder of Acad.&lt;BR /&gt;
&lt;BR /&gt;
Any input from Autodesk, will be greatly appreciated.&lt;BR /&gt;
&lt;BR /&gt;
/Morten Andersen&lt;BR /&gt;
"Chuck Gabriel" &lt;BOT_VICTIM_CRGABE&gt; wrote in message&lt;BR /&gt;
news:56F801FCED8464EB1A494AD1827E48DE@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I haven't tried that specifically.  However, I initially thought you were&lt;BR /&gt;
supposed to&lt;BR /&gt;
&amp;gt; provide a fully qualified path name to the stylesheet property.  When I&lt;BR /&gt;
tried to do this&lt;BR /&gt;
&amp;gt; it made my program crash.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Chuck&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Morten Andersen" &lt;MNA&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:260B92C8BE8B13F8521804BC951DEFD5@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Hi,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Does anyone know if it's possible to specify Plot Style Tables located&lt;BR /&gt;
in a&lt;BR /&gt;
&amp;gt; &amp;gt; different folder than the standard PlotStyle folder?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Have any experimented with this?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Regards,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Morten Andersen&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/MNA&gt;&lt;/BOT_VICTIM_CRGABE&gt;</description>
      <pubDate>Wed, 19 Sep 2001 05:41:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/stylesheet-property/m-p/344031#M81084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-09-19T05:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: StyleSheet Property!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/stylesheet-property/m-p/344032#M81085</link>
      <description>Again, he who looks shall find answers.&lt;BR /&gt;
&lt;BR /&gt;
Looking through my code, I found the answer, and let me just say that the&lt;BR /&gt;
StyleSheet property is able to recieve a full path.&lt;BR /&gt;
&lt;BR /&gt;
Here is a function I use to initialize plots:&lt;BR /&gt;
&lt;BR /&gt;
Public Function InitPlot(hgPlotter As String, hgRotation As Integer,&lt;BR /&gt;
hgPlotStyle As String, hgPlotPaper As String, Optional hgDenominator As&lt;BR /&gt;
Double, Optional hgScaleToFit As Boolean) As String&lt;BR /&gt;
&lt;BR /&gt;
Dim Numerator As Double&lt;BR /&gt;
&lt;BR /&gt;
On Error GoTo Error:&lt;BR /&gt;
&lt;BR /&gt;
InitPlot = ""&lt;BR /&gt;
&lt;BR /&gt;
Numerator = 1&lt;BR /&gt;
&lt;BR /&gt;
hgPlotter = hgPlotter &amp;amp; ".pc3"&lt;BR /&gt;
&lt;BR /&gt;
If hgPlotCon.ConfigName = hgPlotter Then&lt;BR /&gt;
&lt;BR /&gt;
Else&lt;BR /&gt;
    hgPlotCon.ConfigName = hgPlotter&lt;BR /&gt;
End If&lt;BR /&gt;
&lt;BR /&gt;
If hgPlotCon.CanonicalMediaName = hgPlotPaper Then&lt;BR /&gt;
Else&lt;BR /&gt;
    hgPlotCon.CanonicalMediaName = hgPlotPaper&lt;BR /&gt;
End If&lt;BR /&gt;
&lt;BR /&gt;
If hgPlotCon.PaperUnits = acMillimeters Then&lt;BR /&gt;
Else&lt;BR /&gt;
    hgPlotCon.PaperUnits = acMillimeters&lt;BR /&gt;
End If&lt;BR /&gt;
&lt;BR /&gt;
hgPlotCon.PlotRotation = hgRotation&lt;BR /&gt;
hgPlotCon.StyleSheet = hgPlotStyle&lt;BR /&gt;
hgPlotCon.SetWindowToPlot Point1, Point2&lt;BR /&gt;
hgPlotCon.PlotType = acWindow&lt;BR /&gt;
&lt;BR /&gt;
If hgScaleToFit = False Then&lt;BR /&gt;
    hgPlotCon.UseStandardScale = False&lt;BR /&gt;
    hgPlotCon.SetCustomScale Numerator, hgDenominator&lt;BR /&gt;
ElseIf hgScaleToFit = True Then&lt;BR /&gt;
    hgPlotCon.UseStandardScale = True&lt;BR /&gt;
    hgPlotCon.StandardScale = acScaleToFit&lt;BR /&gt;
End If&lt;BR /&gt;
&lt;BR /&gt;
Exit Function&lt;BR /&gt;
&lt;BR /&gt;
Error:&lt;BR /&gt;
&lt;BR /&gt;
InitPlot = Err.Description&lt;BR /&gt;
&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
As it turned out, I had for some reason forgot an extra L in acMillimeters.&lt;BR /&gt;
And strangely enough this caused StyleSheet to fail when given a full path.&lt;BR /&gt;
Odd!!! But my problem is solved.&lt;BR /&gt;
&lt;BR /&gt;
Chears.&lt;BR /&gt;
&lt;BR /&gt;
Morten Andersen&lt;BR /&gt;
&lt;BR /&gt;
"Morten Andersen" &lt;MNA&gt; wrote in message&lt;BR /&gt;
news:260B92C8BE8B13F8521804BC951DEFD5@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Does anyone know if it's possible to specify Plot Style Tables located in&lt;BR /&gt;
a&lt;BR /&gt;
&amp;gt; different folder than the standard PlotStyle folder?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Have any experimented with this?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Regards,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Morten Andersen&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/MNA&gt;</description>
      <pubDate>Wed, 19 Sep 2001 06:51:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/stylesheet-property/m-p/344032#M81085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-09-19T06:51:45Z</dc:date>
    </item>
  </channel>
</rss>

