NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Drawings_DrawingSheet.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++接口至JA API的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Drawings_DrawingSheet.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/libnxopencpp_drawings_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
Drawings
33
{
34
class
DrawingSheet
;
35
}
36
namespace
Drawings
37
{
38
class
BordersAndZones
;
39
}
40
namespace
Drawings
41
{
42
class
DraftingView
;
43
}
44
namespace
Drawings
45
{
46
class
SheetDraftingViewCollection
;
47
}
48
namespace
Drawings
49
{
50
class
SheetSectionLineCollection
;
51
}
52
class
NXObject
;
53
class
Sketch
;
54
class
View
;
55
namespace
Drawings
56
{
57
class
_DrawingSheetBuilder;
58
class
DrawingSheetImpl;
66
class
NXOPENCPP_DRAWINGSEXPORT DrawingSheet :
public
NXOpen::NXObject
67
{
69
public
:
enum
Unit
70
{
71
UnitInches
= 1,
72
UnitMillimeters
73
};
74
75
public
:
enum
StandardSheetSize
76
{
77
StandardSheetSizeA
,
78
StandardSheetSizeB
,
79
StandardSheetSizeC
,
80
StandardSheetSizeD
,
81
StandardSheetSizeE
,
82
StandardSheetSizeF
,
83
StandardSheetSizeH
,
84
StandardSheetSizeJ
,
85
StandardSheetSizeA0
,
86
StandardSheetSizeA1
,
87
StandardSheetSizeA2
,
88
StandardSheetSizeA3
,
89
StandardSheetSizeA4
90
};
91
95
public
:
enum
ProjectionAngleType
96
{
97
ProjectionAngleTypeFirstAngle
= 1,
98
ProjectionAngleTypeThirdAngle
99
};
100
private
:
DrawingSheetImpl
* m_drawingsheet_impl;
101
private
:
friend
class
_DrawingSheetBuilder;
102
protected
:
DrawingSheet
();
103
public
:
~DrawingSheet
();
107
public
:
void
Open
108
(
109
);
113
public
: std::vector<NXOpen::Drawings::DraftingView *>
GetDraftingViews
114
(
115
);
119
public
:
NXOpen::View
*
View
120
(
121
);
125
public
:
bool
IsOutOfDate
126
(
127
);
131
public
:
NXOpen::Drawings::DrawingSheet::ProjectionAngleType
ProjectionAngle
132
(
133
);
138
public
:
NXOpen::Drawings::DrawingSheet::Unit
Units
139
(
140
);
144
public
:
void
GetScale
145
(
146
double
* numerator ,
147
double
* denominator
148
);
152
public
:
double
Height
153
(
154
);
158
public
:
double
Length
159
(
160
);
164
public
:
void
SetParameters
165
(
166
double
height ,
167
double
length ,
168
double
numerator ,
169
double
denominator ,
170
NXOpen::Drawings::DrawingSheet::Unit
units ,
171
NXOpen::Drawings::DrawingSheet::ProjectionAngleType
projectionAngle ,
172
std::vector<NXOpen::Drawings::DraftingView *> & associatedViews
173
);
178
public
:
void
ActivateForSketching
179
(
180
);
184
public
:
void
ResetActiveForSketching
185
(
186
);
190
public
:
bool
IsActiveForSketching
191
(
192
);
196
public
:
NXString
GetZoneReference
197
(
198
NXOpen::Drawings::DraftingView
* viewTag
199
);
203
public
:
NXString
GetSheetZoneReference
204
(
205
NXOpen::Drawings::DraftingView
* viewTag
206
);
210
public
:
NXOpen::Drawings::BordersAndZones
*
BordersAndZones
211
(
212
);
216
public
:
void
SetBordersAndZones
217
(
218
NXOpen::Drawings::BordersAndZones
* bodersAndZones
219
);
223
public
: std::vector<NXOpen::Sketch *>
GetDraftingSketches
224
(
225
);
229
public
:
NXOpen::Drawings::SheetDraftingViewCollection
*
SheetDraftingViews
();
233
public
:
NXOpen::Drawings::SheetSectionLineCollection
*
SheetSectionLines
();
234
};
235
}
236
}
237
#ifdef _MSC_VER
238
#pragma warning(pop)
239
#endif
240
#ifdef __GNUC__
241
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
242
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
243
#endif
244
#endif
245
#undef EXPORTLIBRARY