Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdTraceRuntime.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
17public class OdTraceRuntime : global::System.IDisposable {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 protected bool swigCMemOwn;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public OdTraceRuntime(IntPtr cPtr, bool cMemoryOwn) {
23 swigCMemOwn = cMemoryOwn;
24 swigCPtr = new HandleRef(this, cPtr);
25 }
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(OdTraceRuntime obj) {
28 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29 }
30
32 Dispose(false);
33 }
34
35 public void Dispose() {
36 Dispose(true);
37 global::System.GC.SuppressFinalize(this);
38 }
39
40 protected virtual void Dispose(bool disposing) {
41 lock(this) {
42 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
43 if (swigCMemOwn) {
44 swigCMemOwn = false;
46 }
47 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
48 }
49 }
50 }
51
52 public OdResult appendDwgAsTrace(String sPath2DwgFileAsTrace, ref string traceName) {
53IntPtr tmp_traceName = Marshal.StringToCoTaskMemUni(traceName);
54 IntPtr saved_traceName = tmp_traceName;
55 try {
56 OdResult ret = (OdResult)TD_DbPINVOKE.OdTraceRuntime_appendDwgAsTrace__SWIG_0(swigCPtr, sPath2DwgFileAsTrace, ref tmp_traceName);
58 return ret;
59 } finally {
60if (tmp_traceName != saved_traceName) traceName = Marshal.PtrToStringUni(tmp_traceName);
61 }
62 }
63
64 public OdResult appendDwgAsTrace(OdDbDatabase pDbTrace, ref string traceName) {
65IntPtr tmp_traceName = Marshal.StringToCoTaskMemUni(traceName);
66 IntPtr saved_traceName = tmp_traceName;
67 try {
70 return ret;
71 } finally {
72if (tmp_traceName != saved_traceName) traceName = Marshal.PtrToStringUni(tmp_traceName);
73 }
74 }
75
81
87
93
99
105
111
117
123
129
135
141
147
148 public bool isObjectFromTrace(OdDbObject pSubject) {
149 bool ret = TD_DbPINVOKE.OdTraceRuntime_isObjectFromTrace(swigCPtr, OdDbObject.getCPtr(pSubject));
151 return ret;
152 }
153
159
165
171
172 public static OdTraceRuntime getInstance(OdDbDatabase pDb, bool bCreateIfNotFound) {
173 global::System.IntPtr cPtr = TD_DbPINVOKE.OdTraceRuntime_getInstance__SWIG_0(OdDbDatabase.getCPtr(pDb), bCreateIfNotFound);
174 OdTraceRuntime ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdTraceRuntime(cPtr, false);
176 return ret;
177 }
178
180 global::System.IntPtr cPtr = TD_DbPINVOKE.OdTraceRuntime_getInstance__SWIG_1(OdDbDatabase.getCPtr(pDb));
181 OdTraceRuntime ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdTraceRuntime(cPtr, false);
183 return ret;
184 }
185
191
192}
193
194}
static HandleRef getCPtr(OdGeExtents3d obj)
static HandleRef getCPtr(OdDbDatabase obj)
static HandleRef getCPtr(OdDbObject obj)
Definition OdDbObject.cs:26
static HandleRef getCPtr(OdTraceCollaborator obj)
OdResult getOpenTraceCollaborators(SWIGTYPE_p_OdArrayT_OdTraceCollaborator_t traceCollaborators)
OdResult getTracesUserInfo(SWIGTYPE_p_OdArrayT_OdTraceUserInfo_t userInfoArr)
OdResult showOpenTraceCollaborators(SWIGTYPE_p_OdArrayT_OdTraceCollaborator_t traceCollaborators)
OdResult openTrace(OdTraceUserInfo traceInfo)
static OdTraceRuntime getInstance(OdDbDatabase pDb)
OdResult getOpenTraceExtents(OdGeExtents3d arg0)
OdResult appendDwgAsTrace(String sPath2DwgFileAsTrace, ref string traceName)
OdResult renameTrace(OdTraceUserInfo trace, String newTraceName)
OdTraceRuntime(IntPtr cPtr, bool cMemoryOwn)
OdTraceUserProfile getCurrentUserInfo()
OdResult removeSubTrace(OdTraceUserInfo traceInfo, OdTraceCollaborator subTrace)
OdResult setCurrentUserInfo(OdTraceUserProfile currentUserInfo)
static OdTraceRuntime getInstance(OdDbDatabase pDb, bool bCreateIfNotFound)
static HandleRef getCPtr(OdTraceRuntime obj)
OdResult removeTrace(OdTraceUserInfo traceInfo)
virtual void Dispose(bool disposing)
OdResult getTraceCollaborators(OdTraceUserInfo trace, SWIGTYPE_p_OdArrayT_OdTraceCollaborator_t traceCollaborators)
bool isObjectFromTrace(OdDbObject pSubject)
OdDbObjectId getTraceRuntimeId()
OdResult appendDwgAsTrace(OdDbDatabase pDbTrace, ref string traceName)
static HandleRef getCPtr(OdTraceUserInfo obj)
static HandleRef getCPtr(OdTraceUserProfile obj)
static global::System.Exception Retrieve()
static int OdTraceRuntime_getOpenTraceExtents(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdTraceRuntime_getCurrentUserInfo(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdTraceRuntime_getTraceCollaborators(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdTraceRuntime_removeSubTrace(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdTraceRuntime_newTrace(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdTraceRuntime_traceBack(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdTraceRuntime_openTrace(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdTraceRuntime_getOpenTraceCollaborators(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdTraceRuntime_getInstance__SWIG_1(HandleRef jarg1)
static int OdTraceRuntime_closeTrace(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdTraceRuntime_removeTrace(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdTraceRuntime_appendDwgAsTrace__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, ref IntPtr jarg3)
static global::System.IntPtr OdTraceRuntime_getInstance__SWIG_0(HandleRef jarg1, bool jarg2)
static int OdTraceRuntime_traceFront(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdTraceRuntime(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdTraceRuntime_setCurrentUserInfo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdTraceRuntime_appendDwgAsTrace__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, ref IntPtr jarg3)
static int OdTraceRuntime_renameTrace(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, [MarshalAs(UnmanagedType.LPWStr)]String jarg3)
static int OdTraceRuntime_getTracesUserInfo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdTraceRuntime_showOpenTraceCollaborators(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdTraceRuntime_getTraceRuntimeId(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdTraceRuntime_isObjectFromTrace(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)