Junction Diagram Automation Suite 1.2.0
An AutoCAD 2024 plugin for the manipulation and generation of junction box wiring diagrams
Loading...
Searching...
No Matches
helpers.h
Go to the documentation of this file.
1
14
15#pragma once
16
17#include "dbents.h"
18#include "dbapserv.h"
19#include "dbdynblk.h"
20#include "dbeval.h"
21#include "acdb.h"
22#include "rxregsvc.h"
23
37AcDbObjectId acadInsertBlock(const wchar_t* blockName, const AcGePoint3d& origin);
38
53Acad::ErrorStatus acadSetDynBlockProperty(
54 const AcDbObjectId& blockRefId,
55 const wchar_t* propName,
56 const AcDbEvalVariant& newValue
57);
58
74Acad::ErrorStatus acadGetDynBlockProperty(
75 const AcDbObjectId& blockRefId,
76 const wchar_t* propName,
77 AcDbEvalVariant& outValue
78);
79
93Acad::ErrorStatus acadSetBlockAttribute(
94 const AcDbObjectId& blockRefId,
95 const wchar_t* tagName,
96 const wchar_t* newValue
97);
98
115Acad::ErrorStatus acadGetBlockAttribute(
116 const AcDbObjectId& blockRefId,
117 const wchar_t* tagName,
118 std::wstring& outValue
119);
120
134Acad::ErrorStatus acadSetObjectProperty(
135 const AcDbObjectId& objId,
136 AcDb::DxfCode groupCode,
137 const wchar_t* value
138);
139
153Acad::ErrorStatus acadSetObjectPosition(
154 const AcDbObjectId& objId,
155 const AcGePoint3d& position
156);
157
170Acad::ErrorStatus acadGetObjectPosition(
171 const AcDbObjectId& objId,
172 AcGePoint3d& outPosition
173);
174
186Acad::ErrorStatus acadSetObjectScale(
187 const AcDbObjectId& objId,
188 const AcGeScale3d& scale
189);
190
202Acad::ErrorStatus acadGetObjectScale(
203 const AcDbObjectId& objId,
204 AcGeScale3d& outScale
205);
206
219Acad::ErrorStatus acadGetBlockName(
220 const AcDbObjectId& objId,
221 std::wstring &name
222);
Acad::ErrorStatus acadGetBlockName(const AcDbObjectId &objId, std::wstring &name)
Get block name that an object references.
Definition helpers.cpp:487
Acad::ErrorStatus acadSetDynBlockProperty(const AcDbObjectId &blockRefId, const wchar_t *propName, const AcDbEvalVariant &newValue)
Set a dynamic block property to a new value.
Definition helpers.cpp:137
Acad::ErrorStatus acadGetDynBlockProperty(const AcDbObjectId &blockRefId, const wchar_t *propName, AcDbEvalVariant &outValue)
Retrieve the value of a dynamic block property.
Definition helpers.cpp:177
Acad::ErrorStatus acadGetBlockAttribute(const AcDbObjectId &blockRefId, const wchar_t *tagName, std::wstring &outValue)
Retrieve the text value of a block attribute.
Definition helpers.cpp:264
Acad::ErrorStatus acadSetObjectPosition(const AcDbObjectId &objId, const AcGePoint3d &position)
Set the position of a supported entity.
Definition helpers.cpp:345
Acad::ErrorStatus acadSetBlockAttribute(const AcDbObjectId &blockRefId, const wchar_t *tagName, const wchar_t *newValue)
Set a block attribute to a new value.
Definition helpers.cpp:218
Acad::ErrorStatus acadSetObjectProperty(const AcDbObjectId &objId, AcDb::DxfCode groupCode, const wchar_t *value)
Set a general object property to a new value.
Definition helpers.cpp:310
Acad::ErrorStatus acadGetObjectPosition(const AcDbObjectId &objId, AcGePoint3d &outPosition)
Get the position of a supported entity.
Definition helpers.cpp:396
Acad::ErrorStatus acadGetObjectScale(const AcDbObjectId &objId, AcGeScale3d &outScale)
Get the scale of a supported entity.
Definition helpers.cpp:462
AcDbObjectId acadInsertBlock(const wchar_t *blockName, const AcGePoint3d &origin)
Insert a block into the database at a specified origin point.
Definition helpers.cpp:21
Acad::ErrorStatus acadSetObjectScale(const AcDbObjectId &objId, const AcGeScale3d &scale)
Set the scale of a supported entity.
Definition helpers.cpp:437