is there any possibility to select and preview a cell through userform, wth VBA.
Unknown said:Is there any possibility to select and preview a cell through UserForm
You can capture an image in several ways...
They are mentioned, with some sample VBA code, in this article Capture a MicroStation View Using VBA.
In your case, read the cell from a library, then capture its image...
Dim oCell As CellElementSet oCell = CreateCellElement2 ("Vinoth", origin, Point3dOne, True, Matrix3dIdentiy)Dim size_x As LongDim size_y As Long
' Get size_x, size_y from an Image controlSet object.Picture = oCell.GetPicture (size_x, size_y)
Regards, Jon Summers LA Solutions
MicroStation Graphical elements provide a GetPicture method. The MicroStation VBA help topic "GetPicture Method Example" provides some sample code.
HTH,
Bob
Answer Verified By: Vinoth Joseph