Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UDP Parametrization needs expanding to handle Version and NoOfParameters fields #351

Closed
voss70 opened this issue Jul 27, 2021 · 2 comments
Closed
Assignees

Comments

@voss70
Copy link
Contributor

voss70 commented Jul 27, 2021

This is a recorded version of drawing an RMxprt UDP. In our pyaedt implementation of primitives.create_udp we do not supply the parameters Version of NoOfParameters. This causes the RMXprt/PMCore upd to fail.
oEditor.CreateUserDefinedPart(
[
"NAME:UserDefinedPrimitiveParameters",
"DllName:=" , "RMxprt/PMCore.dll",
"Version:=" , "12.0",
"NoOfParameters:=" , 13,
"Library:=" , "syslib",
[
"NAME:ParamVector",
[
"NAME:Pair",
"Name:=" , "DiaGap",
"Value:=" , "RotorDia"
],

@voss70 voss70 self-assigned this Jul 27, 2021
@tizianrot
Copy link
Contributor

Dear All,

I just came across the same issue. When calling a rmxprt UDP from Maxwell 3D with parameters different from the default ones the following happens:

  • Warning message: User Defined Primitive: Function MapParametersDefinitionVersions not found in RMxprt/TransCoil.dll. Using default parameters. (2:04:10 pm Feb 03, 2022)
  • the parameter is not taken
  • the default scalar is used instead
  • this happens assigning both scalar values and desin parameters
  • it does not happen with IronPython/desktop scripting, so it is somewhere in pyaedt

Tried with TransCoil and TransCore

Thank you,

Tiziana

@maxcapodi78
Copy link
Collaborator

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants