Adding QuantityNote to HoleThreadNote in VBA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I'm having difficulties adding QuantityNotes to HoleThreadnotes (based on interactive user selection) with a macro.
As far as I understand (probably wrong...) I have to add it to the FormattedHoleThreadNote string.
The problem is, the string is completely wrong. For example on the attached images, it's a 20mm hole with a H7 tolerance set in the model. When the Holenote is created using the UI, it is correct. But when I read the FormattedHoleThreadNote and try to slap on the Quantitynote, it somehow contains that the tolerance type is a symmetric type, which it is not... And this f*#cks up the holetnote. I can set the hole note afterwards to use part tolerances (which is how the note was created by the UI in the first place) and that fixes it - but I don't know how to change this with VBA. Or where that false "FormattedHoleThreadNote" string comes from...
Currently I'm manipulating the Formatted... string to remove all those false substrings, but that does not always work and it shouldn't be needed in the first place.
Any help please? Thanks.