콘텐츠로 이동

hfVisualizer 원격 제어 Function

function

hfVisualizer --remote [--target <id>] function <type> <name> (--content <text> | --content-file <file>) [--unit-system <text>]
  • *Function 정의 하나를 생성하거나 갱신합니다.
  • --content--content-file 중 정확히 하나가 필요합니다.
  • function은 preprocessing mode에서만 동작합니다.
  • <type>, <name>은 비어 있으면 안 됩니다.
  • 선택 사항인 --unit-system <text>*Function keyword line의 local UnitSystem= 토큰으로 들어갑니다.
  • IPC 계층이 계산한 *Function keyword line 뒤에 본문 내용을 붙여 readFunctionModification(..., true)로 전달합니다.
  • --content 안에서는 줄바꿈을 \n으로 씁니다. \\n은 문자 그대로 유지됩니다.
  • 빈 내용은 허용되지 않습니다.
  • 성공하면 DB modified 상태를 알리고 render pipeline을 refresh합니다.

예시:

hfVisualizer --remote function TimeSeries TIME1 --content "0, 1\n1, 1"
hfVisualizer --remote function Tabular AMP1 --unit-system kN-mm-s-K --content-file D:\Work\function.txt

function-rename

hfVisualizer --remote [--target <id>] function-rename <old-name> <new-name>
  • preprocessing mode에서만 사용할 수 있습니다.
  • 두 이름 모두 비어 있으면 안 되며 GUI 편집과 같은 single-token 정규화를 적용합니다.
  • 기존 이름이 실제로 존재해야 합니다.
  • 새 이름이 다른 function과 충돌하면 실패하며, 정규화 후 같은 이름이면 no-op으로 성공합니다.
  • 성공하면 script-save에 canonical function-rename ... tail이 기록됩니다.

예시:

hfVisualizer --remote function-rename TIME1 TIME_MAIN

function-delete

hfVisualizer --remote [--target <id>] function-delete <name>
  • preprocessing mode에서만 사용할 수 있습니다.
  • name은 비어 있으면 안 되며 기존 function을 가리켜야 합니다.
  • ModelTree delete와 같은 삭제 경로를 사용합니다.
  • 기존 delete guard도 그대로 유지됩니다. 예를 들어 material이 참조 중인 function은 삭제에 실패합니다.
  • 성공하면 script-save에 canonical function-delete ... tail이 기록됩니다.

예시:

hfVisualizer --remote function-delete TIME_MAIN