Planning data can drive physical connections by providing default answers to selection questions. For example, if a planner has defined the welding location of two plates, then the workcenter can be set for the assembly containing the two plates. The catalog contains information about that workcenter, and based on the Assembly Orientation that has been defined, the FirstWeldingSide can be set to Molded or AntiMolded. Or, the planner could decide if the weld should be single-sided or double-sided.
Properties may be assigned to the assembly or the workcenter. Workcenter properties are defined in the catalog during the bulkload process. Assembly properties are defined by default in the catalog, and can be overwritten by the planner on the Assembly Properties dialog box, as shown in the following picture:
The following sections describe how to get the planning data for an object and use it in the Structural Detailing rules. This is a limited set of examples, but these concepts can be used to obtain most planning properties.
Using the Planning Wrapper
Structural detailing delivers a wrapper called StructDetailObjects, in which users can retrieve properties for each of the different Structural detailing object types. Planning has a similar wrapper class. The PlanningObjects project can be found in \Planning\Data\RuleHelpers.
To get the WorkCenter property of an assembly, define an AssemblyBase. The following code shows an example of getting the WorkCenter for a bounded object:
string workCenterName = string.Empty;
AssemblyBase assemblyBase = (AssemblyBase)physicalConnection.BoundedObject;
workCenterName = assemblyBase.WorkCenterName;
This workcenter can be used to define welding properties for the bounded object.
To get the SlotOpenAngle of the input slot.
PlanningHelper planningHelper = new PlanningHelper();
double slotOpenAngle = 0.0;
slotOpenAngle = planningHelper.SlotOpenAngle(slot);
Slot feature is the input parameter for the above SlotOpenAngle method.