mv.fd_types.Part(fd_types.Assembly)

    Follow

    fd_types.Part inherits all of the properties and functions that are available in fd_types.Assembly

    FUNCTIONS

    assign_material(slot_name,material_path,material_name) - Assigns a material to the slot_name for every mesh in the Part.

    • RETURNS - None
    • slot_name (string) - name of the slot to assign the material to
    • material_path (string) - file path to where the material is located
    • material_name (string) - name of the material to assign to the material slot

    material(material_pointer_name) - sets every material slot for every mesh to the material pointer name.

    • RETURNS - None
    • material_pointer_name - the name of the material pointer to assign to the material slots

    cutpart(cutpart_name) - Assigns every mesh cut part to the cutpart_name

    • RETURNS - None
    • cutpart_name (string) - cutpart pointer name to assign

    solid_stock(solid_stock_name) - Assigns every mesh solid stock to the solid_stock_name

    • RETURNS - None
    • solid_stock_name(string) - solid stock name to assign

    edgebanding(edgebanding_name,w1=False,l1=False,w2=False,l2=False) - Assigns every mesh cutpart to the edgebanding_name

    • RETURNS - None
    • edgebanding_name(string) - name of the edgepart pointer to assign
    • w1 (boolean) - determines if the part should be banded on width 1
    • l1 (boolean) - determines if the part should be banded on length 1
    • w2 (boolean) - determines if the part should be banded on width 1
    • l2 (boolean) - determines if the part should be banded on length 1

    add_machine_token(machining_name,machining_type,machining_face,machining_edge="1") - add a machine token to the first cutpart mesh

    • RETURNS - tuple(bpy.types.Object, properties.Machine_Token)
    • machining_name (string) - name of the machining token
    • machining_type (enum string 'NONE','CORNERNOTCH','CHAMFER','CONST','HOLES','SHLF','','SHELF','SHELFSTD','DADO','SAW','SLIDE','CAMLOCK','MITER','3SIDEDNOTCH','PLINE','BORE')
    • machining_face (enum int 5, 6)
    • machining_edge (enum int (1, 2, 3, 4, 5, 6, 7, 8)

    machine_token(obj,token,token_property,expression,driver_vars,index=None) - sets a driver for a machine token that is passed in

    • RETURNS - None
    • obj (bpy.types.Object) - object the token is assigned to
    • token (properties.Machining_Token) - token to assign the formula to
    • token_property (string) - name of the property to assign the formula to. These are the available properties
      • vector_locations
      • dim_to_first_const_hole
      • dim_to_last_const_hole
      • edge_bore_depth
      • edge_bore_dia
      • face_bore_depth
      • face_bore_depth_2
      • face_bore_dia
      • face_bore_dia_2
      • drill_from_opposite_side
      • second_hole_at_32mm
      • distance_between_holes
      • hole_locations
      • z_value
      • dim_in_x
      • dim_in_y
      • dim_in_z
      • end_dim_in_x
      • end_dim_in_y
      • associative_dia
      • associative_depth
      • lead_in
      • lead_out
      • reverse_direction
      • beginning_depth
      • double_pass
      • lock_joint
      • panel_penetration
      • backset
      • cam_face
      • tool_comp
      • angle
      • tool_number
      • tongue_tool_number
      • space_from_bottom
      • space_from_top
      • dim_to_first_row
      • dim_to_second_row
      • shelf_hole_spacing
      • shelf_clip_gap
      • dim_from_drawer_bottom
      • dim_to_first_hole
      • dim_to_second_hole
      • dim_to_third_hole
      • dim_to_fourth_hole
      • dim_to_fifth_hole
      • drawer_slide_clearance
    • expression (string) - the formula to assign
    • drive_vars (list of fd_types.Variable) - list of all of the variables that are used in the expression
    • index (int) - index when setting properties that contain multiple values. example vector_locations

     

    Comments