Message 1 of 6
Not applicable
04-13-2016
07:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm new in Revit API and i recently realese some simple API.
I'm now trying to do an API which use a forms to ask some parameters value to the user in order to set this parameter value to the selected objects. I created the forms with visual studio.
I'm already not able to open the form...
This is my part of code called by pressing the button in revit ribbon panel :
Public Class CommandHTPOT
Implements IExternalCommand
Public Function Execute(
ByVal commandData As ExternalCommandData,
ByRef message As String,
ByVal elements As ElementSet) _
As Result Implements IExternalCommand.Execute
Dim uiapp As UIApplication = commandData.Application
Dim app As Application = uiapp.Application
Dim windowsform As New Form1()
Dim result = windowsform.ShowDialog()
End Function
End ClassMy research has so far not helped me... When i execute that code I have a transaction error (French language so can't tell you exactly the terms).
Hoping some help !
Thanks a lots
Solved! Go to Solution.