COE-FORUM-USER
 |
| 14 Sep 2005 03:20 AM |
|
Hi all,
Does any one knows how to create a plug-in viewer.
Thanks
http://www.distrim.pt |
|
|
|
|
COE-Member
 |
| 19 Sep 2005 11:32 PM |
|
Hi Pedro, Do you want to create your own viewer. Is that what you are looking for ? Else if you want to use a viewer other than the one provided by smarteam, lets say instead of smarteam's IE viewer I want to use e-drawings for viewing solidworks parts then go for Applications tool setup > select solidworks part > Tools> Embedded viewer > modify > plugin viewer > Put the class id and the event id (for e drawings) > Event count (7 or 8) Hope this helps ! |
|
|
|
|
COE-FORUM-USER
 |
| 20 Sep 2005 03:13 AM |
|
Hi cabhishekin,
Yes i want to create my own viewer. I've read in "Smarteam - Administrator's Guide" what properties and methods should a plug-in viewer have.
Well i created an ocx component (my own viewer) with the requested methods and properties, i can call it from Smarteam Editor, but no file is sent to the viewer. I've the DrawingName propertie so it should work.
I really can't understand this behavior.
Thanks
http://www.distrim.pt |
|
|
|
|
COE-FORUM-USER
 |
| 20 Sep 2005 03:39 AM |
|
Hi Be sure that the your COM interface have the same indexes as in the SmarTeam manual. In C++ ATL you can edit the indexes that your function will have in the IDispatch/IUnknown interface (IDL). In VB I don't know how to change the index of the COM functions. If some knows how please let me know. In C# you should be able to change the index with parameters.
------------------- David Westerberg |
|
|
|
|
COE-Member
 |
| 26 Sep 2005 05:38 AM |
|
Hello Dawe, I am currently working on the plug in viewer issue, I am facing the same problem the viewer says " Not found/damaged file ". All i ve done is :- 1. I ve an ocx component which i use to view pdf files, in VB. 2. Registered the ocx using regsvr32. 3. Plug in option in aplication tools setup 4. entered event id & class id . its not working.....
can anyone plz guide how to change the index of an ocx control regards, abhishek c |
|
|
|
|
COE-FORUM-USER
 |
| 26 Sep 2005 06:01 AM |
|
Hi You have to do a "Wrapper"(A own OCX) around your OCX. This wrapper have to have the right interface described in the SmarTeam manual. Probably your OCX viewer doesn't have exactly the same interface as SmarTeam plugin expect. It has to have same type of paramters and same index.
|
|
|
|
|
COE-Member
 |
| 27 Sep 2005 06:33 AM |
|
Thanks a lot for ur inputs Dawe, Is there any way to open the smarteamIEViewer abd figure out how are they putting the code together. Also the smarteam manual talks about adding properties like DrawingName, Text ShowRedLining, RedLine Tools okay i will put it as Public Sub DrawingName () As String but then where is the role of index coming in picture.
looking forward for your favour, abhishek c |
|
|
|
|
COE-FORUM-USER
 |
| 27 Sep 2005 07:12 AM |
|
Hi You have to know a bit of COM programming to understand the indexes. A COM component often implements the IDispatch interface. With IDispatch interface script languages can use COM objects in late bindings. IDispatch includes functions where you can ask the COM object if a function exist and get a ID back. This ID is then used to call the right function in the COM object. Don't ask me why, but SmarTeam plugin want that for example DrawingName() should have a specific ID (the id in the the Manual). In C++ ATL you define the ID in the IDL file and in .Net by parameters(I think). If anyone can tell me how to define the DispatchID in VB i will be happy. |
|
|
|
|
JOBY

 |
| 08 Sep 2008 04:28 PM |
|
Anyone have better instructions on this process? I'd like to embed Adobe Acrobat 9 in SmarTeam, as the viewer for certain filetypes. to be clear, I'd like to use Adobe Acrobat as an embedded viewer. I don't want to launch Acrobat in a separate window. I've tried to replace the Class ID / Event ID of the "Smart IE Viewer" with those of Acrobat, but I just see the "Not found or damaged file." error. Any thoughts?
Thanks! ~Joe |
|
 |
|
|
bwfisher
 |
| 11 Sep 2008 12:49 PM |
|
Hello Joe,
I was able to open .pdf files using Adobe Reader 8 Version 8.1.2 within SmarTeam. I do not have Adobe Acrobat 9 installed, but I would expect it to work, since prior levels have worked.
The following set up is from Technote Reference #: 1248918 --- Solution Use the following scenario to set up the Adobe Acrobat Reader as a plug-in viewer: 1. Select menu "Tools-> Application Setup". File Type dialog is displayed. 2. Click "Modify" button. 3. Input "PDF" in "Name" field and input "PDF" in "Description" field. 4. Click "Add" button. 5. Click "Close" button. 6. Select added "PDF" file type in list box. 7. Click "Tools" button. 8. Click "Embedded Viewer" tab. 9. Click "Modify" button. 10. Check "Plug-in Viewer" and complete as follows: * Name -> Smart IE Viewer" * Class ID -> 156B79D3-C69C-11D4-B595-00104B3E8C2C * Event ID -> 156B79D1-C69C-11D4-B595-00104B3E8C2C * Event count -> 8 * Viewer file extension -> Blank * RedLine file extension -> Blank * Check off "Out of process" * Check off "Copy CAD assembly files" * Check On "Hide Toolbars" 11. Click THE "OK" button to complete the set up. PDF files will now be viewed correctly using Adobe Acrobat Reader from within the SMARTEAM Editor. ---
For my installation the PDF name was already set up in V5R18, so I skipped that step. I had trouble on my initial set up because the Adobe Acrobat Reader was not completely installed. After completing the Adobe install, it displayed my .pdf file within SmarTeam.
You can also find information in the ENOVIA SmarTeam document 'Introduction to SmarTeam Viewers'.
Barry Fisher IBM PLM Technical Support Americas
|
|
|
|
|
JOBY

 |
| 11 Sep 2008 03:59 PM |
|
Barry, you are my hero. That worked perfectly.
In the end, I discovered that I had glanced at the class ID and Event ID, thought they were identical, and had a "1" where I should have had a "3" in the Class ID.
Thanks!
~Joe |
|
 |
|
|
asco_industries
 |
| 15 Oct 2008 02:39 AM |
|
Hello to all,
I have the same question for the thin client (SmarTeam Web Navigator/Editor). Any idea ?
Thanks
***Patrick*** |
|
|
|
|