ObjectProxies

public static class ObjectProxies
Collection of all loaded document object proxies.

Properties

Chapters

#
Enumerate over all chapters in the order in which they should appear in the tabs.
public static IEnumerable<ObjectProxies.Chapter> Chapters { get; }

Count

#
Gets the number of proxies in this server.
public static int Count { get; }

DefaultRules

#
Gets the default rules used for proxy organisation.
public static Rules DefaultRules { get; }

Pins

#
Enumerate over all available pins id pairs.
public static IEnumerable<(Guid ioId, Guid pinId)> Pins { get; }

Proxies

#
Enumerate over all proxies which the user is allowed to browse. Objects belonging to a fleeting plugin are omitted — see FleetingPlugins — as are they from Chapters and from Search(string[], bool, bool, Maths.MaximumSearchMultiple<object>).
public static IEnumerable<ObjectProxy> Proxies { get; }

Methods

CreateOverlappingParameter

#
Create a new standard parameter which is compatible with all given parameters.
public static IParameter CreateOverlappingParameter()

Describe

#
Describe an object.
public static string Describe(
id,
name,
type,
fallback = null
)

FindById

#
Try and get a proxy based on ID.
public static ObjectProxy FindById(
id
)

FindByType

#
Try and get a proxy based on a document object type.
public static ObjectProxy FindByType(
type
)

IsKnownId

#
Gets whether a specific ObjectId has been registered with this server.
public static bool IsKnownId(
id
)

RegisterMigrator

#
Add a new migrator instance to this server.
public static bool RegisterMigrator(
migrator
Migrator instance.
)
True if the migrator was added, false if one for the same id was registered already.

RegisterMigrator

#
Add a new migrator type to this server.
public static bool RegisterMigrator(
migratorType
Type of migrator class.
)
True if migrator was added.

RegisterObject

#
Add a new object type to this server.
public static bool RegisterObject(
objectType,
Object type, must be a constructible type which is assignable to IDocumentObject.
plugin
Plugin which owns this object.
)
True if type was added.

RegisterProxy

#
Register a custom proxy. You only need this method if your components are not compiled as part of your plugin.
public static bool RegisterProxy(
objectProxy
Custom object proxy to add.
)
True if the proxy was added.

SanitiseSearchQuery

#
Convert a query string into valid search fragments.
public static string[] SanitiseSearchQuery(
query,
Query string to parse.
out bool
includeHidden,
Set to true if the query is supposed to include hidden objects.
out bool
includeObsolete
Set to true if the query is supposed to include obsolete objects.
)
Array of clean search fragments.

Search

#
Search all proxies and append them to a result.
public static void Search(
queryFragments,
Clean search query terms.
includeHidden,
If true, hidden objects will be included in the search.
includeObsolete,
If true, obsolete objects will be included in the search.
results
Result to append ObjectProxy instances to.
)

StandardParameterIoId

#
Gets the IoIdAttribute of the parameter type which provides supports for the given type constraint. This method only returns basic parameters. The following types can be used to indicate "special" parameters:

Fraction -> NumericParameter

Curve -> CurveParameter

Surface -> SurfaceParameter

public static Guid StandardParameterIoId()

StandardParameterIoId

#
Gets the IoIdAttribute of the parameter type which provides supports for the given type constraint. This method only returns basic parameters. The following types can be used to indicate "special" parameters:

Fraction -> NumericParameter

Curve -> CurveParameter

Surface -> SurfaceParameter

public static Guid StandardParameterIoId(
constraint
)

TryEmit<T>

#
Try and create an instance of an IDocumentObject via its IoIdAttribute value.
public static T TryEmit<T>(
ioid
)