Class Miscellaneous
Processable miscellaneous members created using the custom members from the custom member plugin MiscellaneousCM.
These miscellaneous members should be available in a typical SDS2
install, but it is possible a user has disabled them. And so you
should check IsAvailable before proceeding to create new ones.
You can use the PythonObject property on these to set various properties
normally available in python.
Inheritance
Inherited Members
Namespace: DesignData.SDS2.Model
Assembly: DesignData.SDS2.Model.dll
Syntax
public class Miscellaneous : Member
Properties
Grade
Returns a steel grade, or null if not applicable
Declaration
public virtual SteelGrade Grade { get; set; }
Property Value
Type | Description |
---|---|
SteelGrade |
Remarks
To set a grade look for the Grade property on the derived class. You'll need to choose a grade from an appropriate grade list for that material type. Which can be found in a static property, on the corresponding material class, called AvailableSteelGrades.
This hides MemberBrief.Grade which will not work correctly for Miscellaneous
members. They're two different values, and MemberBrief.Grade is ignored
by Miscellaneous members.
Setting this on a member that doesn't override the grade property
will result in an InvalidOperationException
IsAvailable
true if MiscellaneousCM is available providing processable miscellaneous members. Check this before attempting to construct any classes deriving from this class.
Declaration
public static bool IsAvailable { get; }
Property Value
Type | Description |
---|---|
bool |
PythonObject
Return the python object, should be treated as a "dynamic" type
Declaration
public dynamic PythonObject { get; }
Property Value
Type | Description |
---|---|
dynamic |
Methods
Dispose(bool)
Processable miscellaneous members created using the custom members from the custom member plugin MiscellaneousCM.
These miscellaneous members should be available in a typical SDS2
install, but it is possible a user has disabled them. And so you
should check IsAvailable before proceeding to create new ones.
You can use the PythonObject property on these to set various properties
normally available in python.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |