code conversion from c# to vb.net

code conversion from c# to vb.net

Anonymous
Not applicable
722 Views
2 Replies
Message 1 of 3

code conversion from c# to vb.net

Anonymous
Not applicable

foreach( Element e in collector )
  {
    ImportInstance inst = e as ImportInstance;
 
    if( inst != null )
    {
      // Get the Solid from ImportInstance
 
      GeometryElement geomElem
        = inst.get_Geometry( opt );
 
 pleases tell,how can i write these lines in vb.net,i am a beginner in vb.net

0 Likes
Accepted solutions (1)
723 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk
Accepted solution
  • Open the Revit macro SharpDevelop IDE
  • Enter the original C# code
  • Click on the menu item 'translate'
  • You can also translate to Python

 

Here is a more detailed description and other more detailed information:

 

 

By the way, I would not recommend starting to learn VB.NET in this day and age:

 

  

Cheers,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 3

Anonymous
Not applicable

thank you very much sir 🙂

0 Likes