plot scale

plot scale

Anonymous
Not applicable
110 Views
2 Replies
Message 1 of 3

plot scale

Anonymous
Not applicable
i've made a batch plot program in vb6 for r14. my problem is i have a text
box for the drawing and plot scale. if i put in .5 it prints just fine but
if i put in 1/2 it sets it to 1 and not .5 is there anyway to calculate
the fractions or have it only except decimals?
Thanks,
Rob
0 Likes
111 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
You'd have to write code to parse the string in the text box into an actual
equation, then it would work. That seems like more work than it's worth
though. In my plot routine I have a combo box which lists all the scales the
acad plot dialog does and more. I use a select case and set the scale
accordingly. It's alot easier than trying to figure out what the string 1/4"
= 1'-0" computes out to.

-jake

Hairball wrote in message
news:37522A0A1399B868DC7D997E8E3537D3@in.WebX.SaUCah8kaAW...
> i've made a batch plot program in vb6 for r14. my problem is i have a
text
> box for the drawing and plot scale. if i put in .5 it prints just fine
but
> if i put in 1/2 it sets it to 1 and not .5 is there anyway to calculate
> the fractions or have it only except decimals?
> Thanks,
> Rob
>
0 Likes
Message 3 of 3

Anonymous
Not applicable
Hi Rob,
Check out the DistanceToReal function.
It might be what you are looking for. 🙂

dblScale = ThisDrawing.Utility.DistanceToReal(Textbox1.Text,acFractional)

Hope this helps,

- Adam <><

"Hairball" wrote in message
news:37522A0A1399B868DC7D997E8E3537D3@in.WebX.SaUCah8kaAW...
> i've made a batch plot program in vb6 for r14. my problem is i have a
text
> box for the drawing and plot scale. if i put in .5 it prints just fine
but
> if i put in 1/2 it sets it to 1 and not .5 is there anyway to calculate
> the fractions or have it only except decimals?
> Thanks,
> Rob
>
0 Likes