Preview iproperties function in dialog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm working on my dialog for editing iproperties again and I'd like to make it preview the output of a function. We like using functions in the description for calling out material sizes using parameters. So I have my dialog get the function in the description iproperty, but if you don't know what parameters are what it can be hard to work with.
I'd like to show the evaluated description function so it's easier to work with.
Description function
=<G_H> x <G_W> x <G_T> S.S. TUBE x <G_L>
Evaluated description shown in BOM
4.00 in x 2.00 in x 0.19 in S.S. TUBE x 21.00 in
I know it'd be possible to set the iproperty and get the evaulated version after setting it. But if the user cancels out of the dialog that change would have to be undone, which would require storing the original value and resetting it on cancel. Is there a way to evaluate the function without setting it first?
pball's Autodesk Forum Style
Userscript to edit forum links to jump to first unread post
Jump To First Post Userscript