Message 1 of 6
Can't run rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
I don't exactly understand the process
I use iLogic to create a parameter in a drawing and then fill it with a multi-list. Before doing this, I check whether the parameter exists in the drawing.
oUserParam = ThisApplication.ActiveDocument.Parameters.UserParameters
Try
oKatType = oUserParam.Item("Kategorie")
Catch
oKatType = oUserParam.AddByValue("Kategorie","Bauteil", UnitsTypeEnum.kTextUnits)
MultiValue.SetList("Kategorie", "Bauteil", "Baugruppe", "Presantition", "Zeichnung")
End Try
InventorVb.DocumentUpdate()
This works quite well so far.
Then the current value in the Category parameter is to be written to an Inventor property.
iProperties.Value("Summary", "Category") = Kategorie
I then have a second rule, which could also be included directly in the first rule.
But when I execute the second rule, nothing happens at first. But if I go into the rule editor and back out with Save and Execute, the rule works as I want.
I've created a little screencast to show the situation.
I can't find a way to write the value directly into the property and use it.
Can someone perhaps give me a tip?

Jörg Weber
CAD Systemtechniker für AutoCAD, Inventor, Vault