PDA

View Full Version : Help with SmartPlant Review API...



lidds
06-08-2011, 12:45 PM
I know you probably get a lot of these questions, but I am trying to understand how to create a Review plugin. I have done a lot of searching on the net and even in the documentation from Intergraph, but there seems to be very little to help.

Instead of asking the generic question of HELP, I will be a bit more specific, and I would be really grateful of the experts for some help, so thank you in advance.

1. Do I have to add a reference to my Visual Studio project for it to know it is a SmartPlant Review plugin?
2. Does SmartPlant Review allow the plugin to be written in VB.Net or does it have to be written in VB6?
3. I want to basically write an application to save and restore the camera position and save a screen image. What dll would I have to add to allow me to do this?
4. I did notice that there are quite a few plugin's in this forum in form of .exe that has this functionality and I was wondering someone would be willing to share the source code with me?

I apreshiate that the best solution would be for me to go on an Intergraph training course, however my employer will not pay for that so I am trying to figure this out.

Thank you in advance for your help

Simon

tim
06-08-2011, 05:55 PM
1) Yes.
2) Yes. You can use vb.net as well as VB6.
3) VaxCtrl3.dll
4) No. I will not share my source code.

As far as I know, Intergraph does not hold training course for Review's API.
All you need to do is to install API module and get reference help file (Drapix_API.chm)
If your company does not own API module license, one month lease is enough to get serial key and install. (around $150 I believe)

Similar post, last week (http://www.davetyner.com/forum/showthread.php?8853-Using-SmartPlant-Review-APIs)
Now that Russian leak ended, get help file by yourself.

tim
06-10-2011, 05:29 PM
Simon

You are lucky.
Russian FTP site comes back! Though all SP3D training materials deleted, you can still access SmartPlant Review's API help file.

DRAPIX Help File (ftp://ftp.intergraph.ru/PPO/TENGIZCHEVROIL/2010_08.00.00.43/Spr/resdlls/0009/Drapix_API.chm)

lidds
06-12-2011, 03:11 PM
Tim, thanks for the download has helped me solve a lot of issues. However I am still struggling to get (save) and set (restore) the camera for the active view in SPR.

Any help would be really appreciated.

Thanks

Simon

tim
06-12-2011, 05:13 PM
Use ViewGetDbl/ViewSetDbl method. Sample code is in the help file.

lubl
06-28-2011, 05:58 AM
nothing to see here. Please don't request serial numbers. It's a fast way to be banned (permanently) from the forum.

dave
06-28-2011, 06:07 AM
lubl, it's IW1LLB4NY0U1FY0UR3QU35TAS3R14L

lubl
06-29-2011, 03:04 AM
ok. sorry.:(