I have created a Journal to track dimensions in a drawing. It goes through all dimensions add writes them in an excel file. As I want to compare dimension values each time with the previous values, I decided to specify each dimension with its tag. It means I got dimension's tags in seperate column in excel for comparison in next phase.
Each time I play Journal, it creates new columns in excel containing dimension's tags and dimension values. Then it compares them with values from the previous Run. It compares dimension values which their tags are equal.
I had no problem until I closed NX and open it again. I found that dimension tags completely changed and I can't compare them anymore.
I will thank you if anyone has a suggestion for me to solve the problem.
(The main reason of creating this code is to record a history of changing a drawing each time I create PDF so I don't want use Track drawing changes in NX)
Solved! Go to Solution.
Object tags can change between sessions. Try using Object Handles instead. Use UF_TAG_ask_handle_from_tag to get the handle.