Im trying to find a way of identifying if a symbol either has been modified locally or is different from the definition in our symbol template. I cant see anything obvious in the api of the sketchedsymboldefinitions, or sheet.sketchedsymbols that would either show a flag or allow me to compare the two.
Has anyone come across this problem and found a solution?
Hi,
The only 'difference' I could think of is the prompt text or property text. In definition, they are just defined. When the user insters a symbol, the text will be set. So, I am not clear on the 'difference' you refer to. Could you elaborate it?
Hi,
assume there are geometries, static text, prompted text and property text in a symbol definition.
after the symbol definition is inserted as a symbol, it would be:
for the result symbol, the user can only change the prompted text result string. He cannot change geometries and static text. as to property text, it depends on the corresponding property.
So, if you want to compare the result symbol. You could only compare the prompted test result string, by SketchedSymbol.GetResultText.
If you want to compare the symbol definition, you will need to iterate each sketch element and check if they are different.