Model.createfmvss201u_start#

Model.createfmvss201u_start(vehicledir, method, seattraveldist=127.0, wsoffset=0.0, weatherstrippingoffset=0.0, exteriorpartsids=hwIntList(), interiorpartsids=hwIntList(), windshieldpartsids=hwIntList(), sgrp=hwTriple(0.0, 0.0, 0.0), sgrprear=hwTriple(0.0, 0.0, 0.0), testlabcsv='', side=0)#

Defaults for marking lines and impact points on the upper interior parts of a vehicle. The vehicle front should be pointing in +X or -X direction.

The function can be followed by none or many Model.createfmvss201u_createpoints() functions and should finally be followed by the Model.createfmvss201u_end() function.

Parameters:
  • vehicledir (int) –

    -1 - Vehicle forward direction is toward negative x-axis.

    1 - Vehicle forward direction is toward positive x-axis.

  • method (int) –

    0 - Automatic marking based on selections.

    1 - Read and mark design points from test lab import file.

  • seattraveldist (double) – The value of seat travel distance to calculate cgf1 and cgf2 points from sgrp.

  • wsoffset (double) – The windshield offset double value if windshield does not contact the interior roof in the work model.

  • weatherstrippingoffset (double) – The weather stripping offset double value if weather stripping part is not present in the work model.

  • exteriorpartsids (hwIntList) – The list of component IDs of the exterior roof and pillars of the vehicle. The door components should not be selected.

  • interiorpartsids (hwIntList) – The list of component IDs of the interior roof and pillars of the vehicle. The door components should not be selected.

  • windshieldpartsids (hwIntList) – The list of component IDs of the windshield (front) of the vehicle.

  • sgrp (hwTriple) – The location of front seat seating reference point (SgRP Front) of the vehicle.

  • sgrprear (hwTriple) – The location of rear seat seating reference point (SgRP Rear) of the vehicle.

  • testlabcsv (hwString) – The path to the input CSV file.

  • side (int) –

    0 - Left side marking.

    1 - Right side marking.

Example#

Mark A Pillar design points, Upper Roof Zone and B Pillar design points#
import hm
import hm.entities as ent

model = hm.Model

model.createfmvss201u_start(
    side=0,
    vehicledir=-1,
    method=0,
    seattraveldist=127.0,
    weatherstrippingoffset=0.0,
    wsoffset=0.0,
    sgrp=[2000.0, -400.0, 500.0],
    sgrprear=[2800.0, -400.0, 500.0],
    exteriorpartsids=[10003, 10006],
    interiorpartsids=[10000, 10004, 10007, 10008, 10010, 10011, 10016, 10017],
    windshieldpartsids=[10001],
)

model.createfmvss201u_createpoints(
    pointtype=0, apillarpartsids=10010, ap1=1, ap2=2, ap3=1, apbool=1, ippointid=ent.Node(model,57354)
)

model.createfmvss201u_createpoints(
    pointtype=1, interiorroofpartsids=[10000, 10016, 10017], urbool=1
)

model.createfmvss201u_createpoints(
    pointtype=2,
    bpillarpartsids=[10007],
    bp1=1,
    bp2=1,
    bp2pointid=ent.Node(model,52327),
    bp3=1,
    bp4=1,
    bpbool=1,
    bphighestpointid=ent.Node(model,73386),
    bpn1pointid=ent.Node(model,52774),
    bpn2pointid=ent.Node(model,51988),
)
model.createfmvss201u_end()