Possible bug in ModelParameter object (createdBy attribute)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I think I'm seeing a bug when traversing a list of ModelParameter objects. If I have a particular component, I can get its requisite model parameters with component.modelParameters and iterate through this list as follows (code in Python):
paramList = component.modelParameters
paramCount = paramList.count
for i in range(paramCount):
param = paramList.item(i)
...For each param there are attributes such as: role, name, unit, expression and createdBy. Except the createdBy attribute is not always returning an object. It usually returns a Base object which has a derived object class of, say, ExtrudeFeatures or CircularPatternFeatures etc. However for Sketches, the createdBy attribute is always None (or NULL). In the UI, the information is being retrieved so either I'm missing a subtlety of operation or the API isn't filling in that information correctly.
Thanks, Conor.


