Thanks for this code. However, it appears in Python3 this only returns the enum numerical value and not the AttachmentPoint object. I would prefer to update the code for Python3. Do you have any thoughts or knowledge of this? I tried using the migration feature but it says there is an error for âeval(âAttachmentPoint.â + IN[0])â.
Python.NET is funky when handling enums, so that code posted earlier probably wonât work. Youâll have to just do all the work within the Python node itself instead of outputting the enum and then using the ObjectExtensions.SetParameterValueByName node. Start a transaction, open the MText object for write, set the attachment point property, commit the transaction, etc.