« Lock the Model, e.g. Prevent Deletion | Main | Pick Corners and Create Floor »

November 07, 2011

Comments

Hi Jeremy,

I'm looking to code a routine to generate a partition/curtain wall that is not vertical. My approach was to generate in a vertical plane derived from an edge, then rotate it into it's orientation about this linear edge. But it seems walls can only be rotated in plan as it doesn't move when I call ElementTransformUtils.RotateElement with a non vertical line. Can you please confirm? Also, if I wish to detach the top of the wall from a level, can you please demonstrate what you would set this parameter to? BuiltInParameter.WALL_TOP_IS_ATTACHED

If there are any other API methods to generate non vertical walls, would be greatly appreciated to find out about them.

Cheers, Jon

Thanks in advance,

Jon

Dear Jon,

Nope, I cannot confirm the rotation issue off-hand - it would require some research - so you would have to submit an ADN DevHelp Online case for that.

Regarding your second question:

If you have a parameter taking an ElementId value and wish to set it to undefined or not connected, you can simply use ElementId.InvalidElementId:

http://thebuildingcoder.typepad.com/blog/2011/08/set-underlay-display-property-to-none.html

Cheers, Jeremy.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource