Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

convert CGM file to HPGL file format using cgm2hpgl2.dll?

Hi,

 

We want to convert CGM file to HPGL file format(.hp) for my current project.

There is a DLL avaialbe in C:\Program Files\Siemens\NX 9.0\NXPLOT\bin\cgm2hpgl2.dll.

Whether this dll can help us to convert to cgm to hhpgl format?

How to use this cgm2hpgl2.dll?

Is there any siemens help documentation available for this dll usage?

 

Thanks.

4 REPLIES
Solution
Solution
Accepted by topic author NFC
‎08-26-2015 04:32 AM

Betreff: convert CGM file to HPGL file format using cgm2hpgl2.dll?

Hi,

 

you can use nxplot.exe (SDI-Plot tool) to convert the cgm file to hpgl.

%UGII_BASE_DIR%\NXPLOT\nxplot.exe -input=%CGMFILE% -group_dir=%UGII_SITE_DIR%\nxplot\config_hpgl -printer=HPGL -output=file.hpgl

You have to configure a hpgl Plotter. When you want to hide the plotter from normal plotting you can use a different group_dir. You find information in the NX help in topic system administration. Search "nxplot".

 

 

Mit freundlichen Grüßen / With kind regards

i.A. Dipl.-Ing. (FH) Stefan Walder
CAD Management
----------------------------------------------------------------------
stefan.walder@gira.de
Tel +49(0)2195-602-319, Fax +49(0)2195-91603-319
----------------------------------------------------------------------
Gira Giersiepen GmbH & Co. KG, Elektro-Installations-Systeme
Industriegebiet Mermbach, Dahlienstraße, 42477 Radevormwald, Deutschland

Intelligente Gebäudetechnik von Gira. www.gira.de

Handelsregister AG Köln HRA 16352
Persönlich haftende Gesellschafterin: GAV Management GmbH,
Handelsregister AG Köln HRB 50479
Geschäftsführer: Dipl.-Kfm. Dirk Giersiepen, Alfred A. Bulitz,
Dipl.-Kfm. Thomas Musial
----------------------------------------------------------------------
Gira Giersiepen GmbH & Co. KG, Electrical installation systems
Industriegebiet Mermbach, Dahlienstraße, 42477 Radevormwald, Germany

Intelligent building technology by Gira. www.gira.com

Register of Business Names: AG Köln HRA 16352
Partner Personally Responsible: GAV Management GmbH,
Register of Business Names: AG Köln HRB 50479
Managing Directors: Dipl.-Kfm. Dirk Giersiepen,
Dipl.-Wirtschafts-Ing. (FH) Oliver Borchmann, Alfred A. Bulitz,
Dipl.-Kfm. Thomas Musial

Betreff: convert CGM file to HPGL file format using cgm2hpgl2.dll?

Thanks Stefan.

 

It's working fine. I am able to create the hpgl files now. Now HPGL Plotter is configured through File->Utilities->Printer Administrator->SDI Print Master dialog. But is there any way to configure the HPGL Plotter programmatically or atleast using batch files? 

Betreff: convert CGM file to HPGL file format using cgm2hpgl2.dll?

Plotters must be configured through SDI, there is no other way.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community
Solution
Solution
Accepted by topic author NFC
‎08-26-2015 04:32 AM

Betreff: convert CGM file to HPGL file format using cgm2hpgl2.dll?

Hi,

 

we are using the environment variable UGII_SDI_SERVER_CFG_DIR to point to a directory containing the plotter configuration. You find the default in %UGII_BASE_DIR%\NXPLOT\config\pm_server. This are all text files and can pe copied to other workstations or the directory stays on a fileserver.

 

Mit freundlichen Grüßen / With kind regards

i.A. Dipl.-Ing. (FH) Stefan Walder
CAD Management
----------------------------------------------------------------------
stefan.walder@gira.de
Tel +49(0)2195-602-319, Fax +49(0)2195-91603-319
----------------------------------------------------------------------
Gira Giersiepen GmbH & Co. KG, Elektro-Installations-Systeme
Industriegebiet Mermbach, Dahlienstraße, 42477 Radevormwald, Deutschland

Intelligente Gebäudetechnik von Gira. www.gira.de

Handelsregister AG Köln HRA 16352
Persönlich haftende Gesellschafterin: GAV Management GmbH,
Handelsregister AG Köln HRB 50479
Geschäftsführer: Dipl.-Kfm. Dirk Giersiepen, Alfred A. Bulitz,
Dipl.-Kfm. Thomas Musial
----------------------------------------------------------------------
Gira Giersiepen GmbH & Co. KG, Electrical installation systems
Industriegebiet Mermbach, Dahlienstraße, 42477 Radevormwald, Germany

Intelligent building technology by Gira. www.gira.com

Register of Business Names: AG Köln HRA 16352
Partner Personally Responsible: GAV Management GmbH,
Register of Business Names: AG Köln HRB 50479
Managing Directors: Dipl.-Kfm. Dirk Giersiepen,
Dipl.-Wirtschafts-Ing. (FH) Oliver Borchmann, Alfred A. Bulitz,
Dipl.-Kfm. Thomas Musial