The DesignCalcs module

PR 26370 Design Calculations can be generated from parametrics with the new DesignCals module and Export function. See help(DesignCalcs.Export) for more information. (v7.3)

PR 34579 In parametrics added the ability to export expanded design calcs. See help(DesignCalcs) for more information. (v2016)

The DesignCalcs module's Export() function lets you send the Connection Design Calculations for specified members to a specified destination.

Here's an example of a script that generates Connection Design Calculations for all members in your current Job and sends them to the Output-Request Summary .

# creates calcs for all the members in job, sends them to the report viewer. import DesignCalcs
import Output
import model
DesignCalcs.Export(Output.Destination(), model.members())

To get help on the DesignCalcs module , you can use the SDS2 Python Prompt and the built-in Python functions dir() and help() :

SDS2 Python Prompt

>>> import DesignCalcs                            # import the module
>>>
>>> dir(DesignCalcs)                                 # do a dir() on the module name
>>>
['Export', '__doc__', '__name__', '__package__']
>>>
>>> help(DesignCalcs.Export)                  # help on Export
Help on built-in function Export:

Export(...)
Send the design calcs for the specified members to the specified destination.
Example: Export(Output.Destination(), model.members())
C++ signature:
Export(Destination destination, boost::python::list selection) -> void*

page 1 | contents | modules | top