Andreas Posted July 8, 2024 Share Posted July 8, 2024 Dear VW forum I'm looking for a function who can update/redraw/regenerate all the plug-in object in the model. I'll try to explain better: I have several doors-windows generated from plug-in object, I modify a component in the wall (thickness for example) where the plug-in objects are inserted and, I see the changes of the component thickness but to obtain a correct update of the plug in object i need to move-it and then the plug-in objects are well redraw. here an example: I change the insulation thickness in this wall. Then I see this: before moving after.. The functions vs.ReDraw() and vs.ReDrawAll() don't works.. Quote Link to comment
spettitt Posted July 8, 2024 Share Posted July 8, 2024 (edited) vs.SetObjectVariableBoolean(h, 1167, True) This will reset handle h. For all PIOs of a given type, you'll need to loop through them or vs.ForEachObject loop through them. Edited July 8, 2024 by spettitt Quote Link to comment
Andreas Posted July 8, 2024 Author Share Posted July 8, 2024 Thanks Spettitt But it doesn't work Quote Link to comment
spettitt Posted July 8, 2024 Share Posted July 8, 2024 Maybe try vs.ResetObject(h) If not, that's pretty much the gamut of reset options, so it might not be a reset issue. Quote Link to comment
Andreas Posted July 8, 2024 Author Share Posted July 8, 2024 Thanks, Neither vs.ResetObject(h) works. Quote Link to comment
Andreas Posted July 8, 2024 Author Share Posted July 8, 2024 This works -> vs.UpdateStyledObjects('StyleName') 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.