Looking at the Equation Editor, I can see multiple parameters.
i.e. A1, A2.... with Equations, Result, Type, Owner, Source, Comment.
Iterating through the parameters in the file:
The owner value is missing.
['AttachToExcel', 'Comment', 'Equals', 'Equation', 'ExcelCell', 'ExcelSheet', 'ExcelWorkbook', 'GetHashCode', 'GetType', 'MemberwiseClone', 'Name', 'RawValue', 'ReferenceEquals', 'ToString', 'Type', 'Units', 'Value', '_Parameter', '_Session', '__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__']
If the owner column isn't available here, Is it possible to go the other way? i.e. iterate through the planes in the part, then find Plane.defined_by...A1 ?
I want to programatically update A1 to a new value.
i.e. A1, A2.... with Equations, Result, Type, Owner, Source, Comment.
Iterating through the parameters in the file:
The owner value is missing.
Code:
part = CurrentPart()
for i in range(len(part.Parameters)):
print(dir(part.Parameters[i]))
['AttachToExcel', 'Comment', 'Equals', 'Equation', 'ExcelCell', 'ExcelSheet', 'ExcelWorkbook', 'GetHashCode', 'GetType', 'MemberwiseClone', 'Name', 'RawValue', 'ReferenceEquals', 'ToString', 'Type', 'Units', 'Value', '_Parameter', '_Session', '__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__']
If the owner column isn't available here, Is it possible to go the other way? i.e. iterate through the planes in the part, then find Plane.defined_by...A1 ?
I want to programatically update A1 to a new value.
Last edited: