Draw Rectangle, Circle and Polygon using Revit API

Draw Rectangle, Circle and Polygon using Revit API

RakeshBSalwe
Contributor Contributor
855 Views
1 Reply
Message 1 of 2

Draw Rectangle, Circle and Polygon using Revit API

RakeshBSalwe
Contributor
Contributor

Hello Team,

 

Trying to create Rectangle, Circle and Polygon using Revit API 2018. 

There are option available in Revit application (installed on machine) from where we can directly draw above mentioned geometry, please find the attachment for reference(highlighted in red box).

 

But trying to implement the same, i didnt find any  API though which we can directly create those geometry.

exa.

1. For Circle, i checked blogs mentioning use arc.

2. For Rectangle : Creating 4 different lines and connect them together and same for polygon.

 

Instead of this, do we have direct api to implement the same, instead of creating individual lines.

 

RakeshBSalwe_0-1639727014193.png

 

 

 

0 Likes
Accepted solutions (1)
856 Views
1 Reply
Reply (1)
Message 2 of 2

MarryTookMyCoffe
Collaborator
Collaborator
Accepted solution

api don't have 1:1 buttons from UI. We can draw line and curve line that's all. behind this buttons there is just methods that draw figures from lines and arc. Some times you just need to sit and do the math

-------------------------------------------------------------
--------------------------------|\/\/|------------------------
do not worry it only gonna take Autodesk 5 years to fix bug