NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Part.hxx
1//--------------------------------------------------------------------------
2// 2024 Siemens 版权所有
3//--------------------------------------------------------------------------
4// C++ 接口 JA API 的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Part.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/BasePart.hxx>
22#include <NXOpen/ExpressionCollectorSet.hxx>
23#include <NXOpen/ExpressionSectionSet.hxx>
24#include <NXOpen/GeometricUtilities_BlendSetbackBuilder.hxx>
25#include <NXOpen/GeometricUtilities_BoundaryDefinitionBuilder.hxx>
26#include <NXOpen/GeometricUtilities_BoundingObjectBuilder.hxx>
27#include <NXOpen/GeometricUtilities_PointsFromFileBuilder.hxx>
28#include <NXOpen/GeometricUtilities_SelectionList.hxx>
29#include <NXOpen/GeometricUtilities_SpinePlaneBuilder.hxx>
30#include <NXOpen/GeometricUtilities_TransitionCurveBuilder.hxx>
31#include <NXOpen/GeometricUtilities_TwoExpressionsCollectorSet.hxx>
32#include <NXOpen/GeometricUtilities_TwoExpressionsSectionSet.hxx>
33#include <NXOpen/ModlUtils_ImportTemplatePart.hxx>
34#include <NXOpen/ModlUtils_ImportTemplatePartBuilder.hxx>
35#include <NXOpen/BasePart.hxx>
36#include <NXOpen/PartFamilyManager.hxx>
37#include <NXOpen/PartFamilyMemberData.hxx>
38#include <NXOpen/PartFamilyMemberValues.hxx>
39#include <NXOpen/PartFamily_Instance.hxx>
40#include <NXOpen/PartFamily_TemplateManager.hxx>
41#include <NXOpen/PartLoadStatus.hxx>
42#include <NXOpen/ScCollector.hxx>
43#include <NXOpen/Section.hxx>
44#include <NXOpen/libnxopencpp_exports.hxx>
45#ifdef _MSC_VER
46#pragma warning(push)
47#pragma warning(disable:4996)
48#endif
49#ifdef __GNUC__
50#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
51#endif
52namespace NXOpen
53{
54 class Part;
55 namespace Annotations
56 {
58 }
59 namespace Annotations
60 {
61 class GdtCollection;
62 }
63 namespace Annotations
64 {
65 class LabelCollection;
66 }
67 namespace Annotations
68 {
69 class NoteCollection;
70 }
71 namespace Annotations
72 {
73 class PmiManager;
74 }
75 namespace Annotations
76 {
78 }
79 namespace Annotations
80 {
82 }
83 namespace Appearance
84 {
86 }
87 namespace Assemblies
88 {
90 }
91 namespace Assemblies
92 {
93 namespace ProductInterface
94 {
95 class Collection;
96 }
97 }
98namespace Assemblies
99 {
100 class RelinkerCollection;
101 }
102 class BasePart;
103 class Body;
104 class BodyCollection;
105 namespace BodyDes
106 {
108 }
109 namespace CADCAEPrep
110 {
112 }
113 namespace CAM
114 {
115 class CAMSetup;
116 }
117 namespace CAM
118 {
119 class InspectionSetup;
120 }
121 namespace CableRouter
122 {
123 class ObjectManager;
124 }
127 {
128 class CollaborationZoneCollection;
129 }
130 class CutViewCollection;
131 namespace Diagramming
132 {
133 class DiagrammingManager;
134 }
135 namespace Diagramming
136 {
138 }
139 namespace Die
140 {
141 class DieSimCollection;
142 }
144 namespace Drafting
145 {
147 }
148 namespace Drafting
149 {
150 class SettingsManager;
151 }
152 class DraftingManager;
154 namespace Drawings
155 {
157 }
158 namespace Drawings
159 {
161 }
162 namespace Drawings
163 {
165 }
166 namespace Drawings
167 {
168 class PDFPublisherManager;
169 }
170 namespace Drawings
171 {
173 }
174 namespace ElectricalRouting
175 {
176 class CollectionsManager;
177 }
180 namespace Facet
181 {
183 }
186 namespace Features
187 {
188 class EdgeBlend;
189 }
190 namespace Features
191 {
192 class Feature;
193 }
194 namespace Features
195 {
197 }
198namespace Features
199 {
200 namespace ShipDesign
201 {
202 class PenetrationManager;
203 }
204 }
205 namespace Features
206 {
207 namespace Subdivision
208 {
210 }
211 }
212 namespace GCTools
213 {
214 class GCToolsManager;
215 }
216 namespace GeometricUtilities
217 {
219 }
220 namespace GeometricUtilities
221 {
223 }
224 namespace GeometricUtilities
225 {
227 }
228 namespace GeometricUtilities
229 {
231 }
232 namespace GeometricUtilities
233 {
234 class CAMDataPrepManager;
235 }
236 namespace GeometricUtilities
237 {
239 }
240 namespace GeometricUtilities
241 {
242 class FaceSetDataCollection;
243 }
244 namespace GeometricUtilities
245 {
247 }
248 namespace GeometricUtilities
249 {
251 }
252 namespace GeometricUtilities
253 {
254 class LocalUntrimManager;
255 }
256 namespace GeometricUtilities
257 {
258 class OmnicadManager;
259 }
260 namespace GeometricUtilities
261 {
263 }
264 namespace GeometricUtilities
265 {
267 }
268 namespace GeometricUtilities
269 {
271 }
272 namespace GeometricUtilities
273 {
274 class RotationSetBuilder;
275 }
276 namespace GeometricUtilities
277 {
278 class ScalingSetBuilder;
279 }
280 namespace GeometricUtilities
281 {
282 class SelectionList;
283 }
284 namespace GeometricUtilities
285 {
286 class SpinePlaneBuilder;
287 }
288 namespace GeometricUtilities
289 {
291 }
292 namespace GeometricUtilities
293 {
295 }
296 namespace GeometricUtilities
297 {
299 }
300namespace GeometricUtilities
301 {
303 }
304 namespace GeometricUtilities
305 {
307 }
308 namespace GeometricUtilities
309 {
311 }
312 namespace GeometricUtilities
313 {
314 namespace UVMapping
315 {
317 }
318 }
319 namespace GeometricUtilities
320 {
321 class WaveLinkRepository;
322 }
323 class ImportManager;
324 namespace Layout2d
325 {
327 }
328 namespace Layout2d
329 {
331 }
332 namespace Layout2d
333 {
335 }
336 namespace Layout2d
337 {
339 }
340 namespace MechanicalRouting
341 {
342 class CollectionsManager;
343 }
344 namespace Mechatronics
345 {
346 class GanttCollection;
347 }
348 namespace Mechatronics
349 {
351 }
352 namespace Mechatronics
353 {
355 }
356 namespace Mechatronics
357 {
358 class PhysicsManager;
359 }
360 namespace Mechatronics
361 {
363 }
364 namespace Mechatronics
365 {
367 }
368 namespace ModlUtils
369 {
370 class ImportTemplatePart;
371 }
372 namespace ModlUtils
373 {
375 }
376 namespace Motion
377 {
378 class MarkerCollection;
379 }
380 namespace Motion
381 {
382 class MotionManager;
383 }
384 namespace Motion
385 {
387 }
388 class ObjectList;
389 namespace PDM
390 {
392 }
393 namespace PLAS
394 {
395 class PlasManager;
396 }
397 namespace PartFamily
398 {
399 class Instance;
400 }
401namespace PartFamily
402 {
403 class TemplateManager;
404 }
405 class PartFamilyManager;
406 class PartFamilyMemberData;
407 class PartFamilyMemberValues;
408 class PartLoadStatus;
409 class Point;
410 namespace Positioning
411 {
413 }
414 namespace Preferences
415 {
416 class ViewPreferences;
417 }
418 class RegionPoint;
419 namespace Routing
420 {
421 class RouteManager;
422 }
423 namespace Routing
424 {
425 class SegmentManager;
426 }
427 namespace SIM
428 {
430 }
431 class ScCollector;
432 namespace Schematic
433 {
434 namespace Mechanical
435 {
436 class RunCollection;
437 }
438 }
439 namespace Schematic
440 {
441 class SchematicManager;
442 }
443 class Section;
444 class SketchCollection;
446 namespace Sustainability
447 {
449 }
450 namespace Tooling
451 {
453 }
454 namespace Tooling
455 {
456 class CAMDataManager;
457 }
458 namespace Tooling
459 {
460 class ToolingManager;
461 }
463 namespace UserDefinedTemplate
464 {
465 class Collection;
466 }
467 class _PartBuilder;
468 class PartImpl;
473 class NXOPENCPPEXPORT Part : public NXOpen::BasePart
474 {
484
493
497 public: enum NX_DEPRECATED("已在NX9.0.0中过时。请改用NXOpen::PartFamily::FamilyAttribute::AttrType") PartFamilyAttrType
498 {
499 PartFamilyAttrTypeTextType = 1,
500 PartFamilyAttrTypeNumericType,
501 PartFamilyAttrTypeIntegerType,
502 PartFamilyAttrTypeDoubleType,
503 PartFamilyAttrTypeStringType,
504 PartFamilyAttrTypePartType,
505 PartFamilyAttrTypeNameType,
506 PartFamilyAttrTypeInstanceType,
507 PartFamilyAttrTypeExpressionType,
508 PartFamilyAttrTypeMirrorType,
509 PartFamilyAttrTypeDensityType,
510 PartFamilyAttrTypeFeatureType
511 };
512
516 public:
517 struct NX_DEPRECATED("已在NX9.0.0中过时。请改用NXOpen::PartFamily::TemplateManager::AddToChosenAttributes或NXOpen::PartFamily::TemplateManager::GetPartFamilyAttribute") PartFamilyAttributeData
518 {
519 public: NXOpen::Part::PartFamilyAttrType AttributeType;
520 public: NXString AttributeName;
521 public: PartFamilyAttributeData() :
522 AttributeType((NXOpen::Part::PartFamilyAttrType)0),
523 AttributeName()
524{
525 }
527 public: PartFamilyAttributeData(NXOpen::Part::PartFamilyAttrType attributeTypeInitial ,
528 const NXString &attributeNameInitial ) :
529 AttributeType(attributeTypeInitial),
530 AttributeName(attributeNameInitial)
531 {
532 }
533 };
535 public:
536 struct FeatureUpdateStatus
537 {
541 public: FeatureUpdateStatus() :
542 Feature(),
543 Status(),
545 {
546 }
549 const NXString &statusInitial ,
550 const NXString &errorMessageInitial ) :
551 Feature(featureInitial),
552 Status(statusInitial),
553 ErrorMessage(errorMessageInitial)
554 {
555 }
556 };
557
561 public: enum UpdateFromJtFileOptions
562 {
563 UpdateFromJtFileOptionsDefault
564 };
566 private: PartImpl * m_part_impl;
567 private: friend class _PartBuilder;
568 protected: Part();
569 public: ~Part();
573 public: std::vector<NXOpen::Part *> GetInterpartChildren
574 (
575 );
579 public: std::vector<NXOpen::Part *> GetInterpartParents
580 (
581 );
586 (
587 );
591 public: std::vector<NXOpen::Part::FeatureUpdateStatus> GetUpdateStatusReport
592 (
593 int* numFailed
594 );
600 (
601 );
606 (
607 );
612 (
613 );
619 (
620 NXOpen::Section * section ,
621 const NXString & value ,
622 const NXString & unitsType ,
623 int index
624 );
630 (
631 NXOpen::Section * section ,
632 const char * value ,
633 const char * unitsType ,
634 int index
635 );
641 (
642 NXOpen::Section * section ,
643 const NXString & value ,
644 const NXString & valueTwo ,
645 const NXString & unitsType ,
646 int index
647 );
653 (
654 NXOpen::Section * section ,
655 const char * value ,
656 const char * valueTwo ,
657 const char * unitsType ,
658 int index
659 );
665 (
666 );
672 (
673 );
679 (
680 NXOpen::ScCollector * collector ,
681 const NXString & value ,
682 const NXString & unitsType ,
683 int index
684 );
690 (
691 NXOpen::ScCollector * collector ,
692 const char * value ,
693 const char * unitsType ,
694 int index
695 );
701 (
702 NXOpen::ScCollector * collector ,
703 const NXString & value ,
704 const NXString & valueTwo ,
705 const NXString & unitsType ,
706 int index
707 );
713 (
714 NXOpen::ScCollector * collector ,
715 const char * value ,
716 const char * valueTwo ,
717 const char * unitsType ,
718 int index
719 );
725 (
726 );
733 (
734 );
739 (
740 );
745 (
746 const NXString & templateName
747 );
752 (
753 const char * templateName
754 );
758 public: void DeleteCamSetup
759 (
760 );
765 (
766 );
771 (
772 const NXString & templateName
773 );
778 (
779 const char * templateName
780 );
785 (
786 );
791 (
792 NXOpen::Point * point ,
793 NXOpen::Body * body
794 );
799 (
800 );
804 public: bool HasReuseTemplate
805 (
806 );
811 public: NX_DEPRECATED("在NX9.0.0中已过时。 使用NXOpen::PartFamily::TemplateManager::CreatePartFamily代替") NXOpen::PartFamilyManager * CreatePartFamily
812 (
813 const std::vector<NXOpen::Part::PartFamilyAttributeData> & attributeData ,
814 NXOpen::PartFamilyMemberData * memberData
815 );
821 public: NX_DEPRECATED("在NX9.0.0中已过时。 使用NXOpen::Part::NewPartFamilyTemplateManager代替") NXOpen::PartFamilyManager * GetPartFamilyManager
822 (
823 );
829 public: NX_DEPRECATED("Deprecated in NX9.0.0. Create and use NXOpen::PartFamily::InstanceDefinition objects using NXOpen::PartFamily::TemplateManager::AddInstanceDefinition") NXOpen::PartFamilyMemberData * NewPartFamilyMemberData
830 (
831 );
837 public: NX_DEPRECATED("Deprecated in NX9.0.0. Use NXOpen::PartFamily::InstanceDefinition and NXOpen::PartFamily::InstanceDefinition::SetValueOfAttribute") NXOpen::PartFamilyMemberValues * NewPartFamilyMemberValues
838 (
839 );
844 (
845 );
850 (
851 );
855 public: NXOpen::GeometricUtilities::PointSetAlignmentBuilder * CreatePointSetAlignmentBuilder
856 (
857 );
863 (
864 );
869 (
870 );
874 public: NXOpen::GeometricUtilities::BoundingObjectBuilder * CreateBoundingObjectBuilder
875 (
876 );
880 public: bool IsBookletPart
881 (
882 );
887 (
888 );
893 (
894 );
900 (
901 );
906 (
907 );
912 public: NXOpen::GeometricUtilities::PointsFromFileBuilder * CreatePointsFromFileBuilder
913 (
914 );
919 (
920 );
924 public: std::vector<NXOpen::Features::EdgeBlend *> RemoveMissingParentsFromEdgeBlend
925 (
926 std::vector<int> & removedEdgeCounts
927 );
931 public: NXOpen::PartFamily::TemplateManager * NewPartFamilyTemplateManager
932 (
933 );
937 public: NXOpen::PartFamily::Instance * GetFamilyInstance
938 (
939 );
944 (
945 );
950 (
951 );
956 (
957 );
964 (
965 );
969 public: NXOpen::ModlUtils::ImportTemplatePartBuilder * CreateImportTemplatePartBuilder
970 (
971 NXOpen::ModlUtils::ImportTemplatePart * importtemplatePart
972 );
974
977 public: void UpdateFromJtFile
978 (
979 const NXString & jtFilePath ,
980 NXOpen::Part::UpdateFromJtFileOptions updateOption
981 );
985 void UpdateFromJtFile
986 (
987 const char * jtFilePath ,
988 NXOpen::Part::UpdateFromJtFileOptions updateOption
989 );
991
998 (
999 );
1011 public: NXOpen::Annotations::DimensionCollection *Dimensions();
1015 public: NXOpen::Drawings::DraftingViewCollection *DraftingViews();
1019 public: NXOpen::Drawings::DrawingSheetCollection *DrawingSheets();
1023 public: NXOpen::Drawings::DraftingDrawingSheetCollection *DraftingDrawingSheets();
1027 public: NXOpen::Annotations::NoteCollection *Notes();
1031 public: NXOpen::Annotations::LabelCollection *Labels();
1035 public: NXOpen::Annotations::GdtCollection *Gdts();
1039 public: NXOpen::Motion::MarkerCollection *Markers();
1055 public: NXOpen::ElectricalRouting::CollectionsManager *ElectricalRoutingCollectionsManager();
1067 public: NXOpen::GeometricUtilities::FaceSetOffsetCollection *FaceSetOffsets();
1091 public: NXOpen::Assemblies::RelinkerCollection *Relinkers();
1095 public: NXOpen::BodyDes::OnestepUnformCollection *OnestepUnforms();
1099 public: NXOpen::Tooling::AddReusablePartCollection *ReusableParts();
1115 public: NXOpen::Drafting::DraftingApplicationManager *DraftingManager();
1119 public: NXOpen::Assemblies::ComponentGroupCollection *ComponentGroups();
1127 public: NXOpen::Facet::FacetedBodyCollection *FacetedBodies();
1143 public: NXOpen::GeometricUtilities::SpinePointDataCollection *SpinePointData();
1151 public: NXOpen::GeometricUtilities::BlendStopshortBuilderCollection *BlendStopshortBuilder();
1164 public: NXOpen::GeometricUtilities::GeometryLocationDataCollection *GeometryLocationData();
1168 public: NXOpen::Die::DieSimCollection *DieSimData();
1172 public: NXOpen::GeometricUtilities::FacePlaneSelectionBuilderCollection *FacePlaneSelectionBuilderData();
1208 public: NXOpen::Positioning::DisplayedConstraintCollection *DisplayedConstraints();
1212 public: NXOpen::Drawings::ViewAlignmentCollection *ViewAlignments();
1220 public: NXOpen::Features::Subdivision::SubdivisionBodyCollection *SubdivisionBodies();
1224 public: NXOpen::Layout2d::ComponentCollection *Component2dCollection();
1228 public: NXOpen::Layout2d::ComponentDefinitionCollection *ComponentDefinitions();
1232 public: NXOpen::Layout2d::LocalDefinitionFolderCollection *LocalDefinitionFolders();
1236 public: NXOpen::Layout2d::LayoutDrawingSheetCollection *LayoutDrawingSheets();
1240 public: NXOpen::Annotations::ShipDimensionCollection *ShipDimensions();
1250
1253 public: NXOpen::Appearance::AppearanceManager *AppearanceManager();
1255
1258 public: NXOpen::PLAS::PlasManager *PlasManager();
1266 public: NXOpen::PDM::DBEntityProxyCollection *DBEntityProxies();
1293
1296 public: NXOpen::CollaborationApplication::CollaborationZoneCollection *CollaborationZones();
1299
1304
1313
1318
1326 };
1327}
1328#ifdef _MSC_VER
1329#pragma warning(pop)
1330#endif
1331#ifdef __GNUC__
1332#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
1333#pragma GCC diagnostic warning "-Wdeprecated-declarations"
1334#endif
1335#endif
1336#undef EXPORTLIBRARY