NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Weld_WeldJointBuilder.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++ 接口到 JA API 的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Weld_WeldJointBuilder.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/Die_DieLimitsBuilder.hxx>
22
#include <NXOpen/LineColorFontWidthBuilder.hxx>
23
#include <NXOpen/Weld_StructureWeldBuilder.hxx>
24
#include <NXOpen/ObjectList.hxx>
25
#include <NXOpen/ScCollector.hxx>
26
#include <NXOpen/SelectObjectList.hxx>
27
#include <NXOpen/Weld_CharacteristicsBuilder.hxx>
28
#include <NXOpen/Weld_JointItemBuilder.hxx>
29
#include <NXOpen/ugmath.hxx>
30
#include <NXOpen/libnxopencpp_weld_exports.hxx>
31
#ifdef _MSC_VER
32
#pragma warning(push)
33
#pragma warning(disable:4996)
34
#endif
35
#ifdef __GNUC__
36
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
37
#endif
38
namespace
NXOpen
39
{
40
namespace
Weld
41
{
42
class
WeldJointBuilder
;
43
}
44
namespace
Assemblies
45
{
46
class
Component
;
47
}
48
class
Curve
;
49
namespace
Die
50
{
51
class
DieLimitsBuilder
;
52
}
53
namespace
Die
54
{
55
class
DieLimitsBuilderList
;
56
}
57
class
LineColorFontWidthBuilder
;
58
class
Part
;
59
namespace
Routing
60
{
61
class
Port
;
62
}
63
class
ScCollector
;
64
class
SelectCurveList
;
65
class
SelectNXObjectList
;
66
namespace
Weld
67
{
68
class
CharacteristicsBuilder
;
69
}
70
namespace
Weld
71
{
72
class
JointItemBuilder
;
73
}
74
namespace
Weld
75
{
76
class
JointItemBuilderList
;
77
}
78
namespace
Weld
79
{
80
class
StructureWeldBuilder
;
81
}
82
namespace
Weld
83
{
84
class
_WeldJointBuilderBuilder;
85
class
WeldJointBuilderImpl;
101
class
NXOPENCPP_WELDEXPORT WeldJointBuilder :
public
NXOpen::Weld::StructureWeldBuilder
102
{
104
public
:
enum
Types
105
{
106
TypesCreateAutomatic
,
107
TypesCreateManual
,
108
TypesCreateMultiple
,
109
TypesCreateAttributes
,
110
TypesCreateSingleSided
111
};
112
113
public
:
enum
WeldTypes
114
{
115
WeldTypesAny
,
116
WeldTypesGroove
,
117
WeldTypesFillet
,
118
WeldTypesCorner
,
119
WeldTypesLap
,
120
WeldTypesSocket
,
121
WeldTypesMechanical
,
122
WeldTypesSleeve
,
123
WeldTypesBoss
124
};
125
126
public
:
enum
DestinationTypes
127
{
128
DestinationTypesWorkPart
,
129
DestinationTypesNewComponent
130
};
131
132
public
:
enum
SplitTypes
133
{
134
SplitTypesEqualSegments
,
135
SplitTypesLimits
,
136
SplitTypesAngle
,
137
SplitTypesComputedAngle
,
138
SplitTypesLength
,
139
SplitTypesNone
,
140
SplitTypesSkip
,
141
SplitTypesSkipNumberLength
,
142
SplitTypesSkipLengthPitch
143
};
144
145
public
:
146
struct
JointMidPointData
147
{
148
public
:
NXOpen::Point3d
JointMidPoint
;
149
public
:
NXOpen::Vector3d
JointTangent
;
150
public
:
NXOpen::Vector3d
PrimaryFaceNormal
;
151
public
:
NXOpen::Vector3d
SecondaryFaceNormal
;
152
public
:
NXOpen::Vector3d
GroovePrimaryDirection
;
153
public
:
bool
GrooveAlignedWithPrimary
;
154
public
: JointMidPointData() :
155
JointMidPoint
(),
156
JointTangent
(),
157
PrimaryFaceNormal
(),
158
SecondaryFaceNormal
(),
159
GroovePrimaryDirection
(),
160
GrooveAlignedWithPrimary
()
161
{
162
}
164
public
:
JointMidPointData
(
const
NXOpen::Point3d
&jointMidPointInitial ,
165
const
NXOpen::Vector3d
&jointTangentInitial ,
166
const
NXOpen::Vector3d
&primaryFaceNormalInitial ,
167
const
NXOpen::Vector3d
&secondaryFaceNormalInitial ,
168
const
NXOpen::Vector3d
&groovePrimaryDirectionInitial ,
169
bool
grooveAlignedWithPrimaryInitial ) :
170
JointMidPoint
(jointMidPointInitial),
171
JointTangent
(jointTangentInitial),
172
PrimaryFaceNormal
(primaryFaceNormalInitial),
173
SecondaryFaceNormal
(secondaryFaceNormalInitial),
174
GroovePrimaryDirection
(groovePrimaryDirectionInitial),
175
GrooveAlignedWithPrimary
(grooveAlignedWithPrimaryInitial)
176
{
177
}
178
};
179
180
public
:
enum
CoordinateSystem
181
{
182
CoordinateSystemAbsolute
,
183
CoordinateSystemShip
184
};
185
186
public
:
enum
Application
187
{
188
ApplicationStructureWelding
,
189
ApplicationRouting
,
190
ApplicationStructureDesign
191
};
192
private
:
WeldJointBuilderImpl
* m_weldjointbuilder_impl;
193
private
:
friend
class
_WeldJointBuilderBuilder;
194
protected
:
WeldJointBuilder
();
195
public
:
~WeldJointBuilder
();
202
public
:
NXOpen::SelectNXObjectList
*
ShipComponent
203
(
204
);
208
public
:
NXOpen::Weld::CharacteristicsBuilder
*
WeldingCharacteristics
209
(
210
);
214
public
:
NXOpen::SelectCurveList
*
Joint
215
(
216
);
222
public
:
NXOpen::ScCollector
*
MasterEdge
223
(
224
);
231
public
:
NXOpen::ScCollector
*
PlacementFace
232
(
233
);
240
public
:
NXOpen::ScCollector
*
TargetFace
241
(
242
);
249
public
:
NXOpen::ScCollector
*
PrimaryFace
250
(
251
);
258
public
:
NXOpen::ScCollector
*
SecondaryFace
259
(
260
);
266
public
:
NXOpen::ScCollector
*
BackingFace
267
(
268
);
274
public
:
NXOpen::ScCollector
*
PrimaryEdge
275
(
276
);
282
public
:
NXOpen::ScCollector
*
SecondaryEdge
283
(
284
);
288
public
:
NXString
NamePrefix
289
(
290
);
294
public
:
void
SetNamePrefix
295
(
296
const
NXString
& prefix
297
);
301
void
SetNamePrefix
302
(
303
const
char
* prefix
304
);
308
public
:
NXString
JointPrefix
309
(
310
);
314
public
:
void
SetJointPrefix
315
(
316
const
NXString
& prefix
317
);
321
void
SetJointPrefix
322
(
323
const
char
* prefix
324
);
328
public
:
NXOpen::Part
*
SubsetPart
329
(
330
);
334
public
:
void
SetSubsetPart
335
(
336
NXOpen::Part
* part
337
);
341
public
:
void
Delete
342
(
343
);
347
public
:
NXOpen::Part
*
WorkPart
348
(
349
);
353
public
:
void
SetWorkPart
354
(
355
NXOpen::Part
* part
356
);
360
public
:
NXOpen::Die::DieLimitsBuilderList
*
LimitList
361
(
362
);
368
public
:
NXOpen::Weld::JointItemBuilderList
*
JointList
369
(
370
);
374
public
:
void
Split
375
(
376
);
380
public
:
void
UpdateJointType
381
(
382
NXOpen::Weld::WeldJointBuilder::WeldTypes
type
383
);
387
public
:
void
DeleteAllUnMarkedJoints
388
(
389
);
393
public
:
void
AddCharacteristicsInheritaceInformation
394
(
395
);
399
public
:
void
DeleteCharacteristicsInheritaceInformation
400
(
401
);
405
public
:
void
MarkJointsToKeep
406
(
407
);
412
public
:
int
NumberSegments
413
(
414
);
419
public
:
void
SetNumberSegments
420
(
421
int
numberSegments
422
);
426
public
:
double
SplitAngle
427
(
428
);
432
public
:
void
SetSplitAngle
433
(
434
double
angle
435
);
439
public
:
double
SplitLength
440
(
441
);
445
public
:
void
SetSplitLength
446
(
447
double
length
448
);
454
public
:
double
SpacingLength
455
(
456
);
462
public
:
void
SetSpacingLength
463
(
464
double
length
465
);
469
public
:
double
MaximumFaceGap
470
(
471
);
475
public
:
void
SetMaximumFaceGap
476
(
477
double
gapValue
478
);
489
public
:
void
ShowJoints
490
(
491
);
495
public
:
NXOpen::Weld::WeldJointBuilder::SplitTypes
SplitOption
496
(
497
);
501
public
:
void
SetSplitOption
502
(
503
NXOpen::Weld::WeldJointBuilder::SplitTypes
option
504
);
508
public
:
NXOpen::Weld::WeldJointBuilder::WeldTypes
WeldType
509
(
510
);
514
public
:
void
SetWeldType
515
(
516
NXOpen::Weld::WeldJointBuilder::WeldTypes
type
517
);
521
public
:
NXOpen::Weld::WeldJointBuilder::Application
CreatedApplication
522
(
523
);
527
public
:
void
SetCreatedApplication
528
(
529
NXOpen::Weld::WeldJointBuilder::Application
application
530
);
534
public
:
NXOpen::Weld::WeldJointBuilder::DestinationTypes
Destination
535
(
536
);
540
public
:
void
SetDestination
541
(
542
NXOpen::Weld::WeldJointBuilder::DestinationTypes
type
543
);
547
public
:
NXOpen::Weld::WeldJointBuilder::Types
Type
548
(
549
);
553
public
:
void
SetType
554
(
555
NXOpen::Weld::WeldJointBuilder::Types
type
556
);
560
public
:
NXOpen::Weld::WeldJointBuilder::Types
CreateMethod
561
(
562
);
566
public
:
void
SetCreateMethod
567
(
568
NXOpen::Weld::WeldJointBuilder::Types
type
569
);
573
public
:
bool
DuplicateCheck
574
(
575
);
579
public
:
void
SetDuplicateCheck
580
(
581
bool
status
582
);
586
public
:
bool
AssociativeSplit
587
(
588
);
592
public
:
void
SetAssociativeSplit
593
(
594
bool
status
595
);
599
public
:
bool
CombineConnectedJoints
600
(
601
);
605
public
:
void
SetCombineConnectedJoints
606
(
607
bool
status
608
);
612
public
:
NXOpen::Die::DieLimitsBuilder
*
Limits
613
(
614
);
618
public
:
NXOpen::Die::DieLimitsBuilder
*
GetJointLimits
619
(
620
NXOpen::Curve
* curve
621
);
625
public
:
NXOpen::Weld::JointItemBuilder
*
GetSingleJoint
626
(
627
NXOpen::Curve
* curve
628
);
632
public
:
bool
GetJointChanged
633
(
634
NXOpen::Curve
* curve
635
);
639
public
:
void
SetJointChanged
640
(
641
NXOpen::Curve
* curve ,
642
bool
changed
643
);
647
public
:
NXOpen::Curve
*
CreateLimitsPath
648
(
649
NXOpen::Curve
* jointCurve
650
);
654
public
:
void
UpdateCollectors
655
(
656
NXOpen::Curve
* jointCurve
657
);
661
public
:
void
UpdateJointAfterLimitsChange
662
(
663
);
667
public
:
void
UpdateJointAfterLimitsChange
668
(
669
NXOpen::Die::DieLimitsBuilder
* limits
670
);
674
public
:
void
CopyLimits
675
(
676
NXOpen::Die::DieLimitsBuilder
* limits
677
);
681
public
:
void
CreateSingleJointFromFeature
682
(
683
NXOpen::Curve
* featureCurve ,
684
bool
updateBuilder
685
);
689
public
:
void
SetVariableBevelAngles
690
(
691
const
std::vector<double> & variableAngles
692
);
696
public
:
void
GetVariableBevelAngles
697
(
698
std::vector<double> & variableAngles
699
);
703
public
:
void
GetConnectedParts
704
(
705
std::vector<NXOpen::Assemblies::Component *> & parts
706
);
710
public
:
void
FindPortsInParts
711
(
712
const
std::vector<NXOpen::Assemblies::Component *> & parts ,
713
std::vector<NXOpen::Routing::Port *> & ports
714
);
718
public
:
double
GetPrimaryThickness
719
(
720
NXOpen::Curve
* curve
721
);
725
public
:
double
GetSecondaryThickness
726
(
727
NXOpen::Curve
* curve
728
);
732
public
:
double
GetAngleBetween
733
(
734
);
738
public
:
bool
GetIsLongPoint
739
(
740
);
744
public
:
bool
IsCornerOpen
745
(
746
);
750
public
:
bool
IsPipeJoint
751
(
752
);
756
public
:
NXOpen::Weld::JointItemBuilder
*
NewItem
757
(
758
);
762
public
:
void
GetNewlyCreatedJoints
763
(
764
std::vector<NXOpen::Curve *> & curves ,
765
std::vector<NXOpen::Weld::JointItemBuilder *> & newItemBuilder
766
);
770
public
:
void
ProcessCreatedJoints
771
(
772
);
776
public
:
void
SetCallbackMessage
777
(
778
const
NXString
& message
779
);
783
void
SetCallbackMessage
784
(
785
const
char
* message
786
);
790
public
:
void
SetErrorMessage
791
(
792
const
NXString
& message
793
);
797
void
SetErrorMessage
798
(
799
const
char
* message
800
);
804
public
:
bool
GetMidPointInformation
805
(
806
NXOpen::Weld::WeldJointBuilder::CoordinateSystem
desiredCoordinateSystem ,
807
NXOpen::Weld::WeldJointBuilder::JointMidPointData
* jointMidPointData
808
);
812
public
:
NXOpen::LineColorFontWidthBuilder
*
ButtColorFontWidth
813
(
814
);
818
public
:
NXOpen::LineColorFontWidthBuilder
*
TJointColorFontWidth
819
(
820
);
824
public
:
NXOpen::LineColorFontWidthBuilder
*
LapColorFontWidth
825
(
826
);
830
public
:
NXOpen::LineColorFontWidthBuilder
*
SocketColorFontWidth
831
(
832
);
836
public
:
NXOpen::LineColorFontWidthBuilder
*
MechanicalColorFontWidth
837
(
838
);
842
public
:
NXOpen::LineColorFontWidthBuilder
*
CornerColorFontWidth
843
(
844
);
848
public
:
NXOpen::LineColorFontWidthBuilder
*
SleeveColorFontWidth
849
(
850
);
854
public
:
NXOpen::LineColorFontWidthBuilder
*
BossColorFontWidth
855
(
856
);
857
};
858
}
859
}
860
#ifdef _MSC_VER
861
#pragma warning(pop)
862
#endif
863
#ifdef __GNUC__
864
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
865
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
866
#endif
867
#endif
868
#undef EXPORTLIBRARY