- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've created a rule in a part file to see if a Parameter called "Length" exists. If so, a Custom iProperty is created called "Length" that has the value of the Length Parameter. I've got a trigger set to run this rule before save. It doesn't appear to work at first. A custom iProperty is created, but it has no value and has a Text type. If I delete this property and edit my rule and directly from there "save and run", it creates the custom iProperty as I'm wanting (value shows up as Number type).
I've tried working on this most of the day and have gotten two different versions of code to do the same thing.
Parameter.Quiet = True If Parameter(ThisDoc, "Length") Then iProperties.Value("Custom", "Length") = Length End If
Dim oParam As Parameters oParam = ThisDoc.Document.ComponentDefinition.Parameters Parameter.Quiet = True If Parameter(oParam, "Length") Then iProperties.Value("Custom", "Length") = Length End If
What should i change to get it to create the custom iProperty correctly?
I'd also like to see what the units are for my Length parameter. It will be either inches or mm. Is there a way to pull that value and set it as a custom iProperty as well? I haven't had any luck creating the code for this.
Thanks
Solved! Go to Solution.