Hello,
With a custom part publish in Content Center which contains iLogic rule:
Solved! Go to Solution.
Solved by eljoseppo. Go to Solution.
Maybe adding this line willl help:
If iProperties.Value("Custom", "PropertyName")="" Then Exit Sub
Write Properties you want to read.
Damned, that's so obvious...
Thanks a lot for this simple but efficient solution.
Regards,
Aurelien
I think my problem may be related. I am trying to have an iLogic message box pop up after I have selected the size from the content centre options list and before I am prompted to save. I want to do this because I want to enter a custom parameter which I want to be included as a prefix to the filename before being prompted to save.
See my code below:
I want to be able to enter PR NUMBER before being asked to save. Then one the iProperty "Part Number" has populated, I want to be propted to safe the file as the string produced in "Part Number"
The underlying question is.. how can I get the iLogic rule message box to pop up before I am asked to save?
Dim propertyName1 As String = "PR Code" 'define custom prp[erty collectionoCustomPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties") Try 'set property valueoProp = oCustomPropertySet.Item(propertyName1) Catch ' Assume error means not found so create itoCustomPropertySet.Add("", propertyName1) End Try Dim strPRCode As String 'get values from userstrPRCode = InputBox("Enter the PR NUMBER.", "PARENT", "") 'no default value 'set custom property valuesiProperties.Value("Custom", "PR NUMBER") = strPRCode iProperties.Value("Project", "Part Number") = iProperties.Value("Custom", "PR NUMBER") &"_"& iProperties.Value("Project", "Stock Number") iLogicVb.UpdateWhenDone = True