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: 

Slanted Column: Unable to determine slanted column end cut plane.

1 REPLY 1
Reply
Message 1 of 2
sweetfa2
651 Views, 1 Reply

Slanted Column: Unable to determine slanted column end cut plane.

Unable to determine slanted column end cut plane.

 

This error is received when adding a slanted column.  Can anybody provide some hints on how to solve.

 

Line line = ApplicationCreator.NewLineBound(insertPoint[0], insertPoint[1]);

FamilyInstance instance = DocumentCreator.NewFamilyInstance(line, trimMaterialType, level, StructuralType.Column);

 

Parameter param = instance.get_Parameter(BuiltInParameter.SLANTED_COLUMN_TYPE_PARAM);

param.SetParameter(SlantedOrVerticalColumnType.CT_EndPoint);

 

SetParameter(instance, BuiltInParameter.SLANTED_COLUMN_TOP_CUT_STYLE, ColumnAttachmentCutStyle.CutColumn);

SetParameter(instance, BuiltInParameter.SLANTED_COLUMN_BASE_CUT_STYLE, ColumnAttachmentCutStyle.CutColumn);

 

1 REPLY 1
Message 2 of 2
Joe.Ye
in reply to: sweetfa2

The possible reason is that the column cannot be created successfully. You can remove the last two lines to test if the code can create a slanted column. If removing cannot create the slanted column, then the issue is the code to create the column is not right. If removing code can create the slanted column, you can add a doc.Regenerate() after this line. SetParameter(instance, BuiltInParameter.SLANTED_COLUMN_TOP_CUT_STYLE, ColumnAttachmentCutStyle.CutColumn); Hope this helps.


Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network

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