Message 1 of 3
How to set smooth line with anti - aliasing for Current View ?
Not applicable
06-28-2019
12:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I am trying to set the smooth line with anti - aliasing for the active view by following code:
viewForPreview.AreAnnotationCategoriesHidden = true;
viewForPreview.AreImportCategoriesHidden = true;
viewForPreview.DetailLevel = ViewDetailLevel.Fine;
viewForPreview.DisplayStyle = DisplayStyle.Realistic;
ViewDisplayModel displayModel = viewForPreview.GetViewDisplayModel();
displayModel.EnableSilhouettes = false;
displayModel.SmoothEdges = true;
displayModel.ShowHiddenLines = ShowHiddenLinesValues.ByDiscipline;
viewForPreview.SetViewDisplayModel(displayModel);But when I run the code, there was an error : " the silhouette line style id is not a valid line style to apply to the view" :
If you have any experience with this problem, please help me.
Thank you so much for your help.
Best Regards,
Ninh Truong
