Alexandre Villares Posted February 6, 2005 Share Posted February 6, 2005 code: Procedure Test; VAR H:HANDLE; BEGIN Rect(0,0,100m,100m); H:=CreateTaperedExtrude(LNewObj, 0, 100m); END; Run(Test);[/code] Can anyone tell me why this code draws a Tapered Extrude 0,10m (10cm) thick instead of 100m thick? It seems to always draw it 1000 times smaller, did I do something wrong? [ 02-07-2005, 03:00 PM: Message edited by: Alexandre B A Villares ] Quote Link to comment
kiwi Posted February 6, 2005 Share Posted February 6, 2005 The Real variable "100" for the extrude defines a height, not a length... you may change your object orientation (or the working plan) to use the function over the length. 10cm are 100mm, he looks like your vector script need to mach the document units, for 100m you'll need 100000 units if you document is in mm. Hope this is of any help! Quote Link to comment
Alexandre Villares Posted February 7, 2005 Author Share Posted February 7, 2005 Hi kiwi, Maybe my wording was not very clear (I have even edited the post now). Tapered Extrude is plan/view independent You have to rotate it afterwards if you want it sideways. The document is set to meters and I put 'm' after the 100 real-type paramenter... It looks like a bug to me. [ 02-07-2005, 06:11 PM: Message edited by: Alexandre B A Villares ] Quote Link to comment
ccroft Posted February 8, 2005 Share Posted February 8, 2005 Alex Do you get the same type of thing if the angle is other than zero? Charles Quote Link to comment
Alexandre Villares Posted February 8, 2005 Author Share Posted February 8, 2005 quote: Originally posted by ccroft: Do you get the same type of thing if the angle is other than zero? Hi Charles, Yes, any angle. I have to test it again on VW11, now on VW10 for some reason the code posted produces an ungrouped Tapered Extrude, 6 NURBs surfaces! It's driving me crazy! Quote Link to comment
mike m oz Posted February 8, 2005 Share Posted February 8, 2005 Many programming languages do not handle 0 as a variable value well. Try making your initial tapered extrude variable value something small like 1 mm, expressed appropriately for your default units setting, and see if this makes a difference. This will to all intents and purposes look the same for your purposes. Also try expressing your units without the unit identifier - set them appropriately for your default units settings. Quote Link to comment
ccroft Posted February 9, 2005 Share Posted February 9, 2005 I thought we were supposed to be able to use unit identifiers in script....maybe that's where is the bug? I've used them to no ill effect. Maybe you'll need to do that get units and *UPI rountine that's so popular in the NA scripts. I've no idea what kind of object Tapered Ex is supposed to produce, but 6 ungrouped NURBS seems odd (maybe). So what happens if,as Mike suggests,you use it without unit identifiers? Unfortunately I haven't upgraded in quite a while, so I can't test this myself. (soon to make the move) good luck Alex Quote Link to comment
kiwi Posted February 9, 2005 Share Posted February 9, 2005 The run script in 11... I try with the unit identifiers, and I do get a 100m extrusion on a 100m*100m rectangle. With out the units identifier, he follows properly the document units... on both cases I obtain a rectangle and 6 ungrouped nurb surfaces corresponding to the extrusion. I then try 100*100 rectangle, extruded to 100m and this work too... But is a non sense... the VS function doesn't produce the same results than the tapered extrude tool!!! 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.