NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Positioning_Constraint.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// NX JA API的C++接口头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Positioning_Constraint.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/NXObject.hxx>
22
#include <NXOpen/Positioning_ConstraintReference.hxx>
23
#include <NXOpen/ugmath.hxx>
24
#include <NXOpen/libnxopencpp_positioning_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
Positioning
35
{
36
class
Constraint
;
37
}
38
class
Expression
;
39
class
NXObject
;
40
namespace
Positioning
41
{
42
class
ConstraintReference
;
43
}
44
namespace
Positioning
45
{
46
class
DisplayedConstraint
;
47
}
48
namespace
Positioning
49
{
50
class
_ConstraintBuilder;
51
class
ConstraintImpl;
66
class
NXOPENCPP_POSITIONINGEXPORT Constraint :
public
NXOpen::NXObject
67
{
69
public
:
enum
Type
70
{
71
TypeUndefined
,
72
TypeTouch
,
73
TypeConcentric
,
74
TypeFix
,
75
TypeDistance
,
76
TypeParallel
,
77
TypePerpendicular
,
78
TypeCenter12
,
79
TypeCenter22
,
80
TypeAngle
,
81
TypeFit
,
82
TypeBond
,
83
TypeOrientAngle
,
84
TypeSplineData
,
85
TypeSplineLength
,
86
TypeLinearPattern
,
87
TypeCircularPattern
,
88
TypeLinear2dPattern
,
89
TypeRadiantPattern
,
90
TypeAlignLock
,
91
TypeCommonOffsetTransform
,
92
TypeHinge
,
93
TypeSlider
,
94
TypeCylindrical
,
95
TypeBall
,
96
TypeScrew
,
97
TypeGear
,
98
TypeRackPinion
,
99
TypeCable
100
};
101
102
public
:
enum
Alignment
103
{
104
AlignmentInferAlign
,
105
AlignmentCoAlign
,
106
AlignmentContraAlign
107
};
108
109
public
:
enum
SolverStatus
110
{
111
SolverStatusNewlyCreated
,
112
SolverStatusSuppressed
,
113
SolverStatusOutOfDate
,
114
SolverStatusOverConstrained
,
115
SolverStatusNotConsistentDims
,
116
SolverStatusNotConsistentOther
,
117
SolverStatusNotConsistentUnknown
,
118
SolverStatusBetweenFixed
,
119
SolverStatusNotSolved
,
120
SolverStatusSolved
,
121
SolverStatusCannotSolve
,
122
SolverStatusDelayed
,
123
SolverStatusIgnoredInArrangement
,
124
SolverStatusInternallyInconsistent
,
125
SolverStatusUnloadedGeometry
,
126
SolverStatusPendingConvertedMc
,
127
SolverStatusConflictingWithWave
,
128
SolverStatusInconsistentLimits
,
129
SolverStatusBeyondLimits
130
};
131
132
public
:
enum
SplineType
133
{
134
SplineTypeByPoles
,
135
SplineTypeByPoints
,
136
SplineTypeInvalid
137
};
138
private
:
ConstraintImpl
* m_constraint_impl;
139
private
:
friend
class
_ConstraintBuilder;
140
protected
:
Constraint
();
141
public
:
~Constraint
();
147
public
: std::vector<NXOpen::Positioning::ConstraintReference *>
GetReferences
148
(
149
);
154
public
:
void
DeleteConstraintReference
155
(
156
NXOpen::Positioning::ConstraintReference
* constraintReference
157
);
163
public
:
NXOpen::Positioning::ConstraintReference
*
CreateConstraintReference
164
(
165
NXOpen::NXObject
* movableObject ,
166
NXOpen::NXObject
* geometry ,
167
bool
usesAxis ,
168
bool
isIndirect
169
);
175
public
:
NXOpen::Positioning::ConstraintReference
*
CreateConstraintReference
176
(
177
NXOpen::NXObject
* movableObject ,
178
NXOpen::NXObject
* geometry ,
179
bool
usesAxis ,
180
bool
isIndirect ,
181
bool
usePortRotate
182
);
187
public
:
void
EditConstraintReference
188
(
189
NXOpen::Positioning::ConstraintReference
* constraintReference ,
190
NXOpen::NXObject
* movableObject ,
191
NXOpen::NXObject
* geometry ,
192
bool
usesAxis ,
193
bool
isIndirect ,
194
bool
usePortRotate
195
);
200
public
:
NXOpen::Positioning::Constraint::Type
ConstraintType
201
(
202
);
207
public
:
void
SetConstraintType
208
(
209
NXOpen::Positioning::Constraint::Type
constraintType
210
);
215
public
:
void
SetConstraintAlignment
216
(
217
NXOpen::Positioning::Constraint::Alignment
alignment
218
);
223
public
:
NXOpen::Positioning::Constraint::Alignment
ConstraintAlignment
224
(
225
);
230
public
:
void
FlipAlignment
231
(
232
);
236
public
:
void
SetSuppressed
237
(
238
bool
suppressed
239
);
243
public
:
bool
Suppressed
244
(
245
);
250
public
:
void
SetExpression
251
(
252
const
NXString
& expression
253
);
258
void
SetExpression
259
(
260
const
char
* expression
261
);
266
public
:
NXOpen::Expression
*
Expression
267
(
268
);
274
public
:
NXOpen::Positioning::Constraint::SolverStatus
GetConstraintStatus
275
(
276
);
286
public
:
void
SetAlignmentHint
287
(
288
NXOpen::Positioning::Constraint::Alignment
alignment
289
);
293
public
:
void
SetPersistent
294
(
295
bool
persistent
296
);
300
public
:
bool
Persistent
301
(
302
);
306
public
:
void
SetAutomatic
307
(
308
bool
isauto
309
);
313
public
:
bool
Automatic
314
(
315
);
320
public
:
void
GenerateConversionReport
321
(
322
std::vector<NXString> & lines
323
);
329
public
:
void
ReverseDirection
330
(
331
);
335
public
:
NXOpen::Positioning::Constraint::SplineType
SplinePointsType
336
(
337
);
341
public
:
void
SetSplinePointsType
342
(
343
NXOpen::Positioning::Constraint::SplineType
splineType
344
);
350
public
:
NXOpen::Positioning::DisplayedConstraint
*
GetDisplayedConstraint
351
(
352
);
357
public
:
bool
ExpressionDriven
358
(
359
);
364
public
:
void
SetExpressionDriven
365
(
366
bool
expressionDriven
367
);
372
public
:
bool
UpperLimitEnabled
373
(
374
);
379
public
:
void
SetUpperLimitEnabled
380
(
381
bool
hasLimit
382
);
387
public
:
bool
LowerLimitEnabled
388
(
389
);
394
public
:
void
SetLowerLimitEnabled
395
(
396
bool
hasLimit
397
);
402
public
:
NXOpen::Expression
*
UpperLimitExpression
403
(
404
);
409
public
:
NXString
UpperLimitRightHandSide
410
(
411
);
416
public
:
void
SetUpperLimitRightHandSide
417
(
418
const
NXString
& limitRightHandSide
419
);
424
void
SetUpperLimitRightHandSide
425
(
426
const
char
* limitRightHandSide
427
);
432
public
:
NXOpen::Expression
*
LowerLimitExpression
433
(
434
);
439
public
:
NXString
LowerLimitRightHandSide
440
(
441
);
446
public
:
void
SetLowerLimitRightHandSide
447
(
448
const
NXString
& limitRightHandSide
449
);
454
void
SetLowerLimitRightHandSide
455
(
456
const
char
* limitRightHandSide
457
);
461
public
:
void
Renew
462
(
463
);
468
public
:
NXOpen::Expression
*
SecondExpression
469
(
470
);
476
public
:
NXString
SecondExpressionRightHandSide
477
(
478
);
484
public
:
void
SetSecondExpressionRightHandSide
485
(
486
const
NXString
& secondExpressionRightHandSide
487
);
493
void
SetSecondExpressionRightHandSide
494
(
495
const
char
* secondExpressionRightHandSide
496
);
502
public
:
bool
SecondExpressionDriven
503
(
504
);
510
public
:
void
SetSecondExpressionDriven
511
(
512
bool
secondExpressionDriven
513
);
518
public
:
bool
SecondUpperLimitEnabled
519
(
520
);
525
public
:
void
SetSecondUpperLimitEnabled
526
(
527
bool
hasLimit
528
);
533
public
:
bool
SecondLowerLimitEnabled
534
(
535
);
540
public
:
void
SetSecondLowerLimitEnabled
541
(
542
bool
hasLimit
543
);
548
public
:
NXOpen::Expression
*
SecondUpperLimitExpression
549
(
550
);
556
public
:
NXString
SecondUpperLimitRightHandSide
557
(
558
);
564
public
:
void
SetSecondUpperLimitRightHandSide
565
(
566
const
NXString
& limitRightHandSide
567
);
573
void
SetSecondUpperLimitRightHandSide
574
(
575
const
char
* limitRightHandSide
576
);
582
public
:
NXOpen::Expression
*
SecondLowerLimitExpression
583
(
584
);
590
public
:
NXString
SecondLowerLimitRightHandSide
591
(
592
);
598
public
:
void
SetSecondLowerLimitRightHandSide
599
(
600
const
NXString
& limitRightHandSide
601
);
607
void
SetSecondLowerLimitRightHandSide
608
(
609
const
char
* limitRightHandSide
610
);
616
public
:
NXOpen::Expression
*
OffsetExpression
617
(
618
);
624
public
:
NXString
OffsetRightHandSide
625
(
626
);
632
public
:
void
SetOffsetRightHandSide
633
(
634
const
NXString
& offset
635
);
641
void
SetOffsetRightHandSide
642
(
643
const
char
* offset
644
);
650
public
:
NXOpen::Positioning::ConstraintReference
*
CreateCouplerReference
651
(
652
NXOpen::NXObject
* coupledConstraint
653
);
658
public
:
void
EditCouplerReference
659
(
660
NXOpen::Positioning::ConstraintReference
* couplerReference ,
661
NXOpen::NXObject
* coupledConstraint
662
);
667
public
:
void
SetConstraintSecondAlignment
668
(
669
NXOpen::Positioning::Constraint::Alignment
secondAlignment
670
);
675
public
:
NXOpen::Positioning::Constraint::Alignment
ConstraintSecondAlignment
676
(
677
);
678
};
679
}
680
}
681
#ifdef _MSC_VER
682
#pragma warning(pop)
683
#endif
684
#ifdef __GNUC__
685
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
686
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
687
#endif
688
#endif
689
#undef EXPORTLIBRARY