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

Re: cannot install revit i update photos error

$
0
0

Hi  ,

Unfortunately, this is not the best place to ask such a question.

Please note that this discussion forum is dedicated to programming Revit using the Revit API.

Therefore, you cannot expect an answer to a question such as yours relating to installation, product usage or end-user support issues here.

You should try one of the non-API Revit product support discussion forums instead for that:

https://forums.autodesk.com/t5/revit-api-forum/this-forum-is-for-revit-api-programming-questions-not-for/td-p/5607765 

I hope this clarifies.

 

 


Re: Units on the elements, that conform the assets of materials

Re: How to get the a window outer boundary?

$
0
0

Yes.

Attached is one example of trapezoid window.

I need the outer boundary of the bigger trapezoid only!

 

Thanks..

Re: Revit to IFC export without parameter loss

Re: Revit 2017:difference between manually copy and copy with api

$
0
0

Hi,

 

for the text parameter bound to a ModelText, I think this is more expensive than just setting a normal text parameter.

The resulting text's geometry needs to be refreshed/recalculated each time the parameter's value changed.

The geometry's complexity depends on different factors, e.g. the text, the font, the style.

It may be that you ModelText consists of more vertices than the rest of your FamilyInstance.

 

Just an assumption.

 

Wouldn't it be better to display the parameter's information in an IndependentTag instead of the FamilyInstance's ModelText?

 

Revitalizer

Load spesific version of dynamo revit programatically

Bug: Unable to open Revit 2019 model after saving custom schema in Project Info

$
0
0

Hello, I seem to running into an issue that is specific to Revit 2019, as it does not happen in 2017, 2018 and 2020 (using the exact same code).

 

For my addin I want to save data into the project information of the document using a custom schema. This is generated using the SchemaBuilder class, where I set the schema properties using the example as shown in the API documation.

 

Adding the schema as a new entity to the document in a transaction succeeds.

And I can use Revit Lookup to inspect the saved data in the document.

 

Now here's the problem that occurs:

I save the document, with the custom schema added, as a new file.

I close the document.

I re-open the newly saved document, and I get the following errors:

First error on open:

screenshot_2019-11-05_13-39-22.pngFirst error on open

Second error on open:

screenshot_2019-11-05_13-39-26.pngSecond error on open

 

Now I'm unable to open the Revit document.

 

This can be fixed by opening the document with the Audit checkbox enabled.

Where it prompts the following popup:

screenshot_2019-11-06_10-38-25.png

Where pressing Repair and open will clear any existing Project Information that was stored, and regenerate the default Project Information fields with empty values.

 

Could anybody help me with this?

Re: How to get the a window outer boundary?


Re: Revit 2017:difference between manually copy and copy with api

$
0
0

Hi Revitalizer,

You seem to be right.

I have consulted many people,it seems that there is no other way to solve this problem,

Thank you very much.

Re: Open and close models from OnStartUp

$
0
0

I got that error now as well. 

Do you have any suggestions on how I could call my class that opens the models, that isn't in an event handler. 

 

I would like to automate this task to 100%, so it would involve opening Revit at a certain time at night, performing these exports from a list of models, and then closing again. 

 

As you said, it is working in and ExternalCommand but I can't run an external command when Revit is starting up right? Or can I?

 

Thanks for both of your inputs.

Re: Open and close models from OnStartUp

$
0
0

Since both OnApplicationInitialized and the Idling Event are EventHandlers I cant perform the change of Active Document in Revit. 

 

A couple of questions:

Can I call my class that performs the opening and exporting from another place, or write it in another way so I can do this soon after Revit has started?

 

I guess that ExternalCommands cannot be run straight at startup?

Re: Open and close models from OnStartUp

$
0
0

You can subscribe to the Idling event during startup.

 

In the Idling event, you can modify the model.

 

I was unaware that you cannot open a new model there.

 

However, if you must indeed be in an external command to open a new model, you can do so as follows:

 

  • Implement your external command that opens a model.
  • In the Idling event handler, unsubscribe from Idling and call PostCommand to launch your external command.

 

In your external command, if you wish to process another file, resubscribe to Idling again.

 

Another idea: In your external command, if you wish to process another file, call PostCommand there, last thing you do before returning.

 

Ah, no, why should you.

 

In your external command, simply process all your files in a loop.

 

I really don't see what all the complexity is about.

 

What are you actually trying to achieve?

 

The Building Coder has processed several articles on batch processing documents.

 

Some of them are listed in the topic group on idling:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.28

 

 

 

 

How to Set Window Family Sill Height Instance Parameter editable on insert?

Re: How to Set Window Family Sill Height Instance Parameter editable on insert?

$
0
0

As far as I can tell from the article you point out, this is not a programming question, but a question on manually setting up the family definition appropriately.

 

In that case, unfortunately, this is not the best place to ask such a question.

 

Please note that this discussion forum is dedicated to programming Revit using the Revit API.

 

Therefore, you cannot expect an answer to a question such as yours relating to installation, product usage or end user support issues here.

 

You should try one of the non-API Revit product support discussion forums instead for that:

 

https://forums.autodesk.com/t5/revit-api-forum/this-forum-is-for-revit-api-programming-questions-not-for/td-p/5607765

 

The people there are much better equipped to answer your question than us programming nerds.

 

I hope this clarifies.

 

Thank you for your cooperation and understanding.

 

Best regards,

 

Jeremy

 

Re: Bug: Unable to open Revit 2019 model after saving custom schema in Project I

$
0
0

Sorry to hear that you are running into such an issue.

 

Please note that it is not recommended to store extensible storage data on the project info object:

 

 

For the entire list of extensible storage related discussions, please refer to the corresponding topic group:

 

 


Re: Load spesific version of dynamo revit programatically

$
0
0

Just as Jacob Small already replied to your other thread, I am not aware of a way to force a specific version to load.

 

Re: How to Set Window Family Sill Height Instance Parameter editable on insert?

$
0
0

Thanks for the answer but, my question refers to the configuration of the family via code c #, as it would be possible to set the parameter so that it is editable by the user at the time of inserting the symbol.


I will try to prove an idea I have about how to modify the parameter status, editable status, via the configuration of another related parameter, the Default Sill Height.

 

In the Revit interface, if the Default Sill Height parameter is unlocked, the Sill Height instance parameter becomes editable. Therefore, I will try to achieve the same effect through the API code.

 

If this is an API code forum, it should be understood that the queries are how operations or modifications are made by programming the API using C # code, for example.

 

Re: Analysis Visualisation Framework still fails to print

$
0
0

Any updates on whether this will be addressed in the next major release of Revit?  I checked the October Preview Release and it still seems to be an issue.

 

Thanks.

Re: How to Set Window Family Sill Height Instance Parameter editable on insert?

$
0
0

It should indeed be understood.

 

Unfortunately, a large number of queries are submitted here every day in which this basic fact is not understood.

  

Therefore, I thank you for your clarification.

  

It is certainly possible (and easy) to set the value of a parameter.

  

If you wish to do so automatically immediately after a window instance has been inserted, that is also possible.

  

One possible (and maybe the most appropriate) approach to achieve this would be by using the dynamic model updater framework DMU.

  

Here are a number of examples and detailed descriptions on using it:

  

https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.31

  

Re: Analysis Visualisation Framework still fails to print

$
0
0

Dear Matt,

 

Thank you for your update, patience, perseverance, and checking in the preview release.

 

According to the information in the ticket REVIT-130308 [Analysis Visualisation Framework still fails to print -- 14085888], the issue was originally scheduled for correction in Revit 2020.

 

In order to fix it, a new development issue REVIT-130843 [Analysis Visualisation Framework still fails to print -- 14085888] was been created.

 

Unfortunately, the new issue is no longer scheduled for fixing in Revit 2020, but in the next major release.

 

I added a note to the developers asking whether it is still on track as planned and underlining its importance to you.

 

I hope and expect them to confirm that all is well and proceeding as planned.

 

Best regards,

 

Jeremy

 

Viewing all 66683 articles
Browse latest View live


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