NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
PhysicalMaterial.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++接口JA API的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// PhysicalMaterial.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/CAE_IExportableFEEntity.hxx>
22
#include <NXOpen/Material.hxx>
23
#include <NXOpen/libnxopencpp_exports.hxx>
24
#ifdef _MSC_VER
25
#pragma warning(push)
26
#pragma warning(disable:4996)
27
#endif
28
#ifdef __GNUC__
29
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
30
#endif
31
namespace
NXOpen
32
{
33
class
PhysicalMaterial
;
34
class
BasePropertyTable
;
35
namespace
CAE
36
{
37
class
IExportableFEEntity
;
38
}
39
class
Material
;
40
class
NXObject
;
41
class
_PhysicalMaterialBuilder;
42
class
PhysicalMaterialImpl;
46
class
NXOPENCPPEXPORT PhysicalMaterial :
public
NXOpen::Material
,
public
virtual
NXOpen::CAE::IExportableFEEntity
47
{
49
public
:
enum
Category
50
{
51
CategoryMetals
,
52
CategoryPlastics
,
53
CategoryPolymers
,
54
CategoryCeramics
,
55
CategoryOther
56
};
57
58
public
:
enum
Type
59
{
60
TypeUnknown
= -1,
61
TypeIsotropic
,
62
TypeOrthotropic
,
63
TypeAnisotropic
,
64
TypeFluid
= 4,
65
TypeGeneralHyperelastic
,
66
TypeMooneyrivlin
,
67
TypeMooneyrivlintestdata
,
68
TypePolynomial
,
69
TypeReducedpolynomial
,
70
TypeOgden
,
71
TypeOgdentestdata
,
72
TypeFoam
,
73
TypeFoamtestdata
,
74
TypeBlatz
,
75
TypeArrudaboyce
,
76
TypeArrudaboycetestdata
,
77
TypeNeohooke
,
78
TypeNeohooketestdata
,
79
TypeMarlow
,
80
TypeVanderwaals
,
81
TypeYeoh
,
82
TypeYeohtestdata
,
83
TypeGent
,
84
TypeGasket
,
85
TypeGasketbehavior
,
86
TypeShapememoryalloy
,
87
TypeSussmanbathe
,
88
TypeGasketdisplacement
,
89
TypeDamageinterface
,
90
TypeMultiplefluid
,
91
TypeHartsmith
,
92
TypeAlexander
,
93
TypeCuring
,
94
TypePorous
= 35,
95
TypeCompoundisotropic
,
96
TypeLowdensityfoam
,
97
TypeFabric
,
98
TypeCrushablefoam
,
99
TypeRatesensitivefoam
,
100
TypeMultimechmicrostructure
,
101
TypeHoneycomb
,
102
TypeComposite
,
103
TypeViscothermalfluid
,
104
TypeLaminatedglass
105
};
106
107
public
:
enum
AssignWarning
108
{
109
AssignWarningNone
,
110
AssignWarningInvalidObj
111
};
112
private
:
PhysicalMaterialImpl
* m_physicalmaterial_impl;
113
private
:
friend
class
_PhysicalMaterialBuilder;
114
protected
:
PhysicalMaterial
();
115
public
:
~PhysicalMaterial
();
120
public
:
NXOpen::PhysicalMaterial::Type
GetMaterialType
121
(
122
);
127
public
:
int
GetId
128
(
129
);
133
public
:
void
SetId
134
(
135
int
materialId
136
);
141
public
:
NXString
GetCategory
142
(
143
);
147
public
:
void
SetCategory
148
(
149
const
NXString
& materialCategory
150
);
154
void
SetCategory
155
(
156
const
char
* materialCategory
157
);
161
public
:
void
SetMaterialCategory
162
(
163
const
NXString
& materialCategory
164
);
168
void
SetMaterialCategory
169
(
170
const
char
* materialCategory
171
);
176
public
:
NXString
GetMaterialCategory
177
(
178
);
183
public
:
NXString
GetSubcategory
184
(
185
);
189
public
:
void
SetSubcategory
190
(
191
const
NXString
& materialSubcategory
192
);
196
void
SetSubcategory
197
(
198
const
char
* materialSubcategory
199
);
204
public
:
NXString
GetAlternatename
205
(
206
);
210
public
:
void
SetAlternatename
211
(
212
const
NXString
& materialAlternatename
213
);
217
void
SetAlternatename
218
(
219
const
char
* materialAlternatename
220
);
225
public
:
NXString
GetDescription
226
(
227
);
231
public
:
void
SetDescription
232
(
233
const
NXString
& materialDescription
234
);
238
void
SetDescription
239
(
240
const
char
* materialDescription
241
);
246
public
:
bool
IsNonlibraryMaterial
247
(
248
);
253
public
:
bool
IsLoadedLibraryMaterial
254
(
255
);
260
public
:
bool
IsLoadedTeamcenterMaterialItem
261
(
262
);
267
public
:
NXString
GetLibraryName
268
(
269
);
274
public
:
NXString
GetTeamcenterMaterialItem
275
(
276
);
281
public
:
NXString
GetVersion
282
(
283
);
288
public
:
bool
HasParentmaterial
289
(
290
);
295
public
:
NXOpen::PhysicalMaterial
*
GetParentmaterial
296
(
297
);
302
public
:
bool
HasParentlibrarymaterial
303
(
304
);
308
public
:
void
GetParentlibrarymaterial
309
(
310
NXString
* parentName ,
311
NXString
* parentLibraryName
312
);
316
public
:
bool
GetMaterialEditable
317
(
318
);
322
public
:
void
SetMaterialEditable
323
(
324
bool
isEditable
325
);
329
public
:
void
AssignObjects
330
(
331
const
std::vector<NXOpen::NXObject *> & objects
332
);
336
public
:
void
AssignToAllBodies
337
(
338
);
343
public
:
NXOpen::PhysicalMaterial::AssignWarning
AssignToBodiesWithoutMaterials
344
(
345
);
350
public
:
NXOpen::PhysicalMaterial::AssignWarning
AssignToBodiesNotUsingPreferredMaterial
351
(
352
);
356
public
:
void
UnassignAllObjects
357
(
358
);
362
public
:
void
GetUsage
363
(
364
std::vector<NXOpen::NXObject *> & objects
365
);
370
public
:
void
ReplaceMaterialAssignment
371
(
372
NXOpen::PhysicalMaterial
* newMatl
373
);
378
public
:
NXOpen::PhysicalMaterial
*
Copy
379
(
380
NXOpen::NXObject
* partObject
381
);
383
386
public
:
NXOpen::PhysicalMaterial
* CopyAndSetParent
387
(
388
NXOpen::NXObject
* partObject ,
389
bool
setParent
390
);
392
396
public
:
NXOpen::PhysicalMaterial
*
CopyLibMatlToPart
397
(
398
NXOpen::NXObject
* partObject
399
);
404
public
:
NXOpen::PhysicalMaterial
*
CopyLibMatlToPart
405
(
406
NXOpen::NXObject
* partObject ,
407
bool
editable
409
);
411
414
public
:
NXOpen::PhysicalMaterial
* CopyLibMatlToPartAndSetParent
415
(
416
NXOpen::NXObject
* partObject ,
417
bool
editable ,
420
bool
setParent
421
);
423
426
public
:
void
Delete
427
(
428
);
432
public
:
void
DeleteUserMaterialModels
433
(
434
);
439
public
:
void
DeleteOrphanedUserMaterialModels
440
(
441
);
445
public
:
void
ResyncWithLibraryDefinition
446
(
447
);
452
public
:
void
UpdateMaterialProperties
453
(
454
);
458
public
:
void
InfoMaterial
459
(
460
);
464
public
:
void
InfoMaterialToFile
465
(
466
bool
bOverride ,
467
const
NXString
& pcFileName
468
);
472
void
InfoMaterialToFile
473
(
474
bool
bOverride ,
475
const
char
* pcFileName
476
);
480
public
:
NXOpen::BasePropertyTable
*
GetPropTable
481
(
482
);
487
public
:
bool
IsPropertyOverridden
488
(
489
const
NXString
& propNeutralName
490
);
495
bool
IsPropertyOverridden
496
(
497
const
char
* propNeutralName
498
);
503
public
:
NXString
GetPropertyInheritedValue
504
(
505
const
NXString
& propNeutralName
506
);
511
NXString
GetPropertyInheritedValue
512
(
513
const
char
* propNeutralName
514
);
518
public
:
virtual
std::vector<NXString>
GetSolverCardSyntax
519
(
520
);
521
};
522
}
523
#ifdef _MSC_VER
524
#pragma warning(pop)
525
#endif
526
#ifdef __GNUC__
527
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
528
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
529
#endif
530
#endif
531
#undef EXPORTLIBRARY