« Change Element Colour | Main | ASHRAE Viewer Plugin of the Month »

March 30, 2011

Comments

hi Jeremy,

great to have (dis)allow wall end joins feature in 2012 API, but what about join 2 parallel adjacent walls?

user can manually join it but looks like not available yet in API.

hope don't have to wait till 2013 API.

cheers.

Ning

Dear Jeremy Sir,
Can i display all Families from revit in treeView of Windows forms as such in Project Browser window in Revit?


Regards,
Nitin

Dear Ning,

I asked the development team, and there is not even a wish for this registered yet, so I submitted one for you. You are an ADN member, aren't you? In future, it would be better to do this through a DevHelp Online request, actually. If you like, you can still do so, and I will hook up the wish list item I created with your case.

Cheers, Jeremy.

Dear Nitin,

Yes, of course you can do that. You can determine all families in the document and set up a tree view using the functionality provided by Windows and the .NET framework. You could classify the individual families by their category, for instance. I think that would more or less match what the Revit project browser does.

For an example of determining all families and the symbols defined in them, you can look at

http://thebuildingcoder.typepad.com/blog/2010/12/xml-family-usage-report.html

Cheers, Jeremy.

Thanks for the support.

I have another question, now can i drag and drop selected family symbol from TreeView of windows form to the Revit?.


Regards,
Nitin

thanks Jeremy, i just submitted ADN support request, ID is 1268147, thanks again. Ning

Dear Ning,

Thank you for submitting the DevHelp Online request for this!

That makes it much easier to follow up and keep track of the issue in our knowledge base.

Cheers, Jeremy.

Dear Nitin,

It is a pleasure!

The Revit API does not provide any dedicated support for drag and drop. You may be able to simulate whatever user interactions Revit does support, or make use of iDrop. As always, first explore what the Revit user interface has to offer, and then ask yourself whether you can reproduce your required behaviour programmatically.

Cheers, Jeremy.

Dear Jeremy Sir,
Now i have populated all family instances in TreeView from xml file, now i need to display selected family instance image in same windows form.

Please help.

Regards,
Nitin

Dear Nitin,

Congratulations on your progress. Look at

http://thebuildingcoder.typepad.com/blog/2010/05/get-type-id-and-preview-image.html

Cheers, Jeremy.

Dear Jeremy sir,
May i know how the families have been populated in project browser in Revit, i mean on what basis they have populated because i m getting families in tree view which are differ from the those which are in Revit.


Thanks & Regards,
Nitin

Dear sir,
May i know what is iDrop?

Regards,
Nitin

Dear Nitin,

Look for i-drop in the Autodesk Developer Center:

http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=1862830

Cheers, Jeremy.

Dear Nitin,

Yes, I can imagine that the project browser displays families in a way that is supposed to be more intuitive for end users.

Cheers, Jeremy.

Dear Jeremy sir,
Can i use "iDrop" technology with .rfa files.

Regards,
Nitin

Dear Nitin,

The basic information on i-drop is available from the Autodesk Developer Center:

http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=1862830

To find information on using it with Revit family files, you can simply google for "i-drop revit family". That brings up a number of relevant hits for me.

Cheers, Jeremy.

Dear Jeremy Sir,

How can i read All Points(Elements or Geometry) present in current documents with out seleting them.

Thanks & Regards
NAmit Jain

Dear Jeremy Sir,

How can i read All Points(Elements or Geometry) present in current documents with out seleting them in Revit MEP 2012 MEP


Thanks & Regards
Namit Jain

Dear Namit Jain,

There are a number of ways to proceed. One is to read the geometry of all elements and collect the points from that. For greater efficiency, you may want to filter the points you find and only keep unique instances. This is demonstrated by various blog posts on geometry:

http://thebuildingcoder.typepad.com/blog/geometry

For instance, you can use the approach illustrated by the XyzEqualityComparer helper class and the way I make use of it in the GetVertices method in

http://thebuildingcoder.typepad.com/blog/2009/05/nested-instance-geometry.html

Cheers, Jeremy.

Hi Jeremy,

1) Thanks for your fantastic work on the Revit API!

2) Given a collection of WallSweep objects, how can one obtain its (XYZ) Location?

eg.


Dim sweepSet As Autodesk.Revit.DB.FilteredElementCollector = New Autodesk.Revit.DB.FilteredElementCollector(aRevDoc)
Dim sweepCol As ICollection = sweepSet.OfClass(GetType(DB.WallSweep)).ToElements()
For Each aSweep As WallSweep In sweepCol
Dim aLocation As LocationPoint = TryCast(aSweep.Location, LocationPoint)
Dim aLocationCurve As LocationCurve = TryCast(aSweep.Location, LocationCurve)
Next

aLocation and aLocationCurve always are null.

The .WallSweepInfo has a few clues on its location, such as .Distance .DistanceMeasuredFrom and even .WallOffset.

Do I need to navigate up to the wall on which it is hosted?

Thanks again!
Konrad.

Dear Konrad,

1. Thank you very much for your appreciation!

2a. How do you create a model with these WallSweep objects to test?

2b. Navigating up to the hosting wall sounds like a very good idea.

2c. Have you used RevitLookup to explore your model, the wall sweeps, and their hosts? You can navigate and look interactively at all their relationships, geometry and location information yourself.

Cheers, Jeremy.

Dear Jeremy,

I have some problem with updating revit linked files path.
My plugin works fine with clasic files which are closed but
it don't work with a central file or the local associated files.

My question is, is there a special way to change links path for
a central file?

Thanks
V.

Dear Valentin,

The same steps that work for a file without worksets should work for files with worksets, as long as the applicable worksets are editable.

Cheers, Jeremy.

The Autodesk Revit Architecture program lets architects and designers brainstorm and design their projects directly on their computer. If you wish to change something about the design, the program lets you issue revisions that are posted in the "Sheet Issues/Revisions" dialog. Once issued, a revision cannot be "deleted," but it can be merged with another revision. Once a revision is merged, it no longer appears in the "Sheet Issues/Revisions" dialog and all of its information is lost, meaning the difference between deleting a revision and merging a revision is only nominal.

I was trying to find the difference between the wall centerline and the core centerline of a wall, so I created a IList of the compoundstructure then did a bunch of work using the function of the layers to figure out where the core was and got a result. However if there are 2 layers vertically stacked within the wall then it all goes to pot... is there a way to treat the 2 vertically stacked layer as 1? or in fact another way to find the difference between the wall and core centerline location?

Dear Drew,

Thank you for submitting this question as an ADN case 09454026 [Finding the Wall v Core Centerline] as well.

I and my colleagues will attend to it as soon as we possibly can.

By the way, the Revit 2015 API includes some enhancements accessing stacked walls and the relationships between their components, so you should definitely take a look at that as soon as you can.

Good luck!

Cheers, Jeremy.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource