Setting
Get/Set Methods
Return Value or
<Value> or <OnFlag>
Comment
Shadows in Shaded Mode
ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swDisplayShadowsInShadedMode)
ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swDisplayShadowsInShadedMode, <OnFlag>)
Boolean value
Specifies whether to display a shadow under the model
Ambient Occlusion
ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swDisplayAmbientOcclusionShadows)
ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swDisplayAmbientOcclusionShadows, <OnFlag>)
Specifies whether to use global lighting that adds realism to models by controlling the attenuation of ambient light due to occluded areas; available in all scenes when you use RealView graphics
RealView Graphics
ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swDisplayRealViewGraphics)
ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swDisplayRealViewGraphics, <OnFlag>)
Specifies whether to display a model with hardware accelerated shaders
Cartoon
ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swDisplayCartoon)
ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swDisplayCartoon, <OnFlag>)
Specifies whether to apply a cartoon effect to model edges and faces
Provide feedback on this topic
SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.
* Required
Thank you for your comments. We will contact you if we have questions regarding your feedback.
Sincerely,The SOLIDWORKS Documentation Team
Print Topic
Select the scope of content to print:
We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.
Web Help Content Version: API Help (English only) 2025 SP2 To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help. To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.