Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

ProOutputFileWrite() for PRO_CGM_FILE

miky

New member
Hi


I am trying to use ProOutputFileWrite() as per code in the online browser of Pro/TOOLKIT, but there is no identifire for PRO_EXPORT_CGM_CLEAR_TEXT and PRO_EXPORT_CGM_ABSTRACT. Where these things are defined in header file?


Can anyone help in this regards?





cgm_option_1 = PRO_EXPORT_CGM_CLEAR_TEXT;


cgm_option_2 = PRO_EXPORT_CGM_ABSTRACT;


p_arg2 = &cgm_option_1;


p_arg3 = &cgm_option_2;


status = ProOutputFileWrite(drawing, wfilename, PRO_CGM_FILE, NULL, p_arg2, p_arg3, NULL );





Regards


Miky
 
Hello Miky,


If the enum values are defined for the respective options you can use those and try is the required output file get generated with the above API.


I too face some issue with the documentation and few things are mentioned in the header files which are not avail in documentation.Try and let share the information.


Kishore V
 
There is no information about these enums..


I tried to run by setting some int value 0,1 randomly ,but it did not work out.


Is there any way to get CMG format of Pro/E Drwing? I am thinking of running macro,but not sure if it will work ( file->save as CMG)





Regards


Miky
 
Hello Miky,


arg3--This argument is used only if arg2 == NULL and arg3 is not NULL. Otherwise, this must be a double array of size 2.


As per the Pro/Toolkit documentation.Let try kepp the arg2 is NULL, and proovide the arg3 same as you taken.


Let see are you able to get the output file.


With regards,


Kishore V
 
It did not work even if I passed one param ( either arg2 or arg3 ).Dxf works fine, but the problem is only with cgm when used the API..





I hope the value of these enums should be 0 or 1 as there are only two options


in Metafile and File structure when I do save drawing as CGM through UI.





Regards


Miky
 

Sponsor

Back
Top