Hi @A.K.CORTEL. I am not sure if this will work OK for your scenario or not, because there are some variables involved, but this is something I thought of after I got your message. If your drawing side rule, that runs the part's rule, were to include a bit more code to capture both documents involved to variables, then run the other rule, then include a couple more lines of code to update both documents, this may do what you are wanting. However, I am not 100% sure if your system will 'wait' for the other rule to run, you to make your changes in the form, then return control back to this rule, to then update the two documents after the changes...or if it will just instantly try to run the two update lines immediately after running the other rule, without waiting for any other processing to happen.
You will notice in this rule, that I am using the GetFileName method to get the proper String to use for the RunRule method. I am doing this, instead of using the model document's DisplayName, because the DisplayName property is a Read\Write property, and is not very reliable. Sometimes it includes the file extension, and other times it doesn't, and can be changed to something completely different than the file's name. In many of the iLogic snippets, when you need to specify a referenced document for it to target, it needs to see the file's name, without path, but with file extension, or they will not work.
If ThisDoc.Document.DocumentType <> DocumentTypeEnum.kDrawingDocumentObject Then
MsgBox("A Drawing document must be active for this code to work. Exiting.", vbCritical, "")
Exit Sub
End If
Dim oDDoc As DrawingDocument = ThisDoc.Document
Dim oMDoc As Document = ThisDoc.ModelDocument
'gets file name, without path, but with file extension
Dim oMFileName As String = System.IO.Path.GetFileName(oMDoc.FullFileName)
iLogicVb.RunRule(oMFileName, "I PROPERTIES")
oMDoc.Update
oDDoc.Update
And if that does not work, because it does not wait for the other stuff to process before doing the updates, there are other ideas. One of the factors involved here is whether or not your iLogic Form is set to display as 'Modal' or 'Non Modal'. If it is Modal, the rest of your rule's code (if any) will wait for you to finish using the form, before continuing to run the rest of the rule's code. But if it is set to non modal, the rest of the rule's code will immediately run, without waiting on you to do anything with the form. I would advise you to make sure that the form is set to Modal, either by design, or by specifying Modal when you call it to show. Then on the next line of code after you call it to show (in your rule within the part), add the line to update that part. And, you could also add more code after that to access the drawing document and update it too. If you are only changing the values of custom iProperties, and not actually changing any real Parameters directly, I don't think that will trigger any of the standard Event Triggers in the drawing, as I previously hinted at. I thing you just mixed the terms "iProperties" & "Parameters" in your original post by mistake, which confused me a bit. You can't really change Parameters values by changing iProperties values, but you can change the values of custom iProperties by changing the values of Parameters, if those custom iProperties were created by you exposing/exporting those Parameters as custom iProperties.
Wesley Crihfield

(Not an Autodesk Employee)