AcMapMbMapSheetTemplate::GetElement Method

Land Desktop Development ARX CPP SDK

AcMapMbMapSheetTemplate:: GetElement Method
 

Returns the object id of the object in the specified layout that is marked as an element of the specified type. 

Returns Acad::eOk if successful; Returns Acad::eAmbiguousOutput if there is more than one element of the specified type. Returns Acad::eKeyNotFound if there are no elements of the specified type; otherwise, returns a different error code.

static Acad::ErrorStatus GetElement(
    AcDbObjectId& elementId, 
    const AcDbObjectId& layoutId, 
    ETemplateElementType elementType
);
Parameters 
Description 
elementId 
Output Object id of entity previously marked  
layoutId 
Input Object id of the layout  
elementType 
Input Enumerated type identifying the element type  
Remarks

If there is more than one element of the specified type, the function fails.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].