MaxStudio Posted February 18, 2013 Share Posted February 18, 2013 I need to create a check box to include/remove a plugin object, at will, from a report database. Anyone have any references on how to accomplish this? Thank You Quote Link to comment
Hippocode Posted February 19, 2013 Share Posted February 19, 2013 Is that report a databaserow in a worksheet that lists all those objects ? Do you want that object to have that checkbox, or the report itself ? You might try adding a checkbox in the pio, write the code in it that will delete the PIO when true. VS:DelObject might work? This way you could change that value in a report with result the deletion of the object. Worksheet might need a recalculation afterwards. Quote Link to comment
MaxStudio Posted February 19, 2013 Author Share Posted February 19, 2013 I have a plugin that creates a door. I'm going to use the same plugin to make new and exisitng doors. I need a check box or pulldown to set the door to New or Existing. If the door is new it is included in the schedule/report... if its existing it is not included in the schedule, but remains a plug-in object on the drawing. Quote Link to comment
Vectorworks, Inc Employee klinzey Posted February 19, 2013 Vectorworks, Inc Employee Share Posted February 19, 2013 Is that report a databaserow in a worksheet that lists all those objects ? You might try adding a checkbox in the pio, write the code in it that will delete the PIO when true. VS:DelObject might work? A PIO can NEVER delete itself. You can have one PIO delete another but I don't think that was the original request anyway. Quote Link to comment
Vectorworks, Inc Employee klinzey Posted February 19, 2013 Vectorworks, Inc Employee Share Posted February 19, 2013 There is not way for the object to control the report, the report needs to be conditional on the object data. The check simply needs to be done in the database report criteria. You can check the Boolean (or pop-up) value as part of the criteria. If the value is true then the object will appear in the report otherwise it will not. The PIO only has to have a place to store the value. Quote Link to comment
MaxStudio Posted February 19, 2013 Author Share Posted February 19, 2013 Kevin, Sorry, but I'm a little confused on how to setup the check criteria: =('Plugin Object Name'.'scheduleCheck'=TRUE'.'Field to display') anywhere close? Quote Link to comment
MaxStudio Posted February 19, 2013 Author Share Posted February 19, 2013 wait a tic I may have found what I'm looking for Quote Link to comment
MaxStudio Posted February 19, 2013 Author Share Posted February 19, 2013 got it! I was attempting to set the criteria individually in the database header cell. that was wrong. it was as simple as right clicking the database header row and setting the criteria. Thanks for your help. 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.