Fabrication Part - properties revert after element is modified

Fabrication Part - properties revert after element is modified

anannini
Explorer Explorer
380 Views
2 Replies
Message 1 of 3

Fabrication Part - properties revert after element is modified

anannini
Explorer
Explorer

I set the value for FabricationPart properties PartStatus and CustomDataText using:

 

element.PartStatus = 1  
element.SetPartCustomDataText(1, mystring)

 

I get correct returns in a separate debug script. After modifying the element in any way, such as stretching it or modifying any parameter in the properties panel, those values revert back to the default value for the Fabrication Part ITM, in this case: 0 for PartStatus and "" for CustomDataText.

 

Is this normal behavior for these properties?

0 Likes
Accepted solutions (1)
381 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni

You may need to regenerate the model in between, before making any other modifications, cf. The Building Coder topic group on the need to regenerate:

  

  

 

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 3

anannini
Explorer
Explorer
Accepted solution

The issue was caused by a conflict with a plugin, Evolve Mechanical, controlling these properties.

0 Likes