NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Expression.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++与JA API接口的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Expression.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/NXObject.hxx>
23
#include <NXOpen/ugmath.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
32
namespace
NXOpen
33
{
34
class
Expression
;
35
namespace
Features
36
{
37
class
Feature
;
38
}
39
class
NXObject
;
40
class
Unit
;
41
class
_ExpressionBuilder;
42
class
ExpressionImpl;
46
class
NXOPENCPPEXPORT Expression :
public
NXOpen::NXObject
47
{
49
public
:
enum
UnitsOption
50
{
51
UnitsOptionBase
,
52
UnitsOptionExpression
,
53
UnitsOptionDataEntry
,
54
UnitsOptionInfo
55
};
56
57
public
:
enum
StatusOption
58
{
59
StatusOptionOutOfDate
,
60
StatusOptionUpToDate
,
61
StatusOptionLocked
,
62
StatusOptionDelayed
,
63
StatusOptionBroken
,
64
StatusOptionUnknown
65
};
66
67
public
:
enum
AttributeSourceType
68
{
69
AttributeSourceTypeObject
,
70
AttributeSourceTypePart
71
};
72
private
:
ExpressionImpl
* m_expression_impl;
73
private
:
friend
class
_ExpressionBuilder;
74
protected
:
Expression
();
75
public
:
~Expression
();
81
public
:
NXString
ExpressionString
82
(
83
);
107
public
:
NXString
Equation
108
(
109
);
115
public
:
NXString
GetFormula
116
(
117
);
122
public
:
void
SetFormula
123
(
124
const
NXString
& rightHandSide
125
);
130
void
SetFormula
131
(
132
const
char
* rightHandSide
133
);
156
public
:
NXString
RightHandSide
157
(
158
);
181
public
:
void
SetRightHandSide
182
(
183
const
NXString
& rightHandSide
184
);
207
void
SetRightHandSide
208
(
209
const
char
* rightHandSide
210
);
216
public
:
double
NumberValue
217
(
218
);
224
public
:
void
SetNumberValue
225
(
226
double
expressionValue
227
);
237
public
:
double
Value
238
(
239
);
249
public
:
void
SetValue
250
(
251
double
expressionValue
252
);
261
public
:
void
SetNumberValueWithUnits
262
(
263
double
numberValue ,
264
NXOpen::Unit
* units
265
);
270
public
:
void
GetNumberValueWithUnits
271
(
272
NXOpen::Expression::UnitsOption
unitsOption ,
273
double
* numberValue ,
274
NXOpen::Unit
** unit
275
);
279
public
:
NXString
StringValue
280
(
281
);
285
public
:
bool
BooleanValue
286
(
287
);
291
public
:
int
IntegerValue
292
(
293
);
297
public
:
NXOpen::Point3d
PointValue
298
(
299
);
303
public
:
NXOpen::Point3d
GetPointValueWithUnits
304
(
305
NXOpen::Expression::UnitsOption
unitsOption
306
);
310
public
:
NXOpen::Vector3d
VectorValue
311
(
312
);
316
public
:
NXOpen::Vector3d
GetVectorValueWithUnits
317
(
318
NXOpen::Expression::UnitsOption
unitsOption
319
);
325
public
:
bool
IsUserLocked
326
(
327
);
333
public
:
void
SetUserLocked
334
(
335
bool
isLocked
336
);
341
public
:
bool
GetPersistentlyLocked
342
(
343
);
347
public
:
void
SetPersistentlyLocked
348
(
349
bool
isLocked
350
);
354
public
:
void
EditComment
355
(
356
const
NXString
& newComment
357
);
361
void
EditComment
362
(
363
const
char
* newComment
364
);
368
public
:
bool
IsGeometricExpression
369
(
370
);
374
public
: std::vector<NXOpen::Features::Feature *>
GetUsingFeatures
375
(
376
);
384
public
:
NXOpen::Features::Feature
*
GetOwningFeature
385
(
386
);
394
public
:
NXOpen::Features::Feature
*
GetOwningRpoFeature
395
(
396
);
400
public
:
NXString
GetDescriptor
401
(
402
);
406
public
:
NXOpen::Unit
*
Units
407
(
408
);
412
public
:
void
SetUnits
413
(
414
NXOpen::Unit
* unitType
415
);
420
public
:
NXString
Type
421
(
422
);
426
public
:
bool
IsMeasurementExpression
427
(
428
);
433
public
:
NXString
Description
434
(
435
);
439
public
: std::vector<NXOpen::Expression *>
GetReferencingExpressions
440
(
441
);
445
public
:
bool
IsNoEdit
446
(
447
);
451
public
:
void
SetNoEdit
452
(
453
bool
isNoEdit
454
);
458
public
:
bool
IsNoUpdate
459
(
460
);
464
public
:
void
SetNoUpdate
465
(
466
bool
isNoUpdate
467
);
471
public
:
bool
IsInterpartExpression
472
(
473
);
477
public
:
void
GetInterpartExpressionNames
478
(
479
NXString
* partName ,
480
NXString
* expName
481
);
485
public
:
bool
IsRightHandSideLockedFromEdit
486
(
487
);
501
public
:
double
GetValueUsingUnits
502
(
503
NXOpen::Expression::UnitsOption
unitsOption
504
);
508
public
:
NXOpen::Expression::StatusOption
Status
509
(
510
);
514
public
:
void
MakeConstant
515
(
516
);
522
public
:
bool
IsUserSpecified
523
(
524
);
530
public
:
void
SetUserSpecified
531
(
532
bool
isUserSpecified
533
);
537
public
:
bool
IsMassManagementExp
538
(
539
);
543
public
:
void
SetMassManagementExp
544
(
545
bool
isMassManagementExp
546
);
550
public
:
bool
HasReferencedAttribute
551
(
552
);
556
public
:
NXOpen::NXObject::AttributeInformation
GetReferencedAttribute
557
(
558
);
562
public
:
bool
HasReferencingPartAttribute
563
(
564
);
568
public
:
bool
HasReferencingObjectAttribute
569
(
570
);
574
public
:
bool
GetReferencingAttribute
575
(
576
NXOpen::Expression::AttributeSourceType
attributeSourceType ,
577
NXOpen::NXObject::AttributeInformation
* info
578
);
582
public
:
bool
GetReferencingPartOrObjectAttribute
583
(
584
NXOpen::Expression::AttributeSourceType
* attributeSourceType ,
585
NXOpen::NXObject::AttributeInformation
* info
586
);
587
};
588
}
589
#ifdef _MSC_VER
590
#pragma warning(pop)
591
#endif
592
#ifdef __GNUC__
593
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
594
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
595
#endif
596
#endif
597
#undef EXPORTLIBRARY