logo
NOTICE:  This is the new PunchCAD forum. You should have received an email with your new password around August 27, 2014. If you did not, or would like it reset, simply use the Lost Password feature, and enter Answer as the security answer.
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
eHam  
#1 Posted : Wednesday, December 7, 2011 2:03:23 PM(UTC)
eHam

Rank: Junior Member

Joined: 11/20/2007(UTC)
Posts: 17

Given the following declared Macros and Parameters:

[Macros]
dp=n/p
db=dp*cos(a)
do=(n+2)/p
dr=(n-2.5)/p
la=(pi/180)*(db/2)
rf=.300/p
h=d/2/tan(a/2)
ang=dia*180/rad
sb=4*4
theta=dia*180/rad

[Params]
a=82.0000000000000000
p=8.0000000000000000
n=20.0000000000000000
r=2.0000000000000000
dia=3.0000000000000000
rad=2.0000000000000000
d=1.8194444400000001
s=5.0000000000000000

Using the Data Entry fields in the Prompt area, specifically for a line, all the listed macros and parameters seem to evaluate properly when executed in the Length field. However, if using the Angle field, any macro name or parameter name that starts with the letter 's' returns 0.0 and any with a single letter name of 'd' likewise returns a 0.0 value. Oddly, macro names starting with 'd' but having additional letters work properly.

More puzzling, using the Total Angle field for the Center Point Arc, an "sb", 's' or 'd' evaluation simply does nothing--no return value at all, just a squawk from my iMac's speaker!

Tested in both ViaCAD V8 and V6
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.