Skyfox01 Posted July 28, 2005 Share Posted July 28, 2005 Hi, if I enter the code below I got an unexpected result. It looks like a bug in the program! please Enter the code and try to draw it ... Use a point Object! Procedure Test; var hd :array[1..3] of handle; Begin arc(1690,910,-130,-910,180,-65); hd[1]:=lnewobj; arc(1430,650,130,-650,180,-65); hd[2]:=lnewobj; clipsurface(hd[1],hd[2]); hd[3]:=prevobj(lnewobj); delobject(hd[2]); End; Run(Test); If you are making the band smaller, VW doesn't draw anything! The problem occures only within Angles around 60 degrees! Is there anyone, who can help me to solve this problem? I need this very urgent! Thank you. Kind regards, Skyfox! Quote Link to comment
Rick Francken Posted July 28, 2005 Share Posted July 28, 2005 That code worked fine for me as a script. I did not try it as a plugin tool script. What happens if you comment out the "DelObject(hd[2])" statement? Quote Link to comment
Rick Francken Posted July 28, 2005 Share Posted July 28, 2005 Martin, I'm sorry. That first test ran no problem in VW 11.0.1; when I tried it in VW 11.5.1 I got the same behavior you described. When I ran through with the debugger in 11.5.1, I observed that the Handles stayed nil after the Arc calls. Even stranger, occasionally the variable window was completely blank. Not sure what is causing that except maybe the Editor plug-in got corrupted and is trying to access the wrong thread. Quote Link to comment
ccroft Posted July 29, 2005 Share Posted July 29, 2005 The script works for me from a script palette in 11.5... as long as the attributes palette is set to solid. It fails if set to none. I guess an unfilled arc has no surface to be clipped. What happens is that there's no resulting object from clipsurface, so it draws one arc, then another and deletes the second one. Not sure why you're seeing Nil handles though. If you're still having problems, you might remove everything in the script except the arc calls, and see if you can get the desired result by choosing clip surface from the menu after the arcs are drawn. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.