Interface ICADHost
Provides the interface that CAD add-ins have to implement to integrate the UOL SDK with the CAD Application for operations such as inserting CAD contents or updating CAD content properties.
Namespace: UOL.SDK
Assembly: UOL.SDK.dll
Syntax
public interface ICADHost
Methods
InsertCadContent(String, String, IEnumerable<CADProperty>, Boolean, CADMetadata)
Insert new content in the CAD file.
Declaration
CADHostResult InsertCadContent(string contentPath, string name, IEnumerable<CADProperty> properties, bool placeInstance, CADMetadata cadMetadata)
Parameters
Type | Name | Description |
---|---|---|
System. |
contentPath | The path to the content file to insert. |
System. |
name | The name of the CAD element that is inserted in CAD. |
System. |
properties | The properties to inject into the CAD element. |
System. |
placeInstance | A value indicating whether to place an instance of the newly loaded content. |
UOL. |
cadMetadata | The UOL. |
Returns
Type | Description |
---|---|
CADHost |
A CADHost |
SetPropertyValue(Object, String, Object)
Sets the property value
for the specified cadObject
.
Declaration
CADHostResult SetPropertyValue(object cadObject, string propertyName, object value)
Parameters
Type | Name | Description |
---|---|---|
System. |
cadObject | The CAD object to set properties for. |
System. |
propertyName | The name of the property to set. |
System. |
value | The value to set. |
Returns
Type | Description |
---|---|
CADHost |
A CADHost |
WriteAdditionalData(Object, String)
Writes additional data to the cadObject
.
Declaration
CADHostResult WriteAdditionalData(object cadObject, string data)
Parameters
Type | Name | Description |
---|---|---|
System. |
cadObject | The CAD object to write additional data to. |
System. |
data | The additional data to write to the |
Returns
Type | Description |
---|---|
CADHost |
A CADHost |