SamIWas Posted February 22 Share Posted February 22 I've been trying to build a Loft NURBS in one of my PIOs. I draw the Polylines, convert them to NURBS, and do a loft. It works, as long as I'm in Top/Plan. But, if I am not in Top/Plan, the NURBS jump to what appears to be screen plane. I have tried using SetObjectVariableBoolean(h,1160,TRUE/FALSE) and SetPlanarRef(h,0 and -1) to set the NURBS curves back to the right plane, but neither works. The attached image shows the stack of poly lines, and what happens when they are changed to NURBS. Does anyone know the proper way to tell the NURBS to stay where they were? Quote Link to comment
Jesse Cogswell Posted February 23 Share Posted February 23 One thing you might try doing is checking if the current view is Top/Plan using GetProjection(ActLayer) looking for a return value of 6. If not, save the current view with VSave, then set the view to Top/Plan using Projection, executing the draw code, then restoring the view with VRestore and deleting the temporary view with VDelete. Kind of dumb, but if it works it's a whole lot easier than trying to force a bunch of NURBS onto the right plane. Quote Link to comment
SamIWas Posted February 23 Author Share Posted February 23 3 hours ago, Jesse Cogswell said: One thing you might try doing is checking if the current view is Top/Plan using GetProjection(ActLayer) looking for a return value of 6. If not, save the current view with VSave, then set the view to Top/Plan using Projection, executing the draw code, then restoring the view with VRestore and deleting the temporary view with VDelete. Kind of dumb, but if it works it's a whole lot easier than trying to force a bunch of NURBS onto the right plane. Hmmm...I will try this. Assuming it's not too resource heavy...if updating 20 PIOs at once, I wonder how quickly that executes. 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.