File tree Expand file tree Collapse file tree 1 file changed +49
-15
lines changed
Expand file tree Collapse file tree 1 file changed +49
-15
lines changed Original file line number Diff line number Diff line change 11from typing import List
2+ from cadwork .api_types import ElementId
23
3- def get_profile_length (element_id : int ) -> float :
4- """Gets the profile length
4+ def get_profile_length (element_id : ElementId ) -> float :
5+ """Gets the profile length.
56
67 Parameters:
7- element_id: element_id
8+ element_id: The element id.
89
910 Returns:
10- profile length
11+ The profile length.
1112 """
1213
13- def get_edge_length (element_id : int , edge_type : str ) -> float :
14- """Gets the edge length
14+ def get_edge_length (element_id : ElementId , edge_type : str ) -> float :
15+ """Gets the edge length.
1516
1617 Parameters:
17- element_id: element_id
18- edge_type: edge_type
18+ element_id: The element id.
19+ edge_type: The edge type :
20+
21+
22+ - "none"
23+
24+ - "ridge"
25+
26+ - "eave"
27+
28+ - "vergeright"
29+ - "vergeleft"
30+ - "vergeoblique"
31+
32+ - "hip"
33+
34+ - "valley"
35+
36+ - "userdefined1"
37+ - "userdefined2"
38+
39+ - "userdefinedmitrejoint1"
40+ - "userdefinedmitrejoint2"
41+
42+ - "wallconnection"
43+ - "wallconnectionright"
44+ - "wallconnectionleft"
45+ - "wallconnectiontop"
46+ - "wallconnectionbottom"
47+
48+ - "roofcutout"
49+ - "roofcutoutright"
50+ - "roofcutoutleft"
51+ - "roofcutouttop"
52+ - "roofcutoutbottom"
53+
54+ - "roofedgeontoproofsurface"
55+ - "roofedgeonbottomroofsurface"
1956
2057 Returns:
21- edge length
58+ The edge length.
2259 """
2360
24- def get_all_caddy_element_ids () -> List [int ]:
61+ def get_all_caddy_element_ids () -> List [ElementId ]:
2562 """Gets all caddy elements
2663
2764 Returns:
28- element ID list
65+ The list of all caddy element id.
2966 """
3067
3168def clear_errors () -> None :
32- """clear errors
33-
34- Returns:
35- None
69+ """Clears all errors.
3670 """
3771
You can’t perform that action at this time.
0 commit comments