NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Motion_MotionSimulation.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++接口JA API的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Motion_MotionSimulation.ja
9
//
10
// 生成工具:
11
// apiwrap
12
//
13
// 警告:
14
// 本文件为自动生成 - 请勿手动编辑
15
//
16
#pragma once
17
#include <NXOpen/NXDeprecation.hxx>
18
#include <vector>
19
#include <NXOpen/NXString.hxx>
20
#include <NXOpen/Callback.hxx>
21
#include <NXOpen/Motion_AddSubmechanismBuilder.hxx>
22
#include <NXOpen/Motion_SolutionManager.hxx>
23
#include <NXOpen/TaggedObject.hxx>
24
#include <NXOpen/libnxopencpp_motion_exports.hxx>
25
#ifdef _MSC_VER
26
#pragma warning(push)
27
#pragma warning(disable:4996)
28
#endif
29
#ifdef __GNUC__
30
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
31
#endif
32
namespace
NXOpen
33
{
34
namespace
Motion
35
{
36
class
MotionSimulation
;
37
}
38
class
Session
;
39
class
CoordinateSystem
;
40
namespace
Motion
41
{
42
class
AddSubmechanismBuilder
;
43
}
44
namespace
Motion
45
{
46
class
Link
;
47
}
48
namespace
Motion
49
{
50
class
MotionSolution
;
51
}
52
namespace
Motion
53
{
54
class
SolutionManager
;
55
}
56
class
NXObject
;
57
class
Part
;
58
namespace
Motion
59
{
60
class
MotionSimulationImpl;
64
class
NXOPENCPP_MOTIONEXPORT
MotionSimulation
65
{
67
public
:
enum
JaMotionMotionExportAdamsGeometryFormat
68
{
69
JaMotionMotionExportAdamsGeometryFormatNone
= -1,
70
JaMotionMotionExportAdamsGeometryFormatStl
,
71
JaMotionMotionExportAdamsGeometryFormatParasolid
72
};
73
private
:
MotionSimulationImpl
* m_motionsimulation_impl;
74
private
:
NXOpen::Session
* m_owner;
76
public
:
explicit
MotionSimulation
(
NXOpen::Session
*owner);
78
public
:
80
tag_t
Tag
()
const
;
81
public
:
~MotionSimulation
();
85
public
:
int
CalculateGrueblerCount
86
(
87
NXOpen::NXObject
* motionPart
88
);
92
public
:
void
ExportRecurdynSdk
93
(
94
const
NXString
& fullFileName
95
);
99
void
ExportRecurdynSdk
100
(
101
const
char
* fullFileName
102
);
106
public
:
void
RenameSubmechanism
107
(
108
NXOpen::NXObject
* submechanism ,
109
const
NXString
& name
110
);
114
void
RenameSubmechanism
115
(
116
NXOpen::NXObject
* submechanism ,
117
const
char
* name
118
);
123
public
:
void
ReadDeactivatedStates
124
(
125
NXOpen::NXObject
* sumbmechanism ,
126
NXOpen::Motion::MotionSolution
* solution
127
);
131
public
:
NXOpen::Motion::AddSubmechanismBuilder
*
CreateAddSubmechanismBuilder
132
(
133
NXOpen::NXObject
* part
134
);
138
public
:
void
AddSuppressedObjectForAllSolutions
139
(
140
NXOpen::Part
* motionPart ,
141
NXOpen::NXObject
* obj
142
);
146
public
:
void
RemoveSuppressedObjectForAllSolutions
147
(
148
NXOpen::Part
* motionPart ,
149
NXOpen::NXObject
* obj
150
);
154
public
:
void
ConvertTextBasedElements
155
(
156
NXOpen::Part
* motionPart
157
);
161
public
:
void
SetAdamsStlParams
162
(
163
double
minFacetEdgeLen ,
164
double
maxFacetEdgeLen ,
165
double
facetToSurfaceTolerance
166
);
170
public
:
void
WriteAdamsGeometryFile
171
(
172
const
NXString
& fullFileName ,
173
NXOpen::Motion::MotionSimulation::JaMotionMotionExportAdamsGeometryFormat
geoFormat
174
);
178
void
WriteAdamsGeometryFile
179
(
180
const
char
* fullFileName ,
181
NXOpen::Motion::MotionSimulation::JaMotionMotionExportAdamsGeometryFormat
geoFormat
182
);
186
public
:
void
WriteAdamsAnlFile
187
(
188
const
NXString
& fullFileName
189
);
193
void
WriteAdamsAnlFile
194
(
195
const
char
* fullFileName
196
);
200
public
:
void
WriteRdsdkAdmFile
201
(
202
const
NXString
& fullFileName
203
);
207
void
WriteRdsdkAdmFile
208
(
209
const
char
* fullFileName
210
);
214
public
:
void
AddCADSourcePart
215
(
216
NXOpen::Part
* motionPart ,
217
NXOpen::NXObject
* sourcePart
218
);
222
public
:
void
RemoveCADSourcePart
223
(
224
NXOpen::Part
* motionPart ,
225
bool
deleteMotionObjects
226
);
230
public
:
NXOpen::Part
*
GetCADSourcePart
231
(
232
NXOpen::Part
* motionPart
233
);
237
public
:
NXOpen::Motion::SolutionManager
*
GetSolutionManager
238
(
239
NXOpen::Part
* motionPart
240
);
244
public
:
NXOpen::CoordinateSystem
*
CreateCsysOfPrincipalAxesOfInertia
245
(
246
const
std::vector<NXOpen::Motion::Link *> & bodies
247
);
248
};
//lint !e1712 类未定义默认构造函数
249
}
250
}
251
#ifdef _MSC_VER
252
#pragma warning(pop)
253
#endif
254
#ifdef __GNUC__
255
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
256
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
257
#endif
258
#endif
259
#undef EXPORTLIBRARY