NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
FileNew.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口的JA API头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// FileNew.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/FileNewTemplate.hxx>
22#include <NXOpen/Builder.hxx>
23#include <NXOpen/Part.hxx>
24#include <NXOpen/PartTypes.hxx>
25#include <NXOpen/libnxopencpp_exports.hxx>
26#ifdef _MSC_VER
27#pragma warning(push)
28#pragma warning(disable:4996)
29#endif
30#ifdef __GNUC__
31#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
32#endif
33namespace NXOpen
34{
35 class FileNew;
36 class Builder;
37 namespace CloudDM
38 {
39 class NewPartBuilder;
40 }
41 class FileNewTemplate;
42 namespace PDM
43 {
44 class PartOperationBuilder;
45 }
50 enum NX_DEPRECATED("已在NX9.0.0中弃用。使用返回所有应用程序名称的NXOpen::FileNew::GetApplicationNames。") FileNewApplication
51 {
52 FileNewApplicationDrafting,
53 FileNewApplicationModeling,
54 FileNewApplicationStudio,
55 FileNewApplicationAssemblies,
56 FileNewApplicationGateway,
57 FileNewApplicationRoutingElectrical,
58 FileNewApplicationRoutingMechanical,
59 FileNewApplicationRoutingLogical,
60 FileNewApplicationNxsheetmetal,
61 FileNewApplicationSheetTemplate,
62 FileNewApplicationCaeFem,
63 FileNewApplicationCaeSim,
64 FileNewApplicationAeroSheetmetal,
65 FileNewApplicationFlexPcdSheetmetal,
66 FileNewApplicationCaeAssyFem,
67 FileNewApplicationCam,
68 FileNewApplicationInspection,
69 FileNewApplicationMechatronics,
70 FileNewApplicationShipContainer,
71 FileNewApplicationShipDetail,
72 FileNewApplicationShipReference,
73 FileNewApplicationShipSystem,
74 FileNewApplicationWelding,
75 FileNewApplicationWeldingJoint,
76 FileNewApplicationNxle,
77 FileNewApplicationShipGaAssembly,
78 FileNewApplicationShipGaSystem,
79 FileNewApplicationAecSystem,
80 FileNewApplicationCaeIdeal,
81 FileNewApplicationLast
82 };
83
100 class _FileNewBuilder;
101 class FileNewImpl;
107 class NXOPENCPPEXPORT FileNew : public NXOpen::Builder
108 {
109 private: FileNewImpl * m_filenew_impl;
110 private: friend class _FileNewBuilder;
111 protected: FileNew();
112public: ~FileNew();
117 (
118 );
122 public: void SetNewFileName
123 (
124 const NXString & fileName
125 );
130 (
131 const char * fileName
132 );
137 (
138 );
143 (
144 const NXString & templateFileName
145 );
150 (
151 const char * templateFileName
152 );
157 (
158 );
162 public: void SetMasterFileName
163 (
164 const NXString & masterFileName
165 );
170 (
171 const char * masterFileName
172 );
177 (
178 );
182 public: void SetUnits
183 (
185 );
190 public: NX_DEPRECATED("Deprecated in NX9.0.0. Use NXOpen::FileNew::ApplicationName that takes a string name instead.") NXOpen::FileNewApplication Application
191 (
192 );
197 public: NX_DEPRECATED("Deprecated in NX9.0.0. Use NXOpen::FileNew::SetApplicationName that takes a string name instead.") void SetApplication
198 (
199 NXOpen::FileNewApplication application
200 );
206 (
207 );
213 (
214 const NXString & application
215 );
221 (
222 const char * application
223 );
229 public: bool UseBlankTemplate
230 (
231 );
238 (
239 bool useBlankTemplate
240 );
244 public: bool MakeDisplayedPart
245 (
246 );
251 (
252 bool makeDisplayedPart
253 );
257 public: std::vector<NXString> GetAvailableTemplates
258 (
259 );
264 public: NX_DEPRECATED("在 NX10.0.0 中已过时。 使用 NXOpen::Session::AssignRemoveProjects 分配/移除项目。") void SetProjectsData
265 (
266 std::vector<NXString> & projectName ,
267 const std::vector<int> & assignmentState
268 );
273 public: NX_DEPRECATED("在 NX10.0.0 中已过时。 使用 NXOpen::PDM::PartOperationCreateBuilder::GetAddMaster 获取 addMaster 标志。") bool GetAddMasterFlag
274 (
275 );
280 public: NX_DEPRECATED("在 NX10.0.0 中已过时。 使用 NXOpen::PDM::PartOperationCreateBuilder::SetAddMaster 设置 addMaster 标志。") void SetAddMasterFlag
281 (
282 bool addMaster
283 );
288 (
289 );
293 public: void SetTemplateType
294 (
295 NXOpen::FileNewTemplateType templateType
296 );
301 (
302 );
306 public: void SetItemType
307 (
308 const NXString & itemType
309 );
314 (
315 const char * itemType
316 );
321 (
322 );
327 (
328 const NXString & deType
329 );
334 (
335 const char * deType
336 );
341 (
342 );
347 (
348 const NXString & deState
349 );
354 (
355 const char * deState
356 );
361 (
362 );
366 public: void SetSpecialization
367 (
368 const NXString & specialization
369 );
374 (
375 const char * specialization
376 );
381 (
382 );
387 (
388 const NXString & presentationName
389 );
394 (
395 const char * presentationName
396 );
402 (
403 );
408 public: void SetRelationType
409 (
410 const NXString & relationType
411 );
417 (
418 const char * relationType
419 );
425 (
426 );
432 (
433 const NXString & usesMasterModel
434 );
440 (
441 const char * usesMasterModel
442 );
447 public: std::vector<NXString> GetApplicationNames
448 (
449 );
454 (
455 NXOpen::PDM::PartOperationBuilder * partOperationBuilder
456 );
462 (
463 bool createAltrep
464 );
470 (
471 );
477 (
478 );
484 (
485 NXOpen::DisplayPartOption displayPartOption
486 );
490 public: std::vector<NXOpen::FileNewTemplate *> GetTemplates
491 (
492 );
500 (
501 NXOpen::FileNewApplication application ,
502 NXOpen::Part::Units units
503 );
505
508 public: void SetCloudDMNewPartBuilder
509 (
510 NXOpen::CloudDM::NewPartBuilder * cloudDMNewPartBuilder
511 );
514
517 public: void AutoAssignCloudAttributes
518 (
519 );
521
527 (
528 bool allowTemplatePostPartCreationAction
529 );
530 };
531}
532#ifdef _MSC_VER
533#pragma warning(pop)
534#endif
535#ifdef __GNUC__
536#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
537#pragma GCC diagnostic warning "-Wdeprecated-declarations"
538#endif
539#endif
540#undef EXPORTLIBRARY