Hello Andreas,
thanks for this workaround suggestion. Do you know if this will work if I
want to evaluate something context sensitive? I.E. Instead of evaluating
something in the global context like the previously mentioned
*CATIA.ActiveProduct.Position.**GetComponents(components)* which would
ref
.NET uses RCW to cache calls into COM. I once used pythonnet to call into
COM from Python using .NET COM interop. But this is not ready for general
use due to the amount of boilerplate code necessary to make the calls. See
this issue for more details.
https://github.com/pythonnet/pythonnet/issues/
I missed your second questions:
I have no experience with this. But it looks like one could wrap a Python-array
in such a VARIANT
object and hand this to CATIA, like:
v = VARIANT(pythoncom.VT_BYREF | pythoncom.VT_ARRAY | pythoncom.VT_R4, 12*[1.])
Worth a try.
Peter Enenkel schrieb am 19.02.2017
Hi Peter,
yes, this works fine.
We used to walk through a tree of Products collecting all position matrizes, on
the
Measurable-object to get the points of a line and other stuff.
And yes, you pass the object (product, measurable, etc.) to the Evaluate
function.
Although it would be much better
Hi Peter,
>From Python call Catia.SystemService.Evaluate() and hand over a VB script that
>does what you need
but returns an Array.
This works for all CATIA methods that use an Array as Input/Output-parameter.
Regards
Andreas
Peter Enenkel schrieb am 17.02.2017 um 23:29:
> Hello All,
>
>
>
Hello Tim,
thank you for your response.
This is the ActiveGige SDK by A&B. The method description only says it
returns the 2D array of image buffer values with a return value type
Variant (SAFEARRAY).
Thanks,
Filippo
> Date: Fri, 17 Feb 2017 13:55:39 -0800
> From: Tim Roberts
> To: "python-win
Hello All,
I'm trying to read some data from CATIA v5 (which is an older CAD
application) via its COM server. Overall it works rather well, even if I'm
fairly new to COM communication.
Nevertheless I have run into a problem: One specific function *GetComponents
* is supposed to return its result
I thought that might be the answer. Thank you
On Feb 17, 2017 4:53 PM, "Tim Roberts" wrote:
> Stephen Chapman wrote:
> >
> >Since it was a simple example I was only passing a single int for a
> > parameter and returning 0. As far as I know COM servers don't cache
> > responses I have never
Hello Tim,
thank you for your response.
This is the ActiveGige SDK by A&B. The method description only says it
returns the 2D array of image buffer values with a return value type
Variant (SAFEARRAY).
Thanks,
Filippo
___
python-win32 mailing list
python-