revit | Experimental plugin for Autodesk Revit
kandi X-RAY | revit Summary
kandi X-RAY | revit Summary
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
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of revit
revit Key Features
revit Examples and Code Snippets
Community Discussions
Trending Discussions on revit
QUESTION
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:08Update 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
QUESTION
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:21ok.. 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!
QUESTION
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:34Door 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).
QUESTION
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:15I believe this post should help https://forge.autodesk.com/blog/bim360-docs-setting-external-references-between-files-upload-linked-files.
QUESTION
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:10The 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.
QUESTION
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:42You 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.
QUESTION
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:48welcome 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.
QUESTION
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 topicsValueError 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:07You 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:
QUESTION
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:57Current code is fine. You need to get the active view and use a transaction to set the element in the current view
QUESTION
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:30You 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.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install revit
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page