NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
AttributePropertiesBaseBuilder.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++ 接口访问 JA API 的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// AttributePropertiesBaseBuilder.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/DateBuilder.hxx>
22#include <NXOpen/DateItemBuilder.hxx>
23#include <NXOpen/Builder.hxx>
24#include <NXOpen/SelectObjectList.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{
36 class Builder;
37 class DateBuilder;
38 class DateItemBuilder;
39 class Expression;
40 class NXObject;
42 class _AttributePropertiesBaseBuilderBuilder;
43 class AttributePropertiesBaseBuilderImpl;
55 class NXOPENCPPEXPORT AttributePropertiesBaseBuilder : public NXOpen::Builder
56 {
61 public: enum NX_DEPRECATED("Deprecated in NX8.5.0. Use NXOpen::AttributePropertiesBaseBuilder::SetAttributeObjects instead.") ObjectOptions
62 {
63 ObjectOptionsObject,
64 ObjectOptionsFeature,
65 ObjectOptionsOccurrence,
66 ObjectOptionsComponentInstance,
68 ObjectOptionsReferenceSet,
69 ObjectOptionsObjectInComponentPart,
70 ObjectOptionsComponentAsPartAttribute,
71 ObjectOptionsEmpty
72 };
73
83
89 private: AttributePropertiesBaseBuilderImpl * m_attributepropertiesbasebuilder_impl;
90 private: friend class _AttributePropertiesBaseBuilderBuilder;
97 (
98 );
103 public: NX_DEPRECATED("Deprecated in NX10.0.0. Use NXOpen::AttributePropertiesBaseBuilder::SetAttributeObjects instead.") NXOpen::AttributePropertiesBaseBuilder::ObjectOptions ObjectPicker
104 (
105 );
110 public: NX_DEPRECATED("Deprecated in NX10.0.0. Use NXOpen::AttributePropertiesBaseBuilder::SetAttributeObjects instead.") void SetObjectPicker
111 (
112 NXOpen::AttributePropertiesBaseBuilder::ObjectOptions objectPicker
113 );
118 (
119 );
123 public: void SetCategory
124 (
125 const NXString & category
126 );
131 (
132 const char * category
133 );
138 (
139 );
143 public: void SetTitle
144 (
145 const NXString & title
146 );
151 (
152 const char * title
153 );
157 public: NXOpen::AttributePropertiesBaseBuilder::DataTypeOptions DataType
158 (
159 );
163 public: void SetDataType
164 (
165 NXOpen::AttributePropertiesBaseBuilder::DataTypeOptions dataType
166 );
171 (
172 );
176 public: void SetUnits
177 (
178 const NXString & units
179 );
184 (
185 const char * units
186 );
191 (
192 );
196 public: void SetStringValue
197 (
198 const NXString & stringValue
199 );
204 (
205 const char * stringValue
206 );
211 (
212 );
216 public: void SetValueAlias
217 (
218 const NXString & valueAlias
219 );
224 (
225 const char * valueAlias
226 );
230 public: int IntegerValue
231 (
232 );
236 public: void SetIntegerValue
237 (
238 int integerValue
239 );
243 public: double NumberValue
244 (
245 );
249 public: void SetNumberValue
250 (
251 double numberValue
252 );
256 public: NXOpen::AttributePropertiesBaseBuilder::BooleanValueOptions BooleanValue
257 (
258 );
262 public: void SetBooleanValue
263 (
264 NXOpen::AttributePropertiesBaseBuilder::BooleanValueOptions boolValue
265 );
270 (
271 );
276 (
277 );
281 public: void SetExpression
282 (
283 NXOpen::Expression * expression
284 );
289 public: bool IsReferenceType
290 (
291 );
296 public: void SetReferenceType
297 (
298 bool isReferenceType
299 );
303 public: bool LockOnSave
304 (
305 );
309 public: void SetLockOnSave
310 (
311 bool lockOnSave
312 );
316 public: bool IsArray
317 (
318 );
322 public: void SetArray
323 (
324 bool isArray
325 );
329 public: int ArrayIndex
330 (
331 );
335 public: void SetArrayIndex
336 (
337 int arrayIndex
338 );
342 public: void Delete
343 (
344 NXOpen::NXObject * object
345 );
349 public: void DeleteArray
350 (
351 NXOpen::NXObject * object
352 );
356 public: bool CreateAttribute
357 (
358 );
363 public: bool ApplyUnits
364 (
365 );
370 (
371 const std::vector<NXOpen::NXObject *> & objects
372 );
377 (
378 std::vector<NXString> & values
379 );
384 (
385 std::vector<double> & values
386 );
391 (
392 std::vector<int> & values
393 );
398 (
399 std::vector<NXOpen::DateItemBuilder *> & values
400 );
401 };
402}
403#ifdef _MSC_VER
404#pragma warning(pop)
405#endif
406#ifdef __GNUC__
407#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
408#pragma GCC diagnostic warning "-Wdeprecated-declarations"
409#endif
410#endif
411#undef EXPORTLIBRARY