Hi @yatinp175. You will need to provide a lot more detailed information than that for us to be able to tell you with any accuracy why things are not working properly, or how to fix the problems. A good start would be including the code that you are currently using. Another good start would be describing the steps involved in the process in as much detail as possible, maybe even with a bulleted list. It sounds like you expect the 'Description' iProperty's value to change to match some portion (path, file name, file extension, all, some ?) of the file name of the newly created document, after you have performed a SaveAs operation. Does that sound accurate? Well then, we would need to know how the new document is being created. For instance, are you using the 'New' command, where it presents you with a dialog to choose a template to create the new document from, then generates a new document that is not saved yet? Or are you opening the actual template document itself, then doing a SaveAs operation, to directly create a new file on disk for the new document? Knowing the details of how these things are being done is usually important in these types of situations.
SaveAs scenarios are the most difficult to deal with, because, unlike regular Save operation and SaveCopyAs operation, where you are left with a reference to the document that just got saved...the SaveAs operation leaves us with the same reference to the original document, instead of the new document that just got created. The only way to get a reference to the new document that gets created by a SaveAs operation is to capture the 'FullFileName' (full file path, file name, and file extension) that was specified during the SaveAs operation, then use that to 'Open' that file, to get a reference to the document that gets loaded from that file. The iLogic 'Event Triggers' dialog Event named "Before Save Document" will not help, because it has not been saved yet. The one named "After Save Document" will not help either, because it remains focused on the 'original' document (which is the Document that triggered the event). Not only that but, some events have a 'before' and 'after' timing aspect to them, and during the 'before' timing, the new file has not been created yet, so no information is available for new file name yet, then during the 'after', when that information is available, if you set the value of that iProperty, that will make the document 'dirty' again, so it would need to be saved yet again. If the document was closed after save, but the iProperty was changed after save, then when you open the document again, the iProperty will have its original value, because it did not get changed before save. And you do not want to insert instructions to save a document inside of a code that runs after save, because that can cause an endless cycle of trying to save the document.
The Inventor API events (outside of the iLogic 'Event Triggers') usually give us much more control than what the iLogic 'Event Triggers' can give you, but they can be complicated to use, and are generally best managed within an Inventor add-in, not just regular iLogic rules. One example is the ApplicationEvents.OnSaveDocument Event, which says that it is only for regular 'Save' and 'SaveCopyAs' scenarios, not for 'SaveAs' scenarios. But then there is no ApplicationEvents.OnSaveAsDocument Event. However, there is a FileUIEvents.OnFileSaveAsDialog Event, but it only gets triggered by the actual user interface dialog getting called to be shown, not by doing a SaveAs by code. Some of the Inventor API tools can likely get us a reference to the 'new' document object, or the full file name of the 'new' file, but that process may be more complicated than you initially had in mind, possibly requiring an Inventor add-in to manage it.
Wesley Crihfield

(Not an Autodesk Employee)