/// <summary>Releases unmanaged and - optionally - managed resources.</summary> /// <param name="disposing"> /// <c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param> private void Dispose(bool disposing) { if (!isDisposed) { if (disposing) { outputScene = null; transformations = null; } isDisposed = true; } }
/// <summary> /// This method is called at the very start of the export process, still before the first entity of the model was send /// out. /// </summary> /// <returns></returns> public bool Start() { transformations.Push(Transform.Identity); outputScene = new ObjectScene( generator: $"{nameof(Threejs)}.{nameof(FamilyExporter)} v{typeof(ObjectSceneExportContext).Assembly.GetName().Version}", uuid: (view3D ?? document.ActiveView).UniqueId) { Object = { Name = $"Revit {document.Title}", }, }; return(true); }