Templates and Assemblies
The SkyCiv assembly library provides a series of functions that can be used to quickly model a structure. A multitude of functions are provided and can be sequentially invoked to create custom a structural model template.
#
Getting StartedInclude the skyciv-parametric-dist.js file on your page to get access to the parametric library. Download the sample file below and open it in a web browser to build a Gable Roof warehouse model using only the assembly library.
Sample Assemblies Functionality
SKYCIV.structure.parametric.init
#
Pass in an assembly object or a model object and an assembly object into this function to build the overall assembly. This function will return a model object back
#
The Assembly ObjectThe functions in this library require a specific input object that will be discussed through out this document. The assembly object is made from three parts, the input structure and requirements are explained in greater detail below. A skeleton assembly object is also provided below.
#
Variable TypesVariable type can be either "float"
or "truss_style"
.
The value of "truss_style"
can be "warren"
, "gambrel"
,"straight"
,"cross"
or "pratt"
#
StepsThe steps property governs how the model is built. Steps will be execute in the order they are provided. Each cad function generates a cad element.
#
Cad Line FunctionThe Cad Line function allows users to generate a member based on a certain set of inputs. This function can be called three ways and each way requires different set of inputs.
- By Vector
- By Points
- By Angle
#
Cad Plate FunctionUsers can add parametric plates that are dynamic and move with the rest of the structure. Cad Plates are built on points only.
#
Cad Repeat FunctionThe Cad Repeat function allows users to repeat existing cad elements in a certain direction or based on the points given. Cad functions to be repeated must be set before this function in the array of steps.
- By Vector
- By Points
#
Cad Rotate FunctionThe Cad Rotate function allows users to rotate existing cad elements. Similar to cad repeat, cad functions to be rotated must be set before this function in the array of steps.
#
Cad Curve FunctionThe Cad Curve function allows users to generate curve members when given a certain inputs. This function can be called by specifying the arc to rotate about or the start and end points of the curve.
- By CenterArc
- By StartEnd
#
Cad Join FunctionThe Cad Join function allows users to join nodes and nodes of any existing cad elements to another set of nodes.
#
Cad Truss FunctionThe Cad Truss function allows users to create trusses based on given input. It can generate 3D trusses when given nodes or 2D trusses when given parameters.
- By Nodes
- By 2D