Skip to content

Commit eacb55f

Browse files
committed
ADD: a small remark message for legend
1 parent dfbc705 commit eacb55f

File tree

1 file changed

+2
-1
lines changed
  • src/gh/components/DF_preview_assembly

1 file changed

+2
-1
lines changed

src/gh/components/DF_preview_assembly/code.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from ghpythonlib.componentbase import executingcomponent as component
1010
import Grasshopper as gh
11+
from Grasshopper.Kernel import GH_RuntimeMessageLevel as RML
1112

1213
import diffCheck
1314
from diffCheck.df_geometries import DFAssembly
@@ -134,7 +135,7 @@ def DrawViewportWires(self, args):
134135
ln = rg.Line(face_center, face_center + vector_face_center_2_beam_center)
135136
args.Display.DrawDottedLine(ln, self._joint_rnd_clr[idx_joint])
136137

137-
# name of the joint is defined by: 1) the beam index, 2) the joint index, 3) the face index by list order
138+
ghenv.Component.AddRuntimeMessage(RML.Remark, "legend joint naming: the beam index - the joint index - the face index by list order") # noqa: F821
138139
name_face_joint: str = f"{beam.index_assembly}-{joint.id}-{idx_face}"
139140
args.Display.Draw2dText(
140141
name_face_joint,

0 commit comments

Comments
 (0)