FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
AddGlobals.h
Go to the documentation of this file.
1#pragma once
2
3//
4// (C) Copyright 2005-2024 by Graebert GmbH.
5//
6// Permission to use, copy, modify, and distribute this software in
7// object code form for any purpose and without fee is hereby granted,
8// provided that the above copyright notice appears in all copies and
9// that both that copyright notice and the limited warranty and
10// restricted rights notice below appear in all supporting
11// documentation.
12//
13// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
14// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
15// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
16// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
17// UNINTERRUPTED OR ERROR FREE.
18
19class AcDbDatabase;
20class AcRxDictionary;
22class AcRxDictionary;
23class AcRxEvent;
24class AcApDocument;
25class AcRxImpKernel;
27class AcEditor;
30
33
34template<class T>
35inline Acad::ErrorStatus
36acdbOpenObject( T *& pObj, AcDbObjectId id, AcDb::OpenMode mode, bool openErased = false )
37{
38 return ::acdbOpenAcDbObject( (AcDbObject * &)pObj, id, mode, T::desc(), openErased );
39}
40
41ARX_API Acad::ErrorStatus acdbOpenObject( AcDbObject*&, AcDbObjectId, AcDb::OpenMode, bool = false );
42ARX_API Acad::ErrorStatus acdbOpenObject( AcDbEntity*&, AcDbObjectId, AcDb::OpenMode, bool = false );
65
66
ARX_API AcDbTransactionManager * acdbTransactionManagerPtr()
ARX_API AcDbDatabase * acdbCurDwg()
ARX_API int AcIntPtrToInt(Adesk::LongPtr, Adesk::LongPtr=0x1000000)
ARX_API AcGePoint2d asPnt2d(const ads_point)
ARX_API AcRxDictionary * acrxClassDictionaryPtr()
ARX_API AcApDocument * curDoc()
ARX_API AcEditor * acedEditorPtr()
ARX_API void acutDelString(ACHAR *&)
ARX_API AcTransactionManager * actrTransactionManagerPtr()
ARX_API unsigned int AcUIntPtrToUInt(Adesk::ULongPtr, Adesk::ULongPtr=0x1000000)
ARX_API double * asDblArray(const AcGePoint2d &)
ARX_API HINSTANCE & getDllInstance()
ARX_API AcRxEvent * acrxEventPtr()
ARX_API AcRxDictionary * acrxServiceDictionaryImp()
ARX_API AcRxDynamicLinker * acrxDynamicLinkerPtr()
ARX_API AcRxImpKernel * acrxKernelPtr()
const ARX_API AcString & acdbAnnotationScaleCollectionName()
ARX_API AcEdCommandStack * acedRegCmdsPtr()
Acad::ErrorStatus acdbOpenObject(T *&pObj, AcDbObjectId id, AcDb::OpenMode mode, bool openErased=false)
Definition AddGlobals.h:36
ARX_API AcGePoint3d & asPnt3d(const double *pnt)
ARX_API AcGeVector3d asVec3d(const ads_point)
ARX_API AcGeVector2d asVec2d(const ads_point)
TCHAR ACHAR
double ads_point[3]
Definition addtypedef.h:22