PDA

View Full Version : Error adding new style annotation



armin_eftekhari
01-13-2010, 12:09 PM
Hi everybody,
I am trying to create a new annotation style and i am following what has mentioned in help file but it does not work(Autoplant V8i).
i do as follow:
from Menu: piping\Annotation\New Annotation Style;
i select "User Annotation" radio button;
I enter "SMI" for style name;
when i want to select something from "User Annotation" drop-down list for Annotation name it is blank and it does not let me to enter anything.
when i press "Build New Annotation" button it gives me the following error:
"Run time error...
File Name or class not found during OLE Automation Operation, line:224"
and when i press "OK" it gives me again following message:
"PSYS0502:Error executing the dialog
error in script file R:\\Autoplant_Project\\...\config\modules\base\\di alog\\annot_newstyle.ebs"

thanks

Zortar
01-13-2010, 01:09 PM
Armin,
I got the same error on my V8i machine but not on my XM machine. I don't usually use this feature but I would recommend reporting the bug to Bentley. I think they are missing an object definition in their code.

PONTELEJ
01-14-2010, 10:31 PM
Please try this solution for this issue:
1. In Windows explorer, open the following file in notepad.
C:\Program Files\Bentley\Plant V8i\Modules\Base\Dialogs\annot_NewStyle.ebs.
2. Go to line number 224.
3. Notice the following line:
Set Builder=createObject("APAnnotationBuilderXM16.AnnBuilder")
4. Above variable should point to APAnnotationBuilderAN16 or APAnnotationBuilderAN17 depending on the user's AutoCAD version. As an example, change the line as follows, then save it and restart AutoPLANT.
Set Builder=createObject "APAnnotationBuilderAN16.AnnBuilder")

armin_eftekhari
01-18-2010, 01:22 PM
Hi PONTELEJ,
I followed the steps ad you mentioned and fortunately it is working now.
Thank you very much for your great help.
Yours
armin