So I might be jumping in over my head here, but I have a minority of users (3 out 70) that dislike the event viewer in civil 3d and disable it in their drawings. Not enough of the user base to justify changing the setting in our templates but I see no harm letting those turn off that particular vista (its a drawing specific setting). Anyways I was hoping to automate it for them but I'm running into a snag. Here's a snippet
Code:
(setq acadObject (vlax-get-acad-object))
(setq C3D (vla-getinterfaceobject acadObject "AeccXUiLand.AeccApplication.10.4"))
(setq c3ddoc (vla-get-activedocument c3d))
(setq c3dsettings (vla-get-settings c3ddoc))
(setq c3dgeneral (vla-get-generalsettings c3dsettings))
(setq settings (vlax-get-property c3dsettings 'generalsettings))
(setq amb (vlax-get-property settings 'ambientsettings))
(setq gen (vlax-get-property amb 'generalsettings))
(setq evtview (vlax-get-property gen 'showeventviewer))
(vlax-put-property evtview 'value :vlax-false)
; error: Automation Error. This property is read only
the object saved to evtview shows several values that change if I use the dialogue boxes in the toolspace pallet but I can't seem to set the properties through vlisp code. I'm probably taking a wrong turn somewhere. Does anyone have any insight into my problem here?