Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
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 get the ReferencePlane of a ExtrusionRoof

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
380 Views, 2 Replies

How to get the ReferencePlane of a ExtrusionRoof

I need export a ExtrusionRoof element and then import and create a same roof later.


I find there is a NewExtrusionRoof to create roof, and it need a ReferencePlane parameter:

 

public ExtrusionRoof NewExtrusionRoof(CurveArray profile, ReferencePlane refPlane, Level level, RoofType roofType, double extrusionStart, double extrusionEnd);

 

I try to print all the parameters of a ExtrusionRoof and one of the ReferencePlane in scene as below, but find no relation between them, how can I get the ReferencePlane of a ExtrusionRoof ?

 

Roof parameters:

Fascia Depth = "0' - 0""
Design Option = "-1"
Category = "Roofs"
Work Plane = ""
Level Offset = "0' - 0""
Extrusion Start = "-0' - 5""
Room Bounding = "Yes"
Type Id = "24298"
Phase Created = "New Construction"
Image = "<None>"
Rafter Cut = "Plumb Cut"
Reference Level = "Level 2"
Thickness = "0' - 3 3/8""
Mark = ""
Type = "Wood Rafter 8" - Asphalt Shingle - Insulated"
Type Name = ""
Phase Demolished = "None"
Area = "731 SF"
Family = "Basic Roof"
Category = "Roofs"
Family Name = ""
Slope = "0" / 12""
Comments = ""
Extrusion End = "26' - 5 1/32""
Family and Type = "Basic Roof: Wood Rafter 8" - Asphalt Shingle - Insulated"
Related to Mass = "No"
Volume = "205.28 CF"

 

ReferencePlane parameters:

Name = "Reference Plane"
BubbleEnd = "(76.533359954, -62.781219960, 10.000000000)"
FreeEnd = "(-84.604570907, -62.781219960, 10.000000000)"
Direction = "(1.000000000, 0.000000000, 0.000000000)"
Plane.Origin = "(0.000000000, 0.000000000, 10.000000000)"
Plane.Normal = "(0.000000000, 0.000000000, 1.000000000)"
Design Option = "-1"
Category = "Reference Planes"
Subcategory = "<None>"
Type Name = ""
Category = "Reference Planes"
Name = ""
Family Name = ""
Scope Box = "None"

2 REPLIES 2
Message 2 of 3
thannaingoo.api
in reply to: Anonymous

Dear @Anonymous,

 

Please refer the below link.

It may be useful for your case.

 

https://boostyourbim.wordpress.com/2018/03/29/schedule-slope-of-all-roof-or-floor-faces/

 

Regards,

Eden Oo

Message 3 of 3
Anonymous
in reply to: thannaingoo.api

Hi,

As I know, there are two methods to create a ReferencePlane:

 

public ReferencePlane NewReferencePlane(DB.XYZ bubbleEnd, DB.XYZ freeEnd, DB.XYZ cutVec, View pView);
public ReferencePlane NewReferencePlane2(DB.XYZ bubbleEnd, DB.XYZ freeEnd, DB.XYZ thirdPnt, View pView);

 

I can not find these in the link, how can I get the parameters such as bubbleEnd ?

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

Post to forums  

Rail Community


Autodesk Design & Make Report