on 2023 May 19 7:34 AM
HI. I am a developer and I was looking for a way to use GLib wrapper and SAP.VE.Graphics.Interop in .NET framework env..
I have some doubts on how to use the SAP.VE.Graphics.Interop.Scene.
It works fine with VDS files but not with VDS4 files (which return an empty scene).Another doubt about FileFormat that are not compatible between GLib.LibEngine.RegisteredFileFormats and what is needed, for example, by the SAP.VE.Graphics.Interop.Scene.LoadFromStream function.Request clarification before answering.
Good point.
Just to highlight: Matai API and Matai Direct API are two completely different APIs.
Matai Direct API is just an extension for the VEG’s Python customable scripts.
Matai API is C++ API, and it was made public to allow customers create its own importers from their 3D file formats into VDS4. You are right, Matai API can be used in standalone applications.
Actually, SampleImporter is the sample application which uses Matai API and it can be standalone application. As far as I know it was made as “dll-project” just to consume it in Sample_MataiImporter plugin.
As for the SAP.VE.Graphics.Interop and Glib - those APIs have never been public.
I’ve just checked with my colleagues – there are no plans to make SAP.VE.Graphics.Interop or Glib APIs public.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think instead that the example provided in
SAP 3D Visual Enterprise Core SDK 9\Matai\SampleImporter
can be used as standalone application due to this declaration
// This function can be called from the command line using rundll32, like:
// rundll32 <full path to SampleImporter.dll>, ImportFromXyzToVds <full path to source xyz-file> <full path to destination vds-file>
extern "C" __declspec (dllexport) void __cdecl ImportFromXyzToVds(HWND hwnd, HINSTANCE hinst, LPCSTR lpCmdLine, int nCmdShow)
so why not also "SAP.VE.Graphics.Interop and Glib " ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is no SAP 3D Visual Enterprise SDKs which allows to create standalone application.
There are SDKs which allows to create plugins for different SAP 3D Visual Enterprise Products, but you can’t write your own application using those SDKs.
I guess it’s licensing process limitation.
As for the https://wiki.scn.sap.com/wiki/display/SVE/MataiDirect+API
It’s just VEG Custom operation extension, i.e. it can be used only in VEG.
I’ll check with my colleagues if there is a mistake in the above documentation and if there should be
“This API must be used only within custom scriptable operation as Python script.", instead of “This API can be used within custom scriptable operation as Python script. ”
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you.
I don't know Python, so I would like to use them directly in a .Net program.
I think it is unnecessary overhead.
I was reading this: https://wiki.scn.sap.com/wiki/display/SVE/MataiDirect+API
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Davide!
I've just checked with my colleagues.
Both SAP.VE.Graphics.Interop and Glib are internal libraries and are not supposed to be used by external SAP customer directly.
Glib is used by standard VEG operations, and SAP.VE.Graphics.Interop is used by Python (including Custom Python) script.
What product are you trying to write plugin for?
If you are using VEG, then I'd suggest to use standard VEG operations or Customable Python scripts: Python Cookbook - SAP Visual Enterprise - Support Wiki, rather than using SAP.VE.Graphics.Interop and Glib directly.
Also feel free to ask questions/raise tickets using "SAP ONE Support Launchpad" https://launchpad.support.sap.com/ - it’s the fastest way to get answer.
Regards,
Artem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.