Class ThermalDesktop
Last update: 06.03.2026Namespace: OpenTD
Assembly: OpenTD.dll
Represents one instance of Thermal Desktop. This is the top-level class for interacting with OpenTD.
public class ThermalDesktop : ITdConsole
Inheritance
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Extension Methods
ThermalDesktopExtensions.CaptureGraphicsArea(ThermalDesktop), ThermalDesktopExtensions.GetViewNames(ThermalDesktop), ThermalDesktopExtensions.MergeNodes(ThermalDesktop, MergeNodesOptionsData), ThermalDesktopExtensions.Quit(ThermalDesktop)
Constructors
ThermalDesktop(string)
public ThermalDesktop(string dwgPathname)
Parameters
dwgPathname string
ThermalDesktop()
public ThermalDesktop()
Properties
ConnectConfig
Controls how Connect() will try to connect to TD.
public TdConnectConfig ConnectConfig { get; set; }
Property Value
DatasetManager
Use the DatasetManager to access TD's "Postprocessing Datasets" dialog. Use it to control what data is displayed as a contour plot in TD, for example.
public DatasetManager DatasetManager { get; }
Property Value
See Also
ProgressBar
Use to show progress of a procedure in TD.
public ProgressBar ProgressBar { get; }
Property Value
See Also
RadiationAnalysisGroupManager
The radiation analysis group manager.
public RadiationAnalysisGroupManager RadiationAnalysisGroupManager { get; }
Property Value
See Also
ThermoPropAliasManager
The thermophysical property alias manager.
public ThermoPropAliasManager ThermoPropAliasManager { get; }
Property Value
See Also
Methods
AddNodeCorrespondence(NameData, NameData)
Adds TRASYS-style node correspondence between SINDA and RadCAD nodes. Use SetNodeCorrespondenceState to turn node correspondence on or off. Use SetNodeCorrespondenceMap to set the entire map in one step.
public void AddNodeCorrespondence(NameData SindaNode, NameData RadcadNode)
Parameters
SindaNode NameData
The sinda node.
RadcadNode NameData
The radcad node.
See Also
ThermalDesktop.SetNodeCorrespondenceState(bool), ThermalDesktop.SetNodeCorrespondenceMap(Dictionary<string, List<string>>)
BringToFront()
Brings the AutoCAD window to the foreground.
public void BringToFront()
ClearSelection()
public void ClearSelection()
Connect()
Connect to an instance of TD using the options specified in ConnectConfig.
public void Connect()
See Also
Connect(TdConnectConfig)
Set ConnectConfig to the supplied TdConnectConfig and call Connect().
public void Connect(TdConnectConfig connectConfig)
Parameters
connectConfig TdConnectConfig
Connect(string)
Set ConnectConfig.DwgPathname to the supplied path and call Connect().
public void Connect(string dwgPathname)
Parameters
dwgPathname string
ConnectAsync()
Connect to an instance of TD asynchronously using the options specified in ConnectConfig.
public Task ConnectAsync()
Returns
See Also
ConvertFDtoFE(IEnumerable<string>)
Convert FD entities (with edge nodes) to FE meshes
public void ConvertFDtoFE(IEnumerable<string> handles)
Parameters
handles IEnumerable<string>
CreateAcEllipse()
Creates a new Ellipse in this Thermal Desktop instance.
public AcEllipse CreateAcEllipse()
Returns
See Also
CreateArc()
Creates a new Arc in this Thermal Desktop instance.
public Arc CreateArc()
Returns
See Also
CreateArrayInterpolation(IEnumerable<double>, IEnumerable<double>, string)
Creates a new ArrayInterpolation using defaults from this TD instance.
public ArrayInterpolation CreateArrayInterpolation(IEnumerable<double> xValues, IEnumerable<double> yValues, string outputSymbol)
Parameters
xValues IEnumerable<double>
yValues IEnumerable<double>
outputSymbol string
Returns
See Also
CreateAssembly(Point3d)
Creates a new Assembly using defaults from this TD instance.
public Assembly CreateAssembly(Point3d origin)
Parameters
origin Point3d
Returns
See Also
CreateCappmp(Connection, Connection, Connection)
Creates a new cappmp using defaults from this TD instance.
public Cappmp CreateCappmp(Connection fromLump, Connection toLump, Connection Node = null)
Parameters
fromLump Connection
toLump Connection
Node Connection
Returns
See Also
CreateCaseSet(string, string, string)
Creates a new Case Set using defaults from this TD instance.
public CaseSet CreateCaseSet(string name, string groupName = "", string sindaFilenames = "")
Parameters
name string
groupName string
sindaFilenames string
Returns
See Also
CreateCircle()
Creates a new Circle in this Thermal Desktop instance.
public Circle CreateCircle()
Returns
See Also
CreateCompartment(List<List<Connection>>, List<List<Connection>>)
Creates a new Compartment using defaults from this TD instance.
public Compartment CreateCompartment(List<List<Connection>> volumes, List<List<Connection>> surfaces = null)
Parameters
volumes List<List<Connection>>
surfaces List<List<Connection>>
Returns
See Also
CreateConductor(Connection, Connection)
Creates a new Conductor using defaults from this TD instance.
public Conductor CreateConductor(Connection from, Connection to)
Parameters
from Connection
to Connection
Returns
See Also
CreateConductor(Connection, IEnumerable<Connection>)
Creates a new Conductor using defaults from this TD instance.
public Conductor CreateConductor(Connection from, IEnumerable<Connection> to)
Parameters
from Connection
Returns
See Also
CreateCone()
Creates a new Cone using defaults from this TD instance.
public Cone CreateCone()
Returns
See Also
CreateContactor(IEnumerable<Connection>, IEnumerable<Connection>)
Creates a new Contactor using defaults from this TD instance.
public Contactor CreateContactor(IEnumerable<Connection> from, IEnumerable<Connection> to)
Parameters
from IEnumerable<Connection>
Returns
See Also
CreateContactor(Connection, IEnumerable<Connection>)
Creates a new Contactor using defaults from this TD instance.
public Contactor CreateContactor(Connection from, IEnumerable<Connection> to)
Parameters
from Connection
Returns
See Also
CreateContactor(IEnumerable<Connection>, Connection)
Creates a new Contactor using defaults from this TD instance.
public Contactor CreateContactor(IEnumerable<Connection> from, Connection to)
Parameters
from IEnumerable<Connection>
to Connection
Returns
See Also
CreateContactor(Connection, Connection)
Creates a new Contactor using defaults from this TD instance.
public Contactor CreateContactor(Connection from, Connection to)
Parameters
from Connection
to Connection
Returns
See Also
CreateCylinder()
Creates a new Cylinder using defaults from this TD instance.
public Cylinder CreateCylinder()
Returns
See Also
CreateDbIterator(bool, bool, bool, bool, bool)
Creates an iterator for walking the AutoCAD entity database.
public IDbIterator CreateDbIterator(bool forward = true, bool modelSpace = true, bool xRefs = false, bool paperSpace = false, bool tdOnly = true)
Parameters
forward bool
if set to true iterates forward.
modelSpace bool
if set to true iterates through model space.
xRefs bool
if set to true iterates through XREF's.
paperSpace bool
if set to true iterates through paper space.
tdOnly bool
Returns
IDbIterator.
CreateDisk()
Creates a new Disk using defaults from this TD instance.
public Disk CreateDisk()
Returns
See Also
CreateEllipse()
Creates a new Ellipse using defaults from this TD instance.
public Ellipse CreateEllipse()
Returns
See Also
CreateEllipsoid()
Creates a new Ellipsoid using defaults from this TD instance.
public Ellipsoid CreateEllipsoid()
Returns
See Also
CreateEllipticCone()
Creates a new EllipticCone using defaults from this TD instance.
public EllipticCone CreateEllipticCone()
Returns
See Also
CreateEllipticCylinder()
Creates a new EllipticCylinder using defaults from this TD instance.
public EllipticCylinder CreateEllipticCylinder()
Returns
See Also
CreateFEMeshImporter(string, bool)
Creates a new FEMeshImporter.
public FEMeshImporter CreateFEMeshImporter(string name, bool useCurrentUCS)
Parameters
name string
useCurrentUCS bool
Returns
See Also
CreateFTie(Connection, Connection, Connection, FTieTypes)
Creates a new FTie using defaults from this TD instance.
public FTie CreateFTie(Connection AttachedLumpC, Connection AttachedLumpD, Connection AttachedPath, RcFTieData.FTieTypes FTieType = FTieTypes.USERFTIE)
Parameters
AttachedLumpC Connection
AttachedLumpD Connection
AttachedPath Connection
FTieType RcFTieData.FTieTypes
Returns
See Also
CreateFkLocator(string, Point3d)
Creates a new FkLocator using defaults from this TD instance.
public FkLocator CreateFkLocator(string attachedHandle, Point3d origin)
Parameters
attachedHandle string
origin Point3d
Returns
See Also
CreateFluidSubmodel(string)
Creates a new fluid submodel using defaults from this TD instance.
public FluidSubmodel CreateFluidSubmodel(string name)
Parameters
name string
Returns
See Also
CreateHeatLoad(IEnumerable<Connection>)
Creates a new HeatLoad using defaults from this TD instance.
public HeatLoad CreateHeatLoad(IEnumerable<Connection> applyConnections)
Parameters
applyConnections IEnumerable<Connection>
Returns
See Also
CreateHeatLoad(Connection)
Creates a new HeatLoad using defaults from this TD instance.
public HeatLoad CreateHeatLoad(Connection applyConnection)
Parameters
applyConnection Connection
Returns
See Also
CreateHeater(IEnumerable<Connection>, IEnumerable<Connection>)
Creates a new Heater using defaults from this TD instance.
public Heater CreateHeater(IEnumerable<Connection> applyConnections, IEnumerable<Connection> sensorConnections)
Parameters
applyConnections IEnumerable<Connection>
sensorConnections IEnumerable<Connection>
Returns
See Also
CreateHelix()
Creates a new Helix in this Thermal Desktop instance.
public Helix CreateHelix()
Returns
See Also
CreateIFace(Connection, Connection)
Creates a new IFace using defaults from this TD instance.
public IFace CreateIFace(Connection TankA, Connection TankB)
Parameters
TankA Connection
TankB Connection
Returns
See Also
CreateLayer(string)
Creates a new Layer using defaults from this TD instance.
public Layer CreateLayer(string name)
Parameters
name string
Returns
See Also
CreateLine(Point3d, Point3d)
Creates a new Line in this TD instance.
public Line CreateLine(Point3d pointA, Point3d pointB)
Parameters
pointA Point3d
pointB Point3d
Returns
See Also
CreateLinearBrick(IEnumerable<string>)
Creates a new LinearBrick using defaults from this TD instance.
public LinearBrick CreateLinearBrick(IEnumerable<string> nodeHandles)
Parameters
nodeHandles IEnumerable<string>
Returns
See Also
CreateLinearPyramid(IEnumerable<string>)
Creates a new LinearPyramid using defaults from this TD instance.
public LinearPyramid CreateLinearPyramid(IEnumerable<string> nodeHandles)
Parameters
nodeHandles IEnumerable<string>
Returns
See Also
CreateLinearQuad(IEnumerable<string>)
Creates a new LinearQuad using defaults from this TD instance.
public LinearQuad CreateLinearQuad(IEnumerable<string> nodeHandles)
Parameters
nodeHandles IEnumerable<string>
Returns
See Also
CreateLinearTet(IEnumerable<string>)
Creates a new LinearTet using defaults from this TD instance.
public LinearTet CreateLinearTet(IEnumerable<string> nodeHandles)
Parameters
nodeHandles IEnumerable<string>
Returns
See Also
CreateLinearTri(IEnumerable<string>)
Creates a new LinearTri using defaults from this TD instance.
public LinearTri CreateLinearTri(IEnumerable<string> nodeHandles)
Parameters
nodeHandles IEnumerable<string>
Returns
See Also
CreateLinearWedge(IEnumerable<string>)
Creates a new LinearWedge using defaults from this TD instance.
public LinearWedge CreateLinearWedge(IEnumerable<string> nodeHandles)
Parameters
nodeHandles IEnumerable<string>
Returns
See Also
CreateLump()
Creates a new Lump using defaults from this TD instance.
public Lump CreateLump()
Returns
See Also
CreateMaterialStack(string)
Creates a new Material Stack using defaults from this TD instance.
public MaterialStack CreateMaterialStack(string caseSensitiveName)
Parameters
caseSensitiveName string
Returns
See Also
CreateMeasure()
Creates a new Measure using defaults from this TD instance.
public Measure CreateMeasure()
Returns
See Also
CreateMeshFD(IEnumerable<Face>, IEnumerable<Point3d>)
Creates a new MeshFD using defaults from this TD instance.
public MeshFD CreateMeshFD(IEnumerable<Face> faces, IEnumerable<Point3d> vertices)
Parameters
faces IEnumerable<Face>
vertices IEnumerable<Point3d>
Returns
See Also
CreateNode()
Creates a new Node using defaults from this TD instance.
public Node CreateNode()
Returns
See Also
CreateNode(Point3d)
Creates a new Node with a given origin using defaults from this TD instance.
public Node CreateNode(Point3d origin)
Parameters
origin Point3d
Returns
See Also
CreateOffsetParaboloid()
Creates a new OffsetParaboloid using defaults from this TD instance.
public OffsetParaboloid CreateOffsetParaboloid()
Returns
See Also
CreateOgive()
Creates a new Ogive using defaults from this TD instance.
public Ogive CreateOgive()
Returns
See Also
CreateOpticalProps(string)
Creates a new optical property using defaults from this TD instance.
public OpticalProps CreateOpticalProps(string caseSensitiveName)
Parameters
caseSensitiveName string
Returns
See Also
CreateOrbit(string)
Creates a new orbit using defaults from this TD instance.
public Orbit CreateOrbit(string name)
Parameters
name string
Returns
See Also
CreatePID()
Creates a new PID using defaults from this TD instance.
public PID CreatePID()
Returns
See Also
CreateParabolicTrough()
Creates a new ParabolicTrough using defaults from this TD instance.
public ParabolicTrough CreateParabolicTrough()
Returns
See Also
CreateParaboloid()
Creates a new Paraboloid using defaults from this TD instance.
public Paraboloid CreateParaboloid()
Returns
See Also
CreatePath(Connection, Connection, PathTypes, bool)
Creates a new Path using defaults from this TD instance.
public Path CreatePath(Connection from, Connection to, RcPathData.PathTypes pType = PathTypes.TUBE, bool twinPath = false)
Parameters
from Connection
to Connection
pType RcPathData.PathTypes
twinPath bool
Returns
See Also
CreatePipe(DbObject)
public Pipe CreatePipe(DbObject centerline)
Parameters
centerline DbObject
Returns
CreatePipe(IEnumerable<string>)
Creates a new Pipe using defaults from this TD instance.
public Pipe CreatePipe(IEnumerable<string> centerlineHandles)
Parameters
centerlineHandles IEnumerable<string>
Returns
See Also
CreatePolygon(IEnumerable<Point3d>)
Creates a new single-face MeshFD using defaults from this TD instance.
public Polygon CreatePolygon(IEnumerable<Point3d> vertices)
Parameters
vertices IEnumerable<Point3d>
Returns
See Also
CreatePolyline()
Creates a new LWPolyline in this Thermal Desktop instance.
public Polyline CreatePolyline()
Returns
See Also
CreatePolyline3d(IEnumerable<Point3d>, bool)
Creates a new 3d polyline in this Thermal Desktop instance.
public Polyline3d CreatePolyline3d(IEnumerable<Point3d> vertices, bool closed = false)
Parameters
vertices IEnumerable<Point3d>
closed bool
Returns
See Also
CreatePort(Connection)
Creates a new Port using defaults from this TD instance. Pass an empty connection to create a port that's not attached to anything.
public Port CreatePort(Connection connection)
Parameters
connection Connection
Returns
See Also
CreatePostProcessingDataMapper(string, ModelLength, FileFormats, bool, string, bool)
Creates a new PostProcessingDataMapper using defaults from this TD instance.
public DataMapper CreatePostProcessingDataMapper(string inputPathname, UnitsData.ModelLength inputUnit, DataMapper.FileFormats inputFileFormat, bool loadGroupsFromPatran = false, string patranPathname = "", bool useUCS = false)
Parameters
inputPathname string
inputUnit UnitsData.ModelLength
inputFileFormat DataMapper.FileFormats
loadGroupsFromPatran bool
patranPathname string
useUCS bool
Returns
See Also
CreatePressureLoad(IEnumerable<Connection>)
Creates a new PressureLoad using defaults from this TD instance.
public PressureLoad CreatePressureLoad(IEnumerable<Connection> appliedTo)
Parameters
appliedTo IEnumerable<Connection>
Returns
See Also
CreateQuadraticBrick(IEnumerable<string>)
Creates a new QuadraticBrick using defaults from this TD instance.
public QuadraticBrick CreateQuadraticBrick(IEnumerable<string> nodeHandles)
Parameters
nodeHandles IEnumerable<string>
Returns
See Also
CreateQuadraticPyramid(IEnumerable<string>)
Creates a new QuadraticPyramid using defaults from this TD instance.
public QuadraticPyramid CreateQuadraticPyramid(IEnumerable<string> nodeHandles)
Parameters
nodeHandles IEnumerable<string>
Returns
See Also
CreateQuadraticQuad(IEnumerable<string>)
Creates a new QuadraticQuad using defaults from this TD instance.
public QuadraticQuad CreateQuadraticQuad(IEnumerable<string> nodeHandles)
Parameters
nodeHandles IEnumerable<string>
Returns
See Also
CreateQuadraticTet(IEnumerable<string>)
Creates a new QuadraticTet using defaults from this TD instance.
public QuadraticTet CreateQuadraticTet(IEnumerable<string> nodeHandles)
Parameters
nodeHandles IEnumerable<string>
Returns
See Also
CreateQuadraticTri(IEnumerable<string>)
Creates a new QuadraticTri using defaults from this TD instance.
public QuadraticTri CreateQuadraticTri(IEnumerable<string> nodeHandles)
Parameters
nodeHandles IEnumerable<string>
Returns
See Also
CreateQuadraticWedge(IEnumerable<string>)
Creates a new QuadraticWedge using defaults from this TD instance.
public QuadraticWedge CreateQuadraticWedge(IEnumerable<string> nodeHandles)
Parameters
nodeHandles IEnumerable<string>
Returns
See Also
CreateRectangle()
Creates a new Rectangle using defaults from this TD instance.
public Rectangle CreateRectangle()
Returns
See Also
CreateScarfedCone()
Creates a new ScarfedCone using defaults from this TD instance.
public ScarfedCone CreateScarfedCone()
Returns
See Also
CreateScarfedCylinder()
Creates a new ScarfedCylinder using defaults from this TD instance.
public ScarfedCylinder CreateScarfedCylinder()
Returns
See Also
CreateSolidBrick()
Creates a new SolidBrick using defaults from this TD instance.
public SolidBrick CreateSolidBrick()
Returns
See Also
CreateSolidCone()
Creates a new SolidCone using defaults from this TD instance.
public SolidCone CreateSolidCone()
Returns
See Also
CreateSolidCylinder()
Creates a new SolidCylinder using defaults from this TD instance.
public SolidCylinder CreateSolidCylinder()
Returns
See Also
CreateSolidEllipsoid()
Creates a new SolidEllipsoid using defaults from this TD instance.
public SolidEllipsoid CreateSolidEllipsoid()
Returns
See Also
CreateSolidSphere()
Creates a new SolidSphere using defaults from this TD instance.
public SolidSphere CreateSolidSphere()
Returns
See Also
CreateSphere()
Creates a new Sphere using defaults from this TD instance.
public Sphere CreateSphere()
Returns
See Also
CreateSpline()
Creates a new Spline in this Thermal Desktop instance.
public Spline CreateSpline()
Returns
See Also
CreateSubmodel(string)
Creates a new Submodel using defaults from this TD instance.
public Submodel CreateSubmodel(string name)
Parameters
name string
Returns
See Also
CreateSymbol(string, string)
Creates a new Symbol using defaults from this TD instance.
public Symbol CreateSymbol(string name, string value)
Parameters
name string
value string
Returns
See Also
CreateTec(IEnumerable<Connection>, IEnumerable<Connection>)
Creates a new Tec using defaults from this TD instance.
public Tec CreateTec(IEnumerable<Connection> from, IEnumerable<Connection> to)
Parameters
from IEnumerable<Connection>
Returns
See Also
CreateTec(Connection, IEnumerable<Connection>)
Creates a new Tec using defaults from this TD instance.
public Tec CreateTec(Connection from, IEnumerable<Connection> to)
Parameters
from Connection
Returns
See Also
CreateTec(IEnumerable<Connection>, Connection)
Creates a new Tec using defaults from this TD instance.
public Tec CreateTec(IEnumerable<Connection> from, Connection to)
Parameters
from IEnumerable<Connection>
to Connection
Returns
See Also
CreateTec(Connection, Connection)
Creates a new Tec using defaults from this TD instance.
public Tec CreateTec(Connection from, Connection to)
Parameters
from Connection
to Connection
Returns
See Also
CreateTee(IEnumerable<string>, string)
Creates a new Tee from a main branch and side branch using defaults from this TD instance.
public Tee CreateTee(IEnumerable<string> mainBranchHandles, string sideBranchHandle)
Parameters
mainBranchHandles IEnumerable<string>
sideBranchHandle string
Returns
See Also
CreateTee(IEnumerable<string>, Point3d)
Creates a new Tee from a main branch and a location using defaults from this TD instance.
public Tee CreateTee(IEnumerable<string> mainBranchHandles, Point3d origin)
Parameters
mainBranchHandles IEnumerable<string>
origin Point3d
Returns
See Also
CreateText(string)
Creates a new Text annotation using defaults from this TD instance.
public Text CreateText(string text)
Parameters
text string
Returns
See Also
CreateThermoProps(string)
Creates a new ThermoProps using defaults from this TD instance.
public ThermoProps CreateThermoProps(string caseSensitiveName)
Parameters
caseSensitiveName string
Returns
See Also
CreateTie(IEnumerable<Connection>, IEnumerable<Connection>, IEnumerable<string>)
Creates a new Tie using defaults from this TD instance.
public Tie CreateTie(IEnumerable<Connection> thermals, IEnumerable<Connection> lumps, IEnumerable<string> paths)
Parameters
thermals IEnumerable<Connection>
lumps IEnumerable<Connection>
paths IEnumerable<string>
Returns
See Also
CreateTorus()
Creates a new Torus using defaults from this TD instance.
public Torus CreateTorus()
Returns
See Also
CreateTracker(Point3d)
Creates a new Tracker using defaults from this TD instance.
public Tracker CreateTracker(Point3d origin)
Parameters
origin Point3d
Returns
See Also
CreateUDFACollection()
Creates a new UDFACollection using defaults from this TD instance.
public UDFACollection CreateUDFACollection()
Returns
See Also
CreateUserArray(SubmodelNameData, int, IEnumerable<double>)
Creates a new UserArray using defaults from this TD instance.
public UserArray CreateUserArray(SubmodelNameData submodel, int arrayId, IEnumerable<double> singletArray)
Parameters
submodel SubmodelNameData
arrayId int
singletArray IEnumerable<double>
Returns
See Also
CreateUserCode()
Creates a new UserCode using defaults from this TD instance.
public UserCode CreateUserCode()
Returns
See Also
DeleteCaseSet(string, string)
Deletes a Case Set within this TD instance.
public void DeleteCaseSet(string caseName, string groupName = "")
Parameters
caseName string
groupName string
See Also
DeleteEntity(TdDbEntityData)
Deletes a TD/AutoCAD entity from the AutoCAD database.
public void DeleteEntity(TdDbEntityData x)
Parameters
The entity to delete.
DeleteFluidSubmodel(string)
Deletes a fluid submodel within this TD instance.
public void DeleteFluidSubmodel(string name)
Parameters
name string
See Also
DeleteLayer(string)
Deletes a Layer within this TD instance.
public void DeleteLayer(string name)
Parameters
name string
See Also
DeleteLogicObject(string)
Deletes a LogicObject within this TD instance.
public void DeleteLogicObject(string handle)
Parameters
handle string
See Also
DeleteMaterialStack(string)
Deletes a Material Stack within this TD instance.
public void DeleteMaterialStack(string caseSensitiveName)
Parameters
caseSensitiveName string
See Also
DeleteOpticalProps(string)
Deletes an optical property within this TD instance.
public void DeleteOpticalProps(string caseSensitiveName)
Parameters
caseSensitiveName string
See Also
DeleteOrbit(string)
Deletes an orbit within this TD instance.
public void DeleteOrbit(string name)
Parameters
name string
See Also
DeleteSubmodel(string)
Deletes a Submodel within this TD instance.
public void DeleteSubmodel(string name)
Parameters
name string
See Also
DeleteSymbol(string)
Deletes a Symbol within this TD instance.
public void DeleteSymbol(string name)
Parameters
name string
See Also
DeleteThermoProps(string)
Deletes a ThermoProps within this TD instance.
public void DeleteThermoProps(string caseSensitiveName)
Parameters
caseSensitiveName string
See Also
DisableUndo()
public void DisableUndo()
EnableUndo()
public void EnableUndo()
ExportNodeInfo(ExportNodeInfoOptionsData)
Call the TD Export Node Info command to get node info as a list of strings (the default) or to write node info to the screen or file.
public List<string> ExportNodeInfo(ExportNodeInfoOptionsData x)
Parameters
Options.
Returns
Filter<T>(List<T>, Predicate<T>)
Filters the specified input list using a predicate/rule.
public List<T> Filter<T>(List<T> inputList, Predicate<T> filter)
Parameters
inputList List<T>
The input list.
filter Predicate<T>
The rule.
Returns
List<T>
List<T>.
Type Parameters
T
GetAcEllipse(string, bool)
Gets an existing Ellipse from this TD instance.
public AcEllipse GetAcEllipse(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to an Ellipse in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetAcEllipses(bool)
Gets all the Ellipses in this TD instance.
public List<AcEllipse> GetAcEllipses(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetArc(string, bool)
Gets an existing Arc from this TD instance.
public Arc GetArc(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to an Arc in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the Arc search.
Returns
See Also
GetArcs(bool)
Gets all the Arcs in this TD instance.
public List<Arc> GetArcs(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetAssemblies(bool)
Gets all the Assemblys in this TD instance.
public List<Assembly> GetAssemblies(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetAssembly(string, bool)
Gets an existing Assembly from this TD instance.
public Assembly GetAssembly(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Assembly in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the Assembly search
Returns
See Also
GetAutocadVariable(string, out int)
Gets the autocad variable.
public void GetAutocadVariable(string name, out int value)
Parameters
name string
The name.
value int
The value.
Exceptions
Autocad variable " + name + " is of type " + rawValue.Type + ", not INT
GetAutocadVariable(string, out double)
Gets the autocad variable.
public void GetAutocadVariable(string name, out double value)
Parameters
name string
The name.
value double
The value.
Exceptions
Autocad variable " + name + " is of type " + rawValue.Type + ", not DOUBLE
GetAutocadVariable(string, out string)
Gets the autocad variable.
public void GetAutocadVariable(string name, out string value)
Parameters
name string
The name.
value string
The value.
Exceptions
Autocad variable " + name + " is of type " + rawValue.Type + ", not STRING
GetCappmp(string, bool)
Gets an existing cappmp from this TD instance.
public Cappmp GetCappmp(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a cappmp in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetCappmps(bool)
Gets all the cappmps in this TD instance.
public List<Cappmp> GetCappmps(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetCaseSet(string, string)
Gets an existing Case Set from this TD instance.
public CaseSet GetCaseSet(string name, string groupName = "")
Parameters
name string
groupName string
Returns
See Also
GetCaseSets()
Gets all the Case Sets in this TD instance.
public List<CaseSet> GetCaseSets()
Returns
See Also
GetCircle(string, bool)
Gets an existing Circle from this TD instance.
public Circle GetCircle(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to an Circle in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetCircles(bool)
Gets all the Circles in this TD instance.
public List<Circle> GetCircles(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also seCircleh XREF's referenced in this TD instance.
Returns
See Also
GetCompartment(string, bool)
Gets an existing Compartment from this TD instance.
public Compartment GetCompartment(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Compartment in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetCompartments(bool)
Gets all the Compartments in this TD instance.
public List<Compartment> GetCompartments(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetConductor(string, bool)
Gets an existing Conductor from this TD instance.
public Conductor GetConductor(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Conductor in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetConductors(bool)
Gets all the Conductors in this TD instance.
public List<Conductor> GetConductors(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetCone(string, bool)
Gets an existing Cone from this TD instance.
public Cone GetCone(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Cone in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetCones(bool)
Gets all the Cones in this TD instance.
public List<Cone> GetCones(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetContactor(string, bool)
Gets an existing Contactor from this TD instance.
public Contactor GetContactor(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Contactor in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetContactors(bool)
Gets all the Contactors in this TD instance.
public List<Contactor> GetContactors(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetCurrentDwgPathname()
public string GetCurrentDwgPathname()
Returns
GetCurrentLayer()
Get the current layer from this TD instance.
public Layer GetCurrentLayer()
Returns
GetCurrentWorkingDirectory()
public string GetCurrentWorkingDirectory()
Returns
GetCylinder(string, bool)
Gets an existing Cylinder from this TD instance.
public Cylinder GetCylinder(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Cylinder in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetCylinders(bool)
Gets all the Cylinders in this TD instance.
public List<Cylinder> GetCylinders(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetDisk(string, bool)
Gets an existing Disk from this TD instance.
public Disk GetDisk(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Disk in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetDisks(bool)
Gets all the Disks in this TD instance.
public List<Disk> GetDisks(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetDomainManager()
Gets an IDomainManager for working with domains in this TD instance.
public IDomainManager GetDomainManager()
Returns
IDomainManager.
See Also
GetDwgUnits()
Gets the TD units. Deprecated. Use ThermalDesktop.UserPreferences.Units instead.
public UnitsData GetDwgUnits()
Returns
UnitsData.
GetDynamicSindaStatus()
public DynamicSindaStatus GetDynamicSindaStatus()
Returns
GetEllipse(string, bool)
Gets an existing Ellipse from this TD instance.
public Ellipse GetEllipse(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to an Ellipse in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetEllipses(bool)
Gets all the Ellipses in this TD instance.
public List<Ellipse> GetEllipses(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetEllipsoid(string, bool)
Gets an existing Ellipsoid from this TD instance.
public Ellipsoid GetEllipsoid(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to an Ellipsoid in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetEllipsoids(bool)
Gets all the Ellipsoids in this TD instance.
public List<Ellipsoid> GetEllipsoids(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetEllipticCone(string, bool)
Gets an existing EllipticCone from this TD instance.
public EllipticCone GetEllipticCone(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to an EllipticCone in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetEllipticCones(bool)
Gets all the Cones in this TD instance.
public List<EllipticCone> GetEllipticCones(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetEllipticCylinder(string, bool)
Gets an existing EllipticCylinder from this TD instance.
public EllipticCylinder GetEllipticCylinder(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a single-face MeshFD in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetEllipticCylinders(bool)
Gets all the EllipticCylinders in this TD instance.
public List<EllipticCylinder> GetEllipticCylinders(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetEntityType(string)
Use to determine the entity type ("RcNode", "RcRectangle", and so on) for a handle.
public EntityDescriptor GetEntityType(string handle)
Parameters
handle string
Returns
GetEntityTypes(IEnumerable<string>)
Use to determine the entity types ("RcNode", "RcRectangle", and so on) for a list of handles.
public List<EntityDescriptor> GetEntityTypes(IEnumerable<string> handles)
Parameters
handles IEnumerable<string>
Returns
GetFEMeshImporter(string, bool)
Gets an existing FEMeshImporter from this TD instance.
public FEMeshImporter GetFEMeshImporter(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a FEMeshImporter in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetFEMeshImporters(bool)
Gets all the FEMeshImporters in this TD instance.
public List<FEMeshImporter> GetFEMeshImporters(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetFTie(string, bool)
Gets an existing FTie from this TD instance.
public FTie GetFTie(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to an FTie in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetFTies(bool)
Gets all the FTies in this TD instance.
public List<FTie> GetFTies(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetFkLocator(string, bool)
Gets an existing FkLocator from this TD instance.
public FkLocator GetFkLocator(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetFkLocators(bool)
Gets all the FkLocators in this TD instance.
public List<FkLocator> GetFkLocators(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetFluidSubmodel(string)
Gets an existing fluid submodel from this TD instance.
public FluidSubmodel GetFluidSubmodel(string name)
Parameters
name string
Returns
See Also
GetFluidSubmodels(bool)
Gets all the fluid submodels in this TD instance.
public List<FluidSubmodel> GetFluidSubmodels(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetHeatLoad(string, bool)
Gets an existing HeatLoad from this TD instance.
public HeatLoad GetHeatLoad(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a HeatLoad in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetHeatLoads(bool)
Gets all the HeatLoads in this TD instance.
public List<HeatLoad> GetHeatLoads(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetHeater(string, bool)
Gets an existing Heater from this TD instance.
public Heater GetHeater(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Heater in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetHeaters(bool)
Gets all the Heaters in this TD instance.
public List<Heater> GetHeaters(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetHelices(bool)
Gets all the Helixs in this TD instance.
public List<Helix> GetHelices(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetHelix(string, bool)
Gets an existing Helix from this TD instance.
public Helix GetHelix(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to an Helix in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetIFace(string, bool)
Gets an existing IFace from this TD instance.
public IFace GetIFace(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to an IFace in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetIFaces(bool)
Gets all the IFaces in this TD instance.
public List<IFace> GetIFaces(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetInstanceDataListString()
Use the Set/GetInstanceData methods to store general data with this OpenTD server.
public List<string> GetInstanceDataListString()
Returns
GetLayer(string)
Gets an existing Layer from this TD instance. Note: this method accecpts an AutoCAD handle, not a layer name.
public Layer GetLayer(string handle)
Parameters
handle string
Returns
See Also
GetLayerByName(string)
Gets an existing Layer from this TD instance, based on the layer name.
public Layer GetLayerByName(string name)
Parameters
name string
Returns
GetLayers(bool)
Gets all the Layers in this TD instance.
public List<Layer> GetLayers(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetLine(string, bool)
Gets an existing Line from this TD instance.
public Line GetLine(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Line in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetLinearBrick(string, bool)
Gets an existing LinearBrick from this TD instance.
public LinearBrick GetLinearBrick(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a LinearBrick in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetLinearBricks(bool)
Gets all the LinearBricks in this TD instance.
public List<LinearBrick> GetLinearBricks(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetLinearPyramid(string, bool)
Gets an existing LinearPyramid from this TD instance.
public LinearPyramid GetLinearPyramid(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a LinearPyramid in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetLinearPyramids(bool)
Gets all the LinearPyramids in this TD instance.
public List<LinearPyramid> GetLinearPyramids(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetLinearQuad(string, bool)
Gets an existing LinearQuad from this TD instance.
public LinearQuad GetLinearQuad(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a LinearQuad in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetLinearQuads(bool)
Gets all the LinearQuads in this TD instance.
public List<LinearQuad> GetLinearQuads(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetLinearTet(string, bool)
Gets an existing LinearTet from this TD instance.
public LinearTet GetLinearTet(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a LinearTet in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetLinearTets(bool)
Gets all the LinearTets in this TD instance.
public List<LinearTet> GetLinearTets(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetLinearTri(string, bool)
Gets an existing LinearTri from this TD instance.
public LinearTri GetLinearTri(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a LinearTri in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetLinearTris(bool)
Gets all the LinearTris in this TD instance.
public List<LinearTri> GetLinearTris(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetLinearWedge(string, bool)
Gets an existing LinearWedge from this TD instance.
public LinearWedge GetLinearWedge(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a LinearWedge in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetLinearWedges(bool)
Gets all the LinearWedges in this TD instance.
public List<LinearWedge> GetLinearWedges(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetLines(bool)
Gets all the Lines in this TD instance.
public List<Line> GetLines(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetLogicObjects(bool)
Gets all the LogicObjects in this TD instance.
public List<LogicObject> GetLogicObjects(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetLump(string, bool)
Gets an existing Lump from this TD instance.
public Lump GetLump(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Lump in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetLumps(bool)
Gets all the Lumps in this TD instance.
public List<Lump> GetLumps(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetMainWindow()
public NativeWindow GetMainWindow()
Returns
GetMaterialStack(string)
Gets an existing Material Stack from this TD instance.
public MaterialStack GetMaterialStack(string caseSensitiveName)
Parameters
caseSensitiveName string
Returns
See Also
GetMaterialStacks(bool)
Gets all the Material Stacks in this TD instance.
public List<MaterialStack> GetMaterialStacks(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetMeasure(string, bool)
Gets an existing Measure from this TD instance.
public Measure GetMeasure(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Measure in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetMeasureMappingTolerances()
Gets the mapping tolerances used by Measures in this TD instance.
public MeasureMappingTolerances GetMeasureMappingTolerances()
Returns
See Also
GetMeasures(bool)
Gets all the Measures in this TD instance.
public List<Measure> GetMeasures(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetMeshFD(string, bool)
Gets an existing MeshFD from this TD instance.
public MeshFD GetMeshFD(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a MeshFD in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetMeshFDs(bool)
Gets all the MeshFDs in this TD instance.
public List<MeshFD> GetMeshFDs(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetModel()
Gets a Model representing all OpenTD-supported entities in this TD instance.
public Model GetModel()
Returns
Model.
See Also
GetNode(string, bool)
Gets an existing Node from this TD instance.
public Node GetNode(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Node in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetNodeCorrespondenceMap()
Gets the TRASYS-style node correspondence dictionary. Keys are SINDA node names. Values are lists of RadCAD nodes that correspond to each SINDA node. Use SetNodeCorrespondenceState to turn node correspondence on or off.
public Dictionary<string, List<string>> GetNodeCorrespondenceMap()
Returns
Dictionary<string, List<string>>
See Also
ThermalDesktop.SetNodeCorrespondenceState(bool), ThermalDesktop.SetNodeCorrespondenceMap(Dictionary<string, List<string>>)
GetNodes(bool)
Gets all the Nodes in this TD instance.
public List<Node> GetNodes(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetNotes()
Gets the dwg notes from this TD instance.
public Notes GetNotes()
Returns
See Also
GetNumberOfDbObjects(bool, bool, bool, bool, bool)
public int GetNumberOfDbObjects(bool forward = true, bool modelSpace = true, bool xRefs = false, bool paperSpace = false, bool tdOnly = true)
Parameters
forward bool
modelSpace bool
xRefs bool
paperSpace bool
tdOnly bool
Returns
GetOffsetParaboloid(string, bool)
Gets an existing OffsetParaboloid from this TD instance.
public OffsetParaboloid GetOffsetParaboloid(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to an OffsetParaboloid in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetOffsetParaboloids(bool)
Gets all the OffsetParaboloids in this TD instance.
public List<OffsetParaboloid> GetOffsetParaboloids(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetOgive(string, bool)
Gets an existing Ogive from this TD instance.
public Ogive GetOgive(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to an Ogive in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetOgives(bool)
Gets all the Ogives in this TD instance.
public List<Ogive> GetOgives(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetOpticalPropDBPathname()
Gets the pathname of the current optical property database file in use by this TD instance.
public string GetOpticalPropDBPathname()
Returns
GetOpticalProps(string)
Gets an existing optical property from this TD instance.
public OpticalProps GetOpticalProps(string name)
Parameters
name string
Returns
See Also
GetOpticalPropss(bool)
Gets all the optical properties in this TD instance.
public List<OpticalProps> GetOpticalPropss(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetOrbit(string)
Gets an existing orbit from this TD instance.
public Orbit GetOrbit(string name)
Parameters
name string
Returns
See Also
GetOrbits()
Gets all the orbits in this TD instance.
public List<Orbit> GetOrbits()
Returns
See Also
GetParabolicTrough(string, bool)
Gets an existing ParabolicTrough from this TD instance.
public ParabolicTrough GetParabolicTrough(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a ParabolicTrough in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetParabolicTroughs(bool)
Gets all the ParabolicTroughs in this TD instance.
public List<ParabolicTrough> GetParabolicTroughs(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetParaboloid(string, bool)
Gets an existing Paraboloid from this TD instance.
public Paraboloid GetParaboloid(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Paraboloid in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetParaboloids(bool)
Gets all the Paraboloids in this TD instance.
public List<Paraboloid> GetParaboloids(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetPath(string, bool)
Gets an existing Path from this TD instance.
public Path GetPath(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Path in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetPaths(bool)
Gets all the Paths in this TD instance.
public List<Path> GetPaths(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetPipe(string, bool)
Gets an existing Pipe from this TD instance.
public Pipe GetPipe(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Pipe in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetPipes(bool)
Gets all the Pipes in this TD instance.
public List<Pipe> GetPipes(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetPolygon(string)
Gets an existing single-face MeshFD from this TD instance.
public Polygon GetPolygon(string handle)
Parameters
handle string
An AutoCAD handle attached to a single-face MeshFD in this TD instance.
Returns
See Also
GetPolygons(bool)
Gets all the Polygons in this TD instance.
public List<Polygon> GetPolygons(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetPolyline(string, bool)
Gets an existing LWPolyline from this TD instance.
public Polyline GetPolyline(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to an LWPolyline in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetPolyline3d(string, bool)
Gets an existing 3d polyline from this TD instance.
public Polyline3d GetPolyline3d(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to an 3d polyline in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetPolyline3ds(bool)
Gets all the 3d polylines in this TD instance.
public List<Polyline3d> GetPolyline3ds(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetPolylines(bool)
Gets all the LWPolylines in this TD instance.
public List<Polyline> GetPolylines(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetPort(string, bool)
Gets an existing Port from this TD instance.
public Port GetPort(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Port in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetPorts(bool)
Gets all the Ports in this TD instance.
public List<Port> GetPorts(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetPostProcessingDataMapper(string, bool)
Gets an existing PostProcessingDataMapper from this TD instance.
public DataMapper GetPostProcessingDataMapper(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a PostProcessingDataMapper in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetPostProcessingDataMappers(bool)
Gets all the PostProcessingDataMappers in this TD instance.
public List<DataMapper> GetPostProcessingDataMappers(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetPressureLoad(string, bool)
Gets an existing PressureLoad from this TD instance.
public PressureLoad GetPressureLoad(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a PressureLoad in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetPressureLoads(bool)
Gets all the PressureLoads in this TD instance.
public List<PressureLoad> GetPressureLoads(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetQuadraticBrick(string, bool)
Gets an existing QuadraticBrick from this TD instance.
public QuadraticBrick GetQuadraticBrick(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a QuadraticBrick in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetQuadraticBricks(bool)
Gets all the QuadraticBricks in this TD instance.
public List<QuadraticBrick> GetQuadraticBricks(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetQuadraticPyramid(string, bool)
Gets an existing QuadraticPyramid from this TD instance.
public QuadraticPyramid GetQuadraticPyramid(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a QuadraticPyramid in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetQuadraticPyramids(bool)
Gets all the QuadraticPyramids in this TD instance.
public List<QuadraticPyramid> GetQuadraticPyramids(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetQuadraticQuad(string, bool)
Gets an existing QuadraticQuad from this TD instance.
public QuadraticQuad GetQuadraticQuad(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a QuadraticQuad in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetQuadraticQuads(bool)
Gets all the QuadraticQuads in this TD instance.
public List<QuadraticQuad> GetQuadraticQuads(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetQuadraticTet(string, bool)
Gets an existing QuadraticTet from this TD instance.
public QuadraticTet GetQuadraticTet(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a QuadraticTet in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetQuadraticTets(bool)
Gets all the QuadraticTets in this TD instance.
public List<QuadraticTet> GetQuadraticTets(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetQuadraticTri(string, bool)
Gets an existing QuadraticTri from this TD instance.
public QuadraticTri GetQuadraticTri(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a QuadraticTri in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetQuadraticTris(bool)
Gets all the QuadraticTris in this TD instance.
public List<QuadraticTri> GetQuadraticTris(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetQuadraticWedge(string, bool)
Gets an existing QuadraticWedge from this TD instance.
public QuadraticWedge GetQuadraticWedge(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a QuadraticWedge in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetQuadraticWedges(bool)
Gets all the QuadraticWedges in this TD instance.
public List<QuadraticWedge> GetQuadraticWedges(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetRectangle(string, bool)
Gets an existing Rectangle from this TD instance.
public Rectangle GetRectangle(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Rectangle in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetRectangles(bool)
Gets all the Rectangles in this TD instance.
public List<Rectangle> GetRectangles(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetScarfedCone(string, bool)
Gets an existing ScarfedCone from this TD instance.
public ScarfedCone GetScarfedCone(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a ScarfedCone in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetScarfedCones(bool)
Gets all the ScarfedCones in this TD instance.
public List<ScarfedCone> GetScarfedCones(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetScarfedCylinder(string, bool)
Gets an existing ScarfedCylinder from this TD instance.
public ScarfedCylinder GetScarfedCylinder(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a ScarfedCylinder in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetScarfedCylinders(bool)
Gets all the ScarfedCylinders in this TD instance.
public List<ScarfedCylinder> GetScarfedCylinders(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetSelection(SelectionOptions)
Prompts the user to select entities in TD graphically, or from the Model Browser, or from Domains or AutoCAD Groups.
public List<EntityDescriptor> GetSelection(SelectionOptions options)
Parameters
options SelectionOptions
Returns
See Also
GetSelection()
Prompts the user to select entities in TD using default SelectionOptions.
public List<EntityDescriptor> GetSelection()
Returns
See Also
GetSolidBrick(string, bool)
Gets an existing SolidBrick from this TD instance.
public SolidBrick GetSolidBrick(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a SolidBrick in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetSolidBricks(bool)
Gets all the SolidBricks in this TD instance.
public List<SolidBrick> GetSolidBricks(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetSolidCone(string, bool)
Gets an existing SolidCone from this TD instance.
public SolidCone GetSolidCone(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a SolidCone in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetSolidCones(bool)
Gets all the SolidCones in this TD instance.
public List<SolidCone> GetSolidCones(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetSolidCylinder(string, bool)
Gets an existing SolidCylinder from this TD instance.
public SolidCylinder GetSolidCylinder(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a SolidCylinder in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetSolidCylinders(bool)
Gets all the SolidCylinders in this TD instance.
public List<SolidCylinder> GetSolidCylinders(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetSolidEllipsoid(string, bool)
Gets an existing SolidEllipsoid from this TD instance.
public SolidEllipsoid GetSolidEllipsoid(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a SolidEllipsoid in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetSolidEllipsoids(bool)
Gets all the SolidEllipsoids in this TD instance.
public List<SolidEllipsoid> GetSolidEllipsoids(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetSolidSphere(string, bool)
Gets an existing SolidSphere from this TD instance.
public SolidSphere GetSolidSphere(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a SolidSphere in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetSolidSpheres(bool)
Gets all the SolidSpheres in this TD instance.
public List<SolidSphere> GetSolidSpheres(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetSphere(string, bool)
Gets an existing Sphere from this TD instance.
public Sphere GetSphere(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Sphere in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetSpheres(bool)
Gets all the Spheres in this TD instance.
public List<Sphere> GetSpheres(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetSpline(string, bool)
Gets an existing Spline from this TD instance.
public Spline GetSpline(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to an Spline in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetSplines(bool)
Gets all the Splines in this TD instance.
public List<Spline> GetSplines(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetSubmodels(bool)
Gets all the Submodels in this TD instance.
public List<Submodel> GetSubmodels(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetSymbol(string)
Gets an existing Symbol from this TD instance.
public Symbol GetSymbol(string name)
Parameters
name string
Returns
See Also
GetSymbolValue(string)
Gets an evaluated symbol value from this TD instance. Throws an OpenTDException if symbol does not exist.
public double GetSymbolValue(string name)
Parameters
name string
The name.
Returns
System.Double.
GetSymbols()
Gets all the Symbols in this TD instance.
public List<Symbol> GetSymbols()
Returns
See Also
GetTec(string, bool)
Gets an existing Tec from this TD instance.
public Tec GetTec(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Tec in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetTecs(bool)
Gets all the Tecs in this TD instance.
public List<Tec> GetTecs(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetTee(string, bool)
Gets an existing Tee from this TD instance.
public Tee GetTee(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Tee in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetTees(bool)
Gets all the Tees in this TD instance.
public List<Tee> GetTees(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetText(string, bool)
Gets an existing Text annotation from this TD instance.
public Text GetText(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Text in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetTexts(bool)
Gets all the Text annotations in this TD instance.
public List<Text> GetTexts(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetThermalDesktopVersion()
Gets the thermal desktop version.
public string GetThermalDesktopVersion()
Returns
System.String.
GetThermoPropDBPathname()
Gets the pathname of the current thermophysical property database file in use by this TD instance.
public string GetThermoPropDBPathname()
Returns
GetThermoProps(string)
Gets an existing ThermoProps from this TD instance.
public ThermoProps GetThermoProps(string name)
Parameters
name string
Returns
See Also
GetThermoPropss(bool)
Gets all the ThermoProps in this TD instance.
public List<ThermoProps> GetThermoPropss(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetTie(string, bool)
Gets an existing Tie from this TD instance.
public Tie GetTie(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Tie in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetTies(bool)
Gets all the Ties in this TD instance.
public List<Tie> GetTies(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetTorus(string, bool)
Gets an existing Torus from this TD instance.
public Torus GetTorus(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Torus in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetToruses(bool)
Gets all the Toruss in this TD instance.
public List<Torus> GetToruses(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetTracker(string, bool)
Gets an existing Tracker from this TD instance.
public Tracker GetTracker(string handle, bool searchXREFS = false)
Parameters
handle string
An AutoCAD handle attached to a Tracker in this TD instance.
searchXREFS bool
If true, xref drawings will be included in the search.
Returns
See Also
GetTrackers(bool)
Gets all the Trackers in this TD instance.
public List<Tracker> GetTrackers(bool searchXREFS = false)
Parameters
searchXREFS bool
if set to true also search XREF's referenced in this TD instance.
Returns
See Also
GetXREFpathnames()
public List<XrefInfo> GetXREFpathnames()
Returns
HideModelBrowser()
public void HideModelBrowser()
IsConnected()
Determines whether this ThermalDesktop is connected to an instance of TD.
public bool IsConnected()
Returns
true if this instance is connected; otherwise, false.
OpenOpticalPropDB(string)
Opens an optical property database file.
public void OpenOpticalPropDB(string pathname)
Parameters
pathname string
The rco pathname.
OpenThermoPropDB(string)
Opens a thermophysical property database file.
public void OpenThermoPropDB(string pathname)
Parameters
pathname string
The tdp pathname.
Print(string)
Prints the specified text to the AutoCAD commandline, without automatically adding a newline.
public void Print(string text)
Parameters
text string
The text.
ResetGraphics()
Calls the TD Reset Graphics command.
public void ResetGraphics()
RestoreIsoView(IsoViews)
Restores the view to one of the standard isometric views defined by AutoCAD.
public void RestoreIsoView(IsoViews view)
Parameters
view IsoViews
The view.
RestoreOrthoView(OrthoViews)
Restores the view to one of the standard orthographic views defined by AutoCAD.
public void RestoreOrthoView(OrthoViews view)
Parameters
view OrthoViews
The view.
RestoreView(string)
Restores the view to an AutoCAD named view.
public void RestoreView(string viewName)
Parameters
viewName string
Name of the view.
SaveAs(string)
Saves the dwg. Automatically overwrites existing file at pathname.
public void SaveAs(string pathname)
Parameters
pathname string
The pathname.
SendCommand(string, bool, int)
Sends an AutoCAD command.
public void SendCommand(string command, bool echo = true, int delay = 1000)
Parameters
command string
The command. (Use spaces for carriage returns.)
echo bool
if set to true echo the command to the commandline.
delay int
Delay in ms to wait after sending command. (AutoCAD commands are executed asynchronously.)
SendLegacyComCommand(string, int)
Emulates the TD COM parser -- an ancestor of OpenTD -- without using COM.
public string SendLegacyComCommand(string command, int delay = 0)
Parameters
command string
delay int
Delay in ms to wait after sending command. (Some legacy COM commands are executed asynchronously.)
Returns
Remarks
Before OpenTD, TD offered a simple API via COM. The TD COM server operated by parsing a command string. The SendLegacyComCommand method emulates the TD COM parser, without having to connect to TD via COM.
Most TD COM functionality can be accomplished using OpenTD methods. The SendLegacyComCommand method is included for completeness, and to ease the process of migrating an existing TD COM application to OpenTD. SendLegacyComCommand is not recommended to be used by new OpenTD applications.
Since the underlying RadCAD functions used by the COM server report success/failure via the AutoCAD console and not via a return value, SendLegacyComCommand may appear to succeed when it did not. It will only throw exceptions if it doesn't recognize a command or if the command crashes AutoCAD, and not if the command fails in some non-catastrophic way.
SendLegacyComCommand usually returns an empty string. The only exception to this is the "get" command, which attempts to return a string representing the value of a symbol.
The following commands are supported:
acadcommand "command" ["optional parameter" "optional parameter" ...] Executes an AutoCAD console command. The command and any parameters are individually enclosed in double quotes. New applications should use ThermalDesktop.SendCommand instead. Examples: SendLegacyComCommand("acadcommand "zoom" "extents"") SendLegacyComCommand("acadcommand "line" "1,1" "2,2" """)
case [optional parameters] Calculates radiation and Cond/Cap data for the current case set. Examples: SendLegacyComCommand("case") // Calculates all radiation and cond/cap data. SendLegacyComCommand("case rad0 rad3 cc") // Calculates 1st and 4th radation tasks and cond/cap data.
caseset parameters Provides access to the Case Set Manager. New applications should use OpenTD CaseSetManager and/or CaseSet instead.
copyradkfiles fromFilename toFilename Copies radk files.
createmapset Undocumented interactive command.
disableuserbreaks Disables the ability to press ESC to end tasks.
displaycurrentdataset Displays the current post-processing dataset. New applications should use OpenTD.PostProcessing instead.
dumpppmap outputFilename Undocumented post-processing command. New applications should use OpenTD.Results instead.
exitautocad Attempts to exit Thermal Desktop without saving the dwg. New applications should use ThermalDesktop.Quit instead.
exportnodeinfo Calls the RcExportNodeInfo command. New applications should use ThermalDesktop.ExportNodeInfo instead.
get symbolName Returns a string representing the evaluated value of a symbol. New applications should use ThermalDesktop.GetSymbol instead.
importcomet filename Undocumented.
mapnastran inputFilename outputFilename [optional tolerance] Maps the current post-processing data to the Nastran mesh defined in inputFilename, writing the results in Nastran format in outputFilename.
object This command is used by Dynamic Sinda to display the value of OBJECT in the TD Dynamic Sinda status window.
opticalias alias opticalProp Changes what optical property an alias refers to. The names cannot include spaces. New applications should use ThermalDesktop.OpticalPropAliasManager instead.
orbit parameters Provides access to the Heating Rate Case Manager. New applications should use OpenTD Orbit instead.
output message Writes message to the TD Dynamic Sinda status window.
postprocess filename [optional delay in ms] Creates or updates a TEXT-type dataset from a file. New applications should use PostProcessing.DatasetManager instead.
ppnexttime Steps forward to the next record in the current dataset. New applications should use PostProcessing.DatasetManager instead.
ppsavefile savOrCsrPathname Creates or updates a SF-type dataset from a save file or CSR directory. New applications should use PostProcessing.DatasetManager instead.
ppsettime index Sets the record for the current post-processing dataset. Uses 0-indexed record array index (0, 1, 2, etc) not record number. New applications should use PostProcessing.DatasetManager instead.
sendf4 Sends the F4 keycode. Useful for capturing the screen using hypersnap/cam.
set symbolName expressionIncludingSpaces Updates an existing symbol's expression. New applications should use OpenTD Symbol instead.
setmapconstanttol toleranceInDwgUnits Sets the constant tolerance to be used by the mapnastran command, in dwg units.
setmapcurrentorall parameter If parameter is ALL, the mapnastran command will perform the mapping for all records in the dataset. If parameter is any other value, it will perform the mapping at the current record.
setmapset mapsetName Instructs the mapnastran command to only use the specified object mapset.
setmapvariabletol TolerancesSeperatedBySpaces Sets the progressive tolerance to be used by the mapnastran command, in dwg units.
startcase [optional name] Runs the current case set, or the one specified by the optional name. New applications should use OpenTD CaseSetManager and/or CaseSet instead.
tdmapallmappers appendToFilename Executes all mappers. Inserts the appendToFilename string at the end of each output file, before any extension.
thermoalias alias thermoProp Changes what thermophysical property an alias refers to. The names cannot include spaces. New applications should use ThermalDesktop.ThermoPropAliasManager instead.
update Updates all entity values based on symbol expressions.
SetAutocadVariable(string, int)
Sets an autocad variable that takes an integer value.
public void SetAutocadVariable(string name, int value)
Parameters
name string
The name.
value int
The value.
SetAutocadVariable(string, double)
Sets an autocad variable that takes a double value.
public void SetAutocadVariable(string name, double value)
Parameters
name string
The name.
value double
The value.
SetAutocadVariable(string, string)
Sets an autocad variable that takes a string value.
public void SetAutocadVariable(string name, string value)
Parameters
name string
The name.
value string
The value.
SetCurrentLayer(string)
public void SetCurrentLayer(string name)
Parameters
name string
SetDwgUnits(UnitsData, bool)
Sets the dwg units. Deprecated. Use ThermalDesktop.UserPreferences.Units instead.
public void SetDwgUnits(UnitsData x, bool DoNotScaleModel = false)
Parameters
The units.
DoNotScaleModel bool
if set to true do not scale model to new length units.
SetInstanceDataListString(List<string>)
Use the Set/GetInstanceData methods to store general data with this OpenTD server.
public void SetInstanceDataListString(List<string> x)
Parameters
SetNodeCorrespondenceMap(Dictionary<string, List<string>>)
Sets the TRASYS-style node correspondence dictionary. Keys are SINDA node names. Values are lists of RadCAD nodes that correspond to each SINDA node. Use SetNodeCorrespondenceState to turn node correspondence on or off.
public void SetNodeCorrespondenceMap(Dictionary<string, List<string>> map)
Parameters
map Dictionary<string, List<string>>
See Also
ThermalDesktop.SetNodeCorrespondenceState(bool), ThermalDesktop.GetNodeCorrespondenceMap()
SetNodeCorrespondenceState(bool)
Turns node correspondence on or off.
public void SetNodeCorrespondenceState(bool activated)
Parameters
activated bool
if set to true activates node correspondence.
SetSelection(IEnumerable<DbObject>)
Highlight objects in the TD graphics window.
public void SetSelection(IEnumerable<DbObject> items)
Parameters
items IEnumerable<DbObject>
SetSelection(IEnumerable<string>)
Highlight objects by handle in the TD graphics window.
public void SetSelection(IEnumerable<string> itemHandles)
Parameters
itemHandles IEnumerable<string>
SetUnits(UnitsData)
Sets OpenTD WorkingUnits and the TD dwg units.
public void SetUnits(UnitsData x)
Parameters
The units.
SetView(IsoViews)
public void SetView(IsoViews view)
Parameters
view IsoViews
SetView(OrthoViews)
public void SetView(OrthoViews view)
Parameters
view OrthoViews
SetView(string)
public void SetView(string namedView)
Parameters
namedView string
SetVisualStyle(VisualStyles)
Sets the AutoCAD visual style.
public void SetVisualStyle(VisualStyles style)
Parameters
style VisualStyles
The style.
ShowModelBrowser()
public void ShowModelBrowser()
SnapMeasures(IEnumerable<string>)
public void SnapMeasures(IEnumerable<string> handles)
Parameters
handles IEnumerable<string>
UpdateFromTD()
public void UpdateFromTD()
UpdateGraphics()
Calls the TD Updates Graphics command.
public void UpdateGraphics()
UpdateMeasures()
public void UpdateMeasures()
ZoomExtents()
Zooms the view to the extents of the model.
public void ZoomExtents()
_Scratchpad()
Do not use.
public void _Scratchpad()