.NET

Reply
Valued Contributor
spanqy
Posts: 90
Registered: ‎11-13-2006
Message 11 of 12 (84 Views)

Re: PLOTDATE field value updates via PLOT but not when plotted via API

01-22-2013 02:56 PM in reply to: Alexander.Rivilis

That's it!

Placing the call to my plotting function in a DocumentLock Using statement allowed the PlotDate field to update.

 

Using dl As DocumentLock = doc.LockDocument
MyPlottingFunction()
End Using


Thank you Alexandar!  I owe you a drink if you come out to AU or the ADN conference in Las Vegas this year.

 

 

Moderator
Alexander.Rivilis
Posts: 1,398
Registered: ‎04-09-2008
Message 12 of 12 (71 Views)

Re: PLOTDATE field value updates via PLOT but not when plotted via API

01-22-2013 10:26 PM in reply to: spanqy

spanqy wrote:

That's it!

Placing the call to my plotting function in a DocumentLock Using statement allowed the PlotDate field to update.


An interesting side effect. Usually DocumentLock need to use only when we change something in the Database. In this case, we are not changing anything in the Database, but the change is due to the recalculation of of fields (including PLOTDATE)


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community