Group Origin - please add API to get & set

Group Origin - please add API to get & set

harrymattison
Advocate Advocate
1,820 Views
8 Replies
Message 1 of 9

Group Origin - please add API to get & set

harrymattison
Advocate
Advocate

Hi,

 

Please add API access to get and set the location and rotation of the group origin.

0 Likes
1,821 Views
8 Replies
Replies (8)
Message 2 of 9

Aaron.Lu
Autodesk
Autodesk
Hi Harry,

Did you try (Group.Location as LocationPoint).Point ? you can get and set it.


Aaron Lu
Developer Technical Services
Autodesk Developer Network
0 Likes
Message 3 of 9

Anonymous
Not applicable

Hi Aaron, great information!  can rotation information be obtained this way as well?

0 Likes
Message 4 of 9

Aaron.Lu
Autodesk
Autodesk
Looks like it throws, let me check it with engineering team.


Aaron Lu
Developer Technical Services
Autodesk Developer Network
0 Likes
Message 5 of 9

Aaron.Lu
Autodesk
Autodesk
Thanks, it is a limitaion of API, so a wish is raised now:

CF-3797 - API ability to set origin point of group but not change location of the group itself

thanks for reporting this.


Aaron Lu
Developer Technical Services
Autodesk Developer Network
Message 6 of 9

Aaron.Lu
Autodesk
Autodesk
and another one: CF-3798 API ability to get rotation of group


Aaron Lu
Developer Technical Services
Autodesk Developer Network
Message 7 of 9

Anonymous
Not applicable

Hey Groupies,

I wan't to move the user moveable origin point to a corner position, is this at all possible, I dont actually want to move the group.

 

cheerio 

0 Likes
Message 8 of 9

hemmesMW2F3
Contributor
Contributor

I'm bumping this post as I've ran into the same difficulties with retrieving the rotation and also mirrored state of a Group instance. I've been getting info from Jeremy Tammik and through him from the dev team here:
https://forums.autodesk.com/t5/revit-api-forum/groups-check-for-mirrored/m-p/12187340#M73610

Message 9 of 9

c_hanschen
Advocate
Advocate

@harrymattison ,

 

Nice Try, but entire Group moves when setting (Group.Location as LocationPoint).Point to a new XYZ.

 

It is now 2024, is there a solution yet for moving the Group Origin of a ModelGroup?

 

Chris

0 Likes