How to create a room by means of Revit API?
It is necessary to create and in it to place tables about walls.
On tables there should be computers.
PLEASE
|
How to create a room by means of Revit API?
It is necessary to create and in it to place tables about walls.
On tables there should be computers.
PLEASE
Last edited by Golfstream3912; 2007-04-13 at 03:21 PM.
Hi, Welcome to AUGI!
There's an SDK directory on your installation CD that includes samples which do (most of) what you want. Look for Common\Revit SDK and unzip the file that's there. The Rooms sample will create rooms, and the RevitCommands sample shows how to insert families.
Hope that helps,
In SDK anything suitable has not found. Has seen all examples SDK 9.0 concrete examples is not present. Therefore also I ask the help.Originally Posted by Danny Polkinhorn
I the beginner which try to study REVITAPI therefore I ask a concrete example of creation of a room. English I know not so well. If that that not clearly ask.
I looked SDK 9.1 but that that is necessary to me has not found. Can lay out an example of creation of a room.Originally Posted by Danny Polkinhorn
The API readme says:
Autodesk Revit API application: Rooms
1. Display the information of all the rooms.
2. Create room tags and add them to the rooms which are lack of tags.
3. Reorder the number of all rooms by ascending order from ground floor to high floor, from left to right
4. Calculate the rooms area for each department and export the result to an Excel document.
What folks are seeking is a way to create a room and its extra parameters through the API. Possible yet?
Ah, right you are. Sorry I must have been thinking of another sample I saw. So, if there were walls already, this is what you would do.
Determine the level of the walls which will become the room's level.
Find an internal point within the walls.
Create a new UV point object for the internal point.
Pass the level and point to the NewRoom method:
Dim MyRoom As Room = commandData.Application.ActiveDocument.Create.NewRoom(level, point)
I would like completely the program of construction of a room. What to continue further studying RevitAPI.On mine nobody knows as to construct a room or time is not present to write an example. It is a pity. My searches while are unsuccessful.
Sorry, I will be happy to help you with questions, but you'll only learn by writing it yourself. Plus, I don't have the time to write it for you.
Also, please post in your own language as well as the english translation. Someone else may be able to translate your intentions better.
DP, This would be a good topic to go over on our next Hawaii Revit Users Group meeting.