It seems that the material assigned to the solid is not passed to the FreeFormElement. But the BuiltInParameter.MATERIAL_ID_PARAM can do it. Thanks.
Re: Element created from solid lost material property in family document
How to check if the text of an IndependentTag is question mark?
Anyone knows if there is a way to check if a material tag is valid a not (question mark) through API? Thanks in advance.
Re: Get room informations from FamilySymbol
Thanks a lot!! it works.
Re: How to check if the text of an IndependentTag is question mark?
Install RevitLookup and explore the IndependentTag properties.
One of them is TagText:
https://www.revitapidocs.com/2020/8e297dee-920d-f620-6198-0bed494e3f04.htm
Maybe the question mark is a special case and you need to check some of the other properties as well for it.
Please let us know where you find it.
Thank you.
Best regards,
Jeremy
Re: What's the best route to extract information from Tevit
It isn't just the quantities. It's the fact that I want to link each object in a model to information in my database. e.g.- Architect adds washbasin to model; I'd like be able to link that wash-basin to one in my database (which has the price and manufacturer information attached to it), based on the size and material (ceramic, marble etc.) provided in the model.
Re: How to modify revit button picture ?
This question has been discussed here many times in the past.
Here is a pointer to such a discussion and a very nice tutorial by archi+lab:
Please always search for existing solutions first before posting a new question.
Re: "...does not inhert IExternalCommand"
Please work through the getting started material first of all to learn and understand the basics of Revit add-ins:
https://thebuildingcoder.typepad.com/blog/about-the-author.html#2
That will answer this question of yours and many others as well.
Your specific question is probably due to an error in your add-in manifest, so you ought to share that as well.
To fix your error, please look at the Add-in Registration instructions in the developer guide:
You must specify your add-in DLL path and your full external command class name, which is:
- MyFirstCommand.UserControl1
This name seems rather confusing to me, so, for your own sake and peace of mind, you might want to think of more precise and descriptive names for both your namespace and your external command implementation class.
Cheers,
Jeremy
Re: How to check if the text of an IndependentTag is question mark?
Hi Jeremy,
Thanks for your reply.
I checked that the TagText is always empty whether it is question mark or not. I also checked that the IsOrphaned property is always false. And there is no parameter can be helpful. I've no idea how to do the check now.
Re: What's the best route to extract information from Tevit
You can easily link Revit elements to external database entries.
One option is to use the Revit element UniqueId as an identifier.
Here is a complete minimal example, extensively documented, doing just that:
https://github.com/jeremytammik/FireRatingCloud
Re: How to check if the text of an IndependentTag is question mark?
There are many more properties to check, e.g., TaggedElementId etc.
Are you using RevitLookup?
Re: How to check if the text of an IndependentTag is question mark?
Yes, I'm using RevitLookup. TaggedElementId, GetTaggedReference also no help. I can't find a property useful for this case.
Re: How to check if the text of an IndependentTag is question mark?
What action in the user interface cases the question mark? What can you do in the UI to make it go away? Analyse the results in RevitLookup.
Re: How to modify revit button picture ?
Thanks for your answer, but i still don't know how to change revit default design like below picture
Where blue circle is revit default wall button, i want to change this picture to my custom design and red number is default button order, then i want to change order like 5-4-3-2-1 order, anyway i want to do that is modify revit original UI design, but so far i try to search related tutorial then obtain the "how to create own button"only that is not my want to do, clearly my problem is how to change revit orignal UI design include picture、order、panel color and so on .
Re: How to modify revit button picture ?
I try use ILSpy to look revit .dll file and find the revit tool picture and some code that look like xml code, but i don't find how to use this dll to write api to change revit default button picture.
Re: How to pick point while on a form
There are methods to "hiding" the form which really just closes it but hangs onto the command and reopens it after selection is made, but it may be best to do the selection on Load (before form shows) or on Close when form is out of the way, but before you return your result to Revit.
External application with web UI
Hello!
I would like to create an External application which opens a dialog and do some stuff after it. My dialog would be a WebView or something like that. Is it possible? Could someone recommend a good example. Which direction is worth to follow? I search on Autodesk APP Store and found BimObject or ProdLib plugins, which have really nice UIs. Are they use WPF or some web framework?
Re: What's the best route to extract information from Tevit
Dear Jeremy,
Thanks for the input. I have a couple of basic questions to ask. Hope you'll indulge me.
1) Does the UniqueID remain the same Revit for different users/ copies? i.e.if User1 puts in a washbasin in his model, and User2 does the same in his model (different projects and copies of Revit), will the Unique ID remain the same or change?
2) In case the UniqueID remains the same in the above case, what happens in case of different sizes/ details. e.g.- User1 uses marble Washbasin with 30mm radius. User2 puts in ceramic washbasin with 50mm radius. What'll happen to the ID's? Will they change? Or will they remain the same, just the changes will be reflected in the Properties?
I ask because if they remain the same, it makes linking easier. If they change on a case by case, it mean it's not possible because I'll then only have to do this activity manually each time, which will not be practical or possible.
Thanks again.
Re: Warning can't be dismissed
Hi,
Digging into the code we found out the following :
We have a major difference between this :
if (failure.GetFailureDefinitionId() == BuiltInFailures.InaccurateFailures.InaccurateSketchLine && !failureDeleted) { failuresAccessor.DeleteWarning(failure); failureDeleted = true; } if (failure.GetFailureDefinitionId()== BuiltInFailures.RoomFailures.RoomNotEnclosed && !failureDeleted) { failuresAccessor.DeleteWarning(failure); failureDeleted = true; }
and this :
FailureDefinitionId fdi = failure.GetFailureDefinitionId(); if (fdi == BuiltInFailures.InaccurateFailures.InaccurateSketchLine && !failureDeleted) { failuresAccessor.DeleteWarning(failure); failureDeleted = true; } if (fdi == BuiltInFailures.RoomFailures.RoomNotEnclosed && !failureDeleted) { failuresAccessor.DeleteWarning(failure); failureDeleted = true; }
Do you have any idea why ?
Re: What's the best route to extract information from Tevit
Hi Vikram,
A few answers to your previous questions :
- I am unsure on whether you understand the difference between Type and Instance. Every WashBasin in your model is an instance and will have a UniqueId. The Type of all the identical WashBasins of the model has a UniqueId too. But this UniqueId will be different from a model to the other.
- if you want to find families in Revit you have to Filter them using FilteredElementCollectors. See more in Jeremy's blog.
For your original question, what is the best way to create a design software ? Depends on what you intend to do :
- pricing the building : take into account a few limitations of Revit, including the fact that quantities are wrong from a few % because joints between walls and walls/floors are not perfectly modelized. Then there is an obvious limitation which is the way the building is modelized. Example : if your architect draws your interior partitions only to the ceiling but not to the concrete slab. In France from what I know the market is divided into 2 "schools" : the ones that draw the building again (choosing what needs to be drawed again and what does not), and the school of the ones that check the work of the architects (hoping it is not too poor).
- checking the work of the design team : then Revit is the ideal tool. You can check everything you want, from geometric checks (is there enough space to use that stair) to analytic (is my global surface is line with the program).
Re: What's the best route to extract information from Tevit
Dear Benoit,
Thanks for the input. I did know the difference between Type and Instance (Type is generic, Instance is specific). Noted about ID's changing from even Type in different models. That means I can't base my solution on them because if they change from project to project, it'll mean links needing to be established manually for each. That's simply not possible.
Noted. I'll read up on FilteredElementCollectors. I didn't know about that/ them. Will study it up.
I'm not too worried about the issues you raise. Reason is, if a design is poor (lacks necessary details) it's the fault of the architect. This will always be the case, and nothing anyone can do to rectify it.
Even if there's a gap in % prices due to wall and joint miscalculation, it's still a start. The case to reduce the gap and give a more accurate figure is the next step. Having a rough estimate at 70-80% accuracy is a start.
Thanks,