Wondering what the difference is between these two functions, as they both have the same parameter list (EditElementHandleR, ElementTemplateNodeR). Both are static functions of MstnElementTemplateMgr.
What are you trying to accomplish, Bruce?
Bruce Reeves SRNS said: they both have the same parameter list
Are you sure? I don't see ApplyTemplateWithoutReference, only OnApplyTemplateWithoutReference
ApplyTemplateWithoutReference
OnApplyTemplateWithoutReference
.
void OnApplyTemplateWithoutReference ( EditElementHandleR eeh, ElementTemplateNodeR elementTemplateNode )
Regards, Jon Summers LA Solutions
from the MicroStation API Documentation...
Guys, I'm going to warn you from personal experience, attempting to make heads or tails of the element template APIs is a recipe for disaster...better to focus on what specific result you're trying to achieve.
I'm just wondering what the difference is in what these two function do, as they have the same parameters. Why would I use one over the other? The ApplyTemplateWithoutReference() function implies it does not include a reference to the Template when it's applied to the element, but then ApplyElementTemplateParams() also does not include a reference to the Template. So I'm wondering why there are two functions that *seem* to do the same thing..... The help file is a little sparse on all the MstnElementTemplateMgr functions.
Bruce Reeves SRNS said:Wondering what the difference is between these two functions
I agree with Paul: it's confusing...
static MstnElementTemplateMgrStatus MstnElementTemplateMgr::ApplyTemplateWithoutReference ( EditElementHandleR eeh, ElementTemplateNodeR elementTemplateNode )
protected: bool IElementTemplateExtender::_ApplyElementTemplateParams ( EditElementHandleR element, ElementTemplateNodeR templateToActivate, XInstanceContainerP originalECInstanceList, bool mustReferenceMatchingTemplate )
public: bool IElementTemplateExtender::ApplyElementTemplateParams ( EditElementHandleR element, ElementTemplateNodeR templateToActivate, XInstanceContainerP originalECInstanceList, bool mustReferenceMatchingTemplate)