Programming dimension driven cell with mdl

Hi,

I use a application written in mdl witch places a dimension driven cell. The dimensions of the cell are modified before placement through a list of values chosen from a list box.

I have currently switched to V8XM, before I used my application with V8. Since my switch the application is acting strange so I think there are some issues with the code.

When recompiling the application under XM I get a number of errors stating there are some functions not available anymore.

I am searching for a technical paper, manual, sourcecode that can explain how dimension driven cells can be programmed under XM.  I don't care if it is in mdl or VBA, as long as I can get my application up and running again.

Can anyone help me?

Regards 

Wim Aerts

4D select

Parents Reply Children
  • A Cell Library is a DGN File

    Wim:
    I get a complaint on two functions, one of them is mdlCell_getFilePosInLibrary and the other is consLGroup_readCell. Both of the functions work with file positions in cell libraries.

    A cell library is a DGN file. A DGN file is a cell library. A DGN file contains models; a cell library contains cells: but a cell is a model. The difference between a cell library and a DGN file since V8.0 is the file extension.

    I believe that mdlCell_getFilePosInLibrary was deprecated wtih V8.0. I can't find consLGroup_readCell in either the V7 or V8 MDL documentation.

    Use something like mdlCell_findCell to determine whether a cell exists, then mdlCell_getElmDscr to get an MSElementDescr*, or mdlCell_placeCell to place the cell at a known location.

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

  • Jon is correct. For the mdlCell function I did something like this in a sample: if (mdlCell_existsInLibrary (wCellName)) if (SUCCESS==mdlCell_getElmDscr (&cellEdP, &txtNodeDscrP, NULL,NULL,TRUE, NULL,0,0,-1,FALSE,wCellName,NULL)) { DgnFileObjP library; pDDGroup = consLGroup_read (cellEdP->h.dgnModelRef, elementRef_getFilePos (cellEdP->h.elementRef)); mdlCell_getLibraryObject (&library,tcb->celfilenm,FALSE); if (pDDGroup==0) pDDGroup = consLGroup_readCellFromLibrary (wCellName,library) ... HTH, Mark Anderson [Bentley]
  • Mark,

    Do you have a definition file for the consLGroup_... functions? I can't seem to find them anywhere. I only have a definition for my (not working) consLGroup_readCellfuntion.

    Regards.

    Wim Aerts

    4D select

    Wim Aerts

    4D select nv