NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
DMUSessionCollection.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// 用于JA API的C++接口的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// DMUSessionCollection.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/ComponentReferenceCollector.hxx>
22
#include <NXOpen/DesignSessionBuilder.hxx>
23
#include <NXOpen/ErrorList.hxx>
24
#include <NXOpen/PDM_DatabaseObject.hxx>
25
#include <NXOpen/TaggedObject.hxx>
26
#include <NXOpen/libnxopencpp_exports.hxx>
27
#ifdef _MSC_VER
28
#pragma warning(push)
29
#pragma warning(disable:4996)
30
#endif
31
#ifdef __GNUC__
32
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
33
#endif
34
namespace
NXOpen
35
{
36
class
DMUSessionCollection
;
37
class
Session
;
38
namespace
Assemblies
39
{
40
class
Component
;
41
}
42
class
ComponentReferenceCollector
;
43
class
DesignSessionBuilder
;
44
class
ErrorList
;
45
namespace
PDM
46
{
47
class
DatabaseObject
;
48
}
49
class
Part
;
50
class
DMUSessionCollectionImpl;
55
class
NXOPENCPPEXPORT
DMUSessionCollection
56
{
57
private
:
DMUSessionCollectionImpl
* m_dmusessioncollection_impl;
58
private
:
NXOpen::Session
* m_owner;
60
public
:
explicit
DMUSessionCollection
(
NXOpen::Session
*owner);
62
public
:
64
tag_t
Tag
()
const
;
65
public
:
~DMUSessionCollection
();
69
public
:
void
CreateDesignSession
70
(
71
const
NXString
& referencePart
72
);
76
void
CreateDesignSession
77
(
78
const
char
* referencePart
79
);
83
public
:
void
OpenDesignSession
84
(
85
NXOpen::PDM::DatabaseObject
* databaseObject
86
);
90
public
:
void
DesignSessionIncludeComponentsInRecipe
91
(
92
NXOpen::Part
* dmusessionPartTag ,
93
const
std::vector<NXOpen::Assemblies::Component *> & componentsToInclude
94
);
98
public
:
void
DesignSessionExcludeComponentsFromRecipe
99
(
100
NXOpen::Part
* dmusessionPartTag ,
101
const
std::vector<NXOpen::Assemblies::Component *> & componentsToExclude
102
);
106
public
:
void
OpenDesignSessionWithSelectedComponents
107
(
108
NXOpen::PDM::DatabaseObject
* databaseObject ,
109
NXOpen::ComponentReferenceCollector
* componentReferenceCollector
110
);
114
public
:
NXOpen::ComponentReferenceCollector
*
GetComponentReferenceCollector
115
(
116
);
120
public
:
NXOpen::DesignSessionBuilder
*
CreateDesignSessionBuilder
121
(
122
);
126
public
:
NXOpen::ErrorList
*
ExcludeComponentsFromProductRecipe
127
(
128
NXOpen::Part
* dmusessionPartTag ,
129
const
std::vector<NXOpen::Assemblies::Component *> & componentsToExclude
130
);
134
public
:
NXOpen::ErrorList
*
IncludeWithChildrenInProductRecipe
135
(
136
NXOpen::Part
* dmusessionPartTag ,
137
const
std::vector<NXOpen::Assemblies::Component *> & componentsToInclude
138
);
139
};
//lint !e1712 类未定义默认构造函数
140
}
141
#ifdef _MSC_VER
142
#pragma warning(pop)
143
#endif
144
#ifdef __GNUC__
145
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
146
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
147
#endif
148
#endif
149
#undef EXPORTLIBRARY