Skip to content

Commit fd28fdf

Browse files
authored
Merge branch 'main' into B1342786
2 parents e579586 + b8d00cf commit fd28fdf

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix typos in modeler user guide

doc/source/User_guide/modeler.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The following code creates a box and changes the color to red:
1010
from ansys.aedt.core.hfss import Hfss
1111
hfss = Hfss()
1212
box = hfss.modeler.create_box(origin=[0, 0, 0],
13-
sizes=[10, "dim", 10],
13+
sizes=[10, 10, 10],
1414
name="mybox",
1515
material="aluminum")
1616
print(box.faces)
@@ -40,15 +40,15 @@ This example shows how easily you can go deeper into edges and vertices of faces
4040

4141
.. code:: python
4242
43-
box = hfss.modeler["mybox2"]
43+
box = hfss.modeler["mybox"]
4444
for face in box.faces:
4545
print(face.center)
46-
for edge in face:
46+
for edge in face.edges:
4747
print(edge.midpoint)
4848
for vertice in edge.vertices:
49-
print(edge.position)
49+
print(vertice.position)
5050
for vertice in box.vertices:
51-
print(edge.position)
51+
print(vertice.position)
5252
5353
5454
All objects support executing any modeler operation, such as union or subtraction:

0 commit comments

Comments
 (0)