Eplan Platform API
Eplan.EplApi.DataModel Namespace / ContextPropertyPlacement Class / CreateFromProjectProperties Method
Page on which object will be inserted.
Location in which object will be inserted.
Project property which will be displayed.
Example

In This Topic
    CreateFromProjectProperties Method
    In This Topic
    Creates and insert into page ContextPropertyPlacement which displays project property.
    Syntax
    public void CreateFromProjectProperties( 
       Page oPage,
       PointD oLocation,
       AnyPropertyId oAnyPropertyId
    )
    public:
    void CreateFromProjectProperties( 
       Page^ oPage,
       PointD oLocation,
       AnyPropertyId^ oAnyPropertyId
    ) 

    Parameters

    Parameter NameDescription
    oPagePage on which object will be inserted.
    oLocationLocation in which object will be inserted.
    oAnyPropertyIdProject property which will be displayed.
    Exceptions
    ExceptionDescription
    Throw when DataModel object has already been created and is created again.
    Thrown when one of parameters is null. Check exception message for more details.
    Throw when internally used handle is not valid.
    Thrown when ContextPropertyPlacement object cannot be created.
    Thrown when internal problem occurs. Check exception message for more details.
    Example
    ContextPropertyPlacement oContextPropertyPlacement = new ContextPropertyPlacement();
    oContextPropertyPlacement.CreateFromProjectProperties(oNewPage, new PointD(100.0, 100.0), m_oTestProject.Properties["EPLAN.Project.UserSupplementaryField1"].Id);
    
    
    See Also