Changes to Methods of the CustomSupportDefinition class
To place a support using the Place by Reference command, you need to modify some of the methods of CustomSupportDefinition.
Parts - No changes required in this method.
ConfigurationCount - No changes required in this method.
SupportedConnections - No changes required in this method.
SupportingConnections - Changes may be required to this method:
//Check to see if this is the Place by Ref cmd
int numStruct = 0;
if (SupportHelper.PlacementType == PlacementType.PlaceByReference)
numStruct = 1;
else
numStruct = SupportHelper.SupportedObjects.Count;
ConfigureSupport - When you retrieve FlangeThickness from structure, for instance, if you are using Place by Reference command, you must assign a valid default value for FlangeThickness.
//Code to get the Command type
if (SupportHelper.PlacementType == PlacementType.PlaceByReference)
connection = "Slab";
else
{
//Code for Place By Point” or “Place by Struct” command
}
//Code to set the flangeThickness value in ConfigureSupport
double flangeThickness = 0.0;
if (SupportHelper.PlacementType == PlacementType.PlaceByReference)
flangeThickness = 0;
else
flangeThickness = SupportingHelper.SupportingObjectInfo(1).FlangeThickness;
Reference Ports
Following are the reference ports available for the Place by Reference command:
-
Route
-
Struct
-
RouteAlt
-
World
-
BBR_Low
-
BBR_High
-
Tangent_BBR_Low
-
Tangent_BBR_High
-
Tangent_Alt_BBR_Low
-
Tangent_Alt_BBR_High
-
BBRV_Low
-
BBRV_High
-
GBBR_Z_Low
-
GBBR_Z_High
-
GBBR_X_Low
-
GBBR_Z_High
Following are the reference ports that are not available for Place by Reference command:
-
BBSR_Low
-
BBSR_High
-
BBSV_Low
-
BBSV_High
-
StructAlt