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.
Include 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.
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 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 type can be either
The value of
"truss_style" can be
The 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.
The 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
Users can add parametric plates that are dynamic and move with the rest of the structure. Cad Plates are built on points only.
The 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
The 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.
The 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
The Cad Join function allows users to join nodes and nodes of any existing cad elements to another set of nodes.
The 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