|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1. Using Visual Studio - create a new project using the NX Open AppWizard.! b7 b2 D$ _; a8 g4 z" o& v# l9 `7 n
This is described in the NX Open for C/C++ -> Open C Reference Guide ->
' W! k( Z1 u' K4 E$ u Overview -> setting up your system. The image being created is an external
: }7 K) o( E: v+ S' u, f( D User Function program using C++ and Open C++ calls.+ y1 L: Y' t) _; [
2. Make sure configuration type of the project is Dynamic Library (.dll) . Go to 3 [! ^! D, ]! j$ ?5 q x
Project->Properties (Alt + F7), select/expand Configuration Properties->General and set
% w3 r: \# [9 h; @ Y the "Configuration type" to Dynamic Library (.dll).: q! v% p. p6 p( k2 h/ }2 o4 j8 X( X
3. Make sure the output file is generated with extension .dll. Go to
. {0 b5 Q8 Y7 b* [6 ]' x2 H Project->Properties (Alt + F7), select/expand Configuration Properties->Linker and set the
- k# w3 t& {% I$ U& q "Output File" with the .dll extension.
1 Y( H9 {$ ~' ?; ^ 4. Add the OntSelectionBoilerPlate.cpp file by selecting the Project
7 q& |7 }4 H C/ j( H9 J7 p8 ^ pulldown and select "Add Existing Item...". Select the file using the popup7 `* R9 p( {" Q/ g8 a) d0 x
window.
, Z* b+ N2 ]* H5 I |( B 5. Add $(UGII_BASE_DIR)\ugopenpp as one of the include directories. Go to Tools->Options,
# S+ E0 O& D4 k& J$ Y" U# n select/expand Projects and Solution->VC++ Directories. On right side window select * s$ h0 f, l( n& B9 P4 E
"Include files" option available under "Show Directories for:" pulldown. Add $(UGII_BASE_DIR)\ugopenpp
$ P; D& O* s& G' d to the existing list.
9 B0 n% m4 C: ?' q9 Z- P$ k* ? 6. Add libopenpp.lib and libvmathpp.lib libraries to the project. Go to Project->Properties (Alt + F7),
) q: \6 _# I8 k3 j+ Y0 C% L select/expand Configuration Properties->Linker->Input. Provide libopenpp.lib and libvmathpp.lib* ^1 B* G% e6 `7 Q7 e7 P3 k9 Y
in the "Additional Dependencies" row.4 A/ U6 s& X0 N5 `3 U6 _: I6 b
7. Build the external image by going to the Build menu and selecting either 1 b! J$ k3 s" p. V# o
"Build Solution" or "Rebuild Solution".
, ^+ L6 ]6 t$ @/ Y% I This will create an Dynamic Library called OntSelectionBoilerPlate.dll in the Debug directory.1 }8 R U1 [# L5 z3 n \1 W! A9 B/ g* T
7 T9 q+ Y) `9 v7 o9 G- y" m
|
|