create_udp#

Modeler3D.create_udp(dll, parameters, library='syslib', name=None)[source]#

Create a user-defined primitive (UDP).

Parameters:
dllstr

Name of the UDP DLL or Python file. The default for the file format is ".dll".

parameters

List of the UDP parameters.

librarystr, optional

Name of the UDP library. The default is "syslib".

namestr, optional

Name of the component. The default is None.

Returns:
ansys.aedt.core.modeler.cad.object_3d.Object3d

UDP object created.

References

>>> oEditor.CreateUserDefinedPart

Examples

>>> my_udp = self.aedtapp.modeler.create_udp(dll="RMxprt/ClawPoleCore",parameters=my_udpPairs,library="syslib")
<class 'ansys.aedt.core.modeler.Object3d.Object3d'>