The Kiss module

Here's an example of a script that outputs to a folder named kiss_export . Note that the second argument for Exportdetails() can take a list of member piecemarks.The function Kiss.Setup() used in the third argument outputs the DSTV files to the currently selected " CNC configuration " since no "configuration_name" is specified inside the () of Kiss.Setup() .

# Sends detail B_1 to the kiss_export folder using the default kiss setup.

import Output
import Kiss
Kiss.Exportdetails(Output.Destination('kiss_export'), ['B_1'], Kiss.Setup())

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

SDS2 Python Prompt

>>> import Kiss                                     # import the module
>>>
>>> dir(Kiss)                                          # do a dir() on the module name
['BoltQuantityType', 'DataSource', 'Exportdetails', 'ExportFabSuitedetails', 'ExportFabSuiteSheets', 'ExportSheets', 'RoutingType', 'Setup', 'VersionType', '__doc__', '__name__', '__package__']
>>>
>>> from Kiss import*                            # import functions from the module
>>>
>>> help(Exportdetails)                         # help on Exportdetails
Help on built-in function Exportdetails:

Exportdetails(...)
Example: Exportdetails(Output.Destinatation("kiss_output", [dtl_string1, dtl_string2], Setup()))
C++ signature:
Exportdetails(Destination dest, boost::python::list selection, KissSetup setup) -> void*

>>> help(ExportFabSuitedetails)          # help on ExportFabSuitedetails
Help on built-in function ExportFabSuitedetails:

ExportFabSuitedetails(...)
Example: ExportFabSuitedetails(Output.Destinatation("kiss_output", [dtl_string1, dtl_string2], Setup()))
C++ signature:
ExportFabSuitedetails(Destination dest, boost::python::list selection, KissSetup setup) -> void*

>>> help(ExportSheets)                           # help on ExportSheets
Help on built-in function ExportSheets:

ExportSheets(...)
Example: ExportSheets(Output.Destinatation("kiss_output", [dtl_string1, dtl_string2], Setup()))
C++ signature:
ExportSheets(Destination dest, boost::python::list selection, KissSetup setup) -> void*

>>> help(ExportFabSuiteSheets)            # help on ExportFabSuiteSheets
Help on built-in function ExportFabSuiteSheets:

ExportFabSuiteSheets(...)
Example: ExportFabSuiteSheets(Output.Destinatation("kiss_output", [dtl_string1, dtl_string2], Setup()))
C++ signature:
ExportFabSuiteSheets(Destination dest, boost::python::list selection, KissSetup setup) -> void*

page 1 | contents | modules | top