michaelk Posted October 18, 2011 Share Posted October 18, 2011 Is this a bad idea?? I'd like to be able to reset the "need to update" status on sheet layer viewports. There are many times when I change the manufacturer's model number in a worksheet and a most of the SL viewports show the red barber pole lines. Or I change the graphic attributes of a section line and the section viewport (unnecessarily) shows that it needs to be updated. Has anyone ever tried this? Are there any problems to be aware of? Is this the correct procedure: SetObjectVariableBoolean(SLViewportHandle,122,FALSE) Thanks MK Quote Link to comment
michaelk Posted October 22, 2011 Author Share Posted October 22, 2011 Another related question. Below is a quote from the VS reference for SetObjectVariableBoolean The description of the procedure has a handle argument, but the example doesn't. It won't run without the handle argument, but it doesn't change the boolean variable with it. Help mk VS:SetObjectVariableBoolean Description Sets the ON-OFF status of a VectorWorks object property. For specific object selector index values, see the Appendix. PROCEDURE SetObjectVariableBoolean( h :HANDLE; index :INTEGER; status :BOOLEAN); Parameters h HANDLE Handle to object. index INTEGER Object property index. status BOOLEAN New status for property. Example SetObjectVariableBoolean(17,FALSE); Quote Link to comment
Pat Stanford Posted October 22, 2011 Share Posted October 22, 2011 In the Object Preference Selectors, 17 is a real and is for Dimension Font Text Size. What Boolean Object Preference Selector are you really trying to set? Quote Link to comment
michaelk Posted October 22, 2011 Author Share Posted October 22, 2011 (edited) 1004 viewport update needed Edited October 22, 2011 by michaelk Quote Link to comment
Pat Stanford Posted October 22, 2011 Share Posted October 22, 2011 If you download the SDK and look in MiniCADCallBacks.h you will see that 1004 is a read only parameter. 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.