Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdDbAttributeDefinition.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace Teigha.TD {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDbAttributeDefinition(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbAttributeDefinition_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDbAttributeDefinition obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 protected override void Dispose(bool disposing) {
31 lock(this) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 if (swigCMemOwn) {
34 swigCMemOwn = false;
36 }
37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 }
39 base.Dispose(disposing);
40 }
41 }
42
43 public static OdDbAttributeDefinition cast(OdRxObject pObj) {// OdSmartPtr<OdDbAttributeDefinition>
44 MemoryManager mMan = MemoryManager.GetMemoryManager();
45 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
47
48 OdDbAttributeDefinition ret = null;
49 if (null != mTrans)
50 {
51 mTrans.AddObject((OdDbAttributeDefinition)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbAttributeDefinition),ptr, true));
52 ret = (OdDbAttributeDefinition)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbAttributeDefinition),ptr, false);
53 }
54 else
55 {
56 ret = (OdDbAttributeDefinition)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbAttributeDefinition),ptr, true);
57 }
58
60 return ret;
61}
62
63 public new static OdRxClass desc() {
64 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdDbAttributeDefinition_desc(),false); /*createInt 3_2*/
65
67 return ret;
68}
69
70 public override OdRxClass isA() {
71 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdDbAttributeDefinition_isA(swigCPtr),false); /*createInt 3_2*/
72
74 return ret;
75}
76
77 public override OdRxObject queryX(OdRxClass protocolClass) {
78 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),TD_DbPINVOKE.OdDbAttributeDefinition_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public new static OdDbAttributeDefinition createObject() {// OdSmartPtr<OdDbAttributeDefinition>
85 MemoryManager mMan = MemoryManager.GetMemoryManager();
86 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
88
89 OdDbAttributeDefinition ret = null;
90 if (null != mTrans)
91 {
92 mTrans.AddObject((OdDbAttributeDefinition)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbAttributeDefinition),ptr, true));
93 ret = (OdDbAttributeDefinition)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbAttributeDefinition),ptr, false);
94 }
95 else
96 {
97 ret = (OdDbAttributeDefinition)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbAttributeDefinition),ptr, true);
98 }
99
101 return ret;
102}
103
109
114
115 public String tag() {
116 string ret = TD_DbPINVOKE.OdDbAttributeDefinition_tag(swigCPtr);
118 return ret;
119}
120
125
131
136
137 public virtual bool isConstant() {
140 return ret;
141 }
142
147
153
158
159 public bool isPreset() {
162 return ret;
163 }
164
169
170 public UInt16 fieldLength() {
171// test csout
172 /*SIMPLETYPE*/
175 return ret;
176 }
177
182
183 public override OdResult subGetClassID(IntPtr pClsid) {
184 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbAttributeDefinition_subGetClassID(swigCPtr, pClsid /*SIMPLETYPE*/);
186 return ret;
187 }
188
194
199
205
210
216
221
227
232
233 public override UInt32 subSetAttributes(OdGiDrawableTraits pTraits) {
234// test csout
235 /*SIMPLETYPE*/
238 return ret;
239 }
240
245
251
256
262
263 public OdDbMText getMTextAttributeDefinition() {// OdDbMTextPtr
264 MemoryManager mMan = MemoryManager.GetMemoryManager();
265 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
267
268 OdDbMText ret = null;
269 if (null != mTrans)
270 {
271 mTrans.AddObject((OdDbMText)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbMText),ptr, true));
272 ret = (OdDbMText)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbMText),ptr, false);
273 }
274 else
275 {
276 ret = (OdDbMText)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbMText),ptr, true);
277 }
278
280 return ret;
281}
282
287
292
297
302
307
308 protected static string getRealClassName(IntPtr ptr) {
309 string ret = TD_DbPINVOKE.OdDbAttributeDefinition_getRealClassName(ptr /*SIMPLETYPE*/);
311 return ret;
312 }
313
318 public Teigha.Core.OdGePoint3d vb_position() { return this.position(); }
319
324 public void vb_gripStatus(Teigha.Core.GripStat status) { this.gripStatus(status); }
325
331
336 public double vb_height() { return this.height(); }
337
342 public double vb_rotation() { return this.rotation(); }
343
348 public string vb_material() { return this.material(); }
349
354 public virtual Teigha.TD.CollisionType vb_collisionType() { return this.collisionType(); }
355
360 public string vb_linetype() { return this.linetype(); }
361
367
373
374}
375
376}
virtual OdGiDrawable.DrawableType drawableType()
static HandleRef getCPtr(OdGiDrawableTraits obj)
static HandleRef getCPtr(OdGiViewportDraw obj)
static HandleRef getCPtr(OdGiWorldDraw obj)
static HandleRef getCPtr(OdRxClass obj)
Definition OdRxClass.cs:25
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
Definition OdRxObject.cs:21
static HandleRef getCPtr(OdRxObject obj)
Definition OdRxObject.cs:26
override void Dispose(bool disposing)
void vb_gripStatus(Teigha.Core.GripStat status)
virtual Teigha.Core.OdGiDrawable.DrawableType vb_drawableType()
virtual Teigha.TD.CollisionType vb_collisionType()
override void subViewportDraw(OdGiViewportDraw pVd)
override void dxfOutFields_R12(OdDbDxfFiler pFiler)
override OdResult dxfInFields(OdDbDxfFiler pFiler)
static HandleRef getCPtr(OdDbAttributeDefinition obj)
override void appendToOwner(OdDbIdPair Idpair, OdDbObject pOwnerObject, OdDbIdMapping ownerIdMap)
override OdResult dxfInFields_R12(OdDbDxfFiler pFiler)
override OdResult dwgInFields(OdDbDwgFiler pFiler)
override void dwgOutFields(OdDbDwgFiler pFiler)
static OdDbAttributeDefinition cast(OdRxObject pObj)
override OdResult subGetClassID(IntPtr pClsid)
override UInt32 subSetAttributes(OdGiDrawableTraits pTraits)
OdDbAttributeDefinition(IntPtr cPtr, bool cMemoryOwn)
override void dxfOutFields(OdDbDxfFiler pFiler)
static new OdDbAttributeDefinition createObject()
override OdRxObject queryX(OdRxClass protocolClass)
override bool subWorldDraw(OdGiWorldDraw pWd)
static HandleRef getCPtr(OdDbDwgFiler obj)
static HandleRef getCPtr(OdDbDxfFiler obj)
LineWeight lineWeight()
virtual CollisionType collisionType()
virtual void gripStatus(GripStat status)
Visibility visibility()
static HandleRef getCPtr(OdDbIdMapping obj)
static HandleRef getCPtr(OdDbIdPair obj)
Definition OdDbIdPair.cs:27
static HandleRef getCPtr(OdDbMText obj)
Definition OdDbMText.cs:26
static HandleRef getCPtr(OdDbObject obj)
Definition OdDbObject.cs:26
double rotation()
Definition OdDbText.cs:177
OdGePoint3d position()
Definition OdDbText.cs:104
static global::System.Exception Retrieve()
static bool OdDbAttributeDefinition_isPreset(HandleRef jarg1)
static IntPtr OdDbAttributeDefinition_queryX(HandleRef jarg1, HandleRef jarg2)
static bool OdDbAttributeDefinition_lockPositionInBlock(HandleRef jarg1)
static void OdDbAttributeDefinition_setTag(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void OdDbAttributeDefinition_dxfOutFields(HandleRef jarg1, HandleRef jarg2)
static String OdDbAttributeDefinition_prompt(HandleRef jarg1)
static UInt32 OdDbAttributeDefinition_subSetAttributes(HandleRef jarg1, HandleRef jarg2)
static void OdDbAttributeDefinition_convertIntoMTextAttributeDefinition__SWIG_1(HandleRef jarg1)
static void OdDbAttributeDefinition_updateMTextAttributeDefinition(HandleRef jarg1)
static bool OdDbAttributeDefinition_isVerifiable(HandleRef jarg1)
static void OdDbAttributeDefinition_setVerifiable(HandleRef jarg1, bool jarg2)
static IntPtr OdDbAttributeDefinition_isA(HandleRef jarg1)
static void delete_OdDbAttributeDefinition(HandleRef jarg1)
static void OdDbAttributeDefinition_setPreset(HandleRef jarg1, bool jarg2)
static bool OdDbAttributeDefinition_isInvisible(HandleRef jarg1)
static void OdDbAttributeDefinition_setLockPositionInBlock(HandleRef jarg1, bool jarg2)
static IntPtr OdDbAttributeDefinition_createObject()
static int OdDbAttributeDefinition_dxfInFields(HandleRef jarg1, HandleRef jarg2)
static bool OdDbAttributeDefinition_isConstant(HandleRef jarg1)
static void OdDbAttributeDefinition_appendToOwner(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef jarg3, HandleRef jarg4)
static int OdDbAttributeDefinition_dwgInFields(HandleRef jarg1, HandleRef jarg2)
static void OdDbAttributeDefinition_setFieldLength(HandleRef jarg1, UInt16 jarg2)
static int OdDbAttributeDefinition_dxfInFields_R12(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDbAttributeDefinition_cast(HandleRef jarg1)
static String OdDbAttributeDefinition_tag(HandleRef jarg1)
static void OdDbAttributeDefinition_setConstant(HandleRef jarg1, bool jarg2)
static UInt16 OdDbAttributeDefinition_fieldLength(HandleRef jarg1)
static IntPtr OdDbAttributeDefinition_getMTextAttributeDefinition(HandleRef jarg1)
static void OdDbAttributeDefinition_setInvisible(HandleRef jarg1, bool jarg2)
static void OdDbAttributeDefinition_dwgOutFields(HandleRef jarg1, HandleRef jarg2)
static void OdDbAttributeDefinition_dxfOutFields_R12(HandleRef jarg1, HandleRef jarg2)
static string OdDbAttributeDefinition_getRealClassName(IntPtr jarg1)
static IntPtr OdDbAttributeDefinition_desc()
static void OdDbAttributeDefinition_setMTextAttributeDefinition(HandleRef jarg1, HandleRef jarg2)
static void OdDbAttributeDefinition_convertIntoMTextAttributeDefinition__SWIG_0(HandleRef jarg1, bool jarg2)
static bool OdDbAttributeDefinition_subWorldDraw(HandleRef jarg1, HandleRef jarg2)
static void OdDbAttributeDefinition_subClose(HandleRef jarg1)
static void OdDbAttributeDefinition_subViewportDraw(HandleRef jarg1, HandleRef jarg2)
static void OdDbAttributeDefinition_setPrompt(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static bool OdDbAttributeDefinition_isMTextAttributeDefinition(HandleRef jarg1)
static int OdDbAttributeDefinition_subGetClassID(HandleRef jarg1, IntPtr jarg2)