MicroStation CONNECT Update 5 Deprecated functions

Below are listed a set of functions and methods deprecated in update 5, 10.05.00.xx builds

Removed :

StatusInt Relationship::Moniker::FromAssocPoint (DgnModelRefP homeModel, DgnPlatform::AssocPoint const& ap);

Replacement :

Moniker m (homeModel, ap);

Removed :

StatusInt Relationship::Moniker::FromNonLocalElement (DgnModelRefP homeModel, DgnPlatform::ElementId elementIn, DgnModelRefP refModel);

Replacement :

Moniker m (homeModel, PersistentElementPath (homeModel, elementIn));

Removed :

StatusInt Relationship::Moniker::FromNonLocalElement (DgnModelRefP homeModel, DgnPlatform::ElementId elementIn, DgnPlatform::ElementId refAttid);

Replacement :

Moniker m (homeModel, PersistentElementPath (refAttid, elementIn));

Removed :

StatusInt Relationship::Moniker::FromNonLocalElement (DgnModelRefP homeModel, ElementRefP ref, DgnModelRefP refModel);

Replacement :

Moniker m (homeModel, PersistentElementPath (refModel, ref));

Removed :

StatusInt Relationship::Moniker::FromLocalElement (DgnModelRefP homeModel, DgnPlatform::ElementId elid);

Replacement :

Moniker m (homeModel, PersistentElementPath (homeModel, elid));

Removed :

StatusInt Relationship::Moniker::FromLocalElement (DgnModelRefP homeModel, ElementRefP ref);

Use Instead :

Moniker m (homeModel, PersistentElementPath (homeModel, ref));

Removed :

ElementRefP Relationship::Moniker::EvaluateElementRef ();

Use Instead :

Moniker::EvaluateElement().GetElementRef();

Removed :

ElementRefP Relationship::ParameterQuery::EvaluateElementRef();

Replacement :

ParameterQuery::GetMoniker ().EvaluateElement().GetElementRef();

Removed :

StatusInt DependencyManagerLinkage::AppendLinkageToMSElement (MSElementP el, DependencyLinkage const& dependencyData, size_t xtrabytes);

Replacement :

EditElementHandle eeh (el);
DependencyManagerLinkage::AppendLinkage (eeh, dependencyData, xtrabytes);

Removed :

int DependencyManagerLinkage::DeleteLinkageFromMSElement (MSElementP element, UShort appID, UShort appValue);

Replacement :

EditElementHandle eeh (el);
DependencyManagerLinkage::DeleteLinkage (eeh, appID, appValue);

Removed :

StatusInt DependencyManagerLinkage::GetLinkageFromMSElement (DependencyLinkageCP* ppDependencyLinkageInplace, MSElementCP element, UShort appID, UShort appValue);

Replacement :

ElementHandle eeh (el);
DependencyManagerLinkage::DeleteLinkage (ppDependencyLinkageInplace, eh, appID, appValue);

Removed :

bool LxoSettings::IsSphericalCamera () const;

Replacement :

CAMERAPROJECTION_Spherical == LxoSettings::GetCameraProjection ()

Removed :

void LxoSettings::SetIsSphericalCamera (bool value);

Replacement :

LxoSettings::SetCameraProjection (CAMERAPROJECTION_Spherical);

Removed :

bool mdlAssoc_isTagged (DgnPlatform::ElementId * tagValue, MSElementCP elm);

Replacement :

ElementId tagId = mdlElement_getID (&elm);

Removed :

int mdlDependency_getDependents (DgnPlatform::ElementId *pDependents, DgnPlatform::ElementId rootElemId, DgnModelRefP rootModelRef, int maxDependents);

Replacement :

int mdlDependency_getDependentElementRefs (ElementRefP *pDependents, DgnPlatform::ElementId rootElemId, DgnModelRefP rootModelRef, int maxDependents);
pDependents[0].GetElementId () // if an element id of a dependent element is required

Removed :

void DEllipse3d::Evaluate (DPoint3dR point, double theta) const;

Replacement :

void DEllipse3d::RadiansToPoint (DPoint3dR point, double theta) const;

Removed :

DPoint3d DPoint3d::FromXYZ (double x, double y, double z);

Replacement :

DPoint3d DPoint3d::From (double x, double y, double z);

Removed :

bool DoubleOps::SafeDivideDistance (double &result, double numerator, double denominator, double defaultResult = 0.0);

Replacement :

ValidatedDouble DoubleOps::ValidatedDivideDistance(double a, double b, double defaultResult = 0.0);

Removed :

PolyfaceHeaderR IPolyfaceConstruction::GetClientMeshR ();

Replacement :

Removed :

IPolyfaceConstructionPtr IPolyfaceConstruction::New (IFacetOptionsR options);

Replacement :

Removed :

int MSBsplineCurve::NumberAllocatedKnots () const;

Replacements :

Removed :

int MSBsplineCurve::NumberAllocatedPoles () const;

Replacements :

Removed :

PolyfaceHeaderPtr PolyfaceHeader::New ();

Replacement :

PolyfaceHeaderPtr PolyfaceHeader::CreateVariableSizeIndexed ();

Removed :

PolyfaceCoordinateMapPtr PolyfaceCoordinateMap::New (PolyfaceHeaderR polyface);

Replacement :

PolyfaceCoordinateMapPtr PolyfaceCoordinateMap::Create (PolyfaceHeaderR polyface);

Removed :

void mdlRMatrix_rotatePoint (DPoint3dP pointP, RotMatrixCP matrixP);

Replacement :

matrixP->Mutliply (*pointP);

Removed :

void mdlRMatrix_unrotatePoint (DPoint3dP pointP, RotMatrixCP matrixP);

Replacement :

//or (better)
matrixP->MutliplyTranspose (pointP);

Removed :

void mdlRMatrix_unrotatePointArray (DPoint3dP pointArrayP, RotMatrixCP matrixP, int numPoints);

Replacement :

matrixP->MultiplyTranspose (pointArrayP, pointArrayP, numPoints);

Removed :

void mdlTMatrix_rotateScalePoint (DPoint3dP pointP, TransformCP transformP);

Replacement :

transformP->MultiplyMatrixOnly (*pointP);

Removed :

StatusInt mdlResource_loadFromStringList (WChar *pwString, RscFileHandle rfHandle, UInt32 listId, UInt32 stringNum);

Replacement :

StatusInt mdlResource_loadWString (WStringR outString, RscFileHandle rfHandle, UInt32 listId, UInt32 stringNum, MdlDesc* m = NULL);

Removed :

StatusInt LoadFromStringList (WChar* pwString, RscFileHandle rfHandle, UInt32 listId2, UInt32 stringNum);

Replacement :

StatusInt mdlResource_loadWString (WStringR outString, RscFileHandle rfHandle, UInt32 listId, UInt32 stringNum, MdlDesc* m = NULL);

Removed :

StatusInt mdlFilterIterator_setBaseFilter (FilterIteratorP pFilterIteratorIn, FilterID iBaseFilterIdIn);

Replacement :

Note: the parameter iBaseFilterIdIn from above was always ignored.

Removed :

int mdlView_setLevels (bool onOffFlagIn, short* v7LevelMask, bool* viewList, bool doUpdate);

Replacement :

int status = ERROR;
BitMaskP pWorkingMask;
mdlBitMask_create(&pWorkingMask, true);
mdlBitMask_setFromBitArray (pWorkingMask, 64, reinterpret_cast<UShort *>(v7LevelMask));
status = mdlView_changeLevelDisplayMaskMulti (MASTERFILE, viewList, pWorkingMask, onOffFlagIn ? LevelMaskOperation::On : LevelMaskOperation::Off, doUpdateIn);
mdlBitMask_free(&pWorkingMask);

Removed :

void mdlTag_registerSet (DgnModelRefP modelRef, MSElementCP el, DgnPlatform::ElementId uniqueId);

Replacement :

There is no replacement the tag is registered automatically when it is added to the file.

Removed :

int mdlFile_createDeprecated (WCharP outname, WCharCP inname, WCharCP envvar, WCharCP iext);

Replacement :

BeFileName fileName;
mdlFile_create (&fileName, inname, envvar, iext);
filename.c_str ();

Removed :

int mdlFile_findDeprecated (WCharP outname, WCharCP inname, WCharCP envvar, WCharCP iext);

Replacement :

BeFileName fileName;
mdlFile_find (&fileName, inname, envvar, iext, FINDFILEOPTION_Default);
filename.c_str ();

Removed :

int mdlFile_findExtDeprecated (WCharP outname, WCharCP inname, WCharCP envvar, WCharCP iext, FINDFILE_Options options);

Replacement :

BeFileName fileName;
mdlFile_find (&fileName, inname, envvar, iext, options);
filename.c_str ();

Removed :

IPointCloudClassificationViewSettingsPtr IPointCloudClassificationViewSettings::GetPointCloudClassificationViewSettings(int viewIndex);

Replacement :

IPointCloudClassificationViewSettingsPtr ptr = IPointCloudClassificationViewSettings::GetPointCloudClassificationViewSettings(viewIndex, ACTIVEMODEL);

Removed :

bool IPointCloudClassificationViewSettings::GetClassificationState (UChar idx) const;

Replacement :

Removed :

StatusInt mdlRaster_systemRasterContainerGet (DgnRasterVectorR collection);

Replacement :

ModelRefIterator modelItr(pRootModel, iteratorType, depth);
for (DgnModelRefP modelRefP = modelItr.GetFirst (); modelRefP; modelRefP = modelItr.GetNext ())
{
for each(DgnRasterP rasterP in DgnRasterCollection::GetRasters(modelRefP))
{
if(NULL != rasterP)
//Do something;
}
}

Removed :

int mdlVec_linePlaneIntersect (DPoint3dP intersectPt, DPoint3dCP linePt, DPoint3dCP lineNormal, DPoint3dCP planePt, DPoint3dCP planeNormal, int perpendicular);

Replacement :

if (ERROR == mdlVec_linePlaneIntersect (intersectPt, linePt, lineNormal, planePt, planeNormal))
// line is parallel to the plane.

Removed :

DgnWorkSpacePtr DgnWorkSpace::Read (DgnDocumentMonikerCR cfgMoniker);

Replacement :

DgnWorkSpacePtr DgnWorkSpace::Read(DgnDocumentMonikerCR cfgMoniker, DgnFolderMonikerCR configurationFolderRootPath);

Removed :

DgnWorkSetPtr DgnWorkSet::Create(DgnWorkSpaceR workspace, WCharCP name, WCharCP descr);

Replacement :

DgnWorkSetPtr DgnWorkSet::Create (DgnWorkSpaceR workspace, DgnDocumentMonikerCR cfgMoniker, DgnDocumentMonikerCR dgnwsMoniker, WStringCR name, WCharCP descr);

Removed :

DgnWorkSetPtr DgnWorkSet::Read (DgnWorkSpaceR workspace, DgnDocumentMonikerCR cfgMoniker);

Replacement :

DgnWorkSetPtr DgnWorkSet::Read (DgnWorkSpaceR workspace, DgnDocumentMonikerCR cfgMoniker, DgnDocumentMonikerCR DgnwsMoniker);

Removed :

StatusInt mdlLevel_getParentId (DgnPlatform::LevelId* pParentLevelIdOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn);

Replacement :

None. Hierarchical levels are not supported anymore.

Removed :

StatusInt mdlLevel_getChildCount (int* pChildLevelCountOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn);

Replacement :

None. Hierarchical levels are not supported anymore.

Removed :

bool mdlLevel_isParent (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn);

Replacement :

None. Hierarchical levels are not supported anymore.

Removed :

bool mdlLevel_isChild (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn);

Replacement :

None. Hierarchical levels are not supported anymore.

Removed :

StatusInt mdlLevel_setParentId (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, DgnPlatform::LevelId parentLevelIdIn);

Replacement :

None. Hierarchical levels are not supported anymore.

Removed :

WCharCP mdlLevel_getPathName (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn);

Replacement :

None. Hierarchical levels are not supported anymore.

Removed :

void SheetDef::GetWindowsPrinterName (WString& windowsPrinterName) const;
void SheetDef::SetWindowsPrinterName (WChar const * windowsPrinterName);
void SheetDef::GetPltFileName (WString& pltFileName) const;
void SheetDef::SetPltFileName (WChar const * pltFileName);

Replacement :

The windows printer name and the plot file names are no longer stored on SheetDef. Their use has been deprecated.


Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.