taibc

Error font when viewing CAD data in PageLayoutControl ?

Discussion created by taibc on Aug 19, 2012
Latest reply on Aug 23, 2012 by taibc
Hi,

I am viewing CAD data (dgn file) in a PageLayoutControl, but I get font errors of texts when displaying.

Are there anyone know how to fix this error ?

Please see my below codes for viewiing CAD data:

            string workspacePath = "C:\\";
            string fileName = System.IO.Path.GetFileName("HS-5-16.dgn");

            //Read data from file CAD (Dgn)
            ICadDrawingDataset cadDrawingDataset = GetCadDataset(workspacePath, fileName);

            if (cadDrawingDataset == null)
            {              
                return;               
            }
                      
            ICadLayer cadLayer = new CadLayerClass();
            cadLayer.CadDrawingDataset = cadDrawingDataset;           
            cadLayer.Name = fileName;
           
           
            PageLayoutControl.ActiveView.FocusMap.AddLayer(cadLayer);

Outcomes