NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Routing_PlacePartBuilder.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// JA API的C++接口头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Routing_PlacePartBuilder.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/Expression.hxx>
22
#include <NXOpen/Builder.hxx>
23
#include <NXOpen/Routing_CharacteristicList.hxx>
24
#include <NXOpen/ugmath.hxx>
25
#include <NXOpen/libnxopencpp_routing_exports.hxx>
26
#ifdef _MSC_VER
27
#pragma warning(push)
28
#pragma warning(disable:4996)
29
#endif
30
#ifdef __GNUC__
31
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
32
#endif
33
namespace
NXOpen
34
{
35
namespace
Routing
36
{
37
class
PlacePartBuilder
;
38
}
39
class
Builder
;
40
class
Expression
;
41
namespace
Routing
42
{
43
class
AttributeHolder
;
44
}
45
namespace
Routing
46
{
47
class
CharacteristicList
;
48
}
49
class
TaggedObject
;
50
namespace
Routing
51
{
52
class
_PlacePartBuilderBuilder;
53
class
PlacePartBuilderImpl;
58
class
NXOPENCPP_ROUTINGEXPORT PlacePartBuilder :
public
NXOpen::Builder
59
{
60
private
:
PlacePartBuilderImpl
* m_placepartbuilder_impl;
61
private
:
friend
class
_PlacePartBuilderBuilder;
62
protected
: PlacePartBuilder();
63
public
: ~PlacePartBuilder();
67
public
:
void
LoadPart
68
(
69
const
NXString
& partNumber
70
);
74
void
LoadPart
75
(
76
const
char
* partNumber
77
);
81
public
:
void
LoadPart
82
(
83
);
87
public
:
void
SetActiveRefSet
88
(
89
const
NXString
& refSet
90
);
94
void
SetActiveRefSet
95
(
96
const
char
* refSet
97
);
101
public
:
NXString
GetActiveRefSet
102
(
103
);
107
public
:
void
SetActiveLayer
108
(
109
int
layerOption ,
110
int
layer
111
);
115
public
:
void
SetScrewSeatPlacement
116
(
117
NXOpen::TaggedObject
* startLocation ,
118
NXOpen::TaggedObject
* endLocation ,
119
const
NXOpen::Point3d
& startPoint ,
120
const
NXOpen::Point3d
& endPoint ,
121
NXOpen::Expression
* length ,
122
NXOpen::Expression
* angle
123
);
127
public
:
void
FinalizePlacement
128
(
129
NXOpen::Routing::CharacteristicList
* optionalCharx ,
130
NXOpen::Routing::CharacteristicList
* requiredCharx ,
131
const
NXString
& name ,
132
int
layerOption ,
133
int
layer ,
134
bool
dfaultOStock
135
);
139
void
FinalizePlacement
140
(
141
NXOpen::Routing::CharacteristicList
* optionalCharx ,
142
NXOpen::Routing::CharacteristicList
* requiredCharx ,
143
const
char
* name ,
144
int
layerOption ,
145
int
layer ,
146
bool
dfaultOStock
147
);
151
public
:
void
UpdatePlacementObj
152
(
153
NXOpen::TaggedObject
* placementObj ,
154
const
NXOpen::Point3d
& placementPos
155
);
159
public
:
void
UnloadPart
160
(
161
);
165
public
:
void
GetLoadedPartInfo
166
(
167
NXOpen::TaggedObject
** loadedPart ,
168
NXOpen::TaggedObject
** loadedInst
169
);
173
public
:
void
SetLoadedPartInfo
174
(
175
NXOpen::TaggedObject
* loadedPart ,
176
NXOpen::TaggedObject
* loadedInst
177
);
182
public
:
void
ReplaceLoadedInstance
183
(
184
NXOpen::TaggedObject
* partInst
185
);
189
public
:
void
SetPlacePartOperation
190
(
191
bool
replacePart
192
);
196
public
:
void
SetScrewSeatIntersectionPoint
197
(
198
const
NXOpen::Point3d
& intersectionPoint
199
);
203
public
:
NXOpen::Point3d
GetScrewSeatIntersectionPoint
204
(
205
);
209
public
:
void
SetScrewSeatAlignmentVector
210
(
211
const
NXOpen::Vector3d
& alignVector
212
);
216
public
:
NXOpen::Vector3d
GetScrewSeatAlignmentVector
217
(
218
);
223
public
:
void
SetScrewSeatEnd
224
(
225
const
NXOpen::Point3d
& point
226
);
231
public
:
NXOpen::Point3d
GetScrewSeatEnd
232
(
233
);
237
public
:
void
SetAttributeHolder
238
(
239
NXOpen::Routing::AttributeHolder
* attributeHolder
240
);
244
public
:
NXOpen::Routing::AttributeHolder
*
GetAttributeHolder
245
(
246
);
250
public
:
bool
GetAddPartToActiveRunFlag
251
(
252
);
256
public
:
void
SetAddPartToActiveRunFlag
257
(
258
bool
addPartToActiveRun
259
);
263
public
:
NXOpen::Expression
*
GetScrewSeatLength
264
(
265
);
269
public
:
NXOpen::Expression
*
GetScrewSeatAngle
270
(
271
);
275
public
:
void
SetItemSelection
276
(
277
int
itemSelectionMethod ,
278
NXOpen::TaggedObject
* selectedPartOcc
279
);
283
public
:
void
UpdateRoutingTemplateAttributes
284
(
285
);
291
public
:
void
SetConsiderPorts
292
(
293
bool
considerPorts
294
);
298
public
:
int
GetNumberOfPlacedOccurrences
299
(
300
);
304
public
:
NXOpen::TaggedObject
*
GetPlacedOccurrence
305
(
306
int
index
307
);
311
public
:
void
AddPlacedOccurrence
312
(
313
NXOpen::TaggedObject
* occTag
314
);
315
};
316
}
317
}
318
#ifdef _MSC_VER
319
#pragma warning(pop)
320
#endif
321
#ifdef __GNUC__
322
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
323
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
324
#endif
325
#endif
326
#undef EXPORTLIBRARY