NX Shop Documentation Plug-In Base
NX Shop Documentation Plug-In Base
NX Shop Documentation Plug-In Base
Abstract. Shop documentation is a document filled with all relevant information of product
processing, which is playing an important role in CNC machining. At present, although shop
documentation could be generated from 3D modelling software, the contents in shop
documentation are usually not up to operators’ requirement. On this condition, the data
structure of shop documentation should be rebuilt, and a new approach of generating shop
documentation should be created as soon as possible. In this paper, the data structure of shop
documentation is redesigned to make sure that the document contains the most suitable
information, and a new kind of shop documentation plug-in is developed in Siemens NX
software at the same time, which could generate PDF-format shop documentation very fluently.
The plug-in is programmed by C++, using the function library of NX software which is called
NX Open C. Finally, an example of generating shop documentation in NX software is given to
prove that the shop documentation plug-in works properly.
1. Introduction
In the last decades, with the great development of computer technology, CAD and CAM have made
great contributions to CNC machines. As the complication of workpiece shape is increasingly growing,
multi-axis machines are being used more widely [1]. It has become particularly vital of rationality of
using equipment and equipment utilization. Reasonable scheduling scheme makes the use of
production resource more efficient, reduces the production cost of enterprises, and enhances the
competitiveness of enterprises [2]. To this point, Bin Li has provided an insight into reasonable
scheduling scheme, and he commits to analysing process parameters, reducing process time and waste
of tools [3].
With the advance of NC technology, the majority of modern CNC machines are characteristic of
high speed, high precision, high reliability, intelligence and compounding [4]. Complex machine
structure makes CNC programming require software assistance [5]. For the purpose of maximizing the
performance of CNC machines, the separation of CNC programmers and operators is a major trend.
At present, companies establish digital and paperless workshops [6], including models, database-
based information management and equipment management and so on [7]. The workshop
management is applied for CNC machine management and tool management. It is also convenient for
transmitting CNC program [8], and they use the CNC program list to send message of process to
operators [9]. However, it is difficult to transmit some key information to operators and operating-
complex software elevates operators’ learning burden and company training cost.
In order to convey information more effectively, shop documentation is extremely necessary. So
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution
of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
Published under licence by IOP Publishing Ltd 1
D2ME 2019 IOP Publishing
IOP Conf. Series: Materials Science and Engineering 686 (2019) 012006 doi:10.1088/1757-899X/686/1/012006
far, shop documentation has been suitable for the products of similar shapes and the specific CNC
machines [10]. However, most of shop documentation is accomplished manually, which is easier to
contain human errors. Besides, the editable documents are likely to be modified by mistakes during
delivery process. Shop documentation could be generated within NX software [11], but the shop
documentation could not list important information, including clamping method, WCS, step
description and some useful process parameters.
Compared to traditional research results, the shop documentation plug-in in this paper overcomes
the shortcomings mentioned above. Firstly, the information, including model, tool parameters, WCS
and other parameters of the manufacturing process, could be fully extracted by the plug-in. Secondly,
the plug-in could generate read-only shop documentation in PDF-format. Thirdly, the shop
documentation is suitable for duplication, storage and delivery.
2
D2ME 2019 IOP Publishing
IOP Conf. Series: Materials Science and Engineering 686 (2019) 012006 doi:10.1088/1757-899X/686/1/012006
2.2. Workflow
The workflow of the plug-in is as shown in figure 2.
Open NX Click“Shop Documentation”button Input manufacturing information
software in the main menu of NX software in the coming out UI dialog
3
D2ME 2019 IOP Publishing
IOP Conf. Series: Materials Science and Engineering 686 (2019) 012006 doi:10.1088/1757-899X/686/1/012006
Start
Start
Adjust
Adjust view
view
(Press “F8”
(Press “F8” button
button of
of the
the keyboard)
keyboard)
Obtain
Obtain current
current view
view matrices
matrices
(Top,
(Top, front
front and
and right)
right)
Function:
Function: uc6433
uc6433
Calculate
Calculate out
out trimetric
trimetric
Function: uf5942
Function: uf5942
Change
Change rendering
rendering style
style to
to wireframe
wireframe mode
mode
Function:
Function: UF_VIEW_set_surface_display_options
UF_VIEW_set_surface_display_options
Parameter:
Parameter: UF_VIEW_WIREFRAME_STYLE
UF_VIEW_WIREFRAME_STYLE
Change
Change wireframe
wireframe into
into bold
bold
Function:
Function: UF_OBJ_set_line_width
UF_OBJ_set_line_width
Parameter:
Parameter: UF_OBJ_WIDTH_THICK
UF_OBJ_WIDTH_THICK
Place
Place the
the view
view to
to front
front Place
Place the
the view
view to
to right
right
Function:
Function: UF_VIEW_fit_view
UF_VIEW_fit_view Function:
Function: UF_VIEW_fit_view
UF_VIEW_fit_view
Obtain
Obtain the
the screenshot
screenshot of
of front
front view
view Obtain
Obtain the
the screenshot
screenshot of
of right
right view
view
Function: UF_DISP_create_image
Function: UF_DISP_create_image Function: UF_DISP_create_image
Function: UF_DISP_create_image
Place
Place the
the view
view to
to top
top Place
Place the
the view
view to
to trimetric
trimetric
Function:
Function: UF_VIEW_fit_view
UF_VIEW_fit_view Function:
Function: UF_VIEW_fit_view
UF_VIEW_fit_view
Obtain
Obtain the
the screenshot
screenshot of
of top
top view
view Obtain
Obtain the
the screenshot
screenshot of
of trimetric
trimetric view
view
Function:
Function: UF_DISP_create_image
UF_DISP_create_image Function:
Function: UF_DISP_create_image
UF_DISP_create_image
Restore
Restore the
the view
view and
and rendering
rendering style
style
End
End
4
D2ME 2019 IOP Publishing
IOP Conf. Series: Materials Science and Engineering 686 (2019) 012006 doi:10.1088/1757-899X/686/1/012006
it intersects the unit ball at the quadrant point .The vector may be (1, 0, 0), (0, 1, 0), (0, 0, 1), (-1, 0,
0), (0, -1, 0) or (0, 0, -1). In order to determine the eligibility of the views conveniently, the
function |𝑥| + |𝑦| + |𝑧| = 1 (figure 5) is established. In other words, when the vector meets the
condition, the plug-in will proceed.
5
D2ME 2019 IOP Publishing
IOP Conf. Series: Materials Science and Engineering 686 (2019) 012006 doi:10.1088/1757-899X/686/1/012006
0
𝑀𝑡 is a translation matrix. As trimetric view does not require translation, 𝑀𝑡 = [0]. After that, the
0
colour of cutting area in trimetric view changed into dark colour so that cutting area could be
figured out.
e) Finally, the plug-in will direct view to the X-Y plane and change rendering style to shade.
The cut levels are double numbers, but the method of setting different. Planar/face milling use
Depth per Cut. Fixed/variable contour milling uses the Stock Part Offset. Cavity/zlevel/zlevel_5axis
uses Global Cut Depth. Hole milling uses Axis Pitch. Thus, when the plug-in extracts values of the
above-mentioned operations, it will identify the types of the operations and use the matched
parameters.
Release d ispatch o f
Save the workbook as a Write appointed ranges of the worksheet, such
range, worksheet and
PDF format file as UI info, MFG info and other info
workbook
Figure 6. The program execution procedure of the generation of shop documentation
6
D2ME 2019 IOP Publishing
IOP Conf. Series: Materials Science and Engineering 686 (2019) 012006 doi:10.1088/1757-899X/686/1/012006
7
D2ME 2019 IOP Publishing
IOP Conf. Series: Materials Science and Engineering 686 (2019) 012006 doi:10.1088/1757-899X/686/1/012006
After filling in the UI dialog, selecting the cutting area, and setting the model views, shop
documentation will be generated. The shop documentation generated from the plug-in is as shown in
figure 9, which could verify the shop documentation plug-in is working properly and friendly to use.
8
D2ME 2019 IOP Publishing
IOP Conf. Series: Materials Science and Engineering 686 (2019) 012006 doi:10.1088/1757-899X/686/1/012006
5. Conclusion
In this paper, a kind of shop documentation plug-in has been successfully developed, which could
extract all the relevant information of the manufacturing product from NX software, and combine all
the information to generate shop documentation in PDF format. This development of the shop
documentation plug-in makes all manufacturing information shown in a file, which not only reduces
times of the communication between programmers and machine operators, but also makes NC
programming mistakes easily to be found out and corrected. Overall, the development of this kind of
shop documentation plug-in makes manufacturing process more effective and more efficient.
Acknowledgments
We wish to acknowledge the encouragement from our department leaders, Zhaohui Zhu and Huadong
He. Besides, we also appreciate for the support from Xiaobao Li Skill Master Studio of China.
References
[1] Yibo Liu and Fangrong Liu 2013 Classification and trend of NC programs Metal Processing 7
25
[2] Xin Zhou 2014 Design and implementation of workshop scheduling system on distributed
numerical control system (China: University of Chinese Academy of Sciences) p 7
[3] Bin Li 2007 Basic on Lean Production of CNC Machining (China: The College of Automation
Chongqing University) p 62
[4] Wei Liang and Xian Wang 2010 Development trend of CNC machine tools Journal of Guilin
college of Aerospace Technology 58 164
[5] Zhaoliang Liu and Zanbo Yang 2018 Deeply study the application of NX software in NC
machining World Nonferrous Metal 2018(9) 285-286
[6] Song Jin 2006 Development of Paperless Production System Based on Embedded Terminal In
Tool workshop (China: the College of Automation Chongqing University) p 50
[7] Yu Zhang 2009 Design and Implementation of CNC Workshop Management System (China:
Heilongjiang University of China) p 54
[8] Limao Mu 2003 The software development of long NC machining code transmission direct
from PC machine to NC machine Modular Machine Tool & Automatic Machining Technology
2003(6) 53-55
[9] Guoli Gao and Jiaqiang Huang 2010 Automatic generation of machining program list and
network post-process for die & mould Die & Mould Industry 2010(4) 16-17
[10] Haifeng Wang, Bin Wang and Xuehua Li Research on CNC Machining Template and Program
Automation (China: High Level Equipment for Civil Aircraft Manufacturing Technology and
Equipment) p 8-9
[11] Siemens NX10 Documentations (Germany: SIEMENS)