Skip to content

Commit

Permalink
Update Dynamo Core to 3.3.0.6316 and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhinja committed Oct 2, 2024
1 parent 1dbcf80 commit ae7189d
Show file tree
Hide file tree
Showing 17 changed files with 42 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.26
0.6.27
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.6.27
* Update Dynamo Core to 3.3.0.6316
* Add node documentation: Parameter, Element, Room, Material, Views

## 0.6.26
* Use new function to get translated string of Warning Severity

Expand Down
4 changes: 2 additions & 2 deletions src/AssemblySharedInfoGenerator/AssemblySharedInfo.tt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyFileVersion("<#= this.MajorVersion #>.<#= this.MinorVersion #>.<#= this.BuildNumber #>.<#= this.RevisionNumber #>")]
<#+
int MajorVersion = 3;
int MinorVersion = 2;
int BuildNumber = 2;
int MinorVersion = 3;
int BuildNumber = 0;
int RevisionNumber = ((int)(DateTime.UtcNow - new DateTime(2024,1,1)).TotalDays)*10+((int)DateTime.UtcNow.Hour)/3;
#>
14 changes: 7 additions & 7 deletions src/Config/packages.aget
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"nuget": {
"references": {
"DynamicLanguageRuntime": "1.2.2",
"DynamoVisualProgramming.Core": "3.2.2.5494",
"DynamoVisualProgramming.DynamoCoreNodes": "3.2.2.5494",
"DynamoVisualProgramming.DynamoServices": "3.2.2.5494",
"DynamoVisualProgramming.Tests": "3.2.2.5494",
"DynamoVisualProgramming.WpfUILibrary": "3.2.2.5494",
"DynamoVisualProgramming.ZeroTouchLibrary": "3.2.2.5494",
"DynamoVisualProgramming.DynamoSamples": "3.2.2.5494",
"DynamoVisualProgramming.Core": "3.3.0.6316",
"DynamoVisualProgramming.DynamoCoreNodes": "3.3.0.6316",
"DynamoVisualProgramming.DynamoServices": "3.3.0.6316",
"DynamoVisualProgramming.Tests": "3.3.0.6316",
"DynamoVisualProgramming.WpfUILibrary": "3.3.0.6316",
"DynamoVisualProgramming.ZeroTouchLibrary": "3.3.0.6316",
"DynamoVisualProgramming.DynamoSamples": "3.3.0.6316",
"Greg": "3.0.1.4707",
"GregRevitAuth": "3.0.8935.26399",
"pythonnet_py38_win": "2.5.1",
Expand Down
2 changes: 1 addition & 1 deletion src/Libraries/RevitNodes/Elements/CurtainPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public static CurtainPanel[] ByElement(Element hostingElement)
if (panel is Autodesk.Revit.DB.Panel)
{
ElementId hostPanelId = (panel as Panel).FindHostPanel();
if (hostPanelId.IntegerValue != -1)
if (hostPanelId.Value != -1)
{
result.Add(null);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Libraries/RevitNodes/Elements/Floor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public Floor AddPoint(Pt point)

TransactionManager.Instance.EnsureInTransaction(DocumentManager.Instance.CurrentDBDocument);
this.InternalFloor.GetSlabShapeEditor().Enable();
this.InternalFloor.GetSlabShapeEditor().DrawPoint(point.ToXyz());
this.InternalFloor.GetSlabShapeEditor().AddPoint(point.ToXyz());
TransactionManager.Instance.TransactionTaskDone();

return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public static object GetParameterValue(Autodesk.Revit.DB.Parameter param)
/// </summary>
/// <param name="parameter"></param>
/// <returns></returns>
/// <exception cref="ApplicationException"></exception>
/// <exception cref="System.ApplicationException"></exception>
[SupressImportIntoVM]
public static Type GetParameterType(Elements.Parameter parameter)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ public static DraftingView Wrap(Autodesk.Revit.DB.ViewDrafting view, bool isRevi
return DraftingView.FromExisting(view, isRevitOwned);
}


[System.Obsolete("This method is deprecated with the introduction of the new Toposolid elements. It is recommended that Toposolid elements should be used in place of Topography elements.")]
public static Topography Wrap(Autodesk.Revit.DB.Architecture.TopographySurface topoSurface, bool isRevitOwned)
{
return Topography.FromExisting(topoSurface, isRevitOwned);
Expand Down
2 changes: 1 addition & 1 deletion src/Libraries/RevitNodes/Elements/Roof.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public void AddPoint(Pt point)

TransactionManager.Instance.EnsureInTransaction(DocumentManager.Instance.CurrentDBDocument);
this.InternalRoof.GetSlabShapeEditor().Enable();
this.InternalRoof.GetSlabShapeEditor().DrawPoint(point.ToXyz());
this.InternalRoof.GetSlabShapeEditor().AddPoint(point.ToXyz());
TransactionManager.Instance.TransactionTaskDone();
}

Expand Down
3 changes: 3 additions & 0 deletions src/Libraries/RevitNodes/Elements/Topography.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace Revit.Elements
{
[DynamoServices.RegisterForTrace]
[Obsolete("This method is deprecated with the introduction of the new Toposolid elements. It is recommended that Toposolid elements should be used in place of Topography elements.")]
public class Topography : Element
{
#region internal properties
Expand Down Expand Up @@ -59,6 +60,7 @@ public Autodesk.DesignScript.Geometry.Mesh Mesh

#region private constructors

[Obsolete("This method is deprecated with the introduction of the new Toposolid elements. It is recommended that Toposolid elements should be used in place of Topography elements.")]
private Topography(IList<XYZ> points)
{
SafeInit(() => InitTopography(points));
Expand All @@ -78,6 +80,7 @@ private Topography(TopographySurface topoSurface)
/// Initialize a Topography element
/// </summary>
/// <param name="points"></param>
[Obsolete("This method is deprecated with the introduction of the new Toposolid elements. It is recommended that Toposolid elements should be used in place of Topography elements.")]
private void InitTopography(IList<XYZ> points)
{
//Phase 1 - Check to see if the object exists and should be rebound
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ public OutOfSpaceException(string message) : base(message) { }
/// <param name="inner">Preceding exception that has caused this exception</param>
public OutOfSpaceException(string message, Exception inner) : base(message, inner) { }

#if !NO_SERIALIZATION
//#if !NO_SERIALIZATION

/// <summary>Initializes the exception from its serialized state</summary>
/// <param name="info">Contains the serialized fields of the exception</param>
/// <param name="context">Additional environmental informations</param>
protected OutOfSpaceException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context
) :
base(info, context) { }
// /// <summary>Initializes the exception from its serialized state</summary>
// /// <param name="info">Contains the serialized fields of the exception</param>
// /// <param name="context">Additional environmental informations</param>
// protected OutOfSpaceException(
// System.Runtime.Serialization.SerializationInfo info,
// System.Runtime.Serialization.StreamingContext context
// ) :
// base(info, context) { }

#endif
//#endif

}

Expand Down
2 changes: 1 addition & 1 deletion src/Libraries/RevitNodes/Filter/FilterRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static FilterRule ByRuleType(string type, object value, Elements.Paramete
Type parameterType = Revit.Elements.InternalUtilities.ElementUtils.GetParameterType(parameter);
convertedValue = Convert.ChangeType(value, parameterType);
}
catch (Exception ex)
catch (Exception)
{
throw new ApplicationException(Properties.Resources.InputValueParameterValueTypeMismatch);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private static GeometryObject ToRevitType(Autodesk.DesignScript.Geometry.Topolog
{
using (var geom = protoFace.SurfaceGeometry())
{
using (var ngeom = geom.ToNurbsSurface())
using (var ngeom = geom.ToNurbsSurface(true))
{
bool flipped = false;
// Check if the nurbs surface has flipped compared to the original surface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static IEnumerable<Surface> ToProtoType(this Autodesk.Revit.DB.Face revit
Surface converted;
try
{
converted = untrimmedSrf.TrimWithEdgeLoops(curveLoops);
converted = untrimmedSrf.TrimWithEdgeLoops(curveLoops, 0.001);
}
catch (Exception e)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Libraries/RevitNodesUI/RevitDropDown.cs
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ private Element GetInputElement()
return null == elem ? null : elem.InternalElement;
}

[Obsolete]
protected override void SerializeCore(XmlElement nodeElement, SaveContext context)
{
base.SerializeCore(nodeElement, context);
Expand All @@ -387,6 +388,7 @@ protected override void SerializeCore(XmlElement nodeElement, SaveContext contex

}

[Obsolete]
protected override void DeserializeCore(XmlElement nodeElement, SaveContext context)
{
base.DeserializeCore(nodeElement, context);
Expand Down
2 changes: 2 additions & 0 deletions test/Libraries/RevitNodesTests/Elements/TopographyTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace RevitNodesTests.Elements
{
[TestFixture]
#pragma warning disable CS0618 // Type or member is obsolete
class TopographyTests : RevitNodeTestBase
{
[Test]
Expand Down Expand Up @@ -73,4 +74,5 @@ public void ByPoints_Mutation()
topoSurf.Points[4].ShouldBeApproximately(p6);
}
}
#pragma warning restore CS0618
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class RevitToProtoMeshTests : RevitNodeTestBase
{
[Test]
[TestModel(@".\topography.rvt")]
#pragma warning disable CS0618 // Type or member is obsolete
public void ToProtoType_ShouldReturnCorrectlyScaledMesh()
{
var allMeshesInDoc =
Expand Down Expand Up @@ -47,5 +48,6 @@ public void ToProtoType_ShouldReturnCorrectlyScaledMesh()

convertedMesh.Dispose();
}
#pragma warning restore CS0618
}
}

0 comments on commit ae7189d

Please sign in to comment.