SamIWas Posted August 8 Share Posted August 8 This issue has been happening repeatedly for a while, and I'm looking for a way to solve it. I build some complex models in Vectorscript, and sometimes use SubtractSolid to build some shapes. A simple example code is: <object code> s1:=LNewObj; <object code> s2:=LNewObj; subtract:=SubtractSolid(s1,s2,s3); DelObject(s1); DelObject(s2); I've posted an example below. Moving the object causes the parts to come back, but they eventually disappear again. What is the best practice for making these objects stay? Should I convert them to generic solids? Do I need to reset the object in the code? Quote Link to comment
bcd Posted August 8 Share Posted August 8 58 minutes ago, SamIWas said: Should I convert them to generic solids? Do I need to reset the object in the code? Not sure but I do see this very occasionally when direct modelling and Convert to GS does the trick. Quote Link to comment
Pat Stanford Posted August 8 Share Posted August 8 Is this just a script or is this part of a PIO? Have you included a ResetObject call on the final subtraction in your script? Have you included a Redraw/RedrawAll at the end of your script? Quote Link to comment
SamIWas Posted August 8 Author Share Posted August 8 6 hours ago, Pat Stanford said: Is this just a script or is this part of a PIO? Have you included a ResetObject call on the final subtraction in your script? Have you included a Redraw/RedrawAll at the end of your script? It is part of a PIO written in Vectorscript. I do have a ResetObject(h) at the end, but I do not have a redraw. The object does reset if I make any adjustment to it, but I'm wondering if the redraw would even happen if nothing triggers the plug-in to run again. Might try the convert to generic solid. Quote Link to comment
Pat Stanford Posted August 9 Share Posted August 9 I believe the Redraw/RedrawAll command will always run. Might not solve this problem, but it may. And it is only one line of code to add and you will still have the object history if you need it. 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.