Quantcast
Channel: All Revit API Forum posts
Viewing all 66847 articles
Browse latest View live

Re: To bring elements from loaded-linked model into host model by API

$
0
0

Hi,

 

if it doesn't work, please do not mark it as solution...

Nonetheless, thank you!

 

Revitalizer


Re: Community Discussion – Revit

$
0
0

Discussion Questions:  

  1. What features of Revit do you wish were automated 

Dynamo is the best what could happen to the Revit community. With Dynamo many more Architects and engineers will learn programming soon. I hope the development of Dynamo will continue to make it faster and more stable.

 

My concern are the many different methods to access parameter and their values. Some parameters are language dependent, some have a built-in name, some have no guid and can only accessed by the ui Name, some cannot changed at all, some are managed by an external txt file, some cannot changed with the API, some are instance, some are types, etc. And all of them have to queried in a different way. It is really a mess to change parameters names or their values. I work atm on a translation project where we have to translate Parameter Names and their values in 200 models. Really complicated... And because of the different parameters and many different methods, it is really hard to let users in one company use different Revit UI languages (project independent). We are a international world with international offices, but Revit Parameters are still working as in the year 2000.

 

Maybe you don't notice this in the US or UK: Because of that language problems some Dynamo packages are not usable, because the nodes or scripts are using the ui language dependent parameter names. If someone in the community creates a script, you can be sure you have to rework the script, because of the mentioned problems.

 

In my opinion it is time to introduce a new era of parameters. All of the same structure and all with the same API methods. Parameters which all have a GUID and can have language dependent multi-field-values. They should be queried only by its guid and not by its human readable name. 

 

 

  1. Know that you know what features are automated, which one is most useful for you 

All of the new features are great in general - but they don't change the major automation problems of Revit.

 

Thanks for your article and the discussion,

Best,

Thomas

Conceptual Mass cut void in Surface

$
0
0

Hello,

 

I'm creating with a tool a Surface (NewFormByCap) and a Solid Void(NewExtrusionForm) and it must cut the created void from the surface. But that don't happen automatically and now i have to do this manually.

 

What do you need from the api to get this void cut the surface? Because the things i found needs two Solids as input and this is a Surface Solid input.

 

I only know the SolidSolidCutUtils and the Geometry Combine (last one didn't worked for me)

 

i get the following result but it dont cuts the void from surface:

 

Annotation 2019-08-19 100629.png

Re: Select elements that are visible from a point.

$
0
0

Hi,

We had a problem close to yours ourself on previous projects. We were working on rendering of appartments inside Revit. Our models were heavy because of textures, furnitures, etc... 

We decided to extract each appartment separately using a custom plug-in that I created. The principles were :

- create a plan view with a crop box corresponding to the appartment

- extract everything inside the cropbox to a new model

The tricky parts were cutting the walls (which does not always work properly), cutting the floors (idem) and dealing with the elements that are close to the boundary.

If you are interested we can sell it to you...

 

Re: Warning can't be dismissed

Re: Warning can't be dismissed

$
0
0

Hi  ,

You can learn about Revit warnings in understanding-Revit-warnings.

As I already mentioned you have to provide us simple non-confidential case which will help us to recreate your problem.

If you go through the link then you will come to know that the warning you are receiving cannot be ignored and you have to take some actions in your project to get rid of that warning.

 

 

Re: Wall create by profile

$
0
0

The Wall.Create method requires the "curveloops" in the List<Curve> to be in either all counter-clockwise direction or all clockwise direction.

You can check the direction of a curveloop in curveloops with: Curveloop.IsCounterclockwise(XYZ normal)  

Re: How Stop or Cancel revit closing

$
0
0

Hello, I have the same problem now. Is there a solution to this topic?


Re: How Stop or Cancel revit closing

$
0
0

The Revit API will not help you with this, as explained above.

 

Therefore, you will have to treat this as a generic .NET and Windows question, on how to prevent an arbitrary application from closing. 

 

For instance, you can search for something like 'prevent windows application from closing .net':

 

https://duckduckgo.com/?q=prevent+windows+application+from+closing+.net

  

This thread suggest some valid solutions:

 

https://serverfault.com/questions/709765/prevent-users-from-closing-certain-application

 

Re: LookupParameter Not Change value type Length of family

$
0
0

Hello
Do you have any examples?

 

regards

 

Re: LookupParameter Not Change value type Length of family

Re: LookupParameter Not Change value type Length of family

$
0
0

Hi,

 

there are methods in the UnitUtils class that can convert those values.

 

Revitalizer

Re: DRAW LINE VISIBLE ON SCREEN

$
0
0

Hello
analyzing the subject
you can take care of the family  Detail Item line based
since it is requesting the insertion point
and then the second point to end

 

there will be some example using
the family  Detail Item line based

regards

Schema Conflict when Loading a File

$
0
0

I am getting the "Schema Conflict when Loading a File" error and am trying to figure out what is going on to cause it.

 

I have project A that has my schemas included in it. When I open project A first and work on it, no problem.

 

When I open a project B, do some work with my add in (including loading the schemas), then load project A, I get the "Schema Conflict when Loading a File" error. It goes through each of the schemas I have defined, saying each one is a conflict.

 

This error doesn't happen with all projects. If I have project C with my schema in it, and load project B then project C, everything works fine.

 

The schemas are all mine and their definitions haven't changed. I am working in Revit 2020. Where should I start looking to see what is going wrong with these schemas?

Re: Warning can't be dismissed

$
0
0

Hi Naveen,

Thanks for the link.

Still my question remains: how are the warnings/errors adressed by Revit? What makes a Warning a warning rather than an error? Severity?

And why is that that we have warning messages (it says that it can be ignored) while in fact they can't?


Re: Disabling Cast Shadows and Ambient Shadows

$
0
0

I believe that in your case you can apply a template with only the "Shadows" option checked.

image.png

 

But in my case, I would like to turn the Ambient Shadows ON without relying on a template. That's because in my plugin I cannot assume that the user will have a specific template in his model.

 

 , first of all, thanks for all your work in your blog. It has been helping a lot.

There are any news from the development team? Or any ideas for a workaround?

 

Thanks!

Model Pattern vs Drafting Pattern

$
0
0

I am working on a tool that collects all of the patterns in a file. I am wondering how to access the parameter that tells you if the pattern is a model pattern or a drafting pattern? I have tried 

patternElement.GetType()

but all that tells me is that it's a FillPatternElement. Nothing in the API docs is jumping out as an obvious answer here.

 

Any ideas on how to get this information?

 

Thanks!

Number of elements connected to a piping system

Re: Change Shift+MMB for 3D orbiting

$
0
0

I actually have a related question: Are there any classes or namespaces that handle basic Revit events like orbiting or panning?

Re: Number of elements connected to a piping system

Viewing all 66847 articles
Browse latest View live


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