Hi All,
I have created a lisp program which defines a command called "ReloadNew".
It is to reload a profile called "New_Package".
Recently some changes have been made to the profile and I want everyone in my team to reload the profile. For that, since they already have their surrent profile set to "New_Package", I think they have to set some other profile current and then again set "New_Package" the current one.
Or am I taking a roundabout? Is there a better way of doing it with out asking them to restart their AutoCAD?
So far I am here.
The problem is, it shows error when I try to set the ">" current.
(
defun c:ReloadNew()
(vl-load-com)
(setq acadObject (vlax-get-acad-object))
(setq prefsObject (vlax-get-property acadObject 'Preferences))
(setq profileobj (vlax-get-property prefsObject 'Profiles))
(setq activeprofile (vlax-get-property profileobj 'ActiveProfile))
(vlax-put-property profileobj '<<Unnamed Profile>>)
(prompt "Unnamed Profile has been set current.")
(vlax-put-property profileobj "New_Package")
(prompt "New_Package Profile has been set current.")
)