숨겨진 레이어와 레이어를 이름으로 내보내지 않기
Contents
[
Hide
]숨겨진 레이어와 레이어를 이름으로 내보내지 않는 방법
문제: 숨겨진 레이어와 레이어를 이름으로 내보내지 않는 방법.
팁: 이를 위해 “LayerToHide"로 이름이 지정되지 않은 레이어 배열을 생성하고 이를 rasterizationOptions.Layers에 추가해야 합니다.
예시:
문제: 숨겨진 레이어와 레이어를 이름으로 내보내지 않는 방법.
팁: 이를 위해 “LayerToHide"로 이름이 지정되지 않은 레이어 배열을 생성하고 이를 rasterizationOptions.Layers에 추가해야 합니다.
예시:
List<string> requiredLayers = new List<string>(); | |
foreach (CadLayerTable layer in cadImage.Layers) | |
{ | |
System.Console.WriteLine(layer.Name + " " + layer.PlotFlag + " " + layer.PlotFlag.HasValue +" " + layer.ColorId); | |
if (layer.ColorId >= 0 && layer.Name != "LayerToHide" && !(layer.PlotFlag.HasValue && (layer.PlotFlag) == false)) | |
{ | |
requiredLayers.Add(layer.Name); | |
} | |
} | |
rasterizationOptions.Layers = requiredLayers.ToArray(); |
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising. Google's data policies
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.