autocad-dxf
Version:
A module which can be used to parse AutoCAD dxf files and to make programmatic and geometric operations on the AutoCAD drawing entities.
50 lines • 9.57 kB
JSON
{
// entities
"AcDbPoint": ["layer", "etype", "subclass", "line_type", "line_scale", "color", "visibility", "x", "y", "z"],
"AcDbLine": ["layer", "etype", "subclass", "line_type", "line_scale", "color", "visibility", "start_x", "start_y", "start_z", "end_x", "end_y", "end_z", "length", "line_type"],
"AcDbDimension": ["layer", "etype", "subclass", "line_type", "line_scale", "color", "visibility", "x", "y", "z", "type", "text_override", "rotation", "ext_line_rotation", "attachement_point", "leader_length", "actual_measurement", "dimension_style", "x_text", "specific_type", "leader_end_x", "leader_end_y", "leader_end_z", "location_x", "location_y", "location_z", "ext_line1_x", "ext_line2_x", "ext_line1_y", "ext_line2_y", "ext_line1_z", "ext_line2_z", "vertex_x", "vertex_y", "vertex_z", "dim_first_point_x", "dim_first_point_y", "dim_first_point_z", "arc_dim_line_x", "arc_dim_line_y", "arc_dim_line_z", "ext_line1_p1_x", "ext_line1_p2_x", "ext_line2_p1_x", "ext_line2_p2_x", "ext_line1_p1_y", "ext_line1_p2_y", "ext_line2_p1_y", "ext_line2_p2_y", "ext_line1_p1_z", "ext_line1_p2_z", "ext_line2_p1_z", "ext_line2_p2_z"],
"AcDbCircle": ["layer", "etype", "subclass", "line_type", "line_scale", "color", "visibility", "x", "y", "z", "radius", "area", "area_sector", "circumference", "arc_length", "start_angle", "end_angle"],
"AcDbEllipse": ["layer", "etype", "subclass", "line_type","line_scale", "color", "visibility", "x", "y","z", "area", "area_sector", "area_full", "major_end_dx", "major_end_dy", "major_end_dz", "minorToMajor", "start_parameter", "end_parameter", "start_angle", "end_angle", "start_angle2", "end_angle2"],
"AcDbExtrudedSurface": ["etype", "proprietary_data", "proprietary_data", "line_type", "layer", "x", "y", "z", "ref_vector", "transform_matrix_revolved", "draft_angle", "start_draft_distance", "end_draft_distance", "twist_angle", "transform_matrix_sweep", "transform_matrix_path", "scale_factor", "align_angle", "sweep_alignment_option", "subclass/specific_type", "binary_data"],
"AcDbPolyline": ["layer", "etype", "subclass", "line_type","line_scale","color", "visibility", "type", "vertices", "number_of_vertices"],
"AcDb3dPolyline": ["layer", "etype", "subclass", "line_type","line_scale","color", "visibility", "type", "vertices", "number_of_vertices"],
"AcDbText": ["layer", "etype", "subclass", "line_type","line_scale", "color", "visibility", "x", "y", "z","text", "style", "height", "rotation", "width", "character_width", "rotation"],
"AcDbMtext": ["layer", "etype", "subclass", "line_type", "line_scale","color", "visibility", "x", "y", "z","text", "style", "height", "rotation", "drawing_direction"],
"AcDbMline": ["layer", "etype", "subclass","line_scale", "color", "visibility", "justification", "start_x", "start_y", "start_z", "style_name" ,"vertices", "scale_factor", "number_of_vertices", "type"],
"AcDbHatch": ["layer", "etype", "subclass", "line_type", "line_scale","color", "visibility", "style_name", "fill_type", "seed_points", "pattern_scale", "pattern_angle", "gradient","pattern", "number_of_seed_points", "number_of_boundary_paths", "number_of_lines", "style", "associative"],
"AcDbSpline": ["layer", "etype", "subclass","line_scale", "color", "visibility", "control_points", "fit_points", "knot_values", "weights", "start_tangent", "end_tangent", "type", "degree_of_curve" , "number_of_fit_points", "number_of_control_points", "number_of_knots"],
"AcDbShape": ["layer", "etype", "subclass", "line_type", "line_scale","color", "visibility", "x", "y", "z", "style_name", "size", "rotation"],
"AcDbRay": ["layer", "etype", "subclass", "line_type", "line_scale","color", "visibility", "start_x", "start_y", "start_y", "unit_direction_x", "unit_direction_y", "unit_direction_z"],
"AcDbFace": ["layer", "etype", "subclass", "line_type", "line_scale", "color", "visibility", "corners", "invisible_edge"],
"AcDbFcf": ["layer", "etype", "subclass", "line_type", "line_scale", "color", "dimension_style", "visual_representation", "visibility", "x_axis_direction", "extrusion_direction", "insertion_point"],
"AcDbTrace": ["layer", "etype", "subclass", "line_type", "line_scale", "color", "visibility", "corners"],
"AcDbRasterImage": ["etype", "line_type", "layer", "insertion_point", "u_vector", "v_vector", "u_value", "clip_vertex", "v_value", "line_scale", "visibility", "image_display_properties", "clip_boundary_type", "subclass", "clip_mode"],
"AcDbModelerGeometry": ["etype", "proprietary_data", "proprietary_data", "line_type", "style", "layer", "line_scale", "visibility", "color", "subclass"],
"AcDbHelix": ["etype", "layer", "axis_base_point", "start_point", "axis_vector", "radius", "number_of_turns", "turn_height", "line_scale", "visibility", "subclass"],
"AcDbLeader": ["etype", "dimension_style", "line_type", "layer", "vertices", "text_height", "text_width", "line_scale", "visibility", "arrow_head_disabled", "path_type", "created", "hookline_direction", "has_hookline", "number_of_vertices", "color", "subclass", "normal_vector", "horizontal_direction", "offset_from_insertion_point", "offset_from_annotation"],
"AcDbVertex": ["layer", "etype", "subclass","line_scale", "color", "visibility", "x", "y", "z", "start_width", "end_width", "curve_fit_tangent_direction", "type"],
"AcDbBlockReference": ["etype", "block_name", "line_type", "layer","scale_x", "scale_y", "scale_z", "column_spacing", "row_spacing", "line_scale", "rotation", "visibility", "column_count", "row_count", "subclass"],
"AcDbXline": ["etype", "line_type", "layer", "first_point", "unit_direction_vector", "line_scale", "visibility", "color", "subclass"],
"AcDbLoftedSurface": ["etype", "proprietary_data", "proprietary_data", "line_type", "layer", "transform_matrix", "start_draft_angle", "end_draft_angle", "start_draft_magnitude", "end_draft_magnitude", "scale_factor", "subclass/specific_type"],
"AcDbRevolvedSurface": ["etype", "proprietary_data", "proprietary_data", "line_type", "layer", "x", "y", "z", "axis_vector", "revolve_angle", "start_angle", "transform_matrix", "draft_angle", "start_draft_distance", "end_draft_distance", "twist_angle", "n_u_isolines", "n_v_isolines", "subclass/specific_type", "binary_data"],
"AcDbSweptSurface": ["etype", "proprietary_data", "proprietary_data", "line_type", "layer", "x", "y", "z", "ref_vector", "transform_matrix_sweep2", "transform_matrix_path2", "draft_angle", "start_draft_distance", "end_draft_distance", "twist_angle", "transform_matrix_sweep", "transform_matrix_path", "scale_factor", "align_angle", "sweep_alignment_option", "subclass/specific_type", "binary_data"],
"AcDbTable": ["etype", "cell_text", "line_type", "style", "layer", "x", "y", "z", "direction", "merged_value", "fill_color", "cell_color", "border_color_right", "border_color_bottom", "border_color_left", "border_color_top", "n_rows", "n_bytes_proxy_graphics/n_columns", "text_height", "row_height", "column_width", "block_scale", "rotation", "cell_alignment", "cell_type", "border_width", "border_height", "line_weight_right", "line_weight_bottom", "line_weight_left", "line_weight_top", "fill_color_on", "top_border_visible", "proxy_graphics_data"],
// tables
"APPID": ["name"],
"DIMSTYLE": ["name", "dim_prefix", "dim_suffix", "arrow1", "arrow2", "dim_scale_overall", "arrow_size", "ext_line_offset", "dim_line_increment", "ext_line_extension", "dim_roundoff",
"dim_line_extension", "plus_tolerance", "text_height", "center_mark_size", "tick_size", "alt_scale_factor", "dim_scale_linear", "text_position_vertical", "tolerance_scale_factor",
"text_offset", "alt_round", "tolerance_display", "tolerance_limit", "text_inside_align", "text_outside_align", "ext_line1", "ext_line2", "text_pos_vert", "suppress_zero_inches/suppress_zero_feet",
"suppress_leading_zeros/suppress_trailing_zeros", "alt_enabled", "alt_precision", "dim_line_forced", "separate_arrow_blocks", "text_inside", "dim_line_inside",
"dim_line_color", "ext_line_color", "text_color", "angle_precision", "precision", "tolerance_precision", "alt_format", "alt_tolerance_precision", "angle_format", "fraction_type",
"dim_units", "decimal_separator", "text_movement", "text_pos_hor", "dim_line1", "dim_line2", "tolerance_pos_vert", "alt_suppress_leading_zeros/alt_suppress_trailing_zeros",
"suppress_leading_zeros/suppress_trailing_zeros", "suppress_zero_inches/suppress_zero_feet", "fit", "text_style", "dim_line_weight", "ext_line_weight"],
"LAYER": ["name", "status", "color_number", "line_type"],
"VIEW": ["hasUCS", "name", "center", "direction", "target_point", "height", "width", "lens_angle", "twist_angle", "type", "orthographic_type", "origin", "ucs_x", "ucs_y", "elevation"],
"VPORT": ["name", "lower_left_corner", "upper_right_corner", "center", "snap_base_point", "snap_spacing", "grid_spacing", "view_direction", "target_point", "height", "lens_length", "snap_rotation_angle", "twist_angle", "circle_sides", "orthographic_type", "origin", "ucs_x", "ucs_y", "elevation"],
"BLOCK_RECORD": ["name"],
"LTYPE": ["name", "description", "embedded_texts", "total_pattern_length", "x_offsets", "y_offsets", "scale_value", "pattern_lengths", "embedded_element_rotations", "number_of_elements", "embedded_element_type", "embedded_element_rotation_type"],
"STYLE": ["text_height", "name", "width_factor", "oblique_angle", "type", "text_type", "font_type"],
"UCS": ["name", "origin", "x_axis_direction", "y_axis_direction", "orthographic_origin", "orthographic_type", "elevation"],
// blocks
"blocks": ["name", "description", "layer", "base_point", "entities"]
}