Thanks Ronny
I've followed you on GitHub. I don't have public repositories yet because all of my work has been for companies. I will probably do some sample macros that lean on C# so others can see at least one worked example.
Your answer is what I needed to see. I knew most of what we are doing should live in a transaction but I'd yet to see a clear implementation.
------------------------------
David Brubacher
------------------------------
Original Message:
Sent: 02-12-2025 15:10
From: Ronny Schneider
Subject: Follow-on question to updating Feature Codes
Updating a feature code and have the world view and point spreadsheet update works for me if I use the usual encapsulation in
with TransactMethodCall(self.currentProject.TransactionCollector) as failGuard: failGuard.Commit()
If you have my public macro collection have a look at SCR_SNRPoints
------------------------------
Ronny Schneider
Original Message:
Sent: 02-12-2025 14:31
From: David Brubacher
Subject: Follow-on question to updating Feature Codes
I've got the updates working beautifully well thanks to the help I've received here.
What I've noticed, though, is that, while the properties of a point shows the updated value, neither the graphics window nor the Point Spreadsheet show the updates. Re-running the feature coding updates everything but a recalc does not. What's the best way to make sure my changes are visible immediately after the macro completes?
------------------------------
David Brubacher
------------------------------