SDS2 Parametric API
 All Classes Namespaces Functions Variables Pages
Classes | Functions | Variables
sds2.model_dimension Namespace Reference

Manipulate SDS/2 Model Dimensions. More...

Classes

class  LinearDimension
 No documentation available. More...

Functions

def add_multiple
def add_one
def erase_all
def erase_multiple
def erase_one
def get_all

Variables

list __all__ = ['LinearDimension', 'get_all', 'add_one', 'add_multiple', 'erase_one', 'erase_multiple', 'erase_all']

Detailed Description

Manipulate SDS/2 Model Dimensions.

Unlike some Python modules, this module always interprets values in inches. Use utility functions such as param.dim() to convert to and from user units when using this module.

A linear dimension is defined by two endpoints in space, so for example, this dimension runs from the origin to a point 10 feet east: LinearDimension(Point3D(0, 0, 0), Point3D(120, 0, 0))

Usage example (adds a dimension along each member in the view): import sds2.model_dimension import model

sds2.model_dimension.add_multiple([ sds2.model_dimension.LinearDimension(m.ends[0].location, m.ends[1].location) for m in model.members()])

Function Documentation

def sds2.model_dimension.add_multiple (   arg1)
Returns
Instance of type None
     Add a list of model dimensions.
     Because model dimensions are saved after each change,
     this is more efficient than calling add_one() multiple times.
 
     C++ signature :
         void add_multiple(boost::python::list)
def sds2.model_dimension.add_one (   arg1)
Returns
Instance of type None
     Add a new model dimension
 
     C++ signature :
         void add_one((anonymous namespace)::LinearDimension)
def sds2.model_dimension.erase_all (   args)
Returns
Instance of type None
     Erase all model dimensions
 
     C++ signature :
         void erase_all()
def sds2.model_dimension.erase_multiple (   arg1)
Returns
Instance of type None
     Erase a list of model dimensions.
     Because model dimensions are saved after each change,
     this is more efficient than calling erase_one() multiple times.
 
     C++ signature :
         void erase_multiple(boost::python::list)
def sds2.model_dimension.erase_one (   arg1)
Returns
Instance of type None
     Erase one model dimension
 
     C++ signature :
         void erase_one((anonymous namespace)::LinearDimension)
def sds2.model_dimension.get_all (   args)
Returns
Instance of type list
     Return a Python sequence of all current model dimensions.
     This is a copy of the information, so modifying the returned
     value has no effect on displayed model dimensions
 
     C++ signature :
         boost::python::list get_all()

Variable Documentation

list sds2.model_dimension.__all__ = ['LinearDimension', 'get_all', 'add_one', 'add_multiple', 'erase_one', 'erase_multiple', 'erase_all']