News: HyperSizer.com has a Community Board and Customer Support System. Submit a ticket at http://hypersizer.com/ticket

Author Topic: New compulsory Boolean argument required for workspace?  (Read 22076 times)

HyperSizer Moderator

  • HyperSizer Moderator
  • Administrator
  • *****
  • Posts: 57
    • HyperSizer Structural Sizing Software
    •  
New compulsory Boolean argument required for workspace?
« on: July 17, 2008, 09:51:17 AM »
Question submitted by user via email:

I set up a workspace by setting the project to be “Workspace Template” via the API and then doing project,copy with the new workspace name. For the new version of the Hypersizer object, I have found that an additional Boolean argument is required, presumably to show whether copy worked or not. Why is this now compulsory?

Phil

  • Administrator
  • *****
  • Posts: 218
    • HyperSizer Structural Sizing Software
    •  
Re: New compulsory Boolean argument required for workspace?
« Reply #1 on: July 17, 2008, 10:00:51 AM »
The additional Boolean flag lets you indicate whether you want to copy sizing and analysis results from the source workspace to the target workspace.  In previous versions of HyperSizer, this was not available.  It sounds like you would want to set this to false since you are copying from a template (that would have no results to copy).  You don’t need a variable, just pass “False” to the method.
For example,

objWorkspace.Copy  “NameNew”, False