Model.CE_ConnectorCreateByAutopitchNew#

Model.CE_ConnectorCreateByAutopitchNew(collection, maxProximityDistance, autopitchInterval, autopitchToEdgeDistance, autopitchFeatureEdgeDistance, autopitchOffset=0, considerThinSolids=1, createPointsInMiddle=0, featureAngle=180, maxFlangeWidth=0, maxVariationPercent=0, combineSpots=0, maxLinks=2, excludeHolesWithWidthLessThan=0)#

Create connectors using autopitch points, obtained by flange detection techniques.

Parameters:
  • collection (Collection) – The collection containing the component entities to find flanges in, to create connectors.

  • maxProximityDistance (double) – The maximum proximity distance that can be used. Also, used as the tolerance value for connector creation.

  • autopitchInterval (double) – Spacing between autopitch points. Points are not created if set to 0.0.

  • autopitchToEdgeDistance (double) – The distance from the free edge for autopitch points.

  • autopitchFeatureEdgeDistance (double) – The distance from the feature edges for autopitch points.

  • autopitchOffset (double) – The initial offset for autopitch point. If set to 0.0, autopitch_interval/2 is used.

  • considerThinSolids (unsigned int) –

    0 - Closed shell thin solids are not considered as input. Only standard shell midmeshes are considered.

    1 - Closed shell thin solids are considered as input, along with standard shell midmeshes.

  • createPointsInMiddle (unsigned int) –

    0 - Autopitch points are created on one of the flanges

    1 - Autopitch points are created at the midplane of flanges

  • featureAngle (double) – Used to identify each connected sequence of feature edges. Specifically, a feature edge is one whose adjoining faces form an angle greater than this value. Acceptable values are [0.0, 180], otherwise closer extreme is used.

  • maxFlangeWidth (double) – The maximum flange width. Used only if it is greater than 0.0.

  • maxVariationPercent (double) – The maximum percentage variation allowed in inter-flange distances, from the average inter-flange distance.

  • combineSpots (int) – Reserved for future development

  • maxLinks (int) – Reserved for future development

  • excludeHolesWithWidthLessThan (double) – Reserved for future development

Example#

Create connectors at the midplane of the components with IDs 1 and 2 using a feature angle of 30.0 degrees, not considering closed shell thin solids as input, maximum flange width of 20.0, maximum proximity distance of 20.0, autopitch interval of 50.0, offset of 10.0, a distance from free edge of 10.0, with 0 maximum percentage variation allowed in inter-flange distances and a distance from the feature edges of 5.0#
import hm
import hm.entities as ent

model = hm.Model()

model.CE_ConnectorCreateByAutopitchNew(
    collection=hm.Collection(model, ent.Component, [1, 2]),
    maxProximityDistance=20.0,
    autopitchFeatureEdgeDistance=5.0,
    autopitchInterval=50.0,
    autopitchToEdgeDistance=10.0,
    autopitchOffset=10.0,
    considerThinSolids=0,
    createPointsInMiddle=1,
    featureAngle=30.0,
    maxFlangeWidth=20.0,
    maxVariationPercent=0.0,
)