revit | Experimental plugin for Autodesk Revit

 by   AMEE C# Version: Current License: BSD-3-Clause

kandi X-RAY | revit Summary

kandi X-RAY | revit Summary

revit is a C# library. revit has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

A prototype Autodesk Revit Architecture 2012 addin that uses AMEEconnect to show environmental data for materials during design. Licensed under the BSD 3-Clause license (See LICENSE.txt for details). Authors: David Laing david.laing@amee.com. Copyright: Copyright (c) 2012 AMEE UK Ltd.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              revit has a low active ecosystem.
              It has 22 star(s) with 14 fork(s). There are 10 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 7 open issues and 13 have been closed. On average issues are closed in 7 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of revit is current.

            kandi-Quality Quality

              revit has no bugs reported.

            kandi-Security Security

              revit has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              revit is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              revit releases are not available. You will need to build from source code and install.
              Installation instructions are available. Examples and code snippets are not available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of revit
            Get all kandi verified functions for this library.

            revit Key Features

            No Key Features are available at this moment for revit.

            revit Examples and Code Snippets

            No Code Snippets are available at this moment for revit.

            Community Discussions

            QUESTION

            Revit shared coordinates to Forge viewer
            Asked 2021-Jun-11 at 04:08

            What is the correct process for getting a transform between Forge coordinates and Revit's shared coordinates? I know there is globalOffset, but does it reference the Revit project internal coordinate system or shared coordinates?

            ...

            ANSWER

            Answered 2021-Jun-11 at 04:08

            Update Jun 11th, 2021

            Now my MultipleModelUtil.js supports the alignments I shared below. Also, we can easily tell Forge Viewer to use By shared coordinates to aggregate models. Here is the code snippet, and you can check out here to know supported alignments

            Source https://stackoverflow.com/questions/66895484

            QUESTION

            Reversed coordinates (x, y) in IFC
            Asked 2021-Jun-11 at 04:08

            I am trying to query some information from an IFC file by reading out the rooms (IfcSpace) and their connectionsurfacegeometry. I am using a simple example, modeled in Revit and exported in IFC4:

            3D view of the Model in Revit with some added information regarding to my question

            I am kind of confused about the way the planes of the connectionsurfaces are defined in the IFC file:

            ...

            ANSWER

            Answered 2021-Jun-07 at 19:21

            ok.. sometimes 5 mins of relaxed thinking are better then 2 hours of googling.

            The coordinate origin flips for the plane that faces top down. So the x and y axes are reversed. Simple geometry :| Finaly a rubber gum helped me :D

            I will leave it here, just in case.

            Have a nice day!

            Source https://stackoverflow.com/questions/67877211

            QUESTION

            How to exclude door sweep from bounding box using revit API
            Asked 2021-May-26 at 10:34

            I have a revit file in which there are a few doors. When i try to extract the bounding box of the door then the sweep of the door is also included in the bounding box which i dont want. I just want the bounding box corresponding to the door itself. I am very new to revitAPI and C#. I would really appreciate if you guys can write some piece of code which can help me.

            ...

            ANSWER

            Answered 2021-May-26 at 10:34

            Door sweeps are typically not shown in 3D. Have you considered asking for the 3D bounding box instead of the current view? (Pass a null into the BoundingBox/get_BoundingBox method).

            Source https://stackoverflow.com/questions/67694654

            QUESTION

            Upload Revit model files to BIM360 via API and keep them linked
            Asked 2021-May-18 at 13:15

            I have two Revit model files, A and B, where B is linked into A. I want to upload the files to BIM360 Docs via the Autodesk.Forge API and keep them linked, so I can see the combined model in the Forge Model viewer when I subsequently view model A.

            I have the two files in a zip file, but from what I understand, I shouldn't upload the zip file, but rather upload A and B separately, then create a relationship between them.

            I can upload the files without problems, and I've then tried to link them via this code (using the NON-encoded version ids for A and B):

            ...

            ANSWER

            Answered 2021-May-18 at 13:15

            QUESTION

            Autodesk Forge System.OutOfMemoryException, can we get more memory?
            Asked 2021-May-18 at 13:10

            One of the queries we run in our plugin requires a lot of memory. Would it be possibe to start up RCE and get more memory allocated for this run?

            ...

            ANSWER

            Answered 2021-May-18 at 13:10

            The error about "process memory limit exceeded" happens when calling Revit API for large model, but there is no choice to specify different RCE instance at this moment.

            While this may help in future, we are thinking about upgrading the instance, it's in the plan but no exact timeline.

            Source https://stackoverflow.com/questions/67468506

            QUESTION

            What is the best way to present or visualize the framework of my programming project
            Asked 2021-Apr-26 at 11:42

            I am a Civil Engineering student and I have been building add-in programs for Autodesk Revit using the Revit API which is written in C#. My Visual Studio Project is organized into classes that I have created for my program. What is the best/proper way to visualize and present/explain the overall framework/structure/architecture of my program? I want to explain how my code is structured along with their functionalities and interaction between classes.

            Thanks in advance

            ...

            ANSWER

            Answered 2021-Apr-26 at 11:42

            You need a diagram to show the high level modules/components of your system. Popular diagramming tools are Microsoft Visio, Modelio or draw.io.

            UML is a good option for structuring your diagrams. Use Sequence diagrams to describe time based interaction between objects/classes.

            UML is a heavy modelling language so don't worry about using every kind of UML notation of in your diagram. Rather aim for clarity, less is more definitely applies here.

            The Visual Studio Class Designer lets you create Class Diagrams of your software https://docs.microsoft.com/en-us/visualstudio/ide/class-designer/how-to-add-class-diagrams-to-projects?view=vs-2019

            In Visual Studio Enterprise Edition you can also add code maps if you have access to it.

            Source https://stackoverflow.com/questions/67265565

            QUESTION

            Is it possible to open my winForm through Revit API button I have created?
            Asked 2021-Apr-25 at 04:48

            I would like to run my winForm through the button I have created in Revit API, but I am new in this field and I am a bit stuck at the moment.

            Here in my Command.cs I am stating what button does after clicking on it. Where instead of displaying "Hello World" I would like it to open my winForm.

            Is there any way how can I do that? Do I need to somehow link my winForm application to this one?

            ...

            ANSWER

            Answered 2021-Apr-25 at 04:48

            welcome to Revit addin development. You’re close. I presume if you made your addin work above, that it is compiling as a DLL, not a standalone EXE. Your Winform app appears to be a separate EXE application.

            To make this work, you’ll want to add your Form1 to the DLL project. Once you’ve got it in there, you can change TaskDialog.Show to instead these two lines:

            var myForm - new Form1(); myForm.ShowDialog();

            With that, you’re on your way.

            Source https://stackoverflow.com/questions/67242327

            QUESTION

            ValueError: need at least one array to concatenate in Top2Vec Error
            Asked 2021-Apr-20 at 04:07

            docs = ['Consumer discretionary, healthcare and technology are preferred China equity sectors.', 'Consumer discretionary remains attractive, supported by China’s policy to revitalize domestic consumption. Prospects of further monetary and fiscal stimulus should reinforce the Chinese consumption theme.', 'The healthcare sector should be a key beneficiary of the coronavirus outbreak, on the back of increased demand for healthcare services and drugs.', 'The technology sector should benefit from increased demand for cloud services and hardware demand as China continues to recover from the coronavirus outbreak.', 'China consumer discretionary sector is preferred. In our assessment, the sector is likely to outperform the MSCI China Index in the coming 6-12 months.']

            model = Top2Vec(docs, embedding_model = 'universal-sentence-encoder')

            while running the above command, I'm getting an error that is not clearly visible for debugging what could be the root cause for the error?

            Error:

            2021-01-19 05:17:08,541 - top2vec - INFO - Pre-processing documents for training INFO:top2vec:Pre-processing documents for training 2021-01-19 05:17:08,562 - top2vec - INFO - Downloading universal-sentence-encoder model INFO:top2vec:Downloading universal-sentence-encoder model 2021-01-19 05:17:13,250 - top2vec - INFO - Creating joint document/word embedding INFO:top2vec:Creating joint document/word embedding WARNING:tensorflow:5 out of the last 6 calls to triggered tf.function retracing. Tracing is expensive and the excessive number of tracings could be due to (1) creating @tf.function repeatedly in a loop, (2) passing tensors with different shapes, (3) passing Python objects instead of tensors. For (1), please define your @tf.function outside of the loop. For (2), @tf.function has experimental_relax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. For (3), please refer to https://www.tensorflow.org/guide/function#controlling_retracing and https://www.tensorflow.org/api_docs/python/tf/function for more details. WARNING:tensorflow:5 out of the last 6 calls to triggered tf.function retracing. Tracing is expensive and the excessive number of tracings could be due to (1) creating @tf.function repeatedly in a loop, (2) passing tensors with different shapes, (3) passing Python objects instead of tensors. For (1), please define your @tf.function outside of the loop. For (2), @tf.function has experimental_relax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. For (3), please refer to https://www.tensorflow.org/guide/function#controlling_retracing and https://www.tensorflow.org/api_docs/python/tf/function for more details. 2021-01-19 05:17:13,548 - top2vec - INFO - Creating lower dimension embedding of documents INFO:top2vec:Creating lower dimension embedding of documents 2021-01-19 05:17:15,809 - top2vec - INFO - Finding dense areas of documents INFO:top2vec:Finding dense areas of documents 2021-01-19 05:17:15,823 - top2vec - INFO - Finding topics INFO:top2vec:Finding topics

            ValueError Traceback (most recent call last) in () ----> 1 model = Top2Vec(docs, embedding_model = 'universal-sentence-encoder')

            2 frames <array_function internals> in vstack(*args, **kwargs)

            /usr/local/lib/python3.6/dist-packages/numpy/core/shape_base.py in vstack(tup) 281 if not isinstance(arrs, list): 282 arrs = [arrs] --> 283 return _nx.concatenate(arrs, 0) 284 285

            <array_function internals> in concatenate(*args, **kwargs)

            ValueError: need at least one array to concatenate

            ...

            ANSWER

            Answered 2021-Apr-20 at 04:07

            You need to use more docs and unique words for it to find at least 2 topics. As an example, I just multiply your list by 10 and it works:

            Source https://stackoverflow.com/questions/65785949

            QUESTION

            Selecting a Revit Element by the ID taken from WPF DataGrid
            Asked 2021-Apr-15 at 14:48

            Before jumping straight to the problem, I will shortly describe what I am trying to code. Basically, I am trying to do a Revit Add-In which opens a WPF Dialog, shows the id and categoryName of the elements in the active view and when double-clicked on a cell containing the id, the dialog closes and the element with that id is selected.

            The problem arises after I double-click. Because the Execute() command ends after the dialog is shown, I am no longer able to perform the Selection.

            Command.cs

            ...

            ANSWER

            Answered 2021-Mar-01 at 15:57

            Current code is fine. You need to get the active view and use a transaction to set the element in the current view

            Source https://stackoverflow.com/questions/66424968

            QUESTION

            Properties DB difference for RVT and DWFX
            Asked 2021-Mar-24 at 09:30

            We are using SQLite properties database from Model Derivative API for properties processing. Previously we were using it with IFC, Revit and Inventor models, it was ok. But with DWFX format we faced with a problem that SQLite database structure is different (images attached). 'display_precision' column is missing in the '_objects_attr' table and '_objects_ercv' table additionally presented. The question is how to handle data from '_objecta_ercv' table and is it possible that we'll face with another structure for some specific file format?

            ...

            ANSWER

            Answered 2021-Mar-24 at 09:30

            You are correct, the precision field is optional and was introduced later in the SVF translation workflow which the SQLite DB is an output from. The precision field is also optional in the .json.gz files that the Viewer is using.

            The ercv table is a legacy table and only be present for .dwfx and should be empty.

            Source https://stackoverflow.com/questions/66762785

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install revit

            No installation package is currently supplied, but you can build the code using Visual C#.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/AMEE/revit.git

          • CLI

            gh repo clone AMEE/revit

          • sshUrl

            git@github.com:AMEE/revit.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link