tag:blogger.com,1999:blog-8764109705492068977.post8100154424263114482..comments2023-06-10T05:04:10.688-07:00Comments on Inversion Consulting's CAD/PDM Automation Blog: WebLink: What Is It Anyway?Marc Metteshttp://www.blogger.com/profile/05031210948718948813noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-8764109705492068977.post-82168089932727733992018-10-24T01:20:49.509-07:002018-10-24T01:20:49.509-07:00I have read your articles many times and I am alwa...I have read your articles many times and I am always inspired by your tips and knowledge. Thank you for sharing. I would love to see more updates from you.<br /><br /><a href="https://www.papdan.com/services/hosting/" rel="nofollow">Web Hosting Services</a>Nina Athenahttps://www.blogger.com/profile/11942457078940283392noreply@blogger.comtag:blogger.com,1999:blog-8764109705492068977.post-32327679001615081302010-04-21T02:43:09.020-07:002010-04-21T02:43:09.020-07:00I tried with python
:
from win32com.client.dynami...I tried with python <br />:<br />from win32com.client.dynamic import Dispatch<br /><br /># Excel<br />proe = Dispatch('pfc.MpfcCOMGlobal')<br />mdlName = proe.GetProESession()<br />#mdlName = proe.GetProEArguments()<br />print("Name:mdlName",mdlName);<br /><br /><br />but getting this error:<br /><br />D:\Manoj\WebLink\PythonApproach>C:\Python26\python proe.py<br />Traceback (most recent call last):<br /> File "proe.py", line 5, in <br /> mdlName = proe.GetProESession()<br /> File "", line 2, in GetProESession<br />pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, None, u'pfcXNotCo<br />nnectedToProE', None, 0, -2147352567), None)<br /><br />Please help!!!Manoj Kumarhttps://www.blogger.com/profile/10795527003690616649noreply@blogger.comtag:blogger.com,1999:blog-8764109705492068977.post-32745198787685493442009-02-02T02:38:00.000-08:002009-02-02T02:38:00.000-08:00Hello, and thanks of the post. You can post an exa...Hello, and thanks of the post. <BR/>You can post an example of using weblink protoolkit by an application in c + +? <BR/>Thank you. <BR/>Vincenzo.Unknownhttps://www.blogger.com/profile/16556085947064385260noreply@blogger.comtag:blogger.com,1999:blog-8764109705492068977.post-7342306229813519072008-10-02T07:41:00.000-07:002008-10-02T07:41:00.000-07:00Ok, I've found something about debugging in sy...Ok, I've found something about debugging in synchronous mode.<BR/><BR/>It's quite helpful: http://www.mcadcentral.com/proe/forum/forum_posts.asp?TID=36083&PN=3<BR/><BR/>Additionally config.pro with appropriate jlink_java_command should be loaded at startup of Pro/e - only then it works for me(Pro/e WF3 version) and also chaning code in the fly works! - great stuff(NetBeans).<BR/><BR/>Probably there is a way of using jython just by adjusting jlink_java_command but there will still be problem with protk.dat - I'll check this later..Lucashttps://www.blogger.com/profile/16181784754798856603noreply@blogger.comtag:blogger.com,1999:blog-8764109705492068977.post-75983851292436130742008-10-02T03:18:00.000-07:002008-10-02T03:18:00.000-07:00Firstly, thank you very much for your help. I'm us...Firstly, thank you very much for your help. I'm using WF3 so VB API does not matter.<BR/><BR/>Currently I'm working with J-Link and writing code in Java.<BR/>I've option to install Pro/Toolkit from installation CD but I don't know if using it requires some kind of licence fee.<BR/><BR/>I'll try this jython implementation but it looks like development of this platform has stopped.<BR/><BR/>How do you debug your Java code?Lucashttps://www.blogger.com/profile/16181784754798856603noreply@blogger.comtag:blogger.com,1999:blog-8764109705492068977.post-34135380553443227862008-09-24T03:54:00.000-07:002008-09-24T03:54:00.000-07:00With WF4, you can escape the browser by using the ...With WF4, you can escape the browser by using the VB API with python or any other scripting language.<BR/><BR/>The perl example uses a special Pro/Toolkit program that I wrote which embeds the perl interpreter, making it able to run perl scripts. You could use the process with python, however if you don't have access to Pro/Toolkit, this will be pretty hard to do.<BR/><BR/>Another option is to utilize jython (python implementation in Java) together with J-Link (Pro/E Java API). This is something that you could do for free and would be much easier to setup than Pro/Toolkit with embedded python.<BR/><BR/>I hope that helps,<BR/><BR/>MarcMarc Metteshttps://www.blogger.com/profile/05031210948718948813noreply@blogger.comtag:blogger.com,1999:blog-8764109705492068977.post-32138702805100421502008-09-23T06:31:00.000-07:002008-09-23T06:31:00.000-07:00I'm looking at your Perl example and I think that ...I'm looking at your Perl example and I think that something similar can be achieved with python and pywin32[1] extension(which adds OLE/COM support) but..<BR/><BR/>You have said Mark:<BR/><I>"example using Perl to access WebLink COM Objects from within a Pro/Toolkit DLL"</I><BR/>Does it mean that I need Pro/Toolkit? What is the procedure of loading this DLL into Perl code? I'm not familiar with Perl at all. Thanks in advance for any thoughts regarding this topic.<BR/><BR/>[1] http://sourceforge.net/projects/pywin32/Lucashttps://www.blogger.com/profile/16181784754798856603noreply@blogger.comtag:blogger.com,1999:blog-8764109705492068977.post-41603294183191587232008-09-23T05:25:00.000-07:002008-09-23T05:25:00.000-07:00Infact I would like to escape from browser. This c...Infact I would like to escape from browser. This compilation(java+browser) is just ugly for me ;) I would like to write some code in Python or IronPython like I can do with Solidworks using .NET Framework.Lucashttps://www.blogger.com/profile/16181784754798856603noreply@blogger.comtag:blogger.com,1999:blog-8764109705492068977.post-75455991440914731282008-09-23T03:50:00.000-07:002008-09-23T03:50:00.000-07:00Perhaps instead of "... you can use ...", I should...Perhaps instead of "... you can use ...", I should have said "... theoretically, you could use ...".<BR/><BR/>Any code that wants to interface with the Pro/WebLink ActiveX controls, must run within the Pro/Engineer process space, which means the embedded web browser or Pro/Toolkit application.<BR/><BR/>When IronMonkey is released, the ability to use other languages within Internet Explorer will be available.<BR/><BR/>For now, if you're using the web browser, you're limited to Javascript and VBScript.<BR/><BR/>Embedding a python interpreter within a Pro/Toolkit application has been done, but is a very complex task.<BR/><BR/><BR/>MarcMarc Metteshttps://www.blogger.com/profile/05031210948718948813noreply@blogger.comtag:blogger.com,1999:blog-8764109705492068977.post-9469784863228312132008-09-23T03:00:00.000-07:002008-09-23T03:00:00.000-07:00"On Windows, you can use VBScript, Perl, Python, o..."On Windows, you can use VBScript, Perl, Python, or any one of your favorite languages that can access COM objects."<BR/><BR/>Could you point out how to do that? I'm especially interested in using python with weblinkLucashttps://www.blogger.com/profile/16181784754798856603noreply@blogger.comtag:blogger.com,1999:blog-8764109705492068977.post-54092393427880001812008-08-11T05:10:00.000-07:002008-08-11T05:10:00.000-07:00Your blog is very nice.. In fact I myself was thi...Your blog is very nice.. In fact I myself was thinking of doing similar and did a bit but couldnt managae it till now.. Nice job!<BR/><BR/>Regrding this post: Thats a really usefull posting. I have searched a few regarding j-link, web-link, toolkit... But never heard that I can use VB or probably Tickle/tk as well.. Thats really exciting news.. I must find some time to dig little bit more on it.. Hopefully, i will get one working.. <BR/><BR/>Thanks....Joehttps://www.blogger.com/profile/03587102753374163251noreply@blogger.comtag:blogger.com,1999:blog-8764109705492068977.post-9288282088264667372008-08-05T04:13:00.000-07:002008-08-05T04:13:00.000-07:00Unfortunately, there isn't much out there. Traini...Unfortunately, there isn't much out there. Training classes in J-Link are available from a few 3rd parties, but typically you must rely upon the documentation, which is good, but not great.<BR/><BR/>You'll get the most useful answers by finding those who are actually using it and asking them. They are out there (some are active on the forums), but might be hard to find.<BR/><BR/>MarcMarc Metteshttps://www.blogger.com/profile/05031210948718948813noreply@blogger.comtag:blogger.com,1999:blog-8764109705492068977.post-4578892741788723532008-08-05T02:35:00.000-07:002008-08-05T02:35:00.000-07:00Thank you... this was helpful...But where can I st...Thank you... this was helpful...<BR/><BR/>But where can I start learning about WebLink / J Link?<BR/><BR/>Are there any good books available on this? Or some web based tutorials?<BR/><BR/>Thanks<BR/><BR/>Aseem Saxena<BR/>IndiaAseem Saxenahttps://www.blogger.com/profile/05087579723592854970noreply@blogger.com