Hi Barry,
a few quick notes "without hands-on coding":
In my opinion PropertyHandlers can be used with elements existing in ElementCache (in design file). Until the element is added, it exists in memory only and it's not fully initialized, e.g. it does not contain ElementId.
I see no problem to add the cell to design file and to make any necessary modifications afterwards. It's quite common approach in some situations, simply because some modifications cannot be done until the element is fully "initialized" (stored in persistent storage like design file), sometimes also because VBA API is too limited and there is no other option.
After you add the element to design file, you can use ActiveModelReference.GetLastValidGraphicalElement method to get the created cell back from the file. Have no time to test it, but I guess the handlers should work then.
With regards,
Jan
a few quick notes "without hands-on coding":
In my opinion PropertyHandlers can be used with elements existing in ElementCache (in design file). Until the element is added, it exists in memory only and it's not fully initialized, e.g. it does not contain ElementId.
I see no problem to add the cell to design file and to make any necessary modifications afterwards. It's quite common approach in some situations, simply because some modifications cannot be done until the element is fully "initialized" (stored in persistent storage like design file), sometimes also because VBA API is too limited and there is no other option.
After you add the element to design file, you can use ActiveModelReference.GetLastValidGraphicalElement method to get the created cell back from the file. Have no time to test it, but I guess the handlers should work then.
With regards,
Jan