User profile & .Net
Hi,
I use managed wrapper classes to specify a custom profile to Bricscad but no success :
[CommandMethod("importprofil")]
public static void importprofil()
{
try
{
AcadApplication app = Application.AcadApplication as AcadApplication;
if (app == null)
throw new Exception("Could Not Get Application");
AcadDocument doc = app.ActiveDocument;
AcadPreferences apf = app.Preferences;
//doc.Utility.Prompt(apf.Profiles.ActiveProfile);
apf.Profiles.ImportProfile("cmuser", @E:\\cmuser.arg, true);
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}
}
I have an error : "Function not implemented" for "importprofile" method.
I don't understand why ?
Thank you for your response.
0
Comments
-
Your code is certainly correct, it seems that the importprofile method is not implemented yet.
To confirm this, I ran a quick test with lisp and it failed as well. I recommend filing a support request so it gets the developers attention .
Dan
(defun c:test ()
(vla-importprofile
(vla-get-profiles
(vla-get-preferences
(vlax-get-acad-object)))
"newprofile" "danny2.arg" :vlax-true)
)0 -
OK i see.
I'll immediately fill a support request.
Thank you
0
This discussion has been closed.