NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Tooling_FastenerAssy.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++接口工具FastenerAssy的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Tooling_FastenerAssy.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/Builder.hxx>
22
#include <NXOpen/Tooling_AddReusablePart.hxx>
23
#include <NXOpen/ugmath.hxx>
24
#include <NXOpen/libnxopencpp_tooling_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
namespace
Tooling
35
{
36
class
FastenerAssy
;
37
}
38
namespace
Assemblies
39
{
40
class
Component
;
41
}
42
namespace
Assemblies
43
{
44
class
ComponentPatternBuilder
;
45
}
46
class
Builder
;
47
namespace
Features
48
{
49
class
Feature
;
50
}
51
class
NXObject
;
52
class
Sketch
;
53
namespace
Tooling
54
{
55
class
AddReusablePart
;
56
}
57
namespace
Tooling
58
{
59
class
FastenerAssyObject
;
60
}
61
namespace
Tooling
62
{
63
class
ReusablePocketBuilder
;
64
}
65
namespace
Tooling
66
{
67
class
_FastenerAssyBuilder;
68
class
FastenerAssyImpl;
266
class
NXOPENCPP_TOOLINGEXPORT FastenerAssy :
public
NXOpen::Builder
267
{
269
public
:
enum
ModeMethod
270
{
271
ModeMethodAdd
= 1,
272
ModeMethodEdit
273
};
274
275
public
:
enum
StackTypeMethod
276
{
277
StackTypeMethodScrew
,
278
StackTypeMethodTopStack
,
279
StackTypeMethodBottomStack
,
280
StackTypeMethodRootNode
,
281
StackTypeMethodTopNode
,
282
StackTypeMethodBottomNode
,
283
StackTypeMethodExtendNode
,
284
StackTypeMethodExtendSubNode
285
};
286
287
public
:
enum
HoleOperation
288
{
289
HoleOperationAdd
,
290
HoleOperationRemove
291
};
292
293
public
:
enum
SelectionTypeMethod
294
{
295
SelectionTypeMethodHole
,
296
SelectionTypeMethodPosition
297
};
298
299
public
:
enum
SelectionObjectMethod
300
{
301
SelectionObjectMethodTop
,
302
SelectionObjectMethodBottom
303
};
304
private
:
FastenerAssyImpl
* m_fastenerassy_impl;
305
private
:
friend
class
_FastenerAssyBuilder;
306
protected
:
FastenerAssy
();
307
public
:
~FastenerAssy
();
311
public
:
NXOpen::NXObject
*
AddTopNode
312
(
313
const
NXOpen::Point3d
& point ,
314
const
NXOpen::Point3d
& direction ,
315
NXOpen::NXObject
* selObject ,
316
int
index
317
);
321
public
:
void
SetHoleDiameter
322
(
323
double
diameter ,
324
int
index
325
);
329
public
:
void
SetHoleDirection
330
(
331
const
NXOpen::Point3d
& direction ,
332
int
index
333
);
337
public
:
void
SetHoleSideCylindricalFaces
338
(
339
NXOpen::NXObject
* sideCylFace ,
340
int
index
341
);
345
public
:
void
SetCreatePocket
346
(
347
bool
create
348
);
352
public
:
void
SetHoleFaces
353
(
354
NXOpen::NXObject
* holeFace ,
355
int
index
356
);
360
public
:
void
AddScrewArray
361
(
362
const
NXString
& krxFile ,
363
const
NXString
& lengthMatch ,
364
const
NXString
& libPath ,
365
const
NXString
& libName ,
366
const
NXString
& fullPath ,
367
int
index ,
368
NXOpen::Tooling::FastenerAssy::StackTypeMethod
type
369
);
373
void
AddScrewArray
374
(
375
const
char
* krxFile ,
376
const
char
* lengthMatch ,
377
const
char
* libPath ,
378
const
char
* libName ,
379
const
char
* fullPath ,
380
int
index ,
381
NXOpen::Tooling::FastenerAssy::StackTypeMethod
type
382
);
386
public
:
void
AddParentNewPart
387
(
388
const
NXString
& fileName ,
389
int
index ,
390
bool
parentNode
391
);
395
void
AddParentNewPart
396
(
397
const
char
* fileName ,
398
int
index ,
399
bool
parentNode
400
);
404
public
:
void
SetItemName
405
(
406
const
NXString
& partName ,
407
const
NXString
& itemName
408
);
412
void
SetItemName
413
(
414
const
char
* partName ,
415
const
char
* itemName
416
);
420
public
:
void
SetHolePosition
421
(
422
const
NXOpen::Point3d
& position ,
423
int
index
424
);
428
public
:
void
SetHoleDefaultCylindricalFace
429
(
430
NXOpen::NXObject
* defaultCylFaces ,
431
int
index
432
);
436
public
:
void
SetHoleOriginPosition
437
(
438
const
NXOpen::Point3d
& originposition ,
439
int
index
440
);
444
public
:
void
SetHoleHeight
445
(
446
double
height ,
447
int
index
448
);
452
public
:
void
SetHoleOriginHeight
453
(
454
double
originheight ,
455
int
index
456
);
460
public
:
void
SetHoleStandard
461
(
462
const
NXString
& holeStandard ,
463
int
index
464
);
468
void
SetHoleStandard
469
(
470
const
char
* holeStandard ,
471
int
index
472
);
476
public
:
void
SetHoleType
477
(
478
const
NXString
& holeType ,
479
int
index
480
);
484
void
SetHoleType
485
(
486
const
char
* holeType ,
487
int
index
488
);
492
public
:
void
SetHoleForm
493
(
494
const
NXString
& holeForm ,
495
int
index
496
);
500
void
SetHoleForm
501
(
502
const
char
* holeForm ,
503
int
index
504
);
508
public
:
void
SetFastenerExtentLength
509
(
510
double
extentLength
511
);
515
public
:
void
SetFastenerExtentLengthFormula
516
(
517
int
index ,
518
const
NXString
& extentLengthFormula
519
);
523
void
SetFastenerExtentLengthFormula
524
(
525
int
index ,
526
const
char
* extentLengthFormula
527
);
531
public
:
void
SetHoleOriginDiameter
532
(
533
double
originDiameter ,
534
int
index
535
);
539
public
:
void
SetFastenerSelectionType
540
(
541
NXOpen::Tooling::FastenerAssy::SelectionTypeMethod
selectionType
542
);
546
public
:
NXOpen::Tooling::FastenerAssy::SelectionTypeMethod
GetFastenerSelectionType
547
(
548
);
552
public
:
void
SetHoleDatumCsys
553
(
554
NXOpen::NXObject
* datumCsys ,
555
int
index
556
);
560
public
:
void
UpdateFastenerLength
561
(
562
bool
adjustLength
563
);
567
public
:
void
CreateSameAssemblyData
568
(
569
int
addedIndex ,
570
int
index
571
);
575
public
:
void
EraseStackArray
576
(
577
int
parentIndex ,
578
int
inx ,
579
NXOpen::Tooling::FastenerAssy::StackTypeMethod
type
580
);
584
public
:
void
EraseFastenerAssembly
585
(
586
int
parentInx ,
587
bool
removeParent ,
588
bool
removeScrew ,
589
bool
removeStack ,
590
bool
removeArray ,
591
bool
removeBuilder ,
592
bool
initscrewBuilder ,
593
bool
initstackBuilder ,
594
bool
removeData
595
);
599
public
:
void
EraseFastenerSetupData
600
(
601
);
605
public
:
void
CreateFastenerConstraints
606
(
607
int
index
608
);
612
public
:
void
RemoveFastenerConstraints
613
(
614
int
index
615
);
619
public
:
void
SetSidePlanarFaces
620
(
621
NXOpen::NXObject
* sidePlanarFace ,
622
int
index
623
);
627
public
:
void
SetDefaultPlanarFaces
628
(
629
NXOpen::NXObject
* defaultPlanarFace ,
630
int
inx
631
);
635
public
:
void
SetInstanceFeatureFaces
636
(
637
NXOpen::NXObject
* instanceFeature ,
638
int
inx
639
);
643
public
:
void
AdjustFastenerLength
644
(
645
int
parentIndex ,
646
int
childIndex ,
647
NXOpen::Tooling::FastenerAssy::StackTypeMethod
nodeType
648
);
652
public
:
void
UpdateFastenerStacks
653
(
654
int
parentIndex ,
655
bool
updateScrew ,
656
bool
updatePocket
657
);
661
public
:
void
UpdateHoleData
662
(
663
int
inx ,
664
double
originheight ,
665
const
NXOpen::Point3d
& originPoint ,
666
bool
threadhole ,
667
bool
blindhole
668
);
672
public
:
void
CreateReusablePocket
673
(
674
bool
commit
675
);
679
public
:
void
DeleteReusablePocket
680
(
681
);
685
public
:
void
SelectScrewSize
686
(
687
int
inx ,
688
double
diameter ,
689
double
origindiameter ,
690
bool
selDiameter
691
);
695
public
:
NXOpen::Tooling::AddReusablePart
*
CreateReusableBuilder
696
(
697
int
parentIndex ,
698
int
childIndex ,
699
NXOpen::Tooling::FastenerAssy::StackTypeMethod
nodeType
700
);
704
public
:
void
SubstituteFastenerStack
705
(
706
int
parentIndex ,
707
int
childIndex ,
708
NXOpen::Tooling::FastenerAssy::StackTypeMethod
nodeType ,
709
const
NXString
& partFile ,
710
const
NXString
& krxFile ,
711
const
NXString
& libName ,
712
const
NXString
& pathInLib ,
713
const
NXString
& lengthMatch ,
714
const
NXString
& fullPath
715
);
719
void
SubstituteFastenerStack
720
(
721
int
parentIndex ,
722
int
childIndex ,
723
NXOpen::Tooling::FastenerAssy::StackTypeMethod
nodeType ,
724
const
char
* partFile ,
725
const
char
* krxFile ,
726
const
char
* libName ,
727
const
char
* pathInLib ,
728
const
char
* lengthMatch ,
729
const
char
* fullPath
730
);
734
public
:
void
SaveUdoData
735
(
736
);
740
public
:
void
SetFastenerMode
741
(
742
NXOpen::Tooling::FastenerAssy::ModeMethod
modeMethod
743
);
747
public
:
NXOpen::Tooling::FastenerAssy::ModeMethod
GetFastenerMode
748
(
749
);
753
public
:
void
EraseAssemblyData
754
(
755
int
parentIndex
756
);
760
public
:
void
UpdateHolePostion
761
(
762
int
parentIndex ,
763
const
NXOpen::Point3d
& dirOne ,
764
const
NXOpen::Point3d
& tempPnt ,
765
const
NXOpen::Point3d
& pointOne ,
766
double
height ,
767
double
orignHeight ,
768
double
offSetDistance
769
);
773
public
:
void
SetReuseBuilder
774
(
775
int
index ,
776
NXOpen::Tooling::FastenerAssy::StackTypeMethod
nodeType ,
777
int
childIndex ,
778
NXOpen::Assemblies::Component
* partOcc
779
);
783
public
:
void
RenameParentNode
784
(
785
int
index ,
786
const
NXString
& newname
787
);
791
void
RenameParentNode
792
(
793
int
index ,
794
const
char
* newname
795
);
799
public
:
void
CreateArrayHole
800
(
801
int
index
802
);
806
public
:
void
DeleteArrayHole
807
(
808
int
index
809
);
813
public
:
void
InitPocketBuilder
814
(
815
);
819
public
:
void
UpdateTopBottomStacks
820
(
821
int
index ,
822
NXOpen::Tooling::FastenerAssy::SelectionObjectMethod
type ,
823
bool
isSameFace ,
824
NXOpen::NXObject
* face
825
);
829
public
:
void
ReadAssemblyConfigure
830
(
831
int
holeNum ,
832
NXOpen::Assemblies::Component
* partOcc
833
);
837
public
:
void
SetAssemblyExtentLength
838
(
839
int
index ,
840
double
extentLength
841
);
845
public
:
void
SetAssemblyExtentLengthFormula
846
(
847
int
index ,
848
const
NXString
& extentLengthFormula
849
);
853
void
SetAssemblyExtentLengthFormula
854
(
855
int
index ,
856
const
char
* extentLengthFormula
857
);
861
public
:
void
UpdateDefaultStandard
862
(
863
int
index ,
864
const
NXString
& standard ,
865
const
NXString
& form ,
866
const
NXString
& type
867
);
871
void
UpdateDefaultStandard
872
(
873
int
index ,
874
const
char
* standard ,
875
const
char
* form ,
876
const
char
* type
877
);
881
public
:
void
RemoveSelectedHole
882
(
883
);
887
public
:
void
AddRemovalHoleIndex
888
(
889
int
index
890
);
894
public
:
void
UpdateStackPosition
895
(
896
int
parentIndex ,
897
int
childIndex ,
898
NXOpen::Tooling::FastenerAssy::StackTypeMethod
nodeType ,
899
double
deltaLength
900
);
904
public
:
void
SetReusablePocketBuilder
905
(
906
NXOpen::Tooling::ReusablePocketBuilder
* pocketTag
907
);
911
public
:
NXOpen::Tooling::ReusablePocketBuilder
*
GetReusablePocketBuilder
912
(
913
);
917
public
:
void
EraseFastenerAssemblyData
918
(
919
int
index
920
);
924
public
:
void
SetBlindHole
925
(
926
int
inx ,
927
bool
blindhole
928
);
932
public
:
NXOpen::Sketch
*
PositioningFeature
933
(
934
);
938
public
:
void
SetPositioningFeature
939
(
940
NXOpen::Sketch
* sketch
941
);
945
public
:
void
CreatePatternComponent
946
(
947
bool
createPattern
948
);
952
public
:
NXOpen::Features::Feature
*
FindPositioningFeatureSet
953
(
954
);
958
public
:
void
SaveDropPointPosition
959
(
960
const
NXOpen::Point3d
& tempPnt
961
);
965
public
:
void
SetComponentPatternBuilder
966
(
967
NXOpen::Assemblies::ComponentPatternBuilder
* patternComponentBuilderTag
968
);
972
public
:
NXOpen::Assemblies::ComponentPatternBuilder
*
ComponentPatternBuilder
973
(
974
);
978
public
:
void
CreatePositioningFeatureOnPoint
979
(
980
NXOpen::NXObject
* selobj ,
981
const
NXOpen::Point3d
& inputPosition ,
982
bool
centerFace
983
);
987
public
:
void
OffsetPositioningFeature
988
(
989
double
offsetValue
990
);
994
public
:
void
SetOffsetExpression
995
(
996
double
offsetDistance
997
);
1001
public
:
NXOpen::NXObject
*
GetReusableBuilderWorkPart
1002
(
1003
);
1007
public
:
void
CreatePositioningFeatureByPoint
1008
(
1009
NXOpen::NXObject
* selobj ,
1010
const
NXOpen::Point3d
& inputPosition ,
1011
bool
centerFace
1012
);
1016
public
:
void
SetFastenerIdentifierProperties
1017
(
1018
int
inx ,
1019
NXOpen::Tooling::FastenerAssyObject
* fastenerObject
1020
);
1024
public
:
int
CreateFastenerIdentifiers
1025
(
1026
);
1027
};
1028
}
1029
}
1030
#ifdef _MSC_VER
1031
#pragma warning(pop)
1032
#endif
1033
#ifdef __GNUC__
1034
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
1035
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
1036
#endif
1037
#endif
1038
#undef EXPORTLIBRARY