.NET

.NET

Reply
Valued Contributor
spanqy
Posts: 90
Registered: ‎11-13-2006
Message 11 of 12 (105 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,457
Registered: ‎04-09-2008
Message 12 of 12 (92 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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.