Changing or Moving an Existing FamilyInstance object to a different Work Plane or a newly created SketchPlane object
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
Does anyone know how to change the Work Plane where a FamilyInstance object is placed on or how to move the FamilyInstance object to a different Work Plane programmatically?
I noticed that when a FamilyInstance object is selected through the UI, two options (Edit Work Plane and Pick New) would appear in the Modify | <Element> tab that will allow us to modify the Work Plane of the currently selected instance. How to do this process through the API?
I tried to create a new Plane object and then a new SketchPlane object based on that Plane object. Afterwards, I tried to set the SketchPlane into the BuiltInParameter.SKETCH_PLANE_PARAM of the FamilyInstance. However, that specific enumeration of the BuiltInParameter turned out to be a read-only parameter. Previous articles related to the subject has only discussed the creation of new SketchPlane object and setting them as the SketchPlane of the Active View.
I believe that since this process can be done through the UI (By using the Edit Work Plane and Pick New functions) then the Revit API should have a way to replicate it as well.
Thanks in advance!