This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Creating a new CAD revision through IOM

[email protected] - Friday, August 7, 2015 5:04 AM:

Hi,

I've written a set of Python binding for IOM.dll - which by the way I'd really like to make a community project.

I would like to add the ability to do a manual revision.  In the same way that an Owner can right click a released CAD and 'Create New Revsion' from the list view.

I've tried two methods, neither seem to work.  I've tried both my own (Python) code as well as AML Studio with the same results in both.

If I try and run the 'version' action in an Item, I get "You have insufficient permissions to perform 'update' operation."  This makes no sense as I'm not updating an existing record, I'm creating a new one.

I've also tried running the server method 'PE_CreateNewRevision' in the same way as the UI method does, but this simply does nothing.  I'm calling it using innovator.applyMethod( 'PE_CreateNewREvision', item.dom.OuterXml)

So, what am I doing wrong?

Is there a way to use the privilege elevation as PE_CreateNewRevision does from IOM?

TIA,

Jason



Dave_Rollinson - Friday, August 21, 2015 4:36 AM:

Jason

You could write your own server-side Method to perform the version operation (and this can use the same privilege escalation mechanism as "PE_CreateNewRevision") then call it from IOM:

 

Item myCAD = [some C# to get a CAD Item]

Item newCAD = myCAD.apply("MyVersioningMethod");