<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Revit Form Issue in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418571#M379</link>
    <description>&lt;P&gt;Certainly, I am very new to this, so I think everything is quite a mess &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks for your time, really appreciate it!&lt;/P&gt;</description>
    <pubDate>Thu, 10 Apr 2025 08:28:14 GMT</pubDate>
    <dc:creator>mitch9TZZY</dc:creator>
    <dc:date>2025-04-10T08:28:14Z</dc:date>
    <item>
      <title>Revit Form Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418402#M375</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very new to C# but I'm trying to get into it. Forgive me if this topic has been discussed multiple times. I am trying to create a simple form in Revit that gets activated with an IExternalCommand. I am running into an issue that I cannot seem to figure out with the&amp;nbsp;InitializeComponent(); line of code in the .xaml.cs code.&lt;/P&gt;&lt;P&gt;Here is the form creation:&lt;/P&gt;&lt;P&gt;&amp;lt;Window x:Class="Detail_Line_Creation.LineStylesWindow"&lt;BR /&gt;xmlns="&lt;A href="http://schemas.microsoft.com/winfx/2006/xaml/presentation" target="_blank"&gt;http://schemas.microsoft.com/winfx/2006/xaml/presentation&lt;/A&gt;"&lt;BR /&gt;xmlns:x="&lt;A href="http://schemas.microsoft.com/winfx/2006/xaml" target="_blank"&gt;http://schemas.microsoft.com/winfx/2006/xaml&lt;/A&gt;"&lt;BR /&gt;xmlns:mc="&lt;A href="http://schemas.openxmlformats.org/markup-compatibility/2006" target="_blank"&gt;http://schemas.openxmlformats.org/markup-compatibility/2006&lt;/A&gt;"&lt;BR /&gt;xmlns:d="&lt;A href="http://schemas.microsoft.com/expression/blend/2008" target="_blank"&gt;http://schemas.microsoft.com/expression/blend/2008&lt;/A&gt;"&lt;BR /&gt;xmlns:local="clr-namespace:Detail_Line_Creation"&lt;BR /&gt;mc:Ignorable="d"&lt;BR /&gt;Title="Available Line Styles" Height="400" Width="300"&amp;gt;&lt;BR /&gt;&amp;lt;Grid&amp;gt;&lt;BR /&gt;&amp;lt;ListBox Name="LineStyleList" Margin="10"/&amp;gt;&lt;BR /&gt;&amp;lt;/Grid&amp;gt;&lt;BR /&gt;&amp;lt;/Window&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is my xaml.cs code:&lt;/P&gt;&lt;P&gt;using System;&lt;BR /&gt;using System.Collections.Generic;&lt;BR /&gt;using System.Linq;&lt;BR /&gt;using System.Text;&lt;BR /&gt;using System.Threading.Tasks;&lt;BR /&gt;using System.Windows;&lt;BR /&gt;using System.Windows.Controls;&lt;BR /&gt;using System.Windows.Data;&lt;BR /&gt;using System.Windows.Documents;&lt;BR /&gt;using System.Windows.Input;&lt;BR /&gt;using System.Windows.Media;&lt;BR /&gt;using System.Windows.Media.Imaging;&lt;BR /&gt;using System.Windows.Navigation;&lt;BR /&gt;using System.Windows.Shapes;&lt;/P&gt;&lt;P&gt;namespace Detail_Line_Creation&lt;BR /&gt;{&lt;BR /&gt;/// &amp;lt;summary&amp;gt;&lt;BR /&gt;/// Interaction logic for UserControl2.xaml&lt;BR /&gt;/// &amp;lt;/summary&amp;gt;&lt;BR /&gt;public partial class LineStylesWindow : Window&lt;BR /&gt;{&lt;BR /&gt;public LineStylesWindow(List&amp;lt;string&amp;gt; lineStyleNames)&lt;BR /&gt;{&lt;BR /&gt;InitializeComponent();&lt;BR /&gt;LineStyleList.ItemsSource = lineStyleNames;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the CS0103 error code for the&amp;nbsp;InitializeComponent(); as well as for the&amp;nbsp;LineStyleList.&lt;/P&gt;&lt;P&gt;Could anyone help shed some light on what I need to do here? I believe I have all the correct references and assemblies loaded in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 07:00:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418402#M375</guid>
      <dc:creator>mitch9TZZY</dc:creator>
      <dc:date>2025-04-10T07:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Revit Form Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418445#M376</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13994618"&gt;@mitch9TZZY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From your query I can understand that you have converted the UserControl to Window. So you can the below steps&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Close the Visual Studio.&lt;/LI&gt;&lt;LI&gt;Delete the&amp;nbsp;&lt;STRONG&gt;bin&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;obj&amp;nbsp;&lt;/STRONG&gt;folders.&lt;/LI&gt;&lt;LI&gt;if you find&amp;nbsp;&lt;STRONG&gt;.user&lt;/STRONG&gt; file at the project location, kindly delete that as well.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Try Build project. if not possible to build I have created a sample project attached with this query. Kindly download and check the source code. I use Revit Version 2024.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this will helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 07:30:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418445#M376</guid>
      <dc:creator>Mohamed_Arshad</dc:creator>
      <dc:date>2025-04-10T07:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Revit Form Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418546#M377</link>
      <description>&lt;P&gt;Hi Mohamed,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response. Yes you are correct, I followed some guidance to convert the usercontrol to window.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had found the suggestions you mentioned and I have already tried those steps, but with no success unfortunately.&lt;/P&gt;&lt;P&gt;I have also looked at your .xaml.cs file and see that it is exactly the same as mine, but when I open yours in VS there are no errors on it. I can't figure out why though, as if I copy and paste your code into my xaml.cs file, it still throws the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 08:15:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418546#M377</guid>
      <dc:creator>mitch9TZZY</dc:creator>
      <dc:date>2025-04-10T08:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Revit Form Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418565#M378</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13994618"&gt;@mitch9TZZY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If possible can you send the project, So that I can check here. I'm thinking that issue must be in the csprog file.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 08:24:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418565#M378</guid>
      <dc:creator>Mohamed_Arshad</dc:creator>
      <dc:date>2025-04-10T08:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Revit Form Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418571#M379</link>
      <description>&lt;P&gt;Certainly, I am very new to this, so I think everything is quite a mess &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks for your time, really appreciate it!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 08:28:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418571#M379</guid>
      <dc:creator>mitch9TZZY</dc:creator>
      <dc:date>2025-04-10T08:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Revit Form Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418578#M380</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13994618"&gt;@mitch9TZZY&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Which Revit version you're using&amp;nbsp; ?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 08:31:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418578#M380</guid>
      <dc:creator>Mohamed_Arshad</dc:creator>
      <dc:date>2025-04-10T08:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Revit Form Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418579#M381</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13994618"&gt;@mitch9TZZY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got your problem, Your trying to create plugin for Revit 2025 right ?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 08:33:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418579#M381</guid>
      <dc:creator>Mohamed_Arshad</dc:creator>
      <dc:date>2025-04-10T08:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Revit Form Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418609#M382</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13994618"&gt;@mitch9TZZY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I too start from the scratch, So I appreciate asking questions.&lt;/P&gt;&lt;P&gt;So you problem was&amp;nbsp;&lt;STRONG&gt;.NET Framework. T&lt;/STRONG&gt;ill Revit 2024 we used&amp;nbsp;&lt;STRONG&gt;.NETFramework.&amp;nbsp;&lt;/STRONG&gt;From Revit&amp;nbsp; 2025 it was moved to &lt;STRONG&gt;.NET 8.0. &lt;/STRONG&gt;So you need to use .NET Template when we create new project in the visual studio. Kindly check the below attached image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reference Image&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mohamed_Arshad_0-1744274498086.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1487850i29F86036E9EB1D6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mohamed_Arshad_0-1744274498086.png" alt="Mohamed_Arshad_0-1744274498086.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Use the below settings for csproj.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;PropertyGroup&amp;gt;
	&amp;lt;TargetFramework&amp;gt;net8.0-windows&amp;lt;/TargetFramework&amp;gt;
	&amp;lt;ImplicitUsings&amp;gt;enable&amp;lt;/ImplicitUsings&amp;gt;
	&amp;lt;Nullable&amp;gt;enable&amp;lt;/Nullable&amp;gt;
	&amp;lt;UseWPF&amp;gt;true&amp;lt;/UseWPF&amp;gt;
	&amp;lt;LangVersion&amp;gt;latest&amp;lt;/LangVersion&amp;gt;
&amp;lt;/PropertyGroup&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;2. Double click the project in the visual studio and paste the settings. Kindly check the below snip&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mohamed_Arshad_2-1744274915665.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1487853i5ACD7F7486FBFB32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mohamed_Arshad_2-1744274915665.png" alt="Mohamed_Arshad_2-1744274915665.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Create WPF and add backend then check it will work. Hope this will works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 08:49:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418609#M382</guid>
      <dc:creator>Mohamed_Arshad</dc:creator>
      <dc:date>2025-04-10T08:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Revit Form Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418661#M383</link>
      <description>&lt;P&gt;Thank you so much for your assistance Mohamed, I really appreciate it.&lt;/P&gt;&lt;P&gt;I haven't gotten it working 100% yet, but you have put me on the right track, thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think I know what I need to do now... Have a great day and thank you again!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 09:15:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418661#M383</guid>
      <dc:creator>mitch9TZZY</dc:creator>
      <dc:date>2025-04-10T09:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Revit Form Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418705#M384</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13994618"&gt;@mitch9TZZY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you and Happy coding &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 09:37:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-form-issue/m-p/13418705#M384</guid>
      <dc:creator>Mohamed_Arshad</dc:creator>
      <dc:date>2025-04-10T09:37:19Z</dc:date>
    </item>
  </channel>
</rss>

