Skip to content

pytha Attributes

fabian-flassig edited this page Jul 18, 2023 · 14 revisions

The PYTHA attributes can be accessed by their attribute number or ID. Attribute IDs are given to the most common attributes, whilest more specific (and mostly read-only) attributes have to be accessed via their number. Please refer to the PYTHA Manual for a description of the individual attributes.

Number ID Description Read/Write
2 article_no Article number r/w
3 name Element name. Equivalent to set_element_name r/w
4 description Arbitrary description r/w
1005 Dimension, box l1 r
2005 Dimension, box l2 r
3005 Dimension, box l3 r
6 Total prize r
1007 Dimension, cut size l1 r
2007 Dimension, cut size l2 r
8 Number r
9 material_name Material r
10 smoothness_angle Critical angle below which segments will be smoothed in the graphics r/w
11 price Unit price, per pc. r/w
1011 Price (text) r/w
14 core_material Core material of an element, e.g. of a coated board r/w
1015 face_coating_1 Fcoat 1 r/w
2015 Fcoat 1, area r
3015 Fcoat 1, price r
4015 face_coating_2 Fcoat 2 r/w
5015 Fcoat 2, area r
6015 Fcoat 2, price r
24 CAM, full path r
36 CAM, file name r
1035 Weight, single(kg) r/w
1036 Weight, total(kg) r
38 Face area, box r
39 Surface area r
40 Volume r
43 unit_id Unit ID r/w
45 construction_type Construction type r/w
46 position_no Position number for technical drawings r/w
1048 Edge banding, L1 r
2048 Edge banding, L2 r
3048 Edge banding, S1 r
4048 Edge banding, S2 r
51 user_attri1 Customizable attribute 1 r/w
52 user_attri2 Customizable attribute 2 r/w
53 user_attri3 Customizable attribute 3 r/w
54 user_attri4 Customizable attribute 4 r/w
55 user_attri5 Customizable attribute 5 r/w
56 user_attri6 Customizable attribute 6 r/w
57 Face area, true r
58 Multiplier r/w
59 Group name of parent group r
60 Dimension, text r/w
61 Weight,spec.(g/cm³) r/w
62 pen Drawing pen r/w
63 linetype Drawing linetype r/w
1064 layer Layer of an element. Equivalent to set_element_layer r/w
2064 layer_name Layer name r
65 Fcoat, extra length r/w
66 Dimension, extra L r/w
67 Core hatching r
69 action_string String defining actions. Please refer to the manual for details. r/w
71 Face area box + extra r
72 Dimension, edge length r
73 Group no r
74 Group path r
76 Edge banding aggregate r
77 Hardware aggregate r
78 Relative pos of center of gravity, x r
79 Relative pos of center of gravity, y r
80 Relative pos of center of gravity, z r
82 Project name r
83 Dimension, edges, angles r
1084 Project header line 1 r
2084 Project header line 2 r
3084 Project header line 3 r
4084 Project header line 4 r
5084 Project header line 5 r
6084 Project header line 6 r
7084 Project header line 7 r
8084 Project header line 8 r
9084 Project header line 9 r
10084 Project header line 10 r
11084 Project header line 11 r
12084 Project header line 12 r
85 CAM, full path, 2nd prog r
86 CAM, file name, 2nd prog r
1087 Dimension, box + extra l1 r
2087 Dimension, box + extra l2 r
88 Dimension, from dimension r
89 Material thickness r
99 material_path Material path r/w
1105 Project header line 1 (import) r/w
2105 Project header line 2 (import) r/w
3105 Project header line 3 (import) r/w
4105 Project header line 4 (import) r/w
5105 Project header line 5 (import) r/w
6105 Project header line 6 (import) r/w
7105 Project header line 7 (import) r/w
8105 Project header line 8 (import) r/w
9105 Project header line 9 (import) r/w
10105 Project header line 10 (import) r/w
11105 Project header line 11 (import) r/w
12105 Project header line 12 (import) r/w
106 CAM, directory (including trailing backslash) r
1107 edge_banding_mat_front Edge banding 1 material front r
2107 edge_banding_mat_right Edge banding 2 material right r
3107 edge_banding_mat_back Edge banding 3 material back r
4107 edge_banding_mat_left Edge banding 4 material left r
1108 edge_banding_d_front Edge banding 1 thickness front r
2108 edge_banding_d_right Edge banding 2 thickness right r
3108 edge_banding_d_back Edge banding 3 thickness back r
4108 edge_banding_d_left Edge banding 4 thickness left r
1109 Dimension, cut size + extra l1 r
2109 Dimension, cut size + extra l2 r
1111 Edge banding, L1, thickness r
2111 Edge banding, L2, thickness r
3111 Edge banding, S1, thickness r
4111 Edge banding, S2, thickness r
1112 Edge banding, L1, material r
2112 Edge banding, L2, material r
3112 Edge banding, S1, material r
4112 Edge banding, S2, material r
114 Topmost group name r
1115 edge_banding_p_front Edge banding 1 price front r
2115 edge_banding_p_right Edge banding 2 price right r
3115 edge_banding_p_back Edge banding 3 price back r
4115 edge_banding_p_left Edge banding 4 price left r
1116 Edge banding, L1, price r
2116 Edge banding, L2, price r
3116 Edge banding, S1, price r
4116 Edge banding, S2, price r
121 Parent group position number r
122 Topmost group position number r
123 Position number path r
124 Hyperlink URL r/w
125 Hyperlink label r/w
plugin guid/attribute-id A plugin attribute ID. r/w

To access a plugin attribute defined in the same plugin the plugin guid can be omitted.

Remarks:

The edge banding attributes have two variants: L1/L2 and S1/S2 refer to the long edges and short edges of a board and are available at any time, while front/back and left/right refer to the orientation in the CAM export and are only available for the export (or after a board has been laid flat).

See also:

config.xml, xml-Attribute-Extension, Attributes Functions,

Clone this wiki locally