|
7 | 7 | Please see the LICENSE file for details. |
8 | 8 | """ |
9 | 9 |
|
10 | | -from ACIS import Modeler, Licensing, SaveRestore, Topology, Lists, GeometricAtoms, GeometricOperators, Sweeping, Query |
| 10 | +from ACIS import Modeler, Licensing, SaveRestore, Entity, Lists, GeometricAtoms, Sweeping, Query |
11 | 11 |
|
12 | 12 | # Start ACIS Modeler |
13 | 13 | Modeler.api_start_modeller(0) |
|
17 | 17 | Licensing.spa_unlock_products(unlock_key) |
18 | 18 |
|
19 | 19 | # Make a cuboid |
20 | | -block = Topology.BODY() |
| 20 | +block = Entity.BODY() |
21 | 21 | Modeler.api_make_cuboid(150, 75, 25, block) |
22 | 22 |
|
23 | 23 | # Get faces of the cuboid |
|
28 | 28 | block_face = face_list.first() |
29 | 29 |
|
30 | 30 | # Convert the chosen face into a sheet body |
31 | | -sheet_body = Topology.BODY() |
| 31 | +sheet_body = Entity.BODY() |
32 | 32 | Modeler.api_sheet_from_ff([block_face], sheet_body) |
33 | 33 |
|
34 | 34 | # Make a sweep path |
35 | 35 | pt1 = GeometricAtoms.SPAposition(0.0, 0.0, 0.0) |
36 | 36 | pt2 = GeometricAtoms.SPAposition(10.0, 55.0, 23.0) |
37 | | -sweep_path = Topology.EDGE() |
| 37 | +sweep_path = Entity.EDGE() |
38 | 38 | Sweeping.api_make_sweep_path([pt1, pt2], sweep_path) |
39 | 39 |
|
40 | 40 | # Sweep the chosen face using the sweep path |
41 | 41 | opts = Sweeping.sweep_options() |
42 | | -swept_body = Topology.BODY() |
| 42 | +swept_body = Entity.BODY() |
43 | 43 | Sweeping.api_sweep_with_options(sheet_body, sweep_path, opts, swept_body) |
44 | 44 |
|
45 | 45 | # Assign attributes after generation |
|
0 commit comments