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'] |
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()])
def sds2.model_dimension.add_multiple | ( | arg1 | ) |
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 | ) |
Add a new model dimension C++ signature : void add_one((anonymous namespace)::LinearDimension)
def sds2.model_dimension.erase_all | ( | args | ) |
Erase all model dimensions C++ signature : void erase_all()
def sds2.model_dimension.erase_multiple | ( | arg1 | ) |
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 | ) |
Erase one model dimension C++ signature : void erase_one((anonymous namespace)::LinearDimension)
def sds2.model_dimension.get_all | ( | args | ) |
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()
list sds2.model_dimension.__all__ = ['LinearDimension', 'get_all', 'add_one', 'add_multiple', 'erase_one', 'erase_multiple', 'erase_all'] |