Punch! CAD
»
ViaCAD & Shark
»
General
»
Expression parser problems (#4085)
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
Punch! CAD
»
ViaCAD & Shark
»
General
»
Expression parser problems (#4085)
Forum Jump
Punch! CAD
ViaCAD & Shark
- News and Announcements
- General
- 2D Drafting
- Surface Modeling
- Solid Modeling
- Subdivision Modeling
- Rendering & Display
- Import/Export
- Tips and Tutorials
- Suggestions
- Gallery
- PowerPack
- Punch Lounge
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.