Quantcast
Channel: All Revit API Forum posts
Browsing all 66683 articles
Browse latest View live

Re: Call function in external dll in Revit2016R2 doesn't work.

Hello, I added a dumpdata.zip file Philippe.

View Article


Image may be NSFW.
Clik here to view.

Re: 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 Article


Re: 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 Article

Image may be NSFW.
Clik here to view.

Token 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 Article

Re: 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 Article


Image may be NSFW.
Clik here to view.

Re: 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 Article

Re: 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 Article

Re: 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 Article


Re: 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 Article


Re: 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 Article

assign 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 Article

How 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 Article

Re: 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 Article


Re: 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 Article

Re: 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 Article


Re: 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 Article

Re: 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 Article


Re: 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 Article

Re: 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 Article

Re: 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
Browsing all 66683 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>