Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Dissociate Work Planes to Allow Unconstrained Movement for Family Files

0 REPLIES 0
Reply
Message 1 of 1
kelau1993
659 Views, 0 Replies

How to Dissociate Work Planes to Allow Unconstrained Movement for Family Files

For Family Files in the Revit UI, I can dissociate Work Planes on 'GenericForm's such as 'Extrusion's to allow movement in all directions using this:
https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/CloudHelp/cloudhelp/2016/EN...

How can I achieve this using the API?

Seems like the API calls "work planes" "sketch planes".

I've found the SKETCH_PLANE_PARAM parameter but it IsReadOnly and UserModifiable so it complains when I try to modify its value. It's also just a string of a name of another 'Element' like "Extrusion", "Ref. Level", or "Reference Plane" so it wouldn't really make sense to change it because that name doesn't identify a specific 'Element'.

I've also found out you can do Extrusion.Sketch.SketchPlane to get an 'Extrusion''s 'SketchPlane'. When dissociating a work plane in the UI, it just looks like the '.Name' of the 'SketchPlane' changes. I'm not able to change the '.Name' in the API though.

 

In the UI, I can also associate the 'Element' with another work plane. This seems to throw away the old work plane and assign a new one to it. I only need to move the 'Element' in the XY plane so if I could associate the object with "Ref. Level" (or maybe null) that would work. But Extrusion.Sketch.SketchPlane is only a getter and not a setter.

I've found this but the solution is just creating an 'Element' and not moving it:
https://forums.autodesk.com/t5/revit-api-forum/sketch-plane-param-read-only/m-p/6716450#M19698

and this but it's moving a Beam and 'GenericForm's don't have the STRUCTURAL_BEAM_END1_ELEVATION parameters:
http://thebuildingcoder.typepad.com/blog/2014/03/detach-beam-from-plane.html

I've found some other questions somewhere else on the web with no answers.

A workaround I've found was to copy the object but I think this could break joins and cuts?

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community