ImportMoldLineVisible
public int ImportMoldLineVisible(string path, bool reset)
JSON 파일에 저장된 숨긴 몰드 선분 목록을 읽어 적용
Remarks
ExportMoldLineVisible 로 저장한 파일을 읽어 해당 선분을 숨긴다.
파일에 있는 노드 ID 가 현재 모델에 없거나 순번이 범위를 벗어나면 그 항목은 건너뛴다.
파일을 읽지 못하면 현재 표시 상태를 바꾸지 않는다.
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | 읽을 JSON 파일 경로 |
| reset | bool | true = 적용 전에 현재 숨김 상태를 모두 해제, false = 현재 숨김 상태에 더함 |
Returns
| Type | Description |
|---|---|
| int | 숨김이 적용된 몰드 선분 수. 모델이 열려 있지 않거나 파일을 읽지 못하면 -1 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
int count = vizcore3d.View.MoldLine.ImportMoldLineVisible(@"C:\Temp\moldline_hidden.json", true);
System.Diagnostics.Debug.WriteLine("숨긴 선분 수 = " + count);
}