- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to make a command that makes copies of a family instance at every curtain grid line of a curtain wall and locks them.
I have no trouble making the new family instances, locking them is where I have trouble. I am trying to use the NewAlignment method using...
1. CurtainGridLine reference
2. Family instance reference obtained from the 2018 API method GetReferences.
When I tried to run the command I got an error that the family instance reference was not valid. The specific enum I used (CenterLeftRight) for FamilyInstanceReferenceType was the only CenterLeftRight reference in the family and also the reference I needed for the command.
Has anyone had similar issues? Maybe some reference types work better than others?
Thank you
Solved! Go to Solution.