
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Sorry about my English skills.
I am in trouble.
What i want to know about iLogic function..
I put the code on VBA. the code function to make a custom button. it is working.
but, what make me in trouble is..
I made a? ?iLogicform.Showglobal("BOM") and also made a rule as well.
I seriously want to know how to the rule work automatically. when i put value in form and after click OK button.
There is my code about Rule
iLogicForm.ShowGlobal("BOM")
' Set a reference to the drawing document.
' This assumes a drawing document is active.
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
' Set a reference to the active sheet.
Dim oSheet As Sheet
oSheet = oDrawDoc.ActiveSheet
If (ThisDrawing.ModelDocument Is Nothing) Then Return
modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)
'read the values from the iProperties in the part file
'and apply them to the iProperties with the same name in the drawing
iProperties.Value(modelName, "Summary", "Category")=iProperties.Value("Summary", "Category")
iProperties.Value(modelName, "Project", "Description") = iProperties.Value("Project", "Description")
iProperties.Value(modelName, "Summary", "Title")=iProperties.Value("Summary","Title")
iProperties.Value(modelName, "Summary", "Keywords") = iProperties.Value("Summary", "Keywords")
iProperties.Value(modelName, "Status", "Status") = iProperties.Value("Status", "Status")
iProperties.Value(modelName, "Project", "Designer")=iProperties.Value("Project", "Designer")
iProperties.Value(modelName, "Status", "Eng. Approved By") = iProperties.Value("Status", "Eng. Approved By")
iProperties.Value(modelName, "Project", "Project")=iProperties.Value("Project", "Project")
iProperties.Value(modelName, "Summary", "Subject")=iProperties.Value("Summary","Subject")
iProperties.Value(modelName, "Project", "Revision Number") = iProperties.Value("Project", "Revision Number")
iLogicVb.UpdateWhenDone = True
Question Summary.(Capture)
When i put some Value in BOM and then push OK or Apply button (3). then It should be put the ("value") in (4).
but it is not working. if i push button (1) again then it is working..
I want to know how to work that function without push the button (1) again.
Solved! Go to Solution.