Class CustomPropertySchema
A custom property schema. This is the definition for properties on a type of element/object in the model (member/material/bolt/weld/etc). It's essentially a list of the types of properties available.
Inheritance
Implements
Inherited Members
Namespace: DesignData.SDS2.Setup
Assembly: DesignData.SDS2.Setup.dll
Syntax
public sealed class CustomPropertySchema : IEnumerable
Remarks
This schema is editable, but it will be a copy, so changes are not stored in the database when they're made on this object.
Properties
Count
Get count of spacings
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Item[Int32]
Get the nth spacing
Declaration
public CustomProperty this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
CustomProperty |
Methods
Contains(String, CustomPropertyValueType, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>)
Returns true if a matching property exists in this schema. You must give a name and a type to be checked, but all other properties (remarkable, hashable, erectionViewable, exported) are optional. If they're not specified then this will return a match regardless of those values on the property in the schema.
Declaration
public bool Contains(string name, CustomPropertyValueType type, bool? remarkable = default(bool? ), bool? hashable = default(bool? ), bool? erectionViewable = default(bool? ), bool? exported = default(bool? ))
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The Name field of a CustomProperty |
CustomPropertyValueType | type | The Type field of a CustomProperty. |
System.Nullable<System.Boolean> | remarkable | The IsRemarkable field of a CustomProperty. If unset or null is passed in, then we won't check this property. If set to true or false then true is only returned if a property has remarkable set to that value. |
System.Nullable<System.Boolean> | hashable | The IsHashable field of a CustomProperty. If unset or null is passed in, then we won't check this property. If set to true or false then true is only returned if a property has hashable set to that value. |
System.Nullable<System.Boolean> | erectionViewable | The IsErectionViewable field of a CustomProperty. If unset or null is passed in, then we won't check this property. If set to true or false then true is only returned if a property has erectionViewable set to that value. |
System.Nullable<System.Boolean> | exported | The IsExported field of a CustomProperty. If unset or null is passed in, then we won't check this property. If set to true or false then true is only returned if a property has exported set to that value. |
Returns
Type | Description |
---|---|
System.Boolean |
Finalize()
Declaration
protected void Finalize()
Get(CustomPropertyItemType)
Get a copy of the custom property schema for the given item type
Declaration
public static CustomPropertySchema Get(CustomPropertyItemType itemType)
Parameters
Type | Name | Description |
---|---|---|
CustomPropertyItemType | itemType | There are different schemas for members, materials, etc, specify which you want the schema for. |
Returns
Type | Description |
---|---|
CustomPropertySchema |
GetEnumerator()
Get the enumerator object
Declaration
public IEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |