NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Tooling_AddReusablePart.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// 用于JA API的C++接口的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Tooling_AddReusablePart.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/PartFamily_InstanceSelectionCriteria.hxx>
23#include <NXOpen/Tooling_CloneObject.hxx>
24#include <NXOpen/Tooling_SpreadsheetData.hxx>
25#include <NXOpen/Tooling_ToolingManager.hxx>
26#include <NXOpen/ugmath.hxx>
27#include <NXOpen/libnxopencpp_tooling_exports.hxx>
28#ifdef _MSC_VER
29#pragma warning(push)
30#pragma warning(disable:4996)
31#endif
32#ifdef __GNUC__
33#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
34#endif
35namespace NXOpen
36{
37 namespace Tooling
38 {
39 class AddReusablePart;
40 }
41 namespace Assemblies
42 {
43 class Component;
44 }
45 namespace Assemblies
46 {
48 }
49 class Builder;
50 class CoordinateSystem;
51 namespace Features
52 {
53 class Feature;
54 }
55 class NXObject;
56 class Part;
57 namespace PartFamily
58 {
60 }
61 class Sketch;
62 class TaggedObject;
63 namespace Tooling
64 {
65 class CloneObject;
66 }
67 namespace Tooling
68 {
70 }
71 namespace Tooling
72 {
73 class SpreadsheetData;
74 }
75 namespace Tooling
76 {
77 class _AddReusablePartBuilder;
78 class AddReusablePartImpl;
246 class NXOPENCPP_TOOLINGEXPORT AddReusablePart : public NXOpen::Builder
247 {
261
262 public: enum ModeMethod
263 {
266 };
267
273
280 private: AddReusablePartImpl * m_addreusablepart_impl;
281 private: friend class _AddReusablePartBuilder;
282 protected: AddReusablePart();
283public: ~AddReusablePart();
288 (
289 );
293 public: void SetPositionMode
294 (
296 );
301 (
303 const NXString & assemName
304 );
309 (
311 const char * assemName
312 );
317 (
318 );
323 (
324 const NXOpen::Point3d & dropLocation
325 );
330 (
331 );
336 (
337 NXOpen::Tooling::SpreadsheetData * spreadsheetData
338 );
343 (
344 );
348 public: void SetParentPart
349 (
350 NXOpen::Part * part
351 );
356 (
357 );
362 (
363 NXOpen::NXObject * part
364 );
368 public: void SaveLibraryPath
369 (
370 const NXString & libName ,
371 const NXString & libpath
372 );
377 (
378 const char * libName ,
379 const char * libpath
380 );
385 (
386 const NXString & krxFile
387 );
392 (
393 const char * krxFile
394 );
399 (
400 const NXString & referenceSetName ,
401 const NXString & componentName ,
402 int layer
403 );
408 (
409 const char * referenceSetName ,
410 const char * componentName ,
411 int layer
412 );
417 (
418 );
422 public: void UpdatePartData
423 (
424 );
429 (
430 );
436 (
437 );
442 (
443 int index
444 );
449 (
450 );
455 (
456 const NXOpen::Point3d & inputPosition ,
457 const NXOpen::Point3d & inputDirection ,
458 double length ,
459 const NXOpen::Point3d & outputPosition ,
460 const NXOpen::Point3d & outputDirection
461 );
466 (
467 bool commit
468 );
473 (
474 );
478 public: void CreateComponents
479 (
480 int count ,
481 NXOpen::NXObject * selobj
482 );
486 public: void DeleteComponents
487 (
488 int count
489 );
493 public: void AddHoleInstance
494 (
495 const NXOpen::Point3d & inputDirection ,
496 const NXOpen::Point3d & inputPostion
497 );
502 (
503 const NXOpen::Point3d & inputDirection ,
504 const NXOpen::Point3d & inputPostion ,
505 NXOpen::NXObject * selCsys
506 );
511 (
512 const NXOpen::Point3d & rememberDir
513 );
517 public: void RemoveOldInstance
518 (
519 int index
520 );
524 public: void AddNewInstance
525 (
527 int index
528 );
533 (
535 );
539 public: void AddPartOccurance
540 (
542 );
547 (
548 const NXString & compName ,
549 const NXString & refsetName ,
550 int layer
551 );
556 (
557 const char * compName ,
558 const char * refsetName ,
559 int layer
560 );
565 (
566 int instIndex ,
567 bool needTransform
568 );
572 public: void AddComponentMode
573 (
575 );
579 public: void SetCloneObject
580 (
581 NXOpen::Tooling::CloneObject * cloneObject
582 );
587 (
588 );
592 public: void AddClonePartName
593 (
594 const NXString & clonedpartname
595 );
600 (
601 const char * clonedpartname
602 );
607 (
608 bool substituteInstance
609 );
614 (
615 );
620 (
621 const NXOpen::Vector3d & translation ,
622 const NXOpen::Matrix3x3 & rotation ,
623 int index
624 );
629 (
630 int index
631 );
635 public: void SetSearchGeometry
636 (
637 bool isTrunOn
638 );
643 (
644 );
649 (
650 const NXString & fileName
651 );
656 (
657 const char * fileName
658 );
663 (
664 );
668 public: std::vector<NXOpen::Assemblies::Component *> GetDesignElement
669 (
670 );
675 (
677 );
682 (
683 );
687 public: void SetEnablePreview
688 (
689 bool isTrunOn
690 );
695 (
696 NXOpen::Part * replaceTemplate
697 );
702 (
703 int index ,
704 NXOpen::Assemblies::Component * replaceComponent
705 );
710 (
711 );
716 (
717 NXOpen::Part * part
718 );
723 (
724 );
729 (
730 NXOpen::Sketch * sketch
731 );
736 (
737 bool createPattern
738 );
743 (
744 );
749 (
750 );
755 (
756 );
760 public: void SetComponentType
761 (
763 );
773 (
774 const NXString & paraName ,
775 const NXString & paraValue
776 );
786 (
787 const char * paraName ,
788 const char * paraValue
789 );
794 (
795 int index
796 );
801 (
802 bool hasCriteria ,
803 const NXString & expStr ,
804 const NXString & addValue
805 );
810 (
811 bool hasCriteria ,
812 const char * expStr ,
813 const char * addValue
814 );
819 (
820 const NXString & expStr ,
821 const NXString & addValue
822 );
827 (
828 const char * expStr ,
829 const char * addValue
830 );
835 (
836 NXOpen::Assemblies::ComponentPatternBuilder * patternComponentBuilderTag
837 );
842 (
843 );
847 public: void UpdatePocketBody
848 (
849 bool createPattern ,
851 );
856 (
857 NXOpen::NXObject * selobj ,
858 const NXOpen::Point3d & inputPosition ,
859 bool centerFace
860 );
865 (
866 const NXString & positionOffSet ,
867 int placementOriginIndex
868 );
873 (
874 const char * positionOffSet ,
875 int placementOriginIndex
876 );
881 (
882 const NXString & positionOffSet
883 );
888 (
889 const char * positionOffSet
890 );
895 (
896 bool updateComponentName
897 );
902 (
903 );
908 (
909 NXOpen::NXObject * selobj ,
910 const NXOpen::Point3d & inputPosition ,
911 bool centerFace
912 );
914
917 public: void DeleteReusableCompIdentity
918 (
920 );
922
925 public: std::vector<NXOpen::Assemblies::Component *> AffirmReusableComponents
926 (
927 );
929
932 public: void UpdateTemplateInfo
933 (
934 NXOpen::Part * replacementPartTag ,
935 NXOpen::Assemblies::Component * replacedPartOcc
936 );
938
941 public: void SetWaveLink
942 (
943 );
947 public: void RenamePart
948 (
949 const NXString & partName
950 );
955 (
956 const char * partName
957 );
962 (
963 bool isStructureDesigner
964 );
968 public: void ReverseDirection
969 (
970 );
975 (
976 );
981 (
982 );
987 (
988 NXOpen::Part * obj
989 );
993 public: void DelayComponents
994 (
995 const std::vector<NXOpen::TaggedObject *> & objs
996 );
1000 public: void PostUpdate
1001 (
1002 );
1007 (
1009 );
1014 (
1015 );
1020 (
1021 );
1026 (
1027 NXOpen::CoordinateSystem * seedCsys
1028 );
1032 public: bool ReselectObject
1033 (
1034 );
1039 (
1040 bool isReselectObject
1041 );
1042 };
1043 }
1044}
1045#ifdef _MSC_VER
1046#pragma warning(pop)
1047#endif
1048#ifdef __GNUC__
1049#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
1050#pragma GCC diagnostic warning "-Wdeprecated-declarations"
1051#endif
1052#endif
1053#undef EXPORTLIBRARY