final SnapToPositionModel horizontalGuildesPositions = horizontalSnapModel.getGuidesModel();
horizontalGuildesPositions.clear();
final GuideLine[] hlines = horizontalLinealModel.getGuideLines();
for (int i = 0; i < hlines.length; i++)
{
final GuideLine guideLine = hlines[i];
if (guideLine.isActive())
{
horizontalGuildesPositions.add(StrictGeomUtility.toInternalValue(guideLine.getPosition()), null);
}
}
final SnapToPositionModel verticalGuidesPositions = verticalSnapModel.getGuidesModel();
verticalGuidesPositions.clear();
final GuideLine[] vlines = verticalLinealModel.getGuideLines();
for (int i = 0; i < vlines.length; i++)
{
final GuideLine guideLine = vlines[i];
if (guideLine.isActive())
{
verticalGuidesPositions.add(StrictGeomUtility.toInternalValue(guideLine.getPosition()), null);
}
}
final SnapToPositionModel hElementModel = horizontalSnapModel.getElementModel();
hElementModel.clear();