-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from chuongmep/dev
add first test release
- Loading branch information
Showing
11 changed files
with
118 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
"AppVeyor", | ||
"AzurePipelines", | ||
"Bamboo", | ||
"Bitbucket", | ||
"Bitrise", | ||
"GitHubActions", | ||
"GitLab", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using Autodesk.Revit.DB; | ||
|
||
namespace Utils; | ||
|
||
public class FamilyUtils | ||
{ | ||
private FamilyUtils(){} | ||
|
||
public static void ConvertFamilyToFaceHostBased(Autodesk.Revit.DB.Document doc,int familyId) | ||
{ | ||
using Transaction tran = new Autodesk.Revit.DB.Transaction (doc, "convert"); | ||
tran.Start(); | ||
Autodesk.Revit.DB.FamilyUtils.ConvertFamilyToFaceHostBased(doc,new ElementId(familyId)); | ||
tran.Commit(); | ||
} | ||
|
||
public static void FamilyCanConvertToFaceHostBased(Autodesk.Revit.DB.Document doc,int familyId) | ||
{ | ||
using Transaction tran = new Autodesk.Revit.DB.Transaction (doc, "convert"); | ||
tran.Start(); | ||
Autodesk.Revit.DB.FamilyUtils.FamilyCanConvertToFaceHostBased(doc,new ElementId(familyId)); | ||
tran.Commit(); | ||
} | ||
|
||
// public static IEnumerable<Element> GetProfileSymbols(Autodesk.Revit.DB.Document doc,ProfileFamilyUsage profileFamilyUsage,bool oneCurveLoopOnly) | ||
// { | ||
// using Transaction tran = new Autodesk.Revit.DB.Transaction (doc, "convert"); | ||
// tran.Start(); | ||
// ICollection<ElementId> profileSymbols = Autodesk.Revit.DB.FamilyUtils.GetProfileSymbols(doc,profileFamilyUsage,oneCurveLoopOnly); | ||
// foreach (ElementId elementId in profileSymbols) | ||
// { | ||
// yield return doc.GetElement(elementId).ToDSType(true); | ||
// } | ||
// tran.Commit(); | ||
// } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using Autodesk.Revit.DB.Structure; | ||
|
||
namespace Utils; | ||
|
||
public class LabelUtils | ||
{ | ||
private LabelUtils() | ||
{ | ||
|
||
} | ||
|
||
/// <summary> | ||
/// Gets the user-visible name for a BuiltInParameter. | ||
/// </summary> | ||
/// <param name="builtInParameter">The BuiltInParameter to get the user-visible name.</param> | ||
/// <returns name="label">label of BuiltInParameter </returns> | ||
/// <remarks>The name is obtained in the current Revit language</remarks> | ||
public static string GetLabelFor(Autodesk.Revit.DB.BuiltInParameter builtInParameter) | ||
{ | ||
string label = Autodesk.Revit.DB.LabelUtils.GetLabelFor(builtInParameter); | ||
return label; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the user-visible name for a BuiltInCategory. | ||
/// </summary> | ||
/// <param name="builtInCategory">The BuiltInCategory to get the user-visible name.</param> | ||
/// <returns name="label">The name is obtained in the current Revit language</returns> | ||
public static string GetLabelFor(Autodesk.Revit.DB.BuiltInCategory builtInCategory) | ||
{ | ||
string label = Autodesk.Revit.DB.LabelUtils.GetLabelFor(builtInCategory); | ||
return label; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Autodesk.Revit.DB; | ||
|
||
namespace Utils; | ||
|
||
public class ParameterUtils | ||
{ | ||
private ParameterUtils() | ||
{ | ||
|
||
} | ||
|
||
#if R22 || R23 | ||
/// <summary> | ||
/// Gets the BuiltInParameter value corresponding to built-in parameter identified by the given ForgeTypeId. | ||
/// </summary> | ||
/// <returns>The BuiltInParameter value corresponding to the given parameter identifier.</returns> | ||
/// <param name="forgeTypeId">The parameter identifier.</param> | ||
public static dynamic GetBuiltInParameter(ForgeTypeId forgeTypeId) | ||
{ | ||
BuiltInParameter builtInParameter = Autodesk.Revit.DB.ParameterUtils.GetBuiltInParameter(forgeTypeId); | ||
return builtInParameter; | ||
} | ||
#endif | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
# Open MEP | ||
|
||
# Description | ||
|
||
# About | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"sdk": { | ||
"version": "6.0.0", | ||
"version": "6.*", | ||
"rollForward": "latestMinor", | ||
"allowPrerelease": true | ||
} | ||
|