NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Motion_MotionSession.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口的JA API头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Motion_MotionSession.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/TaggedObject.hxx>
22#include <NXOpen/libnxopencpp_motion_exports.hxx>
23#ifdef _MSC_VER
24#pragma warning(push)
25#pragma warning(disable:4996)
26#endif
27#ifdef __GNUC__
28#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
29#endif
30namespace NXOpen
31{
32 namespace Motion
33 {
34 class MotionSession;
35 }
36 class Session;
37 namespace Assemblies
38 {
39 class Component;
40 }
41 class BasePart;
42 namespace Motion
43 {
45 }
46 namespace Motion
47 {
48 class MechanismExport;
49 }
50 namespace Motion
51 {
52 class MechanismImport;
53 }
54 namespace Motion
55 {
57 }
58 namespace Motion
59 {
60 class MotionFunction;
61 }
62 namespace Motion
63 {
64 class MotionMethods;
65 }
66 namespace Motion
67 {
68 class MotionSolution;
69 }
70 namespace Motion
71 {
73 }
74 namespace Motion
75 {
76 class PostProcess;
77 }
78 class NXObject;
79 class Part;
80 namespace Motion
81 {
82 class MotionSessionImpl;
86 class NXOPENCPP_MOTIONEXPORT MotionSession
87 {
88 private: MotionSessionImpl * m_motionsession_impl;
89 private: NXOpen::Session* m_owner;
91 public: explicit MotionSession(NXOpen::Session *owner);
93 public:
95 tag_t Tag() const;
96 public: ~MotionSession();
101 (
102 NXOpen::NXObject * masterPart ,
103 const NXString & motionSimName
104 );
109 (
110 NXOpen::NXObject * masterPart ,
111 const char * motionSimName
112 );
116 public: void DeleteSimulation
117 (
118 NXOpen::NXObject * masterPart ,
119 const NXString & motionSimName
120 );
125 (
126 NXOpen::NXObject * masterPart ,
127 const char * motionSimName
128 );
133 (
134 NXOpen::NXObject * masterPart ,
135 const NXString & inputSimName
136 );
141 (
142 NXOpen::NXObject * masterPart ,
143 const char * inputSimName
144 );
149 (
150 NXOpen::Part * simulationPart
151 );
156 (
157 NXOpen::NXObject * scenarioPart ,
158 NXOpen::NXObject * masterPart
159 );
164 (
165 NXOpen::NXObject * link
166 );
170 public: std::vector<NXString> GetScenarioNames
171 (
172 NXOpen::NXObject * masterPart
173 );
177 public: std::vector<NXOpen::BasePart *> GetUnsavedNewMotionParts
178 (
179 NXOpen::BasePart * masterPart
180 );
187 public: std::vector<NXString> GetMotionComponentPartNames
188 (
189 NXOpen::BasePart * motionPart ,
190 std::vector<NXOpen::Assemblies::Component *> & motionComponents
191 );
196 (
197 NXOpen::NXObject * masterPart ,
198 const NXString & scenarioName
199 );
204 (
205 NXOpen::NXObject * masterPart ,
206 const char * scenarioName
207 );
212 (
213 NXOpen::NXObject * scenarioPart
214 );
219 (
220 NXOpen::NXObject * scenarioPart
221 );
226 (
227 );
231 public: std::vector<NXOpen::NXObject *> GetReferencingMotionObjects
232 (
233 NXOpen::NXObject * scenarioPart ,
234 NXOpen::NXObject * originObject
235 );
239 public: std::vector<NXOpen::NXObject *> GetReferencedMotionObjects
240 (
241 NXOpen::NXObject * scenarioPart ,
242 NXOpen::NXObject * originObject
243 );
247 public: std::vector<NXOpen::Motion::MotionFunction *> GetReferencingFunctions
248 (
249 NXOpen::NXObject * scenarioPart ,
250 NXOpen::NXObject * originObject
251 );
255 public: std::vector<NXOpen::Motion::MotionFunction *> GetReferencedFunctions
256 (
257 NXOpen::NXObject * scenarioPart ,
258 NXOpen::NXObject * originObject
259 );
263 public: std::vector<NXOpen::NXObject *> GetFunctionReferencingMotionObjects
264 (
265 NXOpen::NXObject * scenarioPart ,
267 );
271 public: std::vector<NXOpen::NXObject *> GetFunctionReferencedMotionObjects
272 (
273 NXOpen::NXObject * scenarioPart ,
275 );
279 public: int CalculateDof
280 (
281 NXOpen::NXObject * simPart ,
283 );
287 public: void ExpandNavigator
288 (
289 NXOpen::NXObject * simPart
290 );
294 public: bool IsMotionPart
295 (
296 NXOpen::BasePart * part
297 );
301 public: bool IsSubmechanism
302 (
304 );
325 }; //lint !e1712 default constructor not defined for class
326 }
327}
328#ifdef _MSC_VER
329#pragma warning(pop)
330#endif
331#ifdef __GNUC__
332#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
333#pragma GCC diagnostic warning "-Wdeprecated-declarations"
334#endif
335#endif
336#undef EXPORTLIBRARY