CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxBIMRevitFamily.h
Go to the documentation of this file.
1//
2// (C) Copyright 2020-2025 by Graebert GmbH.
3//
4// Permission to use, copy, modify, and distribute this software in
5// object code form for any purpose and without fee is hereby granted,
6// provided that the above copyright notice appears in all copies and
7// that both that copyright notice and the limited warranty and
8// restricted rights notice below appear in all supporting
9// documentation.
10//
11// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15// UNINTERRUPTED OR ERROR FREE.
16
17#pragma once
18
19#include "FxBIM.h"
20
21#include <BimCommon.h>
22#if TD_VERSION >= 250500
23 #include <Base/BmForgeTypeId.h>
24#else
25 #include <Common/BuiltIns/BmBuiltInParameterGroup.h>
26#endif
27#include <Database/BmDatabase.h>
28#include <MEP/Enums/BmConnectorType.h>
29#include <Tf/TfVariant.h>
30
31#include "FxBIMEntityGeometry.h"
32
33namespace FxBIM
34{
35 class RevitFamilyImpl;
36
38 {
39 public:
41 virtual ~RevitFamily();
42
43 virtual Error Load( const OdString& filePath );
45
47
48 struct Parameter
49 {
50 OdBmObjectId _idParamElem;
54 bool _locked = false;
55#if TD_VERSION >= 250500
56 OdBmForgeTypeId _group;
57#else
58 OdBm::BuiltInParameterGroup::Enum _group = OdBm::BuiltInParameterGroup::Enum( 0 );
59#endif
61 bool _user = false;
62 };
63
64 virtual Error Parameters( std::vector< Parameter >& params );
65
66 struct Connector
67 {
68 OdBmObjectId _ID; //OdBmConnectorElem
69 OdBm::ConnectorType::Enum _Type;
71 };
72
73 virtual Error Connectors( std::vector< Connector >& connectors );
74
75 protected:
76 RevitFamilyImpl* m_pImpl = nullptr;
77 };
78}
Error
Definition FxBIM.h:40
OdSmartPtr< OdBmDatabase > OdBmDatabasePtr
#define FXBIM_API
Definition FxBIMDefs.h:4
std::shared_ptr< CFxBIMEntityGeometry > CFxBIMEntityGeometryPtr
virtual ~RevitFamily()
virtual Error Load(const OdString &filePath)
RevitFamilyImpl * m_pImpl
virtual Error Connectors(std::vector< Connector > &connectors)
virtual OdBmDatabasePtr Database()
virtual Error Parameters(std::vector< Parameter > &params)
virtual CFxBIMEntityGeometryPtr Geometry()
GLenum GLint * params
Definition gles2_ext.h:184
Definition FxBIM.h:72
OdBm::ConnectorType::Enum _Type