Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdDbBlockRepresentationContext.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 OdDbBlockRepresentationContext(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbBlockRepresentationContext_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDbBlockRepresentationContext 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 void init(OdDbDynBlockReference ref_, OdDbBlockReference dbref, OdDbEvalGraph gr, bool bRequireEvaluate, bool loadIndstanceData) {
46 }
47
52
57
58 public void loadInstanceData(bool bRequireEvaluate, bool noHistoryData) {
59 TD_DbPINVOKE.OdDbBlockRepresentationContext_loadInstanceData__SWIG_0(swigCPtr, bRequireEvaluate, noHistoryData);
61 }
62
67
72
77
83
89
94
99
104
109
114
115 public OdDbXrecord getHistoryRecord() {// OdDbXrecordPtr
116 MemoryManager mMan = MemoryManager.GetMemoryManager();
117 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
119
120 OdDbXrecord ret = null;
121 if (null != mTrans)
122 {
123 mTrans.AddObject((OdDbXrecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbXrecord),ptr, true));
124 ret = (OdDbXrecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbXrecord),ptr, false);
125 }
126 else
127 {
128 ret = (OdDbXrecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbXrecord),ptr, true);
129 }
130
132 return ret;
133}
134
140
145
151
157
158 public OdDbEvalExpr getRepresentationNode(UInt32 id) {// OdDbEvalExprPtr
159 MemoryManager mMan = MemoryManager.GetMemoryManager();
160 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
161 IntPtr ptr = TD_DbPINVOKE.OdDbBlockRepresentationContext_getRepresentationNode(swigCPtr, id /*SIMPLETYPE*/);
162
163 OdDbEvalExpr ret = null;
164 if (null != mTrans)
165 {
166 mTrans.AddObject((OdDbEvalExpr)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEvalExpr),ptr, true));
167 ret = (OdDbEvalExpr)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEvalExpr),ptr, false);
168 }
169 else
170 {
171 ret = (OdDbEvalExpr)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEvalExpr),ptr, true);
172 }
173
175 return ret;
176}
177
178 public OdDbBlockReference getReference() {// OdDbBlockReferencePtr
179 MemoryManager mMan = MemoryManager.GetMemoryManager();
180 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
182
183 OdDbBlockReference ret = null;
184 if (null != mTrans)
185 {
186 mTrans.AddObject((OdDbBlockReference)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbBlockReference),ptr, true));
187 ret = (OdDbBlockReference)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbBlockReference),ptr, false);
188 }
189 else
190 {
191 ret = (OdDbBlockReference)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbBlockReference),ptr, true);
192 }
193
195 return ret;
196}
197
198 public OdDbEvalGraph getGraph() {// OdDbEvalGraphPtr
199 MemoryManager mMan = MemoryManager.GetMemoryManager();
200 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
202
203 OdDbEvalGraph ret = null;
204 if (null != mTrans)
205 {
206 mTrans.AddObject((OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEvalGraph),ptr, true));
207 ret = (OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEvalGraph),ptr, false);
208 }
209 else
210 {
211 ret = (OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEvalGraph),ptr, true);
212 }
213
215 return ret;
216}
217
218 public OdDbBlockTableRecord getBlock() {// OdDbBlockTableRecordPtr
219 MemoryManager mMan = MemoryManager.GetMemoryManager();
220 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
222
223 OdDbBlockTableRecord ret = null;
224 if (null != mTrans)
225 {
226 mTrans.AddObject((OdDbBlockTableRecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbBlockTableRecord),ptr, true));
227 ret = (OdDbBlockTableRecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbBlockTableRecord),ptr, false);
228 }
229 else
230 {
231 ret = (OdDbBlockTableRecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbBlockTableRecord),ptr, true);
232 }
233
235 return ret;
236}
237
242
247
254
261
262 public OdDbAttribute getAttribute(OdDbAttributeDefinition arg0) {// OdDbAttributePtr
263 MemoryManager mMan = MemoryManager.GetMemoryManager();
264 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
266
267 OdDbAttribute ret = null;
268 if (null != mTrans)
269 {
270 mTrans.AddObject((OdDbAttribute)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbAttribute),ptr, true));
271 ret = (OdDbAttribute)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbAttribute),ptr, false);
272 }
273 else
274 {
275 ret = (OdDbAttribute)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbAttribute),ptr, true);
276 }
277
279 return ret;
280}
281
287
293
299
304
310
316
317 protected static string getRealClassName(IntPtr ptr) {
318 string ret = TD_DbPINVOKE.OdDbBlockRepresentationContext_getRealClassName(ptr /*SIMPLETYPE*/);
320 return ret;
321 }
322
323}
324
325}
static HandleRef getCPtr(OdDbHandle obj)
Definition OdDbHandle.cs:26
static HandleRef getCPtr(OdGeMatrix3d obj)
static HandleRef getCPtr(OdGeVector3d obj)
static HandleRef getCPtr(OdDbAttributeDefinition obj)
static HandleRef getCPtr(OdDbBlockReference obj)
static OdDbBlockRepresentationContext getRepresentationContext(OdDbBlockReference br, bool validate)
void init(OdDbDynBlockReference ref_, OdDbBlockReference dbref, OdDbEvalGraph gr, bool bRequireEvaluate, bool loadIndstanceData)
static HandleRef getCPtr(OdDbBlockRepresentationContext obj)
void init(OdDbDynBlockReference ref_, OdDbBlockReference dbref, OdDbEvalGraph gr)
static OdDbBlockRepresentationContext getRepresentationContext(OdDbBlockReference br)
static void clearRepBlock(OdDbBlockTableRecord repRTR)
void loadInstanceData(bool bRequireEvaluate, bool noHistoryData)
void init(OdDbDynBlockReference ref_, OdDbBlockReference dbref, OdDbEvalGraph gr, bool bRequireEvaluate)
static void tagBlockRecord(OdDbBlockTableRecord repBTR, OdDbHandle originalBlockHandle)
bool originalPathToRepresentationPath(OdDbObjectIdArray arg0, OdDbEntityPtrArray res)
OdDbAttribute getAttribute(OdDbAttributeDefinition arg0)
void readUndo(OdDbObjectId refId, OdDbDwgFiler pFiler)
void addHistoryRecord(String name, OdResBuf value, UInt32 node)
static HandleRef getCPtr(OdDbBlockTableRecord obj)
static HandleRef getCPtr(OdDbDwgFiler obj)
static HandleRef getCPtr(OdDbDynBlockReference obj)
static HandleRef getCPtr(OdDbEntityPtrArray obj)
static HandleRef getCPtr(OdDbEvalGraph obj)
static HandleRef getCPtr(OdDbObjectIdArray obj)
static HandleRef getCPtr(OdDbObjectId obj)
static HandleRef getCPtr(OdResBuf obj)
Definition OdResBuf.cs:26
static global::System.Exception Retrieve()
static void OdDbBlockRepresentationContext_init__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, bool jarg5, bool jarg6)
static IntPtr OdDbBlockRepresentationContext_getRepresentationContext__SWIG_0(HandleRef jarg1, bool jarg2)
static global::System.IntPtr OdDbBlockRepresentationContext_getBlockHData(HandleRef jarg1)
static void OdDbBlockRepresentationContext_writeUndo(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDbBlockRepresentationContext_getHistoryRecord(HandleRef jarg1)
static global::System.IntPtr OdDbBlockRepresentationContext_getRepresentation(HandleRef jarg1)
static IntPtr OdDbBlockRepresentationContext_getRepresentationNode(HandleRef jarg1, UInt32 jarg2)
static void OdDbBlockRepresentationContext_addHistoryRecord(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, HandleRef jarg3, UInt32 jarg4)
static void OdDbBlockRepresentationContext_createRepresentation__SWIG_1(HandleRef jarg1)
static void OdDbBlockRepresentationContext_loadInstanceData__SWIG_0(HandleRef jarg1, bool jarg2, bool jarg3)
static void delete_OdDbBlockRepresentationContext(HandleRef jarg1)
static IntPtr OdDbBlockRepresentationContext_getBlock(HandleRef jarg1)
static bool OdDbBlockRepresentationContext_originalPathToRepresentationPath(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdDbBlockRepresentationContext_loadInstanceData__SWIG_1(HandleRef jarg1, bool jarg2)
static IntPtr OdDbBlockRepresentationContext_getReference(HandleRef jarg1)
static void OdDbBlockRepresentationContext_tagBlockRecord(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbBlockRepresentationContext_updateRepresentation(HandleRef jarg1)
static global::System.IntPtr OdDbBlockRepresentationContext_getRelativeMatrix(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdDbBlockRepresentationContext_getBlockData(HandleRef jarg1)
static IntPtr OdDbBlockRepresentationContext_getAttribute(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDbBlockRepresentationContext_getGraph(HandleRef jarg1)
static bool OdDbBlockRepresentationContext_blockUpdateMode(HandleRef jarg1)
static void OdDbBlockRepresentationContext_compactRepresentation(HandleRef jarg1)
static bool OdDbBlockRepresentationContext_applyHistory(HandleRef jarg1, HandleRef jarg2)
static global::System.IntPtr OdDbBlockRepresentationContext_getRelativeOffset(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdDbBlockRepresentationContext_representationPathToOriginalPath(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbBlockRepresentationContext_init__SWIG_2(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef jarg3, HandleRef jarg4)
static void OdDbBlockRepresentationContext_clearRepBlock(HandleRef jarg1)
static void OdDbBlockRepresentationContext_createRepresentation__SWIG_0(HandleRef jarg1, bool jarg2)
static global::System.IntPtr OdDbBlockRepresentationContext_getOriginal(HandleRef jarg1)
static string OdDbBlockRepresentationContext_getRealClassName(IntPtr jarg1)
static void OdDbBlockRepresentationContext_readUndo(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef jarg3)
static void OdDbBlockRepresentationContext_loadInstanceData__SWIG_2(HandleRef jarg1)
static void OdDbBlockRepresentationContext_setBlockUpdateMode(HandleRef jarg1, bool jarg2)
static void OdDbBlockRepresentationContext_init__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, bool jarg5)
static IntPtr OdDbBlockRepresentationContext_getRepresentationContext__SWIG_1(HandleRef jarg1)