Conversation of CAD Files


#1

I am .Net programmer and i need to develop a tool for my client
I have a question ,
I am having CAD file from different sources.
Like (RVM & ATT from Aviva) (DGN & PRP from Micorstation ) (IFC from Tekla )
is aspose 3d is able to convert all this kind of file and export output with 3D with all property available in CAD files .
Do i need any specific viewer to view 3D output files with 3D and its attributes

Please help me and suggest me to resolve requirement.


#2

@dhananjaykrpandey,

I have observed the information shared by you and like to share that Aspose.CAD does support rendering of 3D objects in exported PDF. I suggest you to please try using following sample code on your end to serve the purpose.

    public static void Export3dDWG()
    {
        String path = @"C:\Cad Data\";
       
        srcFile = path + "direct.dwg";
      
        //LoadOptions lo = new LoadOptions();
        //lo.SpecifiedEncoding=CodePages.SimpChinese;
        CadImage image = (CadImage)Image.Load(srcFile);
     
        bool if3d = false;
        foreach (CadBaseEntity obj in image.Entities)
        {
            //Console.WriteLine("Obj Name" + obj.TypeName);
            //     IterateCADNodes2(entity);
            if (obj.TypeName == CadEntityTypeName.FACE3D || obj.TypeName == CadEntityTypeName.SOLID3D)
            {
                if3d = true;
                break;
            }
            else
            {
                if3d = false;
            }
        }

        CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
        rasterizationOptions.BackgroundColor = Color.White;
        rasterizationOptions.PageWidth = image.Width;
        rasterizationOptions.PageHeight = image.Height;

        if (if3d)
            rasterizationOptions.TypeOfEntities = TypeOfEntities.Entities3D;
        else
            rasterizationOptions.TypeOfEntities = TypeOfEntities.Entities2D;
        
        PdfOptions pdfOptions = new PdfOptions();
        pdfOptions.VectorRasterizationOptions = rasterizationOptions;

        
        image.Save(path + "Campus_Saved.pdf", pdfOptions);
    }