hfVisualizer 원격 제어 Construction
construction
hfVisualizer --remote construction <type> <name> (--content <text> | --content-file <file>)
*Construction, TYPE=<type>, Name=<name>정의 하나를 생성하거나 갱신합니다.--content와--content-file중 정확히 하나가 필요합니다.construction은 preprocessing mode에서만 동작합니다.- 지원 construction type은
Line,Spline입니다. <name>은 비어 있으면 안 되며 GUI 편집과 같은 single-token 정규화를 적용합니다.- 명령은 keyword header를 먼저 만든 뒤 나머지 줄을 블록 본문으로 적용합니다.
- 결과가 construction line이면 GUI 위젯과 같이 해당 선을 현재 selection으로 반영합니다.
- 여기서 만든 이름은
select spline,select construction-line,visibility construction같은 명령에서 그대로 사용할 수 있습니다. - 성공하면
script-save에 canonicalconstruction ... --content ...tail이 기록됩니다.
예시:
hfVisualizer --remote construction Line grid_x --content "0, 0, 0, 10, 0, 0\n0, 5, 0, 10, 5, 0"
construction-rename
hfVisualizer --remote construction-rename <old-name> <new-name>
- preprocessing mode에서만 사용할 수 있습니다.
- 두 이름 모두 비어 있으면 안 되며 GUI 편집과 같은 single-token 정규화를 적용합니다.
- 기존 이름이 실제로 존재해야 합니다.
- 새 이름이 다른 construction과 충돌하면 실패하며, 정규화 후 같은 이름이면 no-op으로 성공합니다.
- 렌더 파이프라인도 함께 갱신되어 ModelTree visibility 상태가 바뀐 이름과 일관되게 유지됩니다.
- 성공하면
script-save에 canonicalconstruction-rename ...tail이 기록됩니다.
예시:
hfVisualizer --remote construction-rename grid_x guide_x
construction-delete
hfVisualizer --remote construction-delete <name>
- preprocessing mode에서만 사용할 수 있습니다.
<name>은 비어 있으면 안 되며 기존 construction 이름이어야 합니다.- ModelTree Delete와 같은 삭제 경로를 사용합니다.
- 기존 construction 삭제 guard도 그대로 유지됩니다. 예를 들어 spline이 line sensor에서 사용 중이면 삭제되지 않습니다.
- 성공하면
script-save에 canonicalconstruction-delete ...tail이 기록됩니다.
예시:
hfVisualizer --remote construction-delete guide_x