IV2010 API - Parameter Editable Conditions?

IV2010 API - Parameter Editable Conditions?

Anonymous
Not applicable
394 Views
6 Replies
Message 1 of 7

IV2010 API - Parameter Editable Conditions?

Anonymous
Not applicable
I would like to know the conditions for when you cannot edit a Parameter object. In the API help, it says, "Depending on the type of parameter, this property may not be writable," on the Comment, Units, Expression, and Value properties. I know trying to edit a reference parameter value is not possible, but what could stop a comment from being edited?
0 Likes
395 Views
6 Replies
Replies (6)
Message 2 of 7

fle
Enthusiast
Enthusiast
Peter,

I have no idea in which case a comment is not editable. Take care, some values can not be edited in case the value is driven by a formular corresponding other variables. You can query that by a source code like that:
// the value contains a formular
if (parameter.DrivenBy.Count > 0)
continue; // next variable
Best regards,
Andreas
http://www.confidity.com
0 Likes
Message 3 of 7

Anonymous
Not applicable
The API should have the same limitations as what you see in the
user-interface. If you can't edit something interactively in the Parameters
dialog then it will also likely be blocked through the API.
--
Brian Ekins
Inventor API Product Designer
http://blogs.autodesk.com/modthemachine
0 Likes
Message 4 of 7

Anonymous
Not applicable
I can change the value of a model parameter that was driven by another parameter. There's something more to it than that.
0 Likes
Message 5 of 7

Anonymous
Not applicable
I figured as much. I'm pretty sure there aren't any restrictions on user and model parameter values. Do you know when a comment can't be edited?
0 Likes
Message 6 of 7

Anonymous
Not applicable
Off the top of my head, when the parameter is referenced from another
document; derived from another document or linked in from an Excel sheet.
--
Brian Ekins
Inventor API Product Designer
http://blogs.autodesk.com/modthemachine

"peter.townsend" wrote in message news:6323855@discussion.autodesk.com...
> I figured as much. I'm pretty sure there aren't any restrictions on user
> and model parameter values. Do you know when a comment can't be edited?
0 Likes
Message 7 of 7

Anonymous
Not applicable
Thanks for the info!
0 Likes