NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Annotations_AssociativeText.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++ 接口访问 JA API 的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Annotations_AssociativeText.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/TransientObject.hxx>
22
#include <NXOpen/libnxopencpp_annotations_exports.hxx>
23
#ifdef _MSC_VER
24
#pragma warning(push)
25
#pragma warning(disable:4996)
26
#endif
27
#ifdef __GNUC__
28
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
29
#endif
30
namespace
NXOpen
31
{
32
namespace
Annotations
33
{
34
class
AssociativeText
;
35
}
36
namespace
Annotations
37
{
38
class
Annotation
;
39
}
40
class
NXObject
;
41
namespace
Annotations
42
{
43
}
44
namespace
Annotations
45
{
46
class
AssociativeTextImpl;
58
class
NXOPENCPP_ANNOTATIONSEXPORT
AssociativeText
:
public
NXOpen::TransientObject
59
{
61
public
:
enum
PropertyType
62
{
63
PropertyTypeDrawingNumberOfSheets
,
64
PropertyTypeDrawingNumberOfPrimarySheets
,
65
PropertyTypeDrawingSheetName
,
66
PropertyTypeDrawingSheetNumber
,
67
PropertyTypeDrawingSheetRevision
,
68
PropertyTypeDrawingSheetScaleNumerator
,
69
PropertyTypeDrawingSheetScaleDenominator
,
70
PropertyTypeDrawingSheetSize
,
71
PropertyTypeDrawingSheetUnits
,
72
PropertyTypeDrawingSheetZone
,
73
PropertyTypeDrawingSheetProjectionAngle
,
74
PropertyTypeDrawingMasterPartName
,
75
PropertyTypeDrawingPartName
,
76
PropertyTypeDrawingViewPrefix
,
77
PropertyTypeDrawingViewRotationAngle
78
};
79
private
:
AssociativeTextImpl
* m_associativetext_impl;
81
public
:
explicit
AssociativeText
(
void
*ptr);
83
88
public
:
virtual
~AssociativeText
();
96
public
:
NXString
GetObjectPropertyText
97
(
98
NXOpen::NXObject
*
object
,
99
NXOpen::Annotations::AssociativeText::PropertyType
type
100
);
104
public
:
NXString
GetObjectAttributeText
105
(
106
NXOpen::NXObject
*
object
,
107
const
NXString
& attributeTitle
108
);
112
NXString
GetObjectAttributeText
113
(
114
NXOpen::NXObject
*
object
,
115
const
char
* attributeTitle
116
);
120
public
:
NXString
GetObjectAttributeTextFormatted
121
(
122
NXOpen::NXObject
*
object
,
123
const
NXString
& attributeTitle ,
124
int
decimalPlaces
125
);
129
NXString
GetObjectAttributeTextFormatted
130
(
131
NXOpen::NXObject
*
object
,
132
const
char
* attributeTitle ,
133
int
decimalPlaces
134
);
152
public
:
bool
GetObjectAttribute
153
(
154
const
NXString
& text ,
155
NXOpen::NXObject
**
object
,
156
NXString
* attributeTitle
157
);
175
bool
GetObjectAttribute
176
(
177
const
char
* text ,
178
NXOpen::NXObject
**
object
,
179
NXString
* attributeTitle
180
);
184
public
:
NXString
GetPartAttributeText
185
(
186
const
NXString
& attributeTitle
187
);
191
NXString
GetPartAttributeText
192
(
193
const
char
* attributeTitle
194
);
198
public
:
NXString
GetPartAttributeTextFormatted
199
(
200
const
NXString
& attributeTitle ,
201
int
decimalPlaces
202
);
206
NXString
GetPartAttributeTextFormatted
207
(
208
const
char
* attributeTitle ,
209
int
decimalPlaces
210
);
227
public
:
bool
GetPartAttribute
228
(
229
const
NXString
& text ,
230
NXString
* attributeTitle
231
);
248
bool
GetPartAttribute
249
(
250
const
char
* text ,
251
NXString
* attributeTitle
252
);
263
public
:
NXString
GetEvaluatedText
264
(
265
NXOpen::Annotations::Annotation
* ann ,
268
const
NXString
& text
269
);
280
NXString
GetEvaluatedText
281
(
282
NXOpen::Annotations::Annotation
* ann ,
285
const
char
* text
286
);
288
291
public
:
NXString
CreateEmbeddedAnnotationText
292
(
293
NXOpen::Annotations::Annotation
* embeddedAnnotation
294
);
296
};
//lint !e1712 类未定义默认构造函数
297
}
298
}
299
#ifdef _MSC_VER
300
#pragma warning(pop)
301
#endif
302
#ifdef __GNUC__
303
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
304
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
305
#endif
306
#endif
307
#undef EXPORTLIBRARY