Automation Error 80020009
Hi everyone,
I am having a problem with a line of code, but only on one particular computer at my organization. Everyone else is using it with no issues, so I am somewhat confused as to what the problem is.
The problem is with the following chunk of code:
[code]
(setq INHOUSE_DRWG_NMBR "xxxxxxxxxx")
(vl-load-com)
(setq ACADOBJ (vlax-get-acad-object))
(setq ACDOC (vlax-get-property ACADOBJ 'ActiveDocument))
(setq ACDOCSUMINFO (vlax-get-property ACDOC 'SUMMARYINFO))
(vlax-invoke-method ACDOCSUMINFO 'SetCustomByKey "32.SYNERGY_NMBR" INHOUSE_DRWG_NMBR)
(command "regen")[/code]
The problem is in particular with the line:
[code](setq ACDOCSUMINFO (vlax-get-property ACDOC 'SUMMARYINFO))[/code]
The preceding lines of code execute without issue, but this ones gives the error message in the attached screenshot.
We are running Bricscad V12 on Windows XP.
Any help would be appreciated!
Thanks
I am having a problem with a line of code, but only on one particular computer at my organization. Everyone else is using it with no issues, so I am somewhat confused as to what the problem is.
The problem is with the following chunk of code:
[code]
(setq INHOUSE_DRWG_NMBR "xxxxxxxxxx")
(vl-load-com)
(setq ACADOBJ (vlax-get-acad-object))
(setq ACDOC (vlax-get-property ACADOBJ 'ActiveDocument))
(setq ACDOCSUMINFO (vlax-get-property ACDOC 'SUMMARYINFO))
(vlax-invoke-method ACDOCSUMINFO 'SetCustomByKey "32.SYNERGY_NMBR" INHOUSE_DRWG_NMBR)
(command "regen")[/code]
The problem is in particular with the line:
[code](setq ACDOCSUMINFO (vlax-get-property ACDOC 'SUMMARYINFO))[/code]
The preceding lines of code execute without issue, but this ones gives the error message in the attached screenshot.
We are running Bricscad V12 on Windows XP.
Any help would be appreciated!
Thanks
0
Comments
-
Chris,
I would submit a support request instead of posting that type of issue in the forum. I have had great success in resolving operating type issues in that manner.
Bruce0 -
Thanks Bruce, will try that approach.
Chris0 -
I would try a reinstall.0
-
yes a re-install was going to be my next plan of attack if all else fails.0
-
Also try starting BricsCAD with "Run as Admin" ... that could help to get BricsCAD's COM interface properly registered.0
-
Yes, Bricsys themselves suggested the "Run as Admin" idea, but this did not solve the problem either.0
-
Hi Jason,
Yes, it is indeed SP3 that its running, and we have tried the latest version of V12 that you mention, still with no success.
Also tried reinstalling the sofware completely with no change. Bricsys have had no further insight into the matter than what has already been suggested on the forum here, so not sure what to try next... re-install windows perhaps?
Regards
Chris0
This discussion has been closed.