Re: Call function in external dll in Revit2016R2 doesn't work.
Hello, I added a dumpdata.zip file Philippe.
View ArticleRe: How to Get the geometry of family which the curtain wall belong?
I have detected the geometry of this curtain wall,finding that it only contains the grid lines not the info of panel,and so Ithink if I could get curtainwall's familyinstance and then get the panel...
View ArticleRe: How to Get the geometry of family which the curtain wall belong?
it is a good idea, but I am curious of it that whether we could get curtainwall's familyinstance and then get the panel info in it? I am trying to find the api to do this.
View ArticleToken scope not set. This request does not have the required privilege.
Hi All,I have meet an citical problem when I create a bucket on api:developer.api.autodesk.com/oss/v2/buckets . The response is 'Token scope not set. This request does not have the required...
View ArticleRe: How to Get the geometry of family which the curtain wall belong?
A curtain wall is a system type, so you won't get a familyInstance for it. There's a project in the SDK that may help. (There may be more!) Just search for CurtainWallGrid (or the object type you're...
View ArticleRe: How to Get the geometry of family which the curtain wall belong?
i will try it, and I have another question: I use the api Panel.get_Geometry get the geometry of panel on curtainwall,but how to know the corresponding material of panel's parts
View ArticleRe: Getting the multiple element IDs for materials in a wall
Thanks for your reply. I have tried implementing your Get() method as follows: FilteredElementCollector wallTypes // 2014 = new FilteredElementCollector(rvtDoc) .OfClass(typeof(WallType)); string s =...
View ArticleRe: How to Get the geometry of family which the curtain wall belong?
It depends what you want to do with the information?If you just want volumes, you should be able to use:Dim materialIds As ICollection(Of DB.ElementId) = elem.GetMaterialIds(False) For Each materialId...
View ArticleRe: Getting the multiple element IDs for materials in a wall
The Get method returns a IEnumerable<Material>, even duplicates. And you are just adding that to the string. Try replacing the line s += Get(wallType) + "\r\n"; wih this: foreach (var material...
View ArticleRe: Getting the multiple element IDs for materials in a wall
Thanks again for your reply. I incorporated this method and now the code is generating this error " System.NullReferenceException: Object reference not set to an instance of an object . at...
View Articleassign material to directshape via paint
seems it's not working. I tried 2017 new ShapeImporter to create DirectShape element, works fine, but doesn't work when using Document.Paint, is it because I have to use it before or during creating...
View ArticleHow to get all Family in Project Document
Hi I am trying to Get all Editable Family on Project Document but it not working with the this code collector = new FilteredElementCollector(doc).OfClass(typeof(Family)); I can use FamilySymbol to...
View ArticleRe: Getting the multiple element IDs for materials in a wall
Allan, here is the refactored method. public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements) { var uiDoc = commandData.Application.ActiveUIDocument; var rvtDoc...
View ArticleRe: Can I find out when a linked document is loaded or unloaded?
Okay, it took me a while to get back to this, but the suggested solution above works. You can register an observer for RevitLinkType and use this to determine link additions/deletions/modifications. It...
View ArticleRe: How to get all Family in Project Document
Hi,The quick answer is by importing system.linq and using .distinct():EditableFamily.distinct() Cheers, -Matt
View ArticleRe: Can I find out when a linked document is loaded or unloaded?
With the frequency that this iupdater will be called, you won't even notice it.This method is intended for this use, and much heavier lifting.Note that *what you do* in the iupdater is what takes the...
View ArticleRe: How to get all Family in Project Document
Hi Matt I try this method before and I still have the duplicate Family on the list. Thanks
View ArticleRe: How to get all Family in Project Document
Here is the cure for your pain :)The following code lists all the loadable families names in your project and populates it in a Task dialog. #region Namespaces using System; using System.Text; using...
View ArticleRe: assign material to directshape via paint
Can you please provide a sample of your Revit project and the VS solution, so I may can help.
View ArticleRe: How to Get the geometry of family which the curtain wall belong?
Here is the cure for your pain.In the following code I assume your project has 1 curtain wall with some panels.the code will detect how many panels in the system and the materiel assign to each.It also...
View Article