steelydev Posted December 27, 2025 Share Posted December 27, 2025 (edited) I have a plug-in point object defined in the Plug-in Manager. It correctly draws the geometry I want (tapered pipe or tube) ONLY if i'm in top view or top/plan view. If I change the Obj Info in any other view, I believe it is updating the geometry relative to my view instead of relative to layer plane. Can't seem to locate the correct commands to tell the script to draw relative to the layer plane. Any help would be appreciated and happy holidays!!! ROCEDURE TaperedPipe; VAR circle1, circle2, loftSurface, loftGroup : HANDLE; BEGIN PushAttrs; SetWorkingPlane(0, 0, 0, 0, 0, 0); Oval(-PbottomDiameter/2, -PbottomDiameter/2, PbottomDiameter/2, PbottomDiameter/2); circle1 := LNewObj; Oval(-PtopDiameter/2, -PtopDiameter/2, PtopDiameter/2, PtopDiameter/2); circle2 := LNewObj; { Now group the selected objects } BeginGroup; circle1 := ConvertToNURBS(circle1, FALSE); circle2 := ConvertToNURBS(circle2, FALSE); Move3DObj(circle2, 0, 0, Pheight); EndGroup; loftGroup := LNewObj; { Create loft and shell } loftSurface := CreateLoftSurfaces(loftGroup, false, false, false); DelObject(loftGroup); IF (Ptube) THEN loftSurface := CreateShell(loftSurface, Pthickness) ELSE loftSurface := CreateShell(loftSurface, -Pthickness); PopAttrs; ResetOrientation3D; END; RUN(TaperedPipe); Edited December 27, 2025 by steelydev Quote Link to comment
C. Andrew Dunning Posted December 27, 2025 Share Posted December 27, 2025 (edited) 2 hours ago, steelydev said: I have a plug-in point object defined in the Plug-in Manager. It correctly draws the geometry I want (tapered pipe or tube) ONLY if i'm in top view or top/plan view. If I change the Obj Info in any other view, I believe it is updating the geometry relative to my view instead of relative to layer plane. Can't seem to locate the correct commands to tell the script to draw relative to the layer plane. SetObjectVariableBoolean(1160,HANDLE,FALSE) will set an object to the Layer Plane and SetObjectVariableBoolean(1160,HANDLE,TRUE) will set it to the Screen Plane. Edited December 27, 2025 by C. Andrew Dunning 1 Quote Link to comment
Pat Stanford Posted December 27, 2025 Share Posted December 27, 2025 @C. Andrew Dunning Did you forget the Index? Or am I missing something? Your scripts above don't compile or run for me. Quote Link to comment
C. Andrew Dunning Posted December 27, 2025 Share Posted December 27, 2025 7 minutes ago, Pat Stanford said: @C. Andrew Dunning Did you forget the Index? Or am I missing something? Your scripts above don't compile or run for me. Yup. Edited. 1 Quote Link to comment
steelydev Posted December 28, 2025 Author Share Posted December 28, 2025 @C. Andrew Dunning That did it. Thank you! Just to be clear, it is SetObjectVariableBoolean(HANDLE,1160,FALSE) Done on each of circle1 and circle2. Please see below for the entire plug-in if you find it useful... TaperPipe.vso 1 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.