Multiline Style

Multiline Style

Anonymous
Not applicable
381 Views
6 Replies
Message 1 of 7

Multiline Style

Anonymous
Not applicable
Does anyone know of a method for programmatically determining what Multiline
style is currently active? If there's a way of doing it, it's escaping me.

Regards,
Donald F. Sanborn
0 Likes
382 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
Examine the CMLSTYLE variable.
___

"dsanborn" wrote in message
news:26303BC731A6E5293A1C0DF4E2A17963@in.WebX.maYIadrTaRb...
> Does anyone know of a method for programmatically determining what
Multiline
> style is currently active? If there's a way of doing it, it's escaping
me.
0 Likes
Message 3 of 7

Anonymous
Not applicable
Do you notice the lines in "*.mln" ? That defined the style of your mlines. It's your alternative to use Frank's great vbXtender.arx .Unfortunely, the method of "loadmlinestyle" seems dont' work well, Frank , Please tell me how? A thousand thanks to you!!
0 Likes
Message 4 of 7

Anonymous
Not applicable
There's a bug in vbxtender's loadmlinestyle. If you look at the arx source
code you will see that the parameters are reversed. Since they are both
strings, you can just reverse the meaning when you call loadmlinestyle.
This is how I'm calling it:

g_objVbXtenderApp.LoadMLineStyle vstrStyleName, m_kstrMLineStyleFile

You'll notice that the documentation requests the file followed by the style
name. Just ignore it!

One other note, I've found that loading an Mline style only works if the
style has never been loaded before. Once you've loaded a style, you can't
change settings and reload the style. You're stuck with it. (Unless I'm
missing something)

Regards,
Donald F. Sanborn


"spencerlwx" wrote in message
news:f07a985.1@WebX.maYIadrTaRb...
Do you notice the lines in "*.mln" ? That defined the style of your mlines.
It's your alternative to use Frank's great vbXtender.arx .Unfortunely, the
method of "loadmlinestyle" seems dont' work well, Frank , Please tell me
how? A thousand thanks to you!!
0 Likes
Message 5 of 7

Anonymous
Not applicable
> There's a bug in vbxtender's loadmlinestyle.

Now I don't know whether I should fix it for fear of breaking existing
code 😉

--
"That's no ordinary rabbit."
http://www.acadx.com

Visit my site for a chance to win
a free, autographed copy of
Jerry Winters' "AutoCAD Visual Basics"

"dsanborn" wrote in message
news:B7CA52A2E7732F774DBA06F276C4897A@in.WebX.maYIadrTaRb...
> There's a bug in vbxtender's loadmlinestyle. If you look at the arx
source
> code you will see that the parameters are reversed. Since they are
both
> strings, you can just reverse the meaning when you call
loadmlinestyle.
> This is how I'm calling it:
>
> g_objVbXtenderApp.LoadMLineStyle vstrStyleName,
m_kstrMLineStyleFile
>
> You'll notice that the documentation requests the file followed by
the style
> name. Just ignore it!
>
> One other note, I've found that loading an Mline style only works if
the
> style has never been loaded before. Once you've loaded a style, you
can't
> change settings and reload the style. You're stuck with it.
(Unless I'm
> missing something)
>
> Regards,
> Donald F. Sanborn
>
>
> "spencerlwx" wrote in message
> news:f07a985.1@WebX.maYIadrTaRb...
> Do you notice the lines in "*.mln" ? That defined the style of your
mlines.
> It's your alternative to use Frank's great vbXtender.arx
.Unfortunely, the
> method of "loadmlinestyle" seems dont' work well, Frank , Please
tell me
> how? A thousand thanks to you!!
>
>
0 Likes
Message 6 of 7

Anonymous
Not applicable
I say fix it because it won't break our code if we don't download the fix!
If we do download the fix, we will know what we're getting into, eh!

Regards,
Donald F. Sanborn



"Frank Oquendo" wrote in message
news:6733EED53D0071976320C8A1655553C2@in.WebX.maYIadrTaRb...
> > There's a bug in vbxtender's loadmlinestyle.
>
> Now I don't know whether I should fix it for fear of breaking existing
> code 😉
>
> --
> "That's no ordinary rabbit."
> http://www.acadx.com
>
> Visit my site for a chance to win
> a free, autographed copy of
> Jerry Winters' "AutoCAD Visual Basics"
>
> "dsanborn" wrote in message
> news:B7CA52A2E7732F774DBA06F276C4897A@in.WebX.maYIadrTaRb...
> > There's a bug in vbxtender's loadmlinestyle. If you look at the arx
> source
> > code you will see that the parameters are reversed. Since they are
> both
> > strings, you can just reverse the meaning when you call
> loadmlinestyle.
> > This is how I'm calling it:
> >
> > g_objVbXtenderApp.LoadMLineStyle vstrStyleName,
> m_kstrMLineStyleFile
> >
> > You'll notice that the documentation requests the file followed by
> the style
> > name. Just ignore it!
> >
> > One other note, I've found that loading an Mline style only works if
> the
> > style has never been loaded before. Once you've loaded a style, you
> can't
> > change settings and reload the style. You're stuck with it.
> (Unless I'm
> > missing something)
> >
> > Regards,
> > Donald F. Sanborn
> >
> >
> > "spencerlwx" wrote in message
> > news:f07a985.1@WebX.maYIadrTaRb...
> > Do you notice the lines in "*.mln" ? That defined the style of your
> mlines.
> > It's your alternative to use Frank's great vbXtender.arx
> .Unfortunely, the
> > method of "loadmlinestyle" seems dont' work well, Frank , Please
> tell me
> > how? A thousand thanks to you!!
> >
> >
>
>
0 Likes
Message 7 of 7

Anonymous
Not applicable
Consider it done.

--
"That's no ordinary rabbit."
http://www.acadx.com

Visit my site for a chance to win
a free, autographed copy of
Jerry Winters' "AutoCAD Visual Basics"

"dsanborn" wrote in message
news:D5431A7D116C35195921071D4ABD7EA4@in.WebX.maYIadrTaRb...
> I say fix it because it won't break our code if we don't download
the fix!
> If we do download the fix, we will know what we're getting into, eh!
0 Likes