Eplan Platform API
EPLAN API / User Guide / API DataModel / API Pro Panel / PlaceHolder3D - placeholder in 3D space
In This Topic
    PlaceHolder3D - placeholder in 3D space
    In This Topic

    There was a new placeholder object created in EPLAN Pro Panel. In API there was a corresponding class created Placeholder3D that inherits from StorableObject and IPlaceHolder interface. 

    Methods are similar to these in standard PlaceHolder . 

    C#
    Copy Code
    PlaceHolder3D oNewPlaceHolder3D = new PlaceHolder3D();
    oNewPlaceHolder3D.Create(m_oTestInstallationSpace);
    oNewPlaceHolder3D.Name = "016PlaceHolder3DService_Test008";
    oNewPlaceHolder3D.AddReference(oComponent);
    MultiLangString mlTest = new MultiLangString();
    mlTest.AddString(ISOCode.Language.L_en_US, "<Test123_en>");
    mlTest.AddString(ISOCode.Language.L_de_DE, "<Test123_de>");
    oNewPlaceHolder3D.SetPropertyEntry(oComponent, 20011, mlTest);
    oNewPlaceHolder3D.AddRecord("Record1");
    oNewPlaceHolder3D.AddRecord("Record2");
    //setting values for English
    oNewPlaceHolder3D.set_Value("Record1", "Test123_en", "Value 1");
    oNewPlaceHolder3D.set_Value("Record2", "Test123_en", "Value 2");
    //setting values for German
    oNewPlaceHolder3D.set_Value("Record1", "Test123_de", "Wert 1");
    oNewPlaceHolder3D.set_Value("Record2", "Test123_de", "Wert 2");
    oNewPlaceHolder3D.ApplyRecord("Record1");