Draw a Property line

Draw a Property line

Anonymous
Not applicable
644 Views
3 Replies
Message 1 of 4

Draw a Property line

Anonymous
Not applicable

Is any one have an idea to draw property lines programatically for Revit 2019 ??

0 Likes
645 Views
3 Replies
Replies (3)
Message 2 of 4

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @Anonymous ,

A wish list item was already raised for it in the past:CF-1612 [Creating and editing Property Line using API].

https://forums.autodesk.com/t5/revit-api-forum/create-property-line-programmatically/td-p/5600736 

https://forums.autodesk.com/t5/revit-api-forum/how-to-create-property-line-by-using-api/m-p/7907679 

 

you can also achieve this task using Revit postable command

 RevitCommandId id = RevitCommandId.LookupPostableCommandId(PostableCommand.PropertyLine);
 uiapplication.PostCommand(id);

I hope this helps.

 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 4

Anonymous
Not applicable

Thanks Naveen.

I tried out post command its working.

But could you please tell me ,how to pass co-ordinates to Post Command ????

 

0 Likes
Message 4 of 4

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @Anonymous ,

Unfortunately, I am sorry to say that the PostCommand functionality does not accept passing parameters to the PostCommand() method. The method will just launch the built-in/add-in Revit command as it is, including all its user interaction.

It does not include any possibility to supply any additional input arguments or programmatically define the selection, it will prompt the user for the standard manual interaction, just like Revit normally would.

 

You can refer this blog for more information

https://thebuildingcoder.typepad.com/blog/2013/10/programmatic-custom-add-in-external-command-launch.html


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes