Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66666

Re: Copy with base point

$
0
0

Hi sanjayman,

 

I've already seen that you created another thread for the Group center point.

http://forums.autodesk.com/t5/revit-api/group-center-point/td-p/6379898

 

As far as I can see, there are about three types of Groups:

 

  1. Model groups
  2. Detail groups
  3. Model groups with attached Detail groups

Each group consists of a list of members.

You can get the members' BoundingBoxes, this method needs a View parameter.

Depending on the kind of the group,use the View the Element resides in (Detail group) or null (for Model group).

May be that you need to use a valid View3D instead of null, in this case.

 

For the third case, I have no idea so far.

 

Once having the BoundinBoxXYZ for each Element in a group, get their minimum and maximum extends.

Calculate the center of the extends by dividing it by two...

 

(Remark: Groups can contain groups.)

 

That's all.

 

 

Revitalizer

 

 


Viewing all articles
Browse latest Browse all 66666

Trending Articles



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