几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » SolidWorks二次开发
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


 
 
主题工具 搜索本主题 显示模式
旧 2009-04-12, 09:55 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】no visual studio template information found

no visual studio template information found
since installing sp2.1 on sw 2009 today, i am getting the following error when i try to record a vsta (vb) macro:
"no visual studio template information found. see the application log in event viewer for more details.
to open event viewer, click start, click control panel, double-click administrative tools, and then double-click event viewer."
i installed the service pack with an administrator account, and i do not get the error when running sw under that account, but under my regular, non-admin account, i get that error. it seems to be permissions issue, but i'm not sure how to fix it.
i am running visual studio express 2005.
i also have 2009 sp2.1 installed and am having similar/same problems.
i have the same event in event viewer and even tried to followed the instructions to run "vsta /installvstemplates".
i try to record a macro or create a new sw vsta vb macro and vsta opens w/ nothing.
i also noticed if you try to create a new project no templates show up.
screen shots attached.
i was just about to learn how to use the api and vb, so let me know if this is how it is a supposed to function. haha.
edited: 03/03/2009 at 04:58 pm by douglas mangels
click for full image
got it working on xp 64bit.
the obvious solution was just to point vsta to find the "default" templates where the user templates are.
1. run vsta.exe from the cmd prompt.
2. select tools -> options -> projects and solutions
3. change the location of the project templates to:
c:\program files (x86)\microsoft visual studio 8\common7\ide\projecttemplates
4. change the location of the user item templates to:
c:\program files (x86)\microsoft visual studio 8\common7\ide\vsta\itemtemplates
if anyone has a more elegant solution, please let us know.
edit: sorry this was on a xp 64bit system with 2009 sp0, but it was getting the same error and this fixed it.
i'm still getting the error on xp 32bit 2009 sp2.1 even after doing the above.
edited: 03/04/2009 at 08:32 am by douglas mangels
i just tried that on my system, to no effect.
fyi, i am running sw 2009 sp2.1 on vista 32bit, no service pack. also, i implied in my original post that the problem started only after i installed sp2.1, but i don't think i actually tried recording a macro in the non-admin account until after i installed the service pack.
i finally got it working on my xp32bit 2009 sp2.1 install.
the unfortunate thing is...it doesn't work the first time you create a macro.
1. i created a new macro, but i still get the error.
2. with sw vsta still open, i create a new project, open the template and see the code.
3. i close out the project in vsta and leave vsta open.
4. i create or record a macro and the code comes into vsta.
cumbersome, but it's working.
i even check the template locations and they haven't changed.
odd.
when and in what way do you run vsta? i tried opening an existing macro and closing it before recording a new macro, but i still get the same error message.
quick
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】how to show solidwork viewer in visual studio yang686526 SolidWorks二次开发 0 2009-04-12 09:23 PM
【转帖】how to show solidwork viewer in visual studio yang686526 SolidWorks二次开发 0 2009-04-12 06:39 PM


所有的时间均为北京时间。 现在的时间是 04:35 PM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多