NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Update.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Update.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/ErrorList.hxx>
22#include <NXOpen/Session.hxx>
23#include <NXOpen/TaggedObject.hxx>
24#include <NXOpen/libnxopencpp_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
32namespace NXOpen
33{
34 class Update;
35 class Session;
36 class ErrorList;
37 class NXObject;
38 class Part;
39 class TaggedObject;
40 class UpdateImpl;
44 class NXOPENCPPEXPORT Update
45 {
53 public: enum Option
54 {
57 };
58
73 private: UpdateImpl * m_update_impl;
74 private: NXOpen::Session* m_owner;
76 public: explicit Update(NXOpen::Session *owner);
78 public:
80 tag_t Tag() const;
81 public: ~Update();
94 public: NX_DEPRECATED("Deprecated in NX12.0.0. Use Update::AddObjectsToDeleteList instead.") int AddToDeleteList
95 (
96 const std::vector<NXOpen::NXObject *> & objects
97 );
108 public: int AddToDeleteList
109 (
110 NXOpen::TaggedObject * object
111 );
117 public: NX_DEPRECATED("Deprecated in NX12.0.0. Use Update::RemoveObjectsFromDeleteList instead.") void RemoveFromDeleteList
118 (
119 const std::vector<NXOpen::NXObject *> & objects
120 );
125 public: NX_DEPRECATED("Deprecated in NX12.0.0. Use Update::GetObjectsOnDeleteList instead.") std::vector<NXOpen::NXObject *> GetDeleteList
126 (
127 );
132 public: void ClearDeleteList
133 (
134 );
140 public: int DoUpdate
141 (
142 NXOpen::Session::UndoMarkId undoMark
143 );
148 (
149 );
154 public: void ClearErrorList
155 (
156 );
160 public: void SetInterpartDelay
161 (
162 bool delayed
163 );
167 public: bool InterpartDelay
168 (
169 );
175 public: void DoInterpartUpdate
176 (
177 NXOpen::Session::UndoMarkId undoMark
178 );
184 (
185 NXOpen::Update::FailureOption failureAction
186 );
193 (
194 );
200 (
201 NXOpen::TaggedObject * object ,
202 NXOpen::Update::FailureOption failureAction
203 );
208 (
209 NXOpen::TaggedObject * object
210 );
215 (
216 );
221 (
222 bool delayed
223 );
228 (
229 NXOpen::Part * partTag ,
230 NXOpen::Session::UndoMarkId undoMarkId
231 );
236 (
237 NXOpen::Session::UndoMarkId undoMarkId
238 );
252 public: void StartLocalUpdate
253 (
254 );
259 public: void EndLocalUpdate
260 (
261 );
266 (
267 NXOpen::TaggedObject * objectToUpdate
268 );
272 public: void LogForUpdate
273 (
274 NXOpen::TaggedObject * objectToUpdate
275 );
287 public: void SetUpdateLock
288 (
289 bool lock
290 );
296 public: bool GetUpdateLock
297 (
298 );
303 public: NX_DEPRECATED("Deprecated in NX1899.0.0. Use NXOpen::Preferences::SessionModeling::SetDelayModelUpdateAndGranularity instead.") void SetIntrapartPartModuleDelay
304 (
305 bool delayed
306 );
312 public: NX_DEPRECATED("Deprecated in NX1899.0.0. Use NXOpen::Preferences::SessionModeling::DelayModelUpdates and NXOpen::Preferences::SessionModeling::ModelDelayUpdateGranilarityinstead.") bool IntrapartPartModuleDelay
313 (
314 );
319 public: NX_DEPRECATED("Deprecated in NX1899.0.0. Use Update::UpdateModelinstead.") void UpdateAllIntrapartPartModulesInPart
320 (
321 NXOpen::Part * partTag ,
322 NXOpen::Session::UndoMarkId undoMarkId
323 );
327 public: void MakeUpToDate
328 (
329 const std::vector<NXOpen::NXObject *> & objects ,
330 NXOpen::Session::UndoMarkId undoMarkId
331 );
336 (
337 NXOpen::Part * partTag ,
338 NXOpen::Session::UndoMarkId undoMarkId
339 );
353 (
354 const std::vector<NXOpen::TaggedObject *> & objects
355 );
361 (
362 const std::vector<NXOpen::TaggedObject *> & objects
363 );
369 (
370 );
375 (
376 bool delayed
377 );
382 (
383 );
388 (
389 NXOpen::Part * partTag ,
390 NXOpen::Session::UndoMarkId undoMarkId
391 );
393
397 public: NX_DEPRECATED("Deprecated in NX1899.0.0. Use NXOpen::Preferences::SessionModeling::SetDelayModelUpdateAndGranularity instead.") void SetModelUpdateDelay
398 (
399 bool delayed
400 );
403
407 public: NX_DEPRECATED("Deprecated in NX1899.0.0. Use NXOpen::Preferences::SessionModeling::DelayModelUpdates and NXOpen::Preferences::SessionModeling::ModelDelayUpdateGranilarityinstead.") bool ModelUpdateDelay
408 (
409 );
412
415 public: void UpdateModel
416 (
417 NXOpen::Part * partTag ,
418 NXOpen::Session::UndoMarkId undoMarkId
419 );
421
425 (
426 bool propagateToDelete
427 );
429
432 public: void LogObjectsToMakeUpToDate
433 (
434 NXOpen::TaggedObject * objectTag
435 );
438
441 public: void DoPhasedInterpartUpdate
442 (
443 NXOpen::Session::UndoMarkId undoMark
444 );
446 }; //lint !e1712 default constructor not defined for class
447}
448#ifdef _MSC_VER
449#pragma warning(pop)
450#endif
451#ifdef __GNUC__
452#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
453#pragma GCC diagnostic warning "-Wdeprecated-declarations"
454#endif
455#endif
456#undef EXPORTLIBRARY